]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
554f62e9 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
554f62e9 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d55e5bfc
RD
28#endif
29
554f62e9 30/* -----------------------------------------------------------------------------
7449af73
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
554f62e9 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
7449af73
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
554f62e9
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
093d3ff1 46#endif
d55e5bfc 47
7449af73
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
554f62e9
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
7449af73
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
554f62e9
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
7449af73
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
554f62e9
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
7449af73
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
554f62e9
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
7449af73
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
554f62e9
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
7449af73 126
d55e5bfc 127
554f62e9 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d55e5bfc 130
554f62e9 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d55e5bfc 133 *
554f62e9
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
093d3ff1
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
7449af73 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
7449af73
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
7449af73 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
7449af73 159
093d3ff1 160#ifndef SWIGRUNTIME
7449af73 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
7449af73 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
7449af73 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
554f62e9
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
7449af73
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
7449af73 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
7449af73
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
554f62e9 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
7449af73
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
093d3ff1
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
554f62e9 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
7449af73 368 Return 0 if not equal, 1 if equal
093d3ff1
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
7449af73 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
7449af73
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
093d3ff1 388*/
7449af73
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
093d3ff1 397 }
7449af73
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
7449af73 401 return equiv;
093d3ff1
RD
402}
403
7449af73
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
093d3ff1
RD
427/*
428 Check the typename
429*/
7449af73 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
7449af73
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
7449af73 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
554f62e9 481 if (!type) return NULL;
093d3ff1
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
7449af73
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
093d3ff1
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
7449af73
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
093d3ff1 507 }
7449af73
RD
508 }
509 cast = cast->next;
510 }
511}
554f62e9
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
7449af73
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
093d3ff1 556 }
7449af73
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
093d3ff1 591 }
7449af73
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
7449af73
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
093d3ff1 605 for (; u != eu; ++u) {
7449af73 606 register unsigned char uu = *u;
093d3ff1
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
7449af73 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
7449af73 621 register char d = *(c++);
554f62e9 622 register unsigned char uu;
093d3ff1
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
093d3ff1
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
093d3ff1
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
554f62e9
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
554f62e9
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
093d3ff1 764#endif
554f62e9
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
554f62e9 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
554f62e9
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
554f62e9
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
093d3ff1 935#endif
d55e5bfc 936
554f62e9
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
554f62e9
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
554f62e9
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
554f62e9
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
554f62e9
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
093d3ff1
RD
978 * pyrun.swg
979 *
554f62e9
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
554f62e9 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
093d3ff1 986/* Common SWIG API */
d55e5bfc 987
96221a45
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
554f62e9
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
554f62e9
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
554f62e9
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
554f62e9
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
554f62e9
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
7449af73 1016
d55e5bfc 1017
554f62e9 1018/* Runtime API */
d55e5bfc 1019
554f62e9
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
7449af73 1023
554f62e9
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
7449af73 1029
d55e5bfc 1030
554f62e9 1031/* Runtime API implementation */
093d3ff1 1032
554f62e9 1033/* Error manipulation */
093d3ff1 1034
554f62e9
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
d55e5bfc
RD
1041}
1042
554f62e9
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
093d3ff1 1048}
d55e5bfc 1049
554f62e9 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
7449af73 1051
554f62e9 1052/* Set a constant value */
093d3ff1 1053
554f62e9
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
554f62e9 1060/* Append a value to the result obj */
d55e5bfc 1061
554f62e9
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
c32bde28 1088 } else {
554f62e9
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
c32bde28 1100 }
554f62e9
RD
1101 return result;
1102#endif
d55e5bfc 1103}
093d3ff1 1104
554f62e9 1105/* Unpack the argument tuple */
093d3ff1 1106
554f62e9
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
093d3ff1
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
7449af73 1609#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
7449af73
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1613#endif
1614 };
1615
554f62e9 1616 static PyTypeObject pyswigobject_type;
7449af73 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
554f62e9
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
093d3ff1 1632#endif
554f62e9
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
093d3ff1 1651#if PY_VERSION_HEX >= 0x02020000
554f62e9
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
d55e5bfc 1672#endif
093d3ff1 1673#if PY_VERSION_HEX >= 0x02030000
554f62e9 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
554f62e9 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
554f62e9 1679 };
7449af73 1680 pyswigobject_type = tmp;
554f62e9 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1
RD
1682 type_init = 1;
1683 }
7449af73 1684 return &pyswigobject_type;
093d3ff1
RD
1685}
1686
1687SWIGRUNTIME PyObject *
554f62e9 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
554f62e9
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
7449af73 1696 }
554f62e9 1697 return (PyObject *)sobj;
093d3ff1
RD
1698}
1699
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
554f62e9 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
554f62e9 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
093d3ff1
RD
1713{
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
554f62e9 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
1723}
9d7dfdff 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
1727{
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
554f62e9 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
554f62e9 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1
RD
1733 }
1734}
1735
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
554f62e9 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
554f62e9 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
1746
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
554f62e9
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
093d3ff1
RD
1754}
1755
554f62e9 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
7449af73 1759PySwigPacked_type(void) {
554f62e9
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
093d3ff1
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
554f62e9 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
554f62e9 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
554f62e9 1842 };
7449af73 1843 pyswigpacked_type = tmp;
554f62e9 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
7449af73 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
554f62e9 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1852{
554f62e9
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
7449af73
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
554f62e9
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
7449af73 1864 }
093d3ff1 1865 }
554f62e9 1866 return (PyObject *) sobj;
093d3ff1
RD
1867}
1868
554f62e9 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
554f62e9
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
093d3ff1
RD
1880}
1881
093d3ff1 1882/* -----------------------------------------------------------------------------
554f62e9 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
554f62e9
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
554f62e9
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
554f62e9 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
554f62e9
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1903{
554f62e9
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
093d3ff1 1926 } else {
554f62e9
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
554f62e9
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
093d3ff1
RD
1947 }
1948}
1949
554f62e9
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
093d3ff1 1961 }
554f62e9 1962 return 0;
093d3ff1
RD
1963}
1964
554f62e9
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
554f62e9
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
093d3ff1 1992 } else {
554f62e9
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
554f62e9
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
093d3ff1
RD
2042 }
2043}
2044
554f62e9
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
554f62e9
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
093d3ff1 2051 } else {
554f62e9
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
96221a45 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
554f62e9
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
093d3ff1
RD
2069 }
2070}
2071
554f62e9 2072/* Convert a packed value value */
093d3ff1 2073
093d3ff1 2074SWIGRUNTIME int
554f62e9
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
093d3ff1 2084 }
554f62e9
RD
2085 return SWIG_OK;
2086}
093d3ff1 2087
554f62e9
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
093d3ff1 2091
554f62e9
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
093d3ff1 2096
554f62e9
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
093d3ff1 2115 }
554f62e9
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
554f62e9
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
093d3ff1 2126 }
554f62e9
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
093d3ff1 2140 }
554f62e9
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
093d3ff1 2147 }
554f62e9
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
093d3ff1
RD
2158}
2159
554f62e9
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
093d3ff1 2175#endif
554f62e9
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
093d3ff1 2180
554f62e9
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
093d3ff1 2191 } else {
554f62e9 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
554f62e9 2194 return SWIG_Py_Void();
093d3ff1 2195 }
554f62e9
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
554f62e9 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
554f62e9
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
093d3ff1 2213 }
093d3ff1 2214 }
554f62e9 2215 return robj;
093d3ff1 2216 }
093d3ff1
RD
2217}
2218
554f62e9
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
554f62e9 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1
RD
2224}
2225
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
7449af73
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
093d3ff1
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241#else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
093d3ff1 2248#endif
7449af73
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1
RD
2251}
2252
7449af73
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
554f62e9 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
7449af73
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
554f62e9 2263 return SWIG_ERROR;
7449af73
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
554f62e9 2268 return SWIG_ERROR;
7449af73
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
554f62e9 2276 return SWIG_ERROR;
7449af73
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
554f62e9 2279 return SWIG_ERROR;
7449af73 2280 Py_DECREF(o);
554f62e9 2281 return SWIG_OK;
093d3ff1 2282}
7449af73 2283#endif
093d3ff1 2284
554f62e9
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
7449af73
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
554f62e9 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
7449af73
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
554f62e9
RD
2310 } else {
2311 Py_XDECREF(pointer);
7449af73
RD
2312 }
2313}
093d3ff1 2314
554f62e9
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
093d3ff1 2321
554f62e9
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
2466#define SWIGTYPE_p_bool swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
7449af73
RD
2468#define SWIGTYPE_p_form_ops_t swig_types[2]
2469#define SWIGTYPE_p_int swig_types[3]
2470#define SWIGTYPE_p_long swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxArrayInt swig_types[12]
2479#define SWIGTYPE_p_wxArrayString swig_types[13]
2480#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481#define SWIGTYPE_p_wxBitmap swig_types[15]
2482#define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483#define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484#define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485#define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486#define SWIGTYPE_p_wxButton swig_types[20]
2487#define SWIGTYPE_p_wxCURHandler swig_types[21]
2488#define SWIGTYPE_p_wxCheckBox swig_types[22]
2489#define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxChoice swig_types[25]
2492#define SWIGTYPE_p_wxChoicebook swig_types[26]
2493#define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2131d850
RD
2494#define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495#define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496#define SWIGTYPE_p_wxColour swig_types[30]
b850e7f3
RD
2497#define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2498#define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2499#define SWIGTYPE_p_wxComboBox swig_types[33]
2500#define SWIGTYPE_p_wxCommandEvent swig_types[34]
2501#define SWIGTYPE_p_wxContextHelp swig_types[35]
2502#define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2503#define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2504#define SWIGTYPE_p_wxControl swig_types[38]
2505#define SWIGTYPE_p_wxControlWithItems swig_types[39]
2506#define SWIGTYPE_p_wxCursor swig_types[40]
2507#define SWIGTYPE_p_wxDC swig_types[41]
2508#define SWIGTYPE_p_wxDateEvent swig_types[42]
2509#define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2510#define SWIGTYPE_p_wxDateTime swig_types[44]
2511#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2512#define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2513#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2514#define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2515#define SWIGTYPE_p_wxDuplexMode swig_types[49]
2516#define SWIGTYPE_p_wxEraseEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvent swig_types[51]
2518#define SWIGTYPE_p_wxEvtHandler swig_types[52]
2519#define SWIGTYPE_p_wxFSFile swig_types[53]
2520#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2521#define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2522#define SWIGTYPE_p_wxFileSystem swig_types[56]
2523#define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2524#define SWIGTYPE_p_wxFocusEvent swig_types[58]
2525#define SWIGTYPE_p_wxFont swig_types[59]
2526#define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2527#define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2528#define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGauge swig_types[64]
2531#define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2532#define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2533#define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2534#define SWIGTYPE_p_wxGridSizer swig_types[68]
2535#define SWIGTYPE_p_wxHelpEvent swig_types[69]
2536#define SWIGTYPE_p_wxHelpProvider swig_types[70]
2537#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2538#define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2539#define SWIGTYPE_p_wxICOHandler swig_types[73]
2540#define SWIGTYPE_p_wxIcon swig_types[74]
2541#define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2542#define SWIGTYPE_p_wxIdleEvent swig_types[76]
2543#define SWIGTYPE_p_wxImage swig_types[77]
2544#define SWIGTYPE_p_wxImageHandler swig_types[78]
2545#define SWIGTYPE_p_wxImageList swig_types[79]
2546#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2547#define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2548#define SWIGTYPE_p_wxItemContainer swig_types[82]
2549#define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2550#define SWIGTYPE_p_wxKeyEvent swig_types[84]
2551#define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2552#define SWIGTYPE_p_wxListBox swig_types[86]
2553#define SWIGTYPE_p_wxListEvent swig_types[87]
2554#define SWIGTYPE_p_wxListItem swig_types[88]
2555#define SWIGTYPE_p_wxListItemAttr swig_types[89]
2556#define SWIGTYPE_p_wxListView swig_types[90]
2557#define SWIGTYPE_p_wxListbook swig_types[91]
2558#define SWIGTYPE_p_wxListbookEvent swig_types[92]
2559#define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2560#define SWIGTYPE_p_wxMemoryDC swig_types[94]
2561#define SWIGTYPE_p_wxMenu swig_types[95]
2562#define SWIGTYPE_p_wxMenuBar swig_types[96]
2563#define SWIGTYPE_p_wxMenuEvent swig_types[97]
2564#define SWIGTYPE_p_wxMenuItem swig_types[98]
2565#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
0f83f5da
RD
2566#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[100]
2567#define SWIGTYPE_p_wxMouseEvent swig_types[101]
2568#define SWIGTYPE_p_wxMoveEvent swig_types[102]
2569#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[103]
2570#define SWIGTYPE_p_wxNcPaintEvent swig_types[104]
2571#define SWIGTYPE_p_wxNotebook swig_types[105]
2572#define SWIGTYPE_p_wxNotebookEvent swig_types[106]
2573#define SWIGTYPE_p_wxNotifyEvent swig_types[107]
2574#define SWIGTYPE_p_wxObject swig_types[108]
2575#define SWIGTYPE_p_wxPCXHandler swig_types[109]
2576#define SWIGTYPE_p_wxPNGHandler swig_types[110]
2577#define SWIGTYPE_p_wxPNMHandler swig_types[111]
2578#define SWIGTYPE_p_wxPaintEvent swig_types[112]
2579#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[113]
2580#define SWIGTYPE_p_wxPaperSize swig_types[114]
2581#define SWIGTYPE_p_wxPickerBase swig_types[115]
2582#define SWIGTYPE_p_wxPoint swig_types[116]
2583#define SWIGTYPE_p_wxPyApp swig_types[117]
2584#define SWIGTYPE_p_wxPyCommandEvent swig_types[118]
2585#define SWIGTYPE_p_wxPyControl swig_types[119]
2586#define SWIGTYPE_p_wxPyEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyImageHandler swig_types[121]
2588#define SWIGTYPE_p_wxPyListCtrl swig_types[122]
2589#define SWIGTYPE_p_wxPySizer swig_types[123]
2590#define SWIGTYPE_p_wxPyTreeCtrl swig_types[124]
2591#define SWIGTYPE_p_wxPyTreeItemData swig_types[125]
2592#define SWIGTYPE_p_wxPyValidator swig_types[126]
2593#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594#define SWIGTYPE_p_wxRadioBox swig_types[128]
2595#define SWIGTYPE_p_wxRadioButton swig_types[129]
2596#define SWIGTYPE_p_wxRect swig_types[130]
2597#define SWIGTYPE_p_wxScrollBar swig_types[131]
2598#define SWIGTYPE_p_wxScrollEvent swig_types[132]
2599#define SWIGTYPE_p_wxScrollWinEvent swig_types[133]
2600#define SWIGTYPE_p_wxSetCursorEvent swig_types[134]
2601#define SWIGTYPE_p_wxShowEvent swig_types[135]
2602#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[136]
2603#define SWIGTYPE_p_wxSize swig_types[137]
2604#define SWIGTYPE_p_wxSizeEvent swig_types[138]
2605#define SWIGTYPE_p_wxSizer swig_types[139]
2606#define SWIGTYPE_p_wxSizerItem swig_types[140]
2607#define SWIGTYPE_p_wxSlider swig_types[141]
2608#define SWIGTYPE_p_wxSpinButton swig_types[142]
2609#define SWIGTYPE_p_wxSpinCtrl swig_types[143]
2610#define SWIGTYPE_p_wxSpinEvent swig_types[144]
2611#define SWIGTYPE_p_wxStaticBitmap swig_types[145]
2612#define SWIGTYPE_p_wxStaticBox swig_types[146]
2613#define SWIGTYPE_p_wxStaticBoxSizer swig_types[147]
2614#define SWIGTYPE_p_wxStaticLine swig_types[148]
2615#define SWIGTYPE_p_wxStaticText swig_types[149]
2616#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[150]
2617#define SWIGTYPE_p_wxString swig_types[151]
2618#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[152]
2619#define SWIGTYPE_p_wxTIFFHandler swig_types[153]
2620#define SWIGTYPE_p_wxTextAttr swig_types[154]
2621#define SWIGTYPE_p_wxTextCtrl swig_types[155]
2622#define SWIGTYPE_p_wxTextUrlEvent swig_types[156]
2623#define SWIGTYPE_p_wxToggleButton swig_types[157]
2624#define SWIGTYPE_p_wxToolBar swig_types[158]
2625#define SWIGTYPE_p_wxToolBarBase swig_types[159]
2626#define SWIGTYPE_p_wxToolBarToolBase swig_types[160]
2627#define SWIGTYPE_p_wxToolbook swig_types[161]
2628#define SWIGTYPE_p_wxToolbookEvent swig_types[162]
2629#define SWIGTYPE_p_wxTreeEvent swig_types[163]
2630#define SWIGTYPE_p_wxTreeItemId swig_types[164]
2631#define SWIGTYPE_p_wxTreebook swig_types[165]
2632#define SWIGTYPE_p_wxTreebookEvent swig_types[166]
2633#define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2634#define SWIGTYPE_p_wxValidator swig_types[168]
2635#define SWIGTYPE_p_wxVisualAttributes swig_types[169]
2636#define SWIGTYPE_p_wxWindow swig_types[170]
2637#define SWIGTYPE_p_wxWindowBase swig_types[171]
2638#define SWIGTYPE_p_wxWindowCreateEvent swig_types[172]
2639#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[173]
2640#define SWIGTYPE_p_wxXPMHandler swig_types[174]
2641static swig_type_info *swig_types[176];
2642static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
7449af73
RD
2643#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2644#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
093d3ff1
RD
2645
2646/* -------- TYPES TABLE (END) -------- */
2647
554f62e9
RD
2648#if (PY_VERSION_HEX <= 0x02000000)
2649# if !defined(SWIG_PYTHON_CLASSIC)
2650# error "This python version requires to use swig with the '-classic' option"
2651# endif
2652#endif
2653#if (PY_VERSION_HEX <= 0x02020000)
2654# error "This python version requires to use swig with the '-nomodern' option"
2655#endif
2656#if (PY_VERSION_HEX <= 0x02020000)
2657# error "This python version requires to use swig with the '-nomodernargs' option"
2658#endif
2659#ifndef METH_O
2660# error "This python version requires to use swig with the '-nofastunpack' option"
2661#endif
093d3ff1
RD
2662
2663/*-----------------------------------------------
2664 @(target):= _controls_.so
2665 ------------------------------------------------*/
2666#define SWIG_init init_controls_
2667
2668#define SWIG_name "_controls_"
2669
554f62e9
RD
2670#define SWIGVERSION 0x010329
2671
2672
2673#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2674#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2675
2676
2677#include <stdexcept>
2678
2679
2680namespace swig {
2681 class PyObject_ptr {
2682 protected:
2683 PyObject *_obj;
2684
2685 public:
2686 PyObject_ptr() :_obj(0)
2687 {
2688 }
2689
2690 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2691 {
2692 Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2696 {
2697 if (initial_ref) Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr & operator=(const PyObject_ptr& item)
2701 {
2702 Py_XINCREF(item._obj);
2703 Py_XDECREF(_obj);
2704 _obj = item._obj;
2705 return *this;
2706 }
2707
2708 ~PyObject_ptr()
2709 {
2710 Py_XDECREF(_obj);
2711 }
2712
2713 operator PyObject *() const
2714 {
2715 return _obj;
2716 }
2717
2718 PyObject *operator->() const
2719 {
2720 return _obj;
2721 }
2722 };
2723}
2724
2725
2726namespace swig {
2727 struct PyObject_var : PyObject_ptr {
2728 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2729
2730 PyObject_var & operator = (PyObject* obj)
2731 {
2732 Py_XDECREF(_obj);
2733 _obj = obj;
2734 return *this;
2735 }
2736 };
2737}
2738
2739
093d3ff1
RD
2740#include "wx/wxPython/wxPython.h"
2741#include "wx/wxPython/pyclasses.h"
2742
2743 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2744 static const wxString wxPyEmptyString(wxEmptyString);
2745 static const wxString wxPyControlNameStr(wxControlNameStr);
2746
2747 const wxArrayString wxPyEmptyStringArray;
2748
2749 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2750
554f62e9 2751 #define SWIG_From_long PyInt_FromLong
093d3ff1
RD
2752
2753
554f62e9
RD
2754SWIGINTERNINLINE PyObject *
2755SWIG_From_int (int value)
2756{
2757 return SWIG_From_long (value);
2758}
093d3ff1
RD
2759
2760
554f62e9
RD
2761#include <limits.h>
2762#ifndef LLONG_MIN
2763# define LLONG_MIN LONG_LONG_MIN
2764#endif
2765#ifndef LLONG_MAX
2766# define LLONG_MAX LONG_LONG_MAX
2767#endif
2768#ifndef ULLONG_MAX
2769# define ULLONG_MAX ULONG_LONG_MAX
2770#endif
093d3ff1
RD
2771
2772
2773SWIGINTERN int
554f62e9 2774SWIG_AsVal_long (PyObject* obj, long* val)
093d3ff1
RD
2775{
2776 if (PyNumber_Check(obj)) {
2777 if (val) *val = PyInt_AsLong(obj);
554f62e9 2778 return SWIG_OK;
093d3ff1 2779 }
554f62e9 2780 return SWIG_TypeError;
093d3ff1
RD
2781}
2782
2783
093d3ff1 2784SWIGINTERN int
554f62e9
RD
2785SWIG_AsVal_int (PyObject * obj, int *val)
2786{
093d3ff1 2787 long v;
554f62e9
RD
2788 int res = SWIG_AsVal_long (obj, &v);
2789 if (SWIG_IsOK(res)) {
2790 if ((v < INT_MIN || v > INT_MAX)) {
2791 return SWIG_OverflowError;
093d3ff1 2792 } else {
554f62e9 2793 if (val) *val = static_cast< int >(v);
093d3ff1 2794 }
554f62e9
RD
2795 }
2796 return res;
d55e5bfc
RD
2797}
2798
c32bde28 2799 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
d55e5bfc 2800
093d3ff1 2801SWIGINTERN int
554f62e9 2802SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 2803{
c32bde28
RD
2804 if (obj == Py_True) {
2805 if (val) *val = true;
554f62e9
RD
2806 return SWIG_OK;
2807 } else if (obj == Py_False) {
c32bde28 2808 if (val) *val = false;
554f62e9 2809 return SWIG_OK;
093d3ff1 2810 } else {
554f62e9
RD
2811 long v = 0;
2812 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2813 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2814 return res;
c32bde28 2815 }
d55e5bfc
RD
2816}
2817
2818 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2819 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2820 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2821 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2822 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2823 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2824
2825#include <wx/checklst.h>
d55e5bfc
RD
2826
2827 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
554f62e9 2828SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2829 if (clientData)
2830 {
d55e5bfc
RD
2831 wxPyClientData* data = new wxPyClientData(clientData);
2832 self->Insert(item, pos, data);
e9d6f3a4
RD
2833 }
2834 else
d55e5bfc
RD
2835 self->Insert(item, pos);
2836 }
50f151d7
RD
2837
2838SWIGINTERN int
2839SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2840{
2841 long v = 0;
2842 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2843 return SWIG_TypeError;
2844 }
2845 else if (val)
2846 *val = (unsigned long)v;
2847 return SWIG_OK;
2848}
2849
2850
2851SWIGINTERN int
2852SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2853{
2854 unsigned long v;
2855 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2856 if (SWIG_IsOK(res)) {
2857 if ((v > UINT_MAX)) {
2858 return SWIG_OverflowError;
2859 } else {
2860 if (val) *val = static_cast< unsigned int >(v);
2861 }
2862 }
2863 return res;
2864}
2865
554f62e9 2866SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2867 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2868 wxArrayInt lst;
2869 self->GetSelections(lst);
2870 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2871 for (size_t i=0; i<lst.GetCount(); i++)
2872 {
7e08d4ef
RD
2873 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2874 }
e9d6f3a4 2875 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2876 return tup;
2877 }
554f62e9 2878SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2879 #ifdef __WXMSW__
2880 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2881 self->GetItem(item)->SetTextColour(c);
2882 #endif
2883 }
554f62e9 2884SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetBackgroundColour(c);
2888 #endif
2889 }
554f62e9 2890SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
d55e5bfc
RD
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetFont(f);
2894 #endif
2895 }
2896 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
554f62e9 2897SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d55e5bfc
RD
2898 self->AppendText(text);
2899 }
554f62e9 2900SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d55e5bfc
RD
2901 return self->GetValue().Mid(from, to - from);
2902 }
2903 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2904 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2905 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2906 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2907 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2908
1c71765a
RD
2909SWIGINTERNINLINE PyObject*
2910SWIG_From_unsigned_SS_long (unsigned long value)
2911{
2912 return (value > LONG_MAX) ?
2913 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2914}
2915
2916
2917SWIGINTERNINLINE PyObject *
2918SWIG_From_size_t (size_t value)
2919{
2920 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2921}
2922
2923
50f151d7
RD
2924SWIGINTERNINLINE PyObject *
2925SWIG_From_unsigned_SS_int (unsigned int value)
2926{
2927 return SWIG_From_unsigned_SS_long (value);
2928}
2929
2930
d55e5bfc
RD
2931#include <wx/slider.h>
2932
2933
2934 static const wxString wxPySliderNameStr(wxSliderNameStr);
2935 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2936
2937#if !wxUSE_TOGGLEBTN
2938// implement dummy items for platforms that don't have this class
2939
2940#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2941
2942class wxToggleButton : public wxControl
2943{
2944public:
2945 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2946 const wxPoint&, const wxSize&, long,
2947 const wxValidator&, const wxString&)
2948 { wxPyRaiseNotImplemented(); }
2949
2950 wxToggleButton()
2951 { wxPyRaiseNotImplemented(); }
2952};
2953#endif
2954
51b83b37 2955 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
d55e5bfc 2956
7e08d4ef 2957SWIGINTERNINLINE int
554f62e9 2958SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2959{
7e08d4ef 2960 unsigned long v;
554f62e9
RD
2961 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2962 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2963 return res;
7e08d4ef 2964}
7e08d4ef 2965
d55e5bfc 2966 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
554f62e9 2967SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d55e5bfc
RD
2968 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2969 if (udata) {
2970 Py_INCREF(udata->m_obj);
2971 return udata->m_obj;
2972 } else {
2973 Py_INCREF(Py_None);
2974 return Py_None;
2975 }
2976 }
554f62e9 2977SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d55e5bfc
RD
2978 self->SetClientData(new wxPyUserData(clientData));
2979 }
554f62e9 2980SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d55e5bfc
RD
2981 wxPyUserData* udata = NULL;
2982 if (clientData && clientData != Py_None)
2983 udata = new wxPyUserData(clientData);
2984 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2985 shortHelp, longHelp, udata);
2986 }
554f62e9 2987SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d55e5bfc
RD
2988 wxPyUserData* udata = NULL;
2989 if (clientData && clientData != Py_None)
2990 udata = new wxPyUserData(clientData);
2991 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2992 shortHelp, longHelp, udata);
2993 }
554f62e9 2994SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d55e5bfc
RD
2995 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2996 if (udata) {
2997 Py_INCREF(udata->m_obj);
2998 return udata->m_obj;
2999 } else {
3000 Py_INCREF(Py_None);
3001 return Py_None;
3002 }
3003 }
554f62e9 3004SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d55e5bfc
RD
3005 self->SetToolClientData(id, new wxPyUserData(clientData));
3006 }
3007
3008#include <wx/listctrl.h>
3009
fef4c27a 3010 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
554f62e9 3011SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d55e5bfc
RD
3012 // Python aware sorting function for wxPyListCtrl
3013 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3014 int retval = 0;
3015 PyObject* func = (PyObject*)funcPtr;
5a446332 3016 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3017
3018 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3019 PyObject* result = PyEval_CallObject(func, args);
3020 Py_DECREF(args);
3021 if (result) {
3022 retval = PyInt_AsLong(result);
3023 Py_DECREF(result);
3024 }
3025
3026 wxPyEndBlockThreads(blocked);
3027 return retval;
3028 }
3029
3030 // C++ Version of a Python aware class
3031class wxPyListCtrl : public wxListCtrl {
7449af73 3032 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d55e5bfc
RD
3033public:
3034 wxPyListCtrl() : wxListCtrl() {}
3035 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3036 const wxPoint& pos,
3037 const wxSize& size,
3038 long style,
3039 const wxValidator& validator,
3040 const wxString& name) :
3041 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3042
3043 bool Create(wxWindow* parent, wxWindowID id,
3044 const wxPoint& pos,
3045 const wxSize& size,
3046 long style,
3047 const wxValidator& validator,
3048 const wxString& name) {
3049 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3050 }
3051
3052 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d55e5bfc
RD
3053 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3054
84f85550
RD
3055 // use the virtual version to avoid a confusing assert in the base class
3056 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3057 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3058
d55e5bfc
RD
3059 PYPRIVATE;
3060};
3061
3062IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3063
3064IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d55e5bfc 3065IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3066IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
7e08d4ef
RD
3067IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3068
d55e5bfc 3069
554f62e9 3070SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d55e5bfc
RD
3071 wxListItem item;
3072 item.SetMask( wxLIST_MASK_STATE |
3073 wxLIST_MASK_TEXT |
3074 wxLIST_MASK_IMAGE |
3075 wxLIST_MASK_DATA |
3076 wxLIST_SET_ITEM |
3077 wxLIST_MASK_WIDTH |
3078 wxLIST_MASK_FORMAT
3079 );
3080 if (self->GetColumn(col, item))
3081 return new wxListItem(item);
3082 else
3083 return NULL;
3084 }
554f62e9 3085SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d55e5bfc
RD
3086 wxListItem* info = new wxListItem;
3087 info->m_itemId = itemId;
3088 info->m_col = col;
3089 info->m_mask = 0xFFFF;
3090 self->GetItem(*info);
3091 return info;
3092 }
554f62e9 3093SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d55e5bfc
RD
3094 wxPoint pos;
3095 self->GetItemPosition(item, pos);
3096 return pos;
3097 }
554f62e9 3098SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d55e5bfc
RD
3099 wxRect rect;
3100 self->GetItemRect(item, rect, code);
3101 return rect;
3102 }
554f62e9 3103SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d55e5bfc 3104 if (!PyCallable_Check(func))
ae8162c8 3105 return false;
d55e5bfc
RD
3106 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3107 }
554f62e9 3108SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d55e5bfc
RD
3109
3110 return self;
3111
3112
3113
3114 }
3115
3116#include <wx/treectrl.h>
3117#include "wx/wxPython/pytree.h"
3118
3119 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
554f62e9
RD
3120SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3121SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3122SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3123
3124 static wxTreeItemId wxNullTreeItemId;
3125
d55e5bfc
RD
3126 // C++ version of Python aware wxTreeCtrl
3127class wxPyTreeCtrl : public wxTreeCtrl {
7449af73 3128 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d55e5bfc
RD
3129public:
3130 wxPyTreeCtrl() : wxTreeCtrl() {}
3131 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3132 const wxPoint& pos,
3133 const wxSize& size,
3134 long style,
3135 const wxValidator& validator,
3136 const wxString& name) :
3137 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3138
3139 bool Create(wxWindow *parent, wxWindowID id,
3140 const wxPoint& pos,
3141 const wxSize& size,
3142 long style,
3143 const wxValidator& validator,
3144 const wxString& name) {
3145 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3146 }
3147
3148
3149 int OnCompareItems(const wxTreeItemId& item1,
3150 const wxTreeItemId& item2) {
3151 int rval = 0;
3152 bool found;
5a446332 3153 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3154 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
ae8162c8
RD
3155 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3156 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d55e5bfc
RD
3157 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3158 Py_DECREF(o1);
3159 Py_DECREF(o2);
3160 }
3161 wxPyEndBlockThreads(blocked);
3162 if (! found)
3163 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3164 return rval;
3165 }
3166 PYPRIVATE;
3167};
3168
3169IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3170
3171
554f62e9 3172SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3173 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3174 if (data == NULL) {
3175 data = new wxPyTreeItemData();
3176 data->SetId(item); // set the id
3177 self->SetItemData(item, data);
3178 }
3179 return data;
3180 }
554f62e9 3181SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3182 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3183 if (data == NULL) {
3184 data = new wxPyTreeItemData();
3185 data->SetId(item); // set the id
3186 self->SetItemData(item, data);
3187 }
3188 return data->GetData();
3189 }
554f62e9 3190SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d55e5bfc
RD
3191 data->SetId(item); // set the id
3192 self->SetItemData(item, data);
3193 }
554f62e9 3194SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d55e5bfc
RD
3195 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3196 if (data == NULL) {
3197 data = new wxPyTreeItemData(obj);
3198 data->SetId(item); // set the id
3199 self->SetItemData(item, data);
3200 } else
3201 data->SetData(obj);
3202 }
554f62e9 3203SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3204 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3205 PyObject* rval = PyList_New(0);
3206 wxArrayTreeItemIds array;
3207 size_t num, x;
3208 num = self->GetSelections(array);
3209 for (x=0; x < num; x++) {
3210 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
ae8162c8 3211 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d55e5bfc 3212 PyList_Append(rval, item);
a07a67e6 3213 Py_DECREF(item);
d55e5bfc
RD
3214 }
3215 wxPyEndBlockThreads(blocked);
3216 return rval;
3217 }
554f62e9 3218SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3219 void* cookie = 0;
3220 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3221 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3222 PyObject* tup = PyTuple_New(2);
ae8162c8 3223 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3224 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3225 wxPyEndBlockThreads(blocked);
3226 return tup;
3227 }
554f62e9 3228SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
d55e5bfc 3229 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3230 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3231 PyObject* tup = PyTuple_New(2);
ae8162c8 3232 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3233 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3234 wxPyEndBlockThreads(blocked);
3235 return tup;
3236 }
554f62e9 3237SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d55e5bfc
RD
3238 wxRect rect;
3239 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3240 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3241 wxRect* r = new wxRect(rect);
ae8162c8 3242 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
d55e5bfc
RD
3243 wxPyEndBlockThreads(blocked);
3244 return val;
3245 }
3246 else
3247 RETURN_NONE();
3248 }
3249 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c32bde28 3250
7449af73 3251SWIGINTERNINLINE PyObject*
554f62e9 3252 SWIG_From_bool (bool value)
c32bde28 3253{
554f62e9 3254 return PyBool_FromLong(value ? 1 : 0);
c32bde28
RD
3255}
3256
d55e5bfc
RD
3257 // C++ version of Python aware wxControl
3258class wxPyControl : public wxControl
3259{
3260 DECLARE_DYNAMIC_CLASS(wxPyControl)
3261public:
3262 wxPyControl() : wxControl() {}
3263 wxPyControl(wxWindow* parent, const wxWindowID id,
3264 const wxPoint& pos = wxDefaultPosition,
3265 const wxSize& size = wxDefaultSize,
3266 long style = 0,
3267 const wxValidator& validator=wxDefaultValidator,
3268 const wxString& name = wxPyControlNameStr)
3269 : wxControl(parent, id, pos, size, style, validator, name) {}
3270
caef1a4d 3271 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
d55e5bfc 3272
60d5fcc1
RD
3273 bool DoEraseBackground(wxDC* dc) {
3274#ifdef __WXMSW__
3275 return wxWindow::DoEraseBackground(dc->GetHDC());
3276#else
3277 dc->SetBackground(wxBrush(GetBackgroundColour()));
3278 dc->Clear();
3279 return true;
3280#endif
3281 }
3282
d55e5bfc
RD
3283 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3284 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3285 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3286 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3287
3288 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3289 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3290 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3291
3292 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3293 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3294
3295 DEC_PYCALLBACK__(InitDialog);
3296 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3297 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3298 DEC_PYCALLBACK_BOOL_(Validate);
3299
3300 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3301 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3302 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3303
3304 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3305 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3306
caef1a4d 3307 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
caef1a4d 3308 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d55e5bfc 3309
51b83b37
RD
3310 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3311
8d38bd1d
RD
3312 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3313
d55e5bfc
RD
3314 PYPRIVATE;
3315};
3316
3317IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3318
3319IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3320IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3321IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3322IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3323
3324IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3325IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3326IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3327
3328IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3329IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3330
3331IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3332IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3333IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3334IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3335
3336IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3337IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3338IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3339
3340IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3341IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3342
caef1a4d 3343IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
caef1a4d 3344IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d55e5bfc 3345
51b83b37 3346IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3347
3348IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3349
d55e5bfc
RD
3350
3351
554f62e9 3352SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
d55e5bfc
RD
3353
3354#include <wx/generic/dragimgg.h>
3355
53aa7709 3356 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
554f62e9 3357SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3358 wxDateTime rv;
3359 self->GetRange(&rv, NULL);
3360 return rv;
3361 }
554f62e9 3362SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3363 wxDateTime rv;
3364 self->GetRange(NULL, &rv);
3365 return rv;
3366 }
704eda0c 3367 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3368 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3369 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3370 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3371 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3372 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3373 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3374 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
d55e5bfc
RD
3375#ifdef __cplusplus
3376extern "C" {
3377#endif
554f62e9
RD
3378SWIGINTERN int ButtonNameStr_set(PyObject *) {
3379 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3380 return 1;
d55e5bfc
RD
3381}
3382
3383
554f62e9
RD
3384SWIGINTERN PyObject *ButtonNameStr_get(void) {
3385 PyObject *pyobj = 0;
3386
3387 {
d55e5bfc 3388#if wxUSE_UNICODE
554f62e9 3389 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3390#else
554f62e9 3391 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3392#endif
554f62e9
RD
3393 }
3394 return pyobj;
3395}
3396
3397
3398SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3399 PyObject *resultobj = 0;
3400 wxWindow *arg1 = (wxWindow *) 0 ;
3401 int arg2 = (int) -1 ;
3402 wxString const &arg3_defvalue = wxPyEmptyString ;
3403 wxString *arg3 = (wxString *) &arg3_defvalue ;
3404 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3405 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3406 wxSize const &arg5_defvalue = wxDefaultSize ;
3407 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3408 long arg6 = (long) 0 ;
3409 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3410 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3411 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3412 wxString *arg8 = (wxString *) &arg8_defvalue ;
3413 wxButton *result = 0 ;
3414 void *argp1 = 0 ;
3415 int res1 = 0 ;
3416 int val2 ;
3417 int ecode2 = 0 ;
3418 bool temp3 = false ;
3419 wxPoint temp4 ;
3420 wxSize temp5 ;
3421 long val6 ;
3422 int ecode6 = 0 ;
3423 void *argp7 = 0 ;
3424 int res7 = 0 ;
3425 bool temp8 = false ;
3426 PyObject * obj0 = 0 ;
3427 PyObject * obj1 = 0 ;
3428 PyObject * obj2 = 0 ;
3429 PyObject * obj3 = 0 ;
3430 PyObject * obj4 = 0 ;
3431 PyObject * obj5 = 0 ;
3432 PyObject * obj6 = 0 ;
3433 PyObject * obj7 = 0 ;
3434 char * kwnames[] = {
3435 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3436 };
3437
3438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3440 if (!SWIG_IsOK(res1)) {
3441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3442 }
3443 arg1 = reinterpret_cast< wxWindow * >(argp1);
3444 if (obj1) {
3445 ecode2 = SWIG_AsVal_int(obj1, &val2);
3446 if (!SWIG_IsOK(ecode2)) {
3447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3448 }
3449 arg2 = static_cast< int >(val2);
3450 }
3451 if (obj2) {
d55e5bfc 3452 {
554f62e9
RD
3453 arg3 = wxString_in_helper(obj2);
3454 if (arg3 == NULL) SWIG_fail;
3455 temp3 = true;
d55e5bfc 3456 }
554f62e9
RD
3457 }
3458 if (obj3) {
d55e5bfc 3459 {
554f62e9
RD
3460 arg4 = &temp4;
3461 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3462 }
554f62e9
RD
3463 }
3464 if (obj4) {
d55e5bfc 3465 {
554f62e9
RD
3466 arg5 = &temp5;
3467 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3468 }
554f62e9
RD
3469 }
3470 if (obj5) {
3471 ecode6 = SWIG_AsVal_long(obj5, &val6);
3472 if (!SWIG_IsOK(ecode6)) {
3473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3474 }
3475 arg6 = static_cast< long >(val6);
3476 }
3477 if (obj6) {
3478 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3479 if (!SWIG_IsOK(res7)) {
3480 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3481 }
554f62e9
RD
3482 if (!argp7) {
3483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3484 }
554f62e9
RD
3485 arg7 = reinterpret_cast< wxValidator * >(argp7);
3486 }
3487 if (obj7) {
d55e5bfc 3488 {
554f62e9
RD
3489 arg8 = wxString_in_helper(obj7);
3490 if (arg8 == NULL) SWIG_fail;
3491 temp8 = true;
d55e5bfc 3492 }
554f62e9
RD
3493 }
3494 {
3495 if (!wxPyCheckForApp()) SWIG_fail;
3496 PyThreadState* __tstate = wxPyBeginAllowThreads();
3497 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3498 wxPyEndAllowThreads(__tstate);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 }
3501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3502 {
3503 if (temp3)
3504 delete arg3;
3505 }
3506 {
3507 if (temp8)
3508 delete arg8;
3509 }
3510 return resultobj;
3511fail:
3512 {
3513 if (temp3)
3514 delete arg3;
3515 }
3516 {
3517 if (temp8)
3518 delete arg8;
3519 }
3520 return NULL;
d55e5bfc
RD
3521}
3522
3523
554f62e9
RD
3524SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3525 PyObject *resultobj = 0;
3526 wxButton *result = 0 ;
3527
3528 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3529 {
3530 if (!wxPyCheckForApp()) SWIG_fail;
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 result = (wxButton *)new wxButton();
3533 wxPyEndAllowThreads(__tstate);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3537 return resultobj;
3538fail:
3539 return NULL;
3540}
3541
3542
3543SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3544 PyObject *resultobj = 0;
3545 wxButton *arg1 = (wxButton *) 0 ;
3546 wxWindow *arg2 = (wxWindow *) 0 ;
3547 int arg3 = (int) -1 ;
3548 wxString const &arg4_defvalue = wxPyEmptyString ;
3549 wxString *arg4 = (wxString *) &arg4_defvalue ;
3550 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3551 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3552 wxSize const &arg6_defvalue = wxDefaultSize ;
3553 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3554 long arg7 = (long) 0 ;
3555 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3556 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3557 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3558 wxString *arg9 = (wxString *) &arg9_defvalue ;
3559 bool result;
3560 void *argp1 = 0 ;
3561 int res1 = 0 ;
3562 void *argp2 = 0 ;
3563 int res2 = 0 ;
3564 int val3 ;
3565 int ecode3 = 0 ;
3566 bool temp4 = false ;
3567 wxPoint temp5 ;
3568 wxSize temp6 ;
3569 long val7 ;
3570 int ecode7 = 0 ;
3571 void *argp8 = 0 ;
3572 int res8 = 0 ;
3573 bool temp9 = false ;
3574 PyObject * obj0 = 0 ;
3575 PyObject * obj1 = 0 ;
3576 PyObject * obj2 = 0 ;
3577 PyObject * obj3 = 0 ;
3578 PyObject * obj4 = 0 ;
3579 PyObject * obj5 = 0 ;
3580 PyObject * obj6 = 0 ;
3581 PyObject * obj7 = 0 ;
3582 PyObject * obj8 = 0 ;
3583 char * kwnames[] = {
3584 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3585 };
3586
3587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3589 if (!SWIG_IsOK(res1)) {
3590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3591 }
3592 arg1 = reinterpret_cast< wxButton * >(argp1);
3593 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3594 if (!SWIG_IsOK(res2)) {
3595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3596 }
3597 arg2 = reinterpret_cast< wxWindow * >(argp2);
3598 if (obj2) {
3599 ecode3 = SWIG_AsVal_int(obj2, &val3);
3600 if (!SWIG_IsOK(ecode3)) {
3601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3602 }
3603 arg3 = static_cast< int >(val3);
3604 }
3605 if (obj3) {
d55e5bfc 3606 {
554f62e9
RD
3607 arg4 = wxString_in_helper(obj3);
3608 if (arg4 == NULL) SWIG_fail;
3609 temp4 = true;
d55e5bfc 3610 }
554f62e9
RD
3611 }
3612 if (obj4) {
d55e5bfc 3613 {
554f62e9
RD
3614 arg5 = &temp5;
3615 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3616 }
554f62e9
RD
3617 }
3618 if (obj5) {
d55e5bfc 3619 {
554f62e9
RD
3620 arg6 = &temp6;
3621 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 3622 }
554f62e9
RD
3623 }
3624 if (obj6) {
3625 ecode7 = SWIG_AsVal_long(obj6, &val7);
3626 if (!SWIG_IsOK(ecode7)) {
3627 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3628 }
3629 arg7 = static_cast< long >(val7);
3630 }
3631 if (obj7) {
3632 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3633 if (!SWIG_IsOK(res8)) {
3634 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3635 }
554f62e9
RD
3636 if (!argp8) {
3637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3638 }
554f62e9
RD
3639 arg8 = reinterpret_cast< wxValidator * >(argp8);
3640 }
3641 if (obj8) {
d55e5bfc 3642 {
554f62e9
RD
3643 arg9 = wxString_in_helper(obj8);
3644 if (arg9 == NULL) SWIG_fail;
3645 temp9 = true;
d55e5bfc 3646 }
554f62e9
RD
3647 }
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3651 wxPyEndAllowThreads(__tstate);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 }
3654 {
3655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3656 }
3657 {
3658 if (temp4)
3659 delete arg4;
3660 }
3661 {
3662 if (temp9)
3663 delete arg9;
3664 }
3665 return resultobj;
3666fail:
3667 {
3668 if (temp4)
3669 delete arg4;
3670 }
3671 {
3672 if (temp9)
3673 delete arg9;
3674 }
3675 return NULL;
d55e5bfc
RD
3676}
3677
3678
554f62e9
RD
3679SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3680 PyObject *resultobj = 0;
3681 wxButton *arg1 = (wxButton *) 0 ;
3682 void *argp1 = 0 ;
3683 int res1 = 0 ;
3684 PyObject *swig_obj[1] ;
3685
3686 if (!args) SWIG_fail;
3687 swig_obj[0] = args;
3688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3689 if (!SWIG_IsOK(res1)) {
3690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3691 }
3692 arg1 = reinterpret_cast< wxButton * >(argp1);
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 (arg1)->SetDefault();
3696 wxPyEndAllowThreads(__tstate);
3697 if (PyErr_Occurred()) SWIG_fail;
3698 }
3699 resultobj = SWIG_Py_Void();
3700 return resultobj;
3701fail:
3702 return NULL;
d55e5bfc
RD
3703}
3704
3705
554f62e9
RD
3706SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3707 PyObject *resultobj = 0;
3708 wxSize result;
3709
3710 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 result = wxButton::GetDefaultSize();
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3718 return resultobj;
3719fail:
3720 return NULL;
3721}
3722
3723
3724SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj = 0;
3726 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3727 SwigValueWrapper<wxVisualAttributes > result;
3728 int val1 ;
3729 int ecode1 = 0 ;
3730 PyObject * obj0 = 0 ;
3731 char * kwnames[] = {
3732 (char *) "variant", NULL
3733 };
3734
3735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3736 if (obj0) {
3737 ecode1 = SWIG_AsVal_int(obj0, &val1);
3738 if (!SWIG_IsOK(ecode1)) {
3739 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3740 }
3741 arg1 = static_cast< wxWindowVariant >(val1);
3742 }
3743 {
3744 if (!wxPyCheckForApp()) SWIG_fail;
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 result = wxButton::GetClassDefaultAttributes(arg1);
3747 wxPyEndAllowThreads(__tstate);
3748 if (PyErr_Occurred()) SWIG_fail;
3749 }
3750 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3751 return resultobj;
3752fail:
3753 return NULL;
3754}
3755
3756
3757SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3758 PyObject *obj;
3759 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3760 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3761 return SWIG_Py_Void();
3762}
3763
3764SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3765 return SWIG_Python_InitShadowInstance(args);
3766}
3767
3768SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3769 PyObject *resultobj = 0;
3770 wxWindow *arg1 = (wxWindow *) 0 ;
3771 int arg2 = (int) -1 ;
3772 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3773 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3774 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3775 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3776 wxSize const &arg5_defvalue = wxDefaultSize ;
3777 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3778 long arg6 = (long) wxBU_AUTODRAW ;
3779 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3780 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3781 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3782 wxString *arg8 = (wxString *) &arg8_defvalue ;
3783 wxBitmapButton *result = 0 ;
3784 void *argp1 = 0 ;
3785 int res1 = 0 ;
3786 int val2 ;
3787 int ecode2 = 0 ;
3788 void *argp3 = 0 ;
3789 int res3 = 0 ;
3790 wxPoint temp4 ;
3791 wxSize temp5 ;
3792 long val6 ;
3793 int ecode6 = 0 ;
3794 void *argp7 = 0 ;
3795 int res7 = 0 ;
3796 bool temp8 = false ;
3797 PyObject * obj0 = 0 ;
3798 PyObject * obj1 = 0 ;
3799 PyObject * obj2 = 0 ;
3800 PyObject * obj3 = 0 ;
3801 PyObject * obj4 = 0 ;
3802 PyObject * obj5 = 0 ;
3803 PyObject * obj6 = 0 ;
3804 PyObject * obj7 = 0 ;
3805 char * kwnames[] = {
3806 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3807 };
3808
3809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3811 if (!SWIG_IsOK(res1)) {
3812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3813 }
3814 arg1 = reinterpret_cast< wxWindow * >(argp1);
3815 if (obj1) {
3816 ecode2 = SWIG_AsVal_int(obj1, &val2);
3817 if (!SWIG_IsOK(ecode2)) {
3818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3819 }
3820 arg2 = static_cast< int >(val2);
3821 }
3822 if (obj2) {
3823 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3824 if (!SWIG_IsOK(res3)) {
3825 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3826 }
3827 if (!argp3) {
3828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3829 }
3830 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3831 }
3832 if (obj3) {
d55e5bfc 3833 {
554f62e9
RD
3834 arg4 = &temp4;
3835 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3836 }
554f62e9
RD
3837 }
3838 if (obj4) {
d55e5bfc 3839 {
554f62e9
RD
3840 arg5 = &temp5;
3841 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3842 }
554f62e9
RD
3843 }
3844 if (obj5) {
3845 ecode6 = SWIG_AsVal_long(obj5, &val6);
3846 if (!SWIG_IsOK(ecode6)) {
3847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3848 }
3849 arg6 = static_cast< long >(val6);
3850 }
3851 if (obj6) {
3852 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3853 if (!SWIG_IsOK(res7)) {
3854 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3855 }
554f62e9
RD
3856 if (!argp7) {
3857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3858 }
554f62e9
RD
3859 arg7 = reinterpret_cast< wxValidator * >(argp7);
3860 }
3861 if (obj7) {
f20a2e1f 3862 {
554f62e9
RD
3863 arg8 = wxString_in_helper(obj7);
3864 if (arg8 == NULL) SWIG_fail;
3865 temp8 = true;
f20a2e1f 3866 }
554f62e9
RD
3867 }
3868 {
3869 if (!wxPyCheckForApp()) SWIG_fail;
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3876 {
3877 if (temp8)
3878 delete arg8;
3879 }
3880 return resultobj;
3881fail:
3882 {
3883 if (temp8)
3884 delete arg8;
3885 }
3886 return NULL;
f20a2e1f
RD
3887}
3888
3889
554f62e9
RD
3890SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3891 PyObject *resultobj = 0;
3892 wxBitmapButton *result = 0 ;
3893
3894 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3895 {
3896 if (!wxPyCheckForApp()) SWIG_fail;
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 result = (wxBitmapButton *)new wxBitmapButton();
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3903 return resultobj;
3904fail:
3905 return NULL;
3906}
3907
3908
3909SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj = 0;
3911 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3912 wxWindow *arg2 = (wxWindow *) 0 ;
3913 int arg3 = (int) -1 ;
3914 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3915 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3916 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3917 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3918 wxSize const &arg6_defvalue = wxDefaultSize ;
3919 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3920 long arg7 = (long) wxBU_AUTODRAW ;
3921 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3922 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3923 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3924 wxString *arg9 = (wxString *) &arg9_defvalue ;
3925 bool result;
3926 void *argp1 = 0 ;
3927 int res1 = 0 ;
3928 void *argp2 = 0 ;
3929 int res2 = 0 ;
3930 int val3 ;
3931 int ecode3 = 0 ;
3932 void *argp4 = 0 ;
3933 int res4 = 0 ;
3934 wxPoint temp5 ;
3935 wxSize temp6 ;
3936 long val7 ;
3937 int ecode7 = 0 ;
3938 void *argp8 = 0 ;
3939 int res8 = 0 ;
3940 bool temp9 = false ;
3941 PyObject * obj0 = 0 ;
3942 PyObject * obj1 = 0 ;
3943 PyObject * obj2 = 0 ;
3944 PyObject * obj3 = 0 ;
3945 PyObject * obj4 = 0 ;
3946 PyObject * obj5 = 0 ;
3947 PyObject * obj6 = 0 ;
3948 PyObject * obj7 = 0 ;
3949 PyObject * obj8 = 0 ;
3950 char * kwnames[] = {
3951 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3952 };
3953
3954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3956 if (!SWIG_IsOK(res1)) {
3957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3958 }
3959 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3960 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3961 if (!SWIG_IsOK(res2)) {
3962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3963 }
3964 arg2 = reinterpret_cast< wxWindow * >(argp2);
3965 if (obj2) {
3966 ecode3 = SWIG_AsVal_int(obj2, &val3);
3967 if (!SWIG_IsOK(ecode3)) {
3968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3969 }
3970 arg3 = static_cast< int >(val3);
3971 }
3972 if (obj3) {
3973 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3974 if (!SWIG_IsOK(res4)) {
3975 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3976 }
554f62e9
RD
3977 if (!argp4) {
3978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3979 }
554f62e9
RD
3980 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3981 }
3982 if (obj4) {
d55e5bfc 3983 {
554f62e9
RD
3984 arg5 = &temp5;
3985 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3986 }
554f62e9
RD
3987 }
3988 if (obj5) {
d55e5bfc 3989 {
554f62e9
RD
3990 arg6 = &temp6;
3991 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3992 }
3993 }
3994 if (obj6) {
3995 ecode7 = SWIG_AsVal_long(obj6, &val7);
3996 if (!SWIG_IsOK(ecode7)) {
3997 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3998 }
3999 arg7 = static_cast< long >(val7);
4000 }
4001 if (obj7) {
4002 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4003 if (!SWIG_IsOK(res8)) {
4004 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4005 }
4006 if (!argp8) {
4007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4008 }
554f62e9
RD
4009 arg8 = reinterpret_cast< wxValidator * >(argp8);
4010 }
4011 if (obj8) {
d55e5bfc 4012 {
554f62e9
RD
4013 arg9 = wxString_in_helper(obj8);
4014 if (arg9 == NULL) SWIG_fail;
4015 temp9 = true;
d55e5bfc 4016 }
554f62e9
RD
4017 }
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4021 wxPyEndAllowThreads(__tstate);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 }
4024 {
4025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4026 }
4027 {
4028 if (temp9)
4029 delete arg9;
4030 }
4031 return resultobj;
4032fail:
4033 {
4034 if (temp9)
4035 delete arg9;
4036 }
4037 return NULL;
d55e5bfc
RD
4038}
4039
4040
554f62e9
RD
4041SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4042 PyObject *resultobj = 0;
4043 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4044 wxBitmap result;
4045 void *argp1 = 0 ;
4046 int res1 = 0 ;
4047 PyObject *swig_obj[1] ;
4048
4049 if (!args) SWIG_fail;
4050 swig_obj[0] = args;
4051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4052 if (!SWIG_IsOK(res1)) {
4053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4054 }
4055 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4056 {
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 result = (arg1)->GetBitmapLabel();
4059 wxPyEndAllowThreads(__tstate);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 }
4062 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4063 return resultobj;
4064fail:
4065 return NULL;
d55e5bfc
RD
4066}
4067
4068
554f62e9
RD
4069SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4070 PyObject *resultobj = 0;
4071 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4072 wxBitmap result;
4073 void *argp1 = 0 ;
4074 int res1 = 0 ;
4075 PyObject *swig_obj[1] ;
4076
4077 if (!args) SWIG_fail;
4078 swig_obj[0] = args;
4079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4080 if (!SWIG_IsOK(res1)) {
4081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4082 }
4083 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4084 {
4085 PyThreadState* __tstate = wxPyBeginAllowThreads();
4086 result = (arg1)->GetBitmapDisabled();
4087 wxPyEndAllowThreads(__tstate);
4088 if (PyErr_Occurred()) SWIG_fail;
4089 }
4090 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4091 return resultobj;
4092fail:
4093 return NULL;
d55e5bfc
RD
4094}
4095
4096
554f62e9
RD
4097SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098 PyObject *resultobj = 0;
4099 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4100 wxBitmap result;
4101 void *argp1 = 0 ;
4102 int res1 = 0 ;
4103 PyObject *swig_obj[1] ;
4104
4105 if (!args) SWIG_fail;
4106 swig_obj[0] = args;
4107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4108 if (!SWIG_IsOK(res1)) {
4109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4110 }
4111 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 result = (arg1)->GetBitmapFocus();
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4119 return resultobj;
4120fail:
4121 return NULL;
d55e5bfc
RD
4122}
4123
4124
554f62e9
RD
4125SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4126 PyObject *resultobj = 0;
4127 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4128 wxBitmap result;
4129 void *argp1 = 0 ;
4130 int res1 = 0 ;
4131 PyObject *swig_obj[1] ;
4132
4133 if (!args) SWIG_fail;
4134 swig_obj[0] = args;
4135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4136 if (!SWIG_IsOK(res1)) {
4137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4138 }
4139 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4140 {
4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
4142 result = (arg1)->GetBitmapSelected();
4143 wxPyEndAllowThreads(__tstate);
4144 if (PyErr_Occurred()) SWIG_fail;
4145 }
4146 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4147 return resultobj;
4148fail:
4149 return NULL;
d55e5bfc
RD
4150}
4151
4152
554f62e9
RD
4153SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4154 PyObject *resultobj = 0;
4155 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4156 wxBitmap result;
4157 void *argp1 = 0 ;
4158 int res1 = 0 ;
4159 PyObject *swig_obj[1] ;
4160
4161 if (!args) SWIG_fail;
4162 swig_obj[0] = args;
4163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4164 if (!SWIG_IsOK(res1)) {
4165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4166 }
4167 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 result = (arg1)->GetBitmapHover();
4171 wxPyEndAllowThreads(__tstate);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 }
4174 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4175 return resultobj;
4176fail:
4177 return NULL;
4178}
4179
4180
4181SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4182 PyObject *resultobj = 0;
4183 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4184 wxBitmap *arg2 = 0 ;
4185 void *argp1 = 0 ;
4186 int res1 = 0 ;
4187 void *argp2 = 0 ;
4188 int res2 = 0 ;
4189 PyObject * obj0 = 0 ;
4190 PyObject * obj1 = 0 ;
4191 char * kwnames[] = {
4192 (char *) "self",(char *) "bitmap", NULL
4193 };
4194
4195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4197 if (!SWIG_IsOK(res1)) {
4198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4199 }
4200 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4202 if (!SWIG_IsOK(res2)) {
4203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4204 }
4205 if (!argp2) {
4206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4207 }
4208 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 resultobj = SWIG_Py_Void();
4216 return resultobj;
4217fail:
4218 return NULL;
4219}
4220
4221
4222SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4223 PyObject *resultobj = 0;
4224 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4225 wxBitmap *arg2 = 0 ;
4226 void *argp1 = 0 ;
4227 int res1 = 0 ;
4228 void *argp2 = 0 ;
4229 int res2 = 0 ;
4230 PyObject * obj0 = 0 ;
4231 PyObject * obj1 = 0 ;
4232 char * kwnames[] = {
4233 (char *) "self",(char *) "bitmap", NULL
4234 };
4235
4236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4238 if (!SWIG_IsOK(res1)) {
4239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4240 }
4241 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4243 if (!SWIG_IsOK(res2)) {
4244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4245 }
4246 if (!argp2) {
4247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4248 }
4249 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4250 {
4251 PyThreadState* __tstate = wxPyBeginAllowThreads();
4252 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 resultobj = SWIG_Py_Void();
4257 return resultobj;
4258fail:
4259 return NULL;
4260}
4261
4262
4263SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4264 PyObject *resultobj = 0;
4265 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4266 wxBitmap *arg2 = 0 ;
4267 void *argp1 = 0 ;
4268 int res1 = 0 ;
4269 void *argp2 = 0 ;
4270 int res2 = 0 ;
4271 PyObject * obj0 = 0 ;
4272 PyObject * obj1 = 0 ;
4273 char * kwnames[] = {
4274 (char *) "self",(char *) "bitmap", NULL
4275 };
4276
4277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4279 if (!SWIG_IsOK(res1)) {
4280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4281 }
4282 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4284 if (!SWIG_IsOK(res2)) {
4285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4286 }
4287 if (!argp2) {
4288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4289 }
4290 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 resultobj = SWIG_Py_Void();
4298 return resultobj;
4299fail:
4300 return NULL;
4301}
4302
4303
4304SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4305 PyObject *resultobj = 0;
4306 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4307 wxBitmap *arg2 = 0 ;
4308 void *argp1 = 0 ;
4309 int res1 = 0 ;
4310 void *argp2 = 0 ;
4311 int res2 = 0 ;
4312 PyObject * obj0 = 0 ;
4313 PyObject * obj1 = 0 ;
4314 char * kwnames[] = {
4315 (char *) "self",(char *) "bitmap", NULL
4316 };
4317
4318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4320 if (!SWIG_IsOK(res1)) {
4321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4322 }
4323 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4325 if (!SWIG_IsOK(res2)) {
4326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4327 }
4328 if (!argp2) {
4329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4330 }
4331 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 resultobj = SWIG_Py_Void();
4339 return resultobj;
4340fail:
4341 return NULL;
4342}
4343
4344
4345SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj = 0;
4347 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4348 wxBitmap *arg2 = 0 ;
4349 void *argp1 = 0 ;
4350 int res1 = 0 ;
4351 void *argp2 = 0 ;
4352 int res2 = 0 ;
4353 PyObject * obj0 = 0 ;
4354 PyObject * obj1 = 0 ;
4355 char * kwnames[] = {
4356 (char *) "self",(char *) "hover", NULL
4357 };
4358
4359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4363 }
4364 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4366 if (!SWIG_IsOK(res2)) {
4367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4368 }
4369 if (!argp2) {
4370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4371 }
4372 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 resultobj = SWIG_Py_Void();
4380 return resultobj;
4381fail:
4382 return NULL;
4383}
4384
4385
4386SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4387 PyObject *resultobj = 0;
4388 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4389 int arg2 ;
4390 int arg3 ;
4391 void *argp1 = 0 ;
4392 int res1 = 0 ;
4393 int val2 ;
4394 int ecode2 = 0 ;
4395 int val3 ;
4396 int ecode3 = 0 ;
4397 PyObject * obj0 = 0 ;
4398 PyObject * obj1 = 0 ;
4399 PyObject * obj2 = 0 ;
4400 char * kwnames[] = {
4401 (char *) "self",(char *) "x",(char *) "y", NULL
4402 };
4403
4404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4406 if (!SWIG_IsOK(res1)) {
4407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4408 }
4409 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4410 ecode2 = SWIG_AsVal_int(obj1, &val2);
4411 if (!SWIG_IsOK(ecode2)) {
4412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4413 }
4414 arg2 = static_cast< int >(val2);
4415 ecode3 = SWIG_AsVal_int(obj2, &val3);
4416 if (!SWIG_IsOK(ecode3)) {
4417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4418 }
4419 arg3 = static_cast< int >(val3);
4420 {
4421 PyThreadState* __tstate = wxPyBeginAllowThreads();
4422 (arg1)->SetMargins(arg2,arg3);
4423 wxPyEndAllowThreads(__tstate);
4424 if (PyErr_Occurred()) SWIG_fail;
4425 }
4426 resultobj = SWIG_Py_Void();
4427 return resultobj;
4428fail:
4429 return NULL;
d55e5bfc
RD
4430}
4431
4432
554f62e9
RD
4433SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4434 PyObject *resultobj = 0;
4435 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4436 int result;
4437 void *argp1 = 0 ;
4438 int res1 = 0 ;
4439 PyObject *swig_obj[1] ;
4440
4441 if (!args) SWIG_fail;
4442 swig_obj[0] = args;
4443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4444 if (!SWIG_IsOK(res1)) {
4445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4446 }
4447 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4448 {
4449 PyThreadState* __tstate = wxPyBeginAllowThreads();
4450 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 resultobj = SWIG_From_int(static_cast< int >(result));
4455 return resultobj;
4456fail:
4457 return NULL;
d55e5bfc
RD
4458}
4459
4460
554f62e9
RD
4461SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4462 PyObject *resultobj = 0;
4463 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4464 int result;
4465 void *argp1 = 0 ;
4466 int res1 = 0 ;
4467 PyObject *swig_obj[1] ;
4468
4469 if (!args) SWIG_fail;
4470 swig_obj[0] = args;
4471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4472 if (!SWIG_IsOK(res1)) {
4473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4474 }
4475 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4479 wxPyEndAllowThreads(__tstate);
4480 if (PyErr_Occurred()) SWIG_fail;
4481 }
4482 resultobj = SWIG_From_int(static_cast< int >(result));
4483 return resultobj;
4484fail:
4485 return NULL;
b1fcee84
RD
4486}
4487
4488
554f62e9
RD
4489SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4490 PyObject *obj;
4491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4492 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4493 return SWIG_Py_Void();
d55e5bfc
RD
4494}
4495
554f62e9
RD
4496SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4497 return SWIG_Python_InitShadowInstance(args);
4498}
d55e5bfc 4499
554f62e9
RD
4500SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4501 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4502 return 1;
d55e5bfc
RD
4503}
4504
4505
554f62e9
RD
4506SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4507 PyObject *pyobj = 0;
4508
4509 {
4510#if wxUSE_UNICODE
4511 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4512#else
4513 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4514#endif
4515 }
4516 return pyobj;
4517}
4518
4519
4520SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4521 PyObject *resultobj = 0;
4522 wxWindow *arg1 = (wxWindow *) 0 ;
4523 int arg2 = (int) -1 ;
4524 wxString const &arg3_defvalue = wxPyEmptyString ;
4525 wxString *arg3 = (wxString *) &arg3_defvalue ;
4526 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4527 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4528 wxSize const &arg5_defvalue = wxDefaultSize ;
4529 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4530 long arg6 = (long) 0 ;
4531 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4532 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4533 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4534 wxString *arg8 = (wxString *) &arg8_defvalue ;
4535 wxCheckBox *result = 0 ;
4536 void *argp1 = 0 ;
4537 int res1 = 0 ;
4538 int val2 ;
4539 int ecode2 = 0 ;
4540 bool temp3 = false ;
4541 wxPoint temp4 ;
4542 wxSize temp5 ;
4543 long val6 ;
4544 int ecode6 = 0 ;
4545 void *argp7 = 0 ;
4546 int res7 = 0 ;
4547 bool temp8 = false ;
4548 PyObject * obj0 = 0 ;
4549 PyObject * obj1 = 0 ;
4550 PyObject * obj2 = 0 ;
4551 PyObject * obj3 = 0 ;
4552 PyObject * obj4 = 0 ;
4553 PyObject * obj5 = 0 ;
4554 PyObject * obj6 = 0 ;
4555 PyObject * obj7 = 0 ;
4556 char * kwnames[] = {
4557 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4558 };
4559
4560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4562 if (!SWIG_IsOK(res1)) {
4563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4564 }
4565 arg1 = reinterpret_cast< wxWindow * >(argp1);
4566 if (obj1) {
4567 ecode2 = SWIG_AsVal_int(obj1, &val2);
4568 if (!SWIG_IsOK(ecode2)) {
4569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4570 }
4571 arg2 = static_cast< int >(val2);
4572 }
4573 if (obj2) {
d55e5bfc 4574 {
554f62e9
RD
4575 arg3 = wxString_in_helper(obj2);
4576 if (arg3 == NULL) SWIG_fail;
4577 temp3 = true;
d55e5bfc 4578 }
554f62e9
RD
4579 }
4580 if (obj3) {
4581 {
4582 arg4 = &temp4;
4583 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 4584 }
554f62e9
RD
4585 }
4586 if (obj4) {
d55e5bfc 4587 {
554f62e9
RD
4588 arg5 = &temp5;
4589 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4590 }
554f62e9
RD
4591 }
4592 if (obj5) {
4593 ecode6 = SWIG_AsVal_long(obj5, &val6);
4594 if (!SWIG_IsOK(ecode6)) {
4595 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4596 }
4597 arg6 = static_cast< long >(val6);
4598 }
4599 if (obj6) {
4600 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4601 if (!SWIG_IsOK(res7)) {
4602 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4603 }
554f62e9
RD
4604 if (!argp7) {
4605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4606 }
4607 arg7 = reinterpret_cast< wxValidator * >(argp7);
4608 }
4609 if (obj7) {
b1fcee84 4610 {
554f62e9
RD
4611 arg8 = wxString_in_helper(obj7);
4612 if (arg8 == NULL) SWIG_fail;
4613 temp8 = true;
b1fcee84 4614 }
554f62e9
RD
4615 }
4616 {
4617 if (!wxPyCheckForApp()) SWIG_fail;
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4620 wxPyEndAllowThreads(__tstate);
4621 if (PyErr_Occurred()) SWIG_fail;
4622 }
4623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4624 {
4625 if (temp3)
4626 delete arg3;
4627 }
4628 {
4629 if (temp8)
4630 delete arg8;
4631 }
4632 return resultobj;
4633fail:
4634 {
4635 if (temp3)
4636 delete arg3;
4637 }
4638 {
4639 if (temp8)
4640 delete arg8;
4641 }
4642 return NULL;
b1fcee84
RD
4643}
4644
4645
554f62e9
RD
4646SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4647 PyObject *resultobj = 0;
4648 wxCheckBox *result = 0 ;
4649
4650 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4651 {
4652 if (!wxPyCheckForApp()) SWIG_fail;
4653 PyThreadState* __tstate = wxPyBeginAllowThreads();
4654 result = (wxCheckBox *)new wxCheckBox();
4655 wxPyEndAllowThreads(__tstate);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 }
4658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4659 return resultobj;
4660fail:
4661 return NULL;
4662}
4663
4664
4665SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4666 PyObject *resultobj = 0;
4667 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4668 wxWindow *arg2 = (wxWindow *) 0 ;
4669 int arg3 = (int) -1 ;
4670 wxString const &arg4_defvalue = wxPyEmptyString ;
4671 wxString *arg4 = (wxString *) &arg4_defvalue ;
4672 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4673 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4674 wxSize const &arg6_defvalue = wxDefaultSize ;
4675 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4676 long arg7 = (long) 0 ;
4677 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4678 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4679 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4680 wxString *arg9 = (wxString *) &arg9_defvalue ;
4681 bool result;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 void *argp2 = 0 ;
4685 int res2 = 0 ;
4686 int val3 ;
4687 int ecode3 = 0 ;
4688 bool temp4 = false ;
4689 wxPoint temp5 ;
4690 wxSize temp6 ;
4691 long val7 ;
4692 int ecode7 = 0 ;
4693 void *argp8 = 0 ;
4694 int res8 = 0 ;
4695 bool temp9 = false ;
4696 PyObject * obj0 = 0 ;
4697 PyObject * obj1 = 0 ;
4698 PyObject * obj2 = 0 ;
4699 PyObject * obj3 = 0 ;
4700 PyObject * obj4 = 0 ;
4701 PyObject * obj5 = 0 ;
4702 PyObject * obj6 = 0 ;
4703 PyObject * obj7 = 0 ;
4704 PyObject * obj8 = 0 ;
4705 char * kwnames[] = {
4706 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4707 };
4708
4709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4711 if (!SWIG_IsOK(res1)) {
4712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4713 }
4714 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4715 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4716 if (!SWIG_IsOK(res2)) {
4717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4718 }
4719 arg2 = reinterpret_cast< wxWindow * >(argp2);
4720 if (obj2) {
4721 ecode3 = SWIG_AsVal_int(obj2, &val3);
4722 if (!SWIG_IsOK(ecode3)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4724 }
4725 arg3 = static_cast< int >(val3);
4726 }
4727 if (obj3) {
093d3ff1 4728 {
554f62e9
RD
4729 arg4 = wxString_in_helper(obj3);
4730 if (arg4 == NULL) SWIG_fail;
4731 temp4 = true;
093d3ff1 4732 }
554f62e9
RD
4733 }
4734 if (obj4) {
093d3ff1 4735 {
554f62e9
RD
4736 arg5 = &temp5;
4737 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 4738 }
554f62e9
RD
4739 }
4740 if (obj5) {
d55e5bfc 4741 {
554f62e9
RD
4742 arg6 = &temp6;
4743 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 4744 }
554f62e9
RD
4745 }
4746 if (obj6) {
4747 ecode7 = SWIG_AsVal_long(obj6, &val7);
4748 if (!SWIG_IsOK(ecode7)) {
4749 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4750 }
4751 arg7 = static_cast< long >(val7);
4752 }
4753 if (obj7) {
4754 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4755 if (!SWIG_IsOK(res8)) {
4756 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4757 }
554f62e9
RD
4758 if (!argp8) {
4759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4760 }
4761 arg8 = reinterpret_cast< wxValidator * >(argp8);
4762 }
4763 if (obj8) {
093d3ff1 4764 {
554f62e9
RD
4765 arg9 = wxString_in_helper(obj8);
4766 if (arg9 == NULL) SWIG_fail;
4767 temp9 = true;
093d3ff1 4768 }
554f62e9
RD
4769 }
4770 {
4771 PyThreadState* __tstate = wxPyBeginAllowThreads();
4772 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) SWIG_fail;
4775 }
4776 {
4777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4778 }
4779 {
4780 if (temp4)
4781 delete arg4;
4782 }
4783 {
4784 if (temp9)
4785 delete arg9;
4786 }
4787 return resultobj;
4788fail:
4789 {
4790 if (temp4)
4791 delete arg4;
4792 }
4793 {
4794 if (temp9)
4795 delete arg9;
4796 }
4797 return NULL;
d55e5bfc
RD
4798}
4799
4800
554f62e9
RD
4801SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4802 PyObject *resultobj = 0;
4803 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4804 bool result;
4805 void *argp1 = 0 ;
4806 int res1 = 0 ;
4807 PyObject *swig_obj[1] ;
4808
4809 if (!args) SWIG_fail;
4810 swig_obj[0] = args;
4811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4812 if (!SWIG_IsOK(res1)) {
4813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4814 }
4815 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (bool)(arg1)->GetValue();
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 {
4823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4824 }
4825 return resultobj;
4826fail:
4827 return NULL;
d55e5bfc
RD
4828}
4829
4830
554f62e9
RD
4831SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4832 PyObject *resultobj = 0;
4833 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4834 bool result;
4835 void *argp1 = 0 ;
4836 int res1 = 0 ;
4837 PyObject *swig_obj[1] ;
4838
4839 if (!args) SWIG_fail;
4840 swig_obj[0] = args;
4841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4842 if (!SWIG_IsOK(res1)) {
4843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4844 }
4845 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (bool)(arg1)->IsChecked();
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 {
4853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4854 }
4855 return resultobj;
4856fail:
4857 return NULL;
4858}
4859
4860
4861SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj = 0;
4863 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4864 bool arg2 ;
4865 void *argp1 = 0 ;
4866 int res1 = 0 ;
4867 bool val2 ;
4868 int ecode2 = 0 ;
4869 PyObject * obj0 = 0 ;
4870 PyObject * obj1 = 0 ;
4871 char * kwnames[] = {
4872 (char *) "self",(char *) "state", NULL
4873 };
4874
4875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4877 if (!SWIG_IsOK(res1)) {
4878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4879 }
4880 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4881 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4882 if (!SWIG_IsOK(ecode2)) {
4883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4884 }
4885 arg2 = static_cast< bool >(val2);
4886 {
4887 PyThreadState* __tstate = wxPyBeginAllowThreads();
4888 (arg1)->SetValue(arg2);
4889 wxPyEndAllowThreads(__tstate);
4890 if (PyErr_Occurred()) SWIG_fail;
4891 }
4892 resultobj = SWIG_Py_Void();
4893 return resultobj;
4894fail:
4895 return NULL;
d55e5bfc 4896}
554f62e9
RD
4897
4898
4899SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4900 PyObject *resultobj = 0;
4901 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4902 wxCheckBoxState result;
4903 void *argp1 = 0 ;
4904 int res1 = 0 ;
4905 PyObject *swig_obj[1] ;
4906
4907 if (!args) SWIG_fail;
4908 swig_obj[0] = args;
4909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4910 if (!SWIG_IsOK(res1)) {
4911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4912 }
4913 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4914 {
4915 PyThreadState* __tstate = wxPyBeginAllowThreads();
4916 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 resultobj = SWIG_From_int(static_cast< int >(result));
4921 return resultobj;
4922fail:
4923 return NULL;
4924}
4925
4926
4927SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj = 0;
4929 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4930 wxCheckBoxState arg2 ;
4931 void *argp1 = 0 ;
4932 int res1 = 0 ;
4933 int val2 ;
4934 int ecode2 = 0 ;
4935 PyObject * obj0 = 0 ;
4936 PyObject * obj1 = 0 ;
4937 char * kwnames[] = {
4938 (char *) "self",(char *) "state", NULL
4939 };
4940
4941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4943 if (!SWIG_IsOK(res1)) {
4944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4945 }
4946 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4947 ecode2 = SWIG_AsVal_int(obj1, &val2);
4948 if (!SWIG_IsOK(ecode2)) {
4949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4950 }
4951 arg2 = static_cast< wxCheckBoxState >(val2);
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 (arg1)->Set3StateValue(arg2);
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 resultobj = SWIG_Py_Void();
4959 return resultobj;
4960fail:
4961 return NULL;
d55e5bfc
RD
4962}
4963
4964
554f62e9
RD
4965SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4966 PyObject *resultobj = 0;
4967 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4968 bool result;
4969 void *argp1 = 0 ;
4970 int res1 = 0 ;
4971 PyObject *swig_obj[1] ;
4972
4973 if (!args) SWIG_fail;
4974 swig_obj[0] = args;
4975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4976 if (!SWIG_IsOK(res1)) {
4977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4978 }
4979 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 {
4987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4988 }
4989 return resultobj;
4990fail:
4991 return NULL;
d55e5bfc
RD
4992}
4993
4994
554f62e9
RD
4995SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4996 PyObject *resultobj = 0;
4997 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4998 bool result;
4999 void *argp1 = 0 ;
5000 int res1 = 0 ;
5001 PyObject *swig_obj[1] ;
5002
5003 if (!args) SWIG_fail;
5004 swig_obj[0] = args;
5005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5006 if (!SWIG_IsOK(res1)) {
5007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5008 }
5009 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5010 {
5011 PyThreadState* __tstate = wxPyBeginAllowThreads();
5012 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 {
5017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5018 }
5019 return resultobj;
5020fail:
5021 return NULL;
d55e5bfc
RD
5022}
5023
5024
554f62e9
RD
5025SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj = 0;
5027 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5028 SwigValueWrapper<wxVisualAttributes > result;
5029 int val1 ;
5030 int ecode1 = 0 ;
5031 PyObject * obj0 = 0 ;
5032 char * kwnames[] = {
5033 (char *) "variant", NULL
5034 };
5035
5036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5037 if (obj0) {
5038 ecode1 = SWIG_AsVal_int(obj0, &val1);
5039 if (!SWIG_IsOK(ecode1)) {
5040 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5041 }
5042 arg1 = static_cast< wxWindowVariant >(val1);
5043 }
5044 {
5045 if (!wxPyCheckForApp()) SWIG_fail;
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5048 wxPyEndAllowThreads(__tstate);
5049 if (PyErr_Occurred()) SWIG_fail;
5050 }
5051 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5052 return resultobj;
5053fail:
5054 return NULL;
d55e5bfc
RD
5055}
5056
5057
554f62e9
RD
5058SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5059 PyObject *obj;
5060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5061 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5062 return SWIG_Py_Void();
d55e5bfc
RD
5063}
5064
554f62e9
RD
5065SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5066 return SWIG_Python_InitShadowInstance(args);
5067}
d55e5bfc 5068
554f62e9
RD
5069SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5070 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5071 return 1;
d55e5bfc
RD
5072}
5073
5074
554f62e9
RD
5075SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5076 PyObject *pyobj = 0;
5077
5078 {
5079#if wxUSE_UNICODE
5080 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5081#else
5082 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5083#endif
5084 }
5085 return pyobj;
5086}
5087
5088
5089SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj = 0;
5091 wxWindow *arg1 = (wxWindow *) 0 ;
5092 int arg2 = (int) -1 ;
5093 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5094 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5095 wxSize const &arg4_defvalue = wxDefaultSize ;
5096 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5097 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5098 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5099 long arg6 = (long) 0 ;
5100 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5101 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5102 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5103 wxString *arg8 = (wxString *) &arg8_defvalue ;
5104 wxChoice *result = 0 ;
5105 void *argp1 = 0 ;
5106 int res1 = 0 ;
5107 int val2 ;
5108 int ecode2 = 0 ;
5109 wxPoint temp3 ;
5110 wxSize temp4 ;
5111 bool temp5 = false ;
5112 long val6 ;
5113 int ecode6 = 0 ;
5114 void *argp7 = 0 ;
5115 int res7 = 0 ;
5116 bool temp8 = false ;
5117 PyObject * obj0 = 0 ;
5118 PyObject * obj1 = 0 ;
5119 PyObject * obj2 = 0 ;
5120 PyObject * obj3 = 0 ;
5121 PyObject * obj4 = 0 ;
5122 PyObject * obj5 = 0 ;
5123 PyObject * obj6 = 0 ;
5124 PyObject * obj7 = 0 ;
5125 char * kwnames[] = {
5126 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5127 };
5128
5129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5131 if (!SWIG_IsOK(res1)) {
5132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5133 }
5134 arg1 = reinterpret_cast< wxWindow * >(argp1);
5135 if (obj1) {
5136 ecode2 = SWIG_AsVal_int(obj1, &val2);
5137 if (!SWIG_IsOK(ecode2)) {
5138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5139 }
5140 arg2 = static_cast< int >(val2);
5141 }
5142 if (obj2) {
093d3ff1 5143 {
554f62e9
RD
5144 arg3 = &temp3;
5145 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 5146 }
554f62e9
RD
5147 }
5148 if (obj3) {
d55e5bfc 5149 {
554f62e9
RD
5150 arg4 = &temp4;
5151 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5152 }
554f62e9
RD
5153 }
5154 if (obj4) {
d55e5bfc 5155 {
554f62e9
RD
5156 if (! PySequence_Check(obj4)) {
5157 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5158 SWIG_fail;
5159 }
5160 arg5 = new wxArrayString;
5161 temp5 = true;
5162 int i, len=PySequence_Length(obj4);
5163 for (i=0; i<len; i++) {
5164 PyObject* item = PySequence_GetItem(obj4, i);
5165 wxString* s = wxString_in_helper(item);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 arg5->Add(*s);
5168 delete s;
5169 Py_DECREF(item);
5170 }
d55e5bfc 5171 }
554f62e9
RD
5172 }
5173 if (obj5) {
5174 ecode6 = SWIG_AsVal_long(obj5, &val6);
5175 if (!SWIG_IsOK(ecode6)) {
5176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5177 }
5178 arg6 = static_cast< long >(val6);
5179 }
5180 if (obj6) {
5181 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5182 if (!SWIG_IsOK(res7)) {
5183 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 5184 }
554f62e9
RD
5185 if (!argp7) {
5186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5187 }
5188 arg7 = reinterpret_cast< wxValidator * >(argp7);
5189 }
5190 if (obj7) {
d55e5bfc 5191 {
554f62e9
RD
5192 arg8 = wxString_in_helper(obj7);
5193 if (arg8 == NULL) SWIG_fail;
5194 temp8 = true;
d55e5bfc 5195 }
554f62e9
RD
5196 }
5197 {
5198 if (!wxPyCheckForApp()) SWIG_fail;
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5201 wxPyEndAllowThreads(__tstate);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 }
5204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5205 {
5206 if (temp5) delete arg5;
5207 }
5208 {
5209 if (temp8)
5210 delete arg8;
5211 }
5212 return resultobj;
5213fail:
5214 {
5215 if (temp5) delete arg5;
5216 }
5217 {
5218 if (temp8)
5219 delete arg8;
5220 }
5221 return NULL;
d55e5bfc
RD
5222}
5223
5224
554f62e9
RD
5225SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5226 PyObject *resultobj = 0;
5227 wxChoice *result = 0 ;
5228
5229 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5230 {
5231 if (!wxPyCheckForApp()) SWIG_fail;
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 result = (wxChoice *)new wxChoice();
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5238 return resultobj;
5239fail:
5240 return NULL;
5241}
5242
5243
5244SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5245 PyObject *resultobj = 0;
5246 wxChoice *arg1 = (wxChoice *) 0 ;
5247 wxWindow *arg2 = (wxWindow *) 0 ;
5248 int arg3 = (int) -1 ;
5249 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5250 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5251 wxSize const &arg5_defvalue = wxDefaultSize ;
5252 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5253 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5254 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5255 long arg7 = (long) 0 ;
5256 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5257 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5258 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5259 wxString *arg9 = (wxString *) &arg9_defvalue ;
5260 bool result;
5261 void *argp1 = 0 ;
5262 int res1 = 0 ;
5263 void *argp2 = 0 ;
5264 int res2 = 0 ;
5265 int val3 ;
5266 int ecode3 = 0 ;
5267 wxPoint temp4 ;
5268 wxSize temp5 ;
5269 bool temp6 = false ;
5270 long val7 ;
5271 int ecode7 = 0 ;
5272 void *argp8 = 0 ;
5273 int res8 = 0 ;
5274 bool temp9 = false ;
5275 PyObject * obj0 = 0 ;
5276 PyObject * obj1 = 0 ;
5277 PyObject * obj2 = 0 ;
5278 PyObject * obj3 = 0 ;
5279 PyObject * obj4 = 0 ;
5280 PyObject * obj5 = 0 ;
5281 PyObject * obj6 = 0 ;
5282 PyObject * obj7 = 0 ;
5283 PyObject * obj8 = 0 ;
5284 char * kwnames[] = {
5285 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5286 };
5287
5288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5290 if (!SWIG_IsOK(res1)) {
5291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5292 }
5293 arg1 = reinterpret_cast< wxChoice * >(argp1);
5294 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5295 if (!SWIG_IsOK(res2)) {
5296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5297 }
5298 arg2 = reinterpret_cast< wxWindow * >(argp2);
5299 if (obj2) {
5300 ecode3 = SWIG_AsVal_int(obj2, &val3);
5301 if (!SWIG_IsOK(ecode3)) {
5302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5303 }
5304 arg3 = static_cast< int >(val3);
5305 }
5306 if (obj3) {
d55e5bfc 5307 {
554f62e9
RD
5308 arg4 = &temp4;
5309 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5310 }
554f62e9
RD
5311 }
5312 if (obj4) {
d55e5bfc 5313 {
554f62e9
RD
5314 arg5 = &temp5;
5315 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5316 }
554f62e9
RD
5317 }
5318 if (obj5) {
d55e5bfc 5319 {
554f62e9
RD
5320 if (! PySequence_Check(obj5)) {
5321 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5322 SWIG_fail;
5323 }
5324 arg6 = new wxArrayString;
5325 temp6 = true;
5326 int i, len=PySequence_Length(obj5);
5327 for (i=0; i<len; i++) {
5328 PyObject* item = PySequence_GetItem(obj5, i);
5329 wxString* s = wxString_in_helper(item);
5330 if (PyErr_Occurred()) SWIG_fail;
5331 arg6->Add(*s);
5332 delete s;
5333 Py_DECREF(item);
5334 }
5335 }
5336 }
5337 if (obj6) {
5338 ecode7 = SWIG_AsVal_long(obj6, &val7);
5339 if (!SWIG_IsOK(ecode7)) {
5340 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5341 }
5342 arg7 = static_cast< long >(val7);
5343 }
5344 if (obj7) {
5345 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5346 if (!SWIG_IsOK(res8)) {
5347 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 5348 }
554f62e9
RD
5349 if (!argp8) {
5350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5351 }
5352 arg8 = reinterpret_cast< wxValidator * >(argp8);
5353 }
5354 if (obj8) {
d55e5bfc 5355 {
554f62e9
RD
5356 arg9 = wxString_in_helper(obj8);
5357 if (arg9 == NULL) SWIG_fail;
5358 temp9 = true;
d55e5bfc 5359 }
554f62e9
RD
5360 }
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5364 wxPyEndAllowThreads(__tstate);
5365 if (PyErr_Occurred()) SWIG_fail;
5366 }
5367 {
5368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5369 }
5370 {
5371 if (temp6) delete arg6;
5372 }
5373 {
5374 if (temp9)
5375 delete arg9;
5376 }
5377 return resultobj;
5378fail:
5379 {
5380 if (temp6) delete arg6;
5381 }
5382 {
5383 if (temp9)
5384 delete arg9;
5385 }
5386 return NULL;
d55e5bfc
RD
5387}
5388
5389
554f62e9
RD
5390SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5391 PyObject *resultobj = 0;
5392 wxChoice *arg1 = (wxChoice *) 0 ;
5393 int result;
5394 void *argp1 = 0 ;
5395 int res1 = 0 ;
5396 PyObject *swig_obj[1] ;
5397
5398 if (!args) SWIG_fail;
5399 swig_obj[0] = args;
5400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5401 if (!SWIG_IsOK(res1)) {
5402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5403 }
5404 arg1 = reinterpret_cast< wxChoice * >(argp1);
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 resultobj = SWIG_From_int(static_cast< int >(result));
5412 return resultobj;
5413fail:
5414 return NULL;
5415}
5416
5417
5418SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5419 PyObject *resultobj = 0;
5420 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5421 SwigValueWrapper<wxVisualAttributes > result;
5422 int val1 ;
5423 int ecode1 = 0 ;
5424 PyObject * obj0 = 0 ;
5425 char * kwnames[] = {
5426 (char *) "variant", NULL
5427 };
5428
5429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5430 if (obj0) {
5431 ecode1 = SWIG_AsVal_int(obj0, &val1);
5432 if (!SWIG_IsOK(ecode1)) {
5433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5434 }
5435 arg1 = static_cast< wxWindowVariant >(val1);
5436 }
5437 {
5438 if (!wxPyCheckForApp()) SWIG_fail;
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 result = wxChoice::GetClassDefaultAttributes(arg1);
5441 wxPyEndAllowThreads(__tstate);
5442 if (PyErr_Occurred()) SWIG_fail;
5443 }
5444 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5445 return resultobj;
5446fail:
5447 return NULL;
f20a2e1f
RD
5448}
5449
5450
554f62e9
RD
5451SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5452 PyObject *obj;
5453 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5454 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5455 return SWIG_Py_Void();
d55e5bfc 5456}
554f62e9
RD
5457
5458SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5459 return SWIG_Python_InitShadowInstance(args);
5460}
5461
5462SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5463 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5464 return 1;
d55e5bfc
RD
5465}
5466
5467
554f62e9
RD
5468SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5469 PyObject *pyobj = 0;
5470
5471 {
d55e5bfc 5472#if wxUSE_UNICODE
554f62e9 5473 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5474#else
554f62e9 5475 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5476#endif
554f62e9
RD
5477 }
5478 return pyobj;
5479}
5480
5481
5482SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5483 PyObject *resultobj = 0;
5484 wxWindow *arg1 = (wxWindow *) 0 ;
5485 int arg2 = (int) -1 ;
5486 wxString const &arg3_defvalue = wxPyEmptyString ;
5487 wxString *arg3 = (wxString *) &arg3_defvalue ;
5488 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5489 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5490 wxSize const &arg5_defvalue = wxDefaultSize ;
5491 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5492 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5493 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5494 long arg7 = (long) 0 ;
5495 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5496 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5497 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5498 wxString *arg9 = (wxString *) &arg9_defvalue ;
5499 wxComboBox *result = 0 ;
5500 void *argp1 = 0 ;
5501 int res1 = 0 ;
5502 int val2 ;
5503 int ecode2 = 0 ;
5504 bool temp3 = false ;
5505 wxPoint temp4 ;
5506 wxSize temp5 ;
5507 bool temp6 = false ;
5508 long val7 ;
5509 int ecode7 = 0 ;
5510 void *argp8 = 0 ;
5511 int res8 = 0 ;
5512 bool temp9 = false ;
5513 PyObject * obj0 = 0 ;
5514 PyObject * obj1 = 0 ;
5515 PyObject * obj2 = 0 ;
5516 PyObject * obj3 = 0 ;
5517 PyObject * obj4 = 0 ;
5518 PyObject * obj5 = 0 ;
5519 PyObject * obj6 = 0 ;
5520 PyObject * obj7 = 0 ;
5521 PyObject * obj8 = 0 ;
5522 char * kwnames[] = {
5523 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5524 };
5525
5526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5528 if (!SWIG_IsOK(res1)) {
5529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5530 }
5531 arg1 = reinterpret_cast< wxWindow * >(argp1);
5532 if (obj1) {
5533 ecode2 = SWIG_AsVal_int(obj1, &val2);
5534 if (!SWIG_IsOK(ecode2)) {
5535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5536 }
5537 arg2 = static_cast< int >(val2);
5538 }
5539 if (obj2) {
d55e5bfc 5540 {
554f62e9
RD
5541 arg3 = wxString_in_helper(obj2);
5542 if (arg3 == NULL) SWIG_fail;
5543 temp3 = true;
d55e5bfc 5544 }
554f62e9
RD
5545 }
5546 if (obj3) {
d55e5bfc 5547 {
554f62e9
RD
5548 arg4 = &temp4;
5549 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5550 }
554f62e9
RD
5551 }
5552 if (obj4) {
d55e5bfc 5553 {
554f62e9
RD
5554 arg5 = &temp5;
5555 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5556 }
554f62e9
RD
5557 }
5558 if (obj5) {
d55e5bfc 5559 {
554f62e9
RD
5560 if (! PySequence_Check(obj5)) {
5561 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5562 SWIG_fail;
5563 }
5564 arg6 = new wxArrayString;
5565 temp6 = true;
5566 int i, len=PySequence_Length(obj5);
5567 for (i=0; i<len; i++) {
5568 PyObject* item = PySequence_GetItem(obj5, i);
5569 wxString* s = wxString_in_helper(item);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 arg6->Add(*s);
5572 delete s;
5573 Py_DECREF(item);
5574 }
d55e5bfc 5575 }
554f62e9
RD
5576 }
5577 if (obj6) {
5578 ecode7 = SWIG_AsVal_long(obj6, &val7);
5579 if (!SWIG_IsOK(ecode7)) {
5580 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5581 }
5582 arg7 = static_cast< long >(val7);
5583 }
5584 if (obj7) {
5585 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5586 if (!SWIG_IsOK(res8)) {
5587 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5588 }
5589 if (!argp8) {
5590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5591 }
5592 arg8 = reinterpret_cast< wxValidator * >(argp8);
5593 }
5594 if (obj8) {
d55e5bfc 5595 {
554f62e9
RD
5596 arg9 = wxString_in_helper(obj8);
5597 if (arg9 == NULL) SWIG_fail;
5598 temp9 = true;
d55e5bfc 5599 }
554f62e9
RD
5600 }
5601 {
5602 if (!wxPyCheckForApp()) SWIG_fail;
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5609 {
5610 if (temp3)
5611 delete arg3;
5612 }
5613 {
5614 if (temp6) delete arg6;
5615 }
5616 {
5617 if (temp9)
5618 delete arg9;
5619 }
5620 return resultobj;
5621fail:
5622 {
5623 if (temp3)
5624 delete arg3;
5625 }
5626 {
5627 if (temp6) delete arg6;
5628 }
5629 {
5630 if (temp9)
5631 delete arg9;
5632 }
5633 return NULL;
d55e5bfc
RD
5634}
5635
5636
554f62e9
RD
5637SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5638 PyObject *resultobj = 0;
5639 wxComboBox *result = 0 ;
5640
5641 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5642 {
5643 if (!wxPyCheckForApp()) SWIG_fail;
5644 PyThreadState* __tstate = wxPyBeginAllowThreads();
5645 result = (wxComboBox *)new wxComboBox();
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5650 return resultobj;
5651fail:
5652 return NULL;
5653}
5654
5655
5656SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj = 0;
5658 wxComboBox *arg1 = (wxComboBox *) 0 ;
5659 wxWindow *arg2 = (wxWindow *) 0 ;
5660 int arg3 = (int) -1 ;
5661 wxString const &arg4_defvalue = wxPyEmptyString ;
5662 wxString *arg4 = (wxString *) &arg4_defvalue ;
5663 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5664 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5665 wxSize const &arg6_defvalue = wxDefaultSize ;
5666 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5667 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5668 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5669 long arg8 = (long) 0 ;
5670 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5671 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5672 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5673 wxString *arg10 = (wxString *) &arg10_defvalue ;
5674 bool result;
5675 void *argp1 = 0 ;
5676 int res1 = 0 ;
5677 void *argp2 = 0 ;
5678 int res2 = 0 ;
5679 int val3 ;
5680 int ecode3 = 0 ;
5681 bool temp4 = false ;
5682 wxPoint temp5 ;
5683 wxSize temp6 ;
5684 bool temp7 = false ;
5685 long val8 ;
5686 int ecode8 = 0 ;
5687 void *argp9 = 0 ;
5688 int res9 = 0 ;
5689 bool temp10 = false ;
5690 PyObject * obj0 = 0 ;
5691 PyObject * obj1 = 0 ;
5692 PyObject * obj2 = 0 ;
5693 PyObject * obj3 = 0 ;
5694 PyObject * obj4 = 0 ;
5695 PyObject * obj5 = 0 ;
5696 PyObject * obj6 = 0 ;
5697 PyObject * obj7 = 0 ;
5698 PyObject * obj8 = 0 ;
5699 PyObject * obj9 = 0 ;
5700 char * kwnames[] = {
5701 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5702 };
5703
5704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5706 if (!SWIG_IsOK(res1)) {
5707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5708 }
5709 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5711 if (!SWIG_IsOK(res2)) {
5712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5713 }
5714 arg2 = reinterpret_cast< wxWindow * >(argp2);
5715 if (obj2) {
5716 ecode3 = SWIG_AsVal_int(obj2, &val3);
5717 if (!SWIG_IsOK(ecode3)) {
5718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5719 }
5720 arg3 = static_cast< int >(val3);
5721 }
5722 if (obj3) {
d55e5bfc 5723 {
554f62e9
RD
5724 arg4 = wxString_in_helper(obj3);
5725 if (arg4 == NULL) SWIG_fail;
5726 temp4 = true;
d55e5bfc 5727 }
554f62e9
RD
5728 }
5729 if (obj4) {
d55e5bfc 5730 {
554f62e9
RD
5731 arg5 = &temp5;
5732 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5733 }
554f62e9
RD
5734 }
5735 if (obj5) {
d55e5bfc 5736 {
554f62e9
RD
5737 arg6 = &temp6;
5738 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 5739 }
554f62e9
RD
5740 }
5741 if (obj6) {
d55e5bfc 5742 {
554f62e9
RD
5743 if (! PySequence_Check(obj6)) {
5744 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5745 SWIG_fail;
5746 }
5747 arg7 = new wxArrayString;
5748 temp7 = true;
5749 int i, len=PySequence_Length(obj6);
5750 for (i=0; i<len; i++) {
5751 PyObject* item = PySequence_GetItem(obj6, i);
5752 wxString* s = wxString_in_helper(item);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 arg7->Add(*s);
5755 delete s;
5756 Py_DECREF(item);
5757 }
d55e5bfc 5758 }
554f62e9
RD
5759 }
5760 if (obj7) {
5761 ecode8 = SWIG_AsVal_long(obj7, &val8);
5762 if (!SWIG_IsOK(ecode8)) {
5763 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5764 }
5765 arg8 = static_cast< long >(val8);
5766 }
5767 if (obj8) {
5768 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5769 if (!SWIG_IsOK(res9)) {
5770 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5771 }
554f62e9
RD
5772 if (!argp9) {
5773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5774 }
554f62e9
RD
5775 arg9 = reinterpret_cast< wxValidator * >(argp9);
5776 }
5777 if (obj9) {
d55e5bfc 5778 {
554f62e9
RD
5779 arg10 = wxString_in_helper(obj9);
5780 if (arg10 == NULL) SWIG_fail;
5781 temp10 = true;
d55e5bfc 5782 }
554f62e9
RD
5783 }
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
5787 wxPyEndAllowThreads(__tstate);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 }
5790 {
5791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5792 }
5793 {
5794 if (temp4)
5795 delete arg4;
5796 }
5797 {
5798 if (temp7) delete arg7;
5799 }
5800 {
5801 if (temp10)
5802 delete arg10;
5803 }
5804 return resultobj;
5805fail:
5806 {
5807 if (temp4)
5808 delete arg4;
5809 }
5810 {
5811 if (temp7) delete arg7;
5812 }
5813 {
5814 if (temp10)
5815 delete arg10;
5816 }
5817 return NULL;
d55e5bfc
RD
5818}
5819
5820
554f62e9
RD
5821SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5822 PyObject *resultobj = 0;
5823 wxComboBox *arg1 = (wxComboBox *) 0 ;
5824 wxString result;
5825 void *argp1 = 0 ;
5826 int res1 = 0 ;
5827 PyObject *swig_obj[1] ;
5828
5829 if (!args) SWIG_fail;
5830 swig_obj[0] = args;
5831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5832 if (!SWIG_IsOK(res1)) {
5833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5834 }
5835 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 result = ((wxComboBox const *)arg1)->GetValue();
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 {
d55e5bfc 5843#if wxUSE_UNICODE
554f62e9 5844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5845#else
554f62e9 5846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5847#endif
554f62e9
RD
5848 }
5849 return resultobj;
5850fail:
5851 return NULL;
5852}
5853
5854
5855SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj = 0;
5857 wxComboBox *arg1 = (wxComboBox *) 0 ;
5858 wxString *arg2 = 0 ;
5859 void *argp1 = 0 ;
5860 int res1 = 0 ;
5861 bool temp2 = false ;
5862 PyObject * obj0 = 0 ;
5863 PyObject * obj1 = 0 ;
5864 char * kwnames[] = {
5865 (char *) "self",(char *) "value", NULL
5866 };
5867
5868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5870 if (!SWIG_IsOK(res1)) {
5871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5872 }
5873 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5874 {
5875 arg2 = wxString_in_helper(obj1);
5876 if (arg2 == NULL) SWIG_fail;
5877 temp2 = true;
5878 }
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 (arg1)->SetValue((wxString const &)*arg2);
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 }
5885 resultobj = SWIG_Py_Void();
5886 {
5887 if (temp2)
5888 delete arg2;
5889 }
5890 return resultobj;
5891fail:
5892 {
5893 if (temp2)
5894 delete arg2;
5895 }
5896 return NULL;
d55e5bfc
RD
5897}
5898
5899
554f62e9
RD
5900SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5901 PyObject *resultobj = 0;
5902 wxComboBox *arg1 = (wxComboBox *) 0 ;
5903 void *argp1 = 0 ;
5904 int res1 = 0 ;
5905 PyObject *swig_obj[1] ;
5906
5907 if (!args) SWIG_fail;
5908 swig_obj[0] = args;
5909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5910 if (!SWIG_IsOK(res1)) {
5911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5912 }
5913 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 (arg1)->Copy();
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_Py_Void();
5921 return resultobj;
5922fail:
5923 return NULL;
d55e5bfc
RD
5924}
5925
5926
554f62e9
RD
5927SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5928 PyObject *resultobj = 0;
5929 wxComboBox *arg1 = (wxComboBox *) 0 ;
5930 void *argp1 = 0 ;
5931 int res1 = 0 ;
5932 PyObject *swig_obj[1] ;
5933
5934 if (!args) SWIG_fail;
5935 swig_obj[0] = args;
5936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5937 if (!SWIG_IsOK(res1)) {
5938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5939 }
5940 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 (arg1)->Cut();
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_Py_Void();
5948 return resultobj;
5949fail:
5950 return NULL;
d55e5bfc
RD
5951}
5952
5953
554f62e9
RD
5954SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 PyObject *swig_obj[1] ;
5960
5961 if (!args) SWIG_fail;
5962 swig_obj[0] = args;
5963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5964 if (!SWIG_IsOK(res1)) {
5965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5966 }
5967 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 (arg1)->Paste();
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_Py_Void();
5975 return resultobj;
5976fail:
5977 return NULL;
5978}
5979
5980
5981SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5982 PyObject *resultobj = 0;
5983 wxComboBox *arg1 = (wxComboBox *) 0 ;
5984 long arg2 ;
5985 void *argp1 = 0 ;
5986 int res1 = 0 ;
5987 long val2 ;
5988 int ecode2 = 0 ;
5989 PyObject * obj0 = 0 ;
5990 PyObject * obj1 = 0 ;
5991 char * kwnames[] = {
5992 (char *) "self",(char *) "pos", NULL
5993 };
5994
5995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5997 if (!SWIG_IsOK(res1)) {
5998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5999 }
6000 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6001 ecode2 = SWIG_AsVal_long(obj1, &val2);
6002 if (!SWIG_IsOK(ecode2)) {
6003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6004 }
6005 arg2 = static_cast< long >(val2);
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 (arg1)->SetInsertionPoint(arg2);
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 resultobj = SWIG_Py_Void();
6013 return resultobj;
6014fail:
6015 return NULL;
d55e5bfc
RD
6016}
6017
6018
554f62e9
RD
6019SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6020 PyObject *resultobj = 0;
6021 wxComboBox *arg1 = (wxComboBox *) 0 ;
6022 long result;
6023 void *argp1 = 0 ;
6024 int res1 = 0 ;
6025 PyObject *swig_obj[1] ;
6026
6027 if (!args) SWIG_fail;
6028 swig_obj[0] = args;
6029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6030 if (!SWIG_IsOK(res1)) {
6031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6032 }
6033 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 resultobj = SWIG_From_long(static_cast< long >(result));
6041 return resultobj;
6042fail:
6043 return NULL;
d55e5bfc
RD
6044}
6045
6046
554f62e9
RD
6047SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6048 PyObject *resultobj = 0;
6049 wxComboBox *arg1 = (wxComboBox *) 0 ;
6050 long result;
6051 void *argp1 = 0 ;
6052 int res1 = 0 ;
6053 PyObject *swig_obj[1] ;
6054
6055 if (!args) SWIG_fail;
6056 swig_obj[0] = args;
6057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6058 if (!SWIG_IsOK(res1)) {
6059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6060 }
6061 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_From_long(static_cast< long >(result));
6069 return resultobj;
6070fail:
6071 return NULL;
6072}
6073
6074
6075SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj = 0;
6077 wxComboBox *arg1 = (wxComboBox *) 0 ;
6078 long arg2 ;
6079 long arg3 ;
6080 wxString *arg4 = 0 ;
6081 void *argp1 = 0 ;
6082 int res1 = 0 ;
6083 long val2 ;
6084 int ecode2 = 0 ;
6085 long val3 ;
6086 int ecode3 = 0 ;
6087 bool temp4 = false ;
6088 PyObject * obj0 = 0 ;
6089 PyObject * obj1 = 0 ;
6090 PyObject * obj2 = 0 ;
6091 PyObject * obj3 = 0 ;
6092 char * kwnames[] = {
f460c29d 6093 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
554f62e9
RD
6094 };
6095
6096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6098 if (!SWIG_IsOK(res1)) {
6099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6100 }
6101 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6102 ecode2 = SWIG_AsVal_long(obj1, &val2);
6103 if (!SWIG_IsOK(ecode2)) {
6104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6105 }
6106 arg2 = static_cast< long >(val2);
6107 ecode3 = SWIG_AsVal_long(obj2, &val3);
6108 if (!SWIG_IsOK(ecode3)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6110 }
6111 arg3 = static_cast< long >(val3);
6112 {
6113 arg4 = wxString_in_helper(obj3);
6114 if (arg4 == NULL) SWIG_fail;
6115 temp4 = true;
6116 }
6117 {
6118 PyThreadState* __tstate = wxPyBeginAllowThreads();
6119 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6120 wxPyEndAllowThreads(__tstate);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 resultobj = SWIG_Py_Void();
6124 {
6125 if (temp4)
6126 delete arg4;
6127 }
6128 return resultobj;
6129fail:
6130 {
6131 if (temp4)
6132 delete arg4;
6133 }
6134 return NULL;
6135}
6136
6137
6138SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6139 PyObject *resultobj = 0;
6140 wxComboBox *arg1 = (wxComboBox *) 0 ;
6141 long arg2 ;
6142 long arg3 ;
6143 void *argp1 = 0 ;
6144 int res1 = 0 ;
6145 long val2 ;
6146 int ecode2 = 0 ;
6147 long val3 ;
6148 int ecode3 = 0 ;
6149 PyObject * obj0 = 0 ;
6150 PyObject * obj1 = 0 ;
6151 PyObject * obj2 = 0 ;
6152 char * kwnames[] = {
f460c29d 6153 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
6154 };
6155
6156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6158 if (!SWIG_IsOK(res1)) {
6159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6160 }
6161 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6162 ecode2 = SWIG_AsVal_long(obj1, &val2);
6163 if (!SWIG_IsOK(ecode2)) {
6164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6165 }
6166 arg2 = static_cast< long >(val2);
6167 ecode3 = SWIG_AsVal_long(obj2, &val3);
6168 if (!SWIG_IsOK(ecode3)) {
6169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6170 }
6171 arg3 = static_cast< long >(val3);
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 (arg1)->SetSelection(arg2,arg3);
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 resultobj = SWIG_Py_Void();
6179 return resultobj;
6180fail:
6181 return NULL;
6182}
6183
6184
6185SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186 PyObject *resultobj = 0;
6187 wxComboBox *arg1 = (wxComboBox *) 0 ;
6188 long *arg2 = (long *) 0 ;
6189 long *arg3 = (long *) 0 ;
6190 void *argp1 = 0 ;
6191 int res1 = 0 ;
6192 long temp2 ;
6193 int res2 = SWIG_TMPOBJ ;
6194 long temp3 ;
6195 int res3 = SWIG_TMPOBJ ;
6196 PyObject *swig_obj[1] ;
6197
6198 arg2 = &temp2;
6199 arg3 = &temp3;
6200 if (!args) SWIG_fail;
6201 swig_obj[0] = args;
6202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6203 if (!SWIG_IsOK(res1)) {
6204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6205 }
6206 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6207 {
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 (arg1)->GetSelection(arg2,arg3);
6210 wxPyEndAllowThreads(__tstate);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
6213 resultobj = SWIG_Py_Void();
6214 if (SWIG_IsTmpObj(res2)) {
6215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6216 } else {
6217 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6219 }
6220 if (SWIG_IsTmpObj(res3)) {
6221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6222 } else {
6223 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6225 }
6226 return resultobj;
6227fail:
6228 return NULL;
d55e5bfc
RD
6229}
6230
6231
554f62e9
RD
6232SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6233 PyObject *resultobj = 0;
6234 wxComboBox *arg1 = (wxComboBox *) 0 ;
6235 int result;
6236 void *argp1 = 0 ;
6237 int res1 = 0 ;
6238 PyObject *swig_obj[1] ;
6239
6240 if (!args) SWIG_fail;
6241 swig_obj[0] = args;
6242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6243 if (!SWIG_IsOK(res1)) {
6244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6245 }
6246 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6247 {
6248 PyThreadState* __tstate = wxPyBeginAllowThreads();
6249 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6250 wxPyEndAllowThreads(__tstate);
6251 if (PyErr_Occurred()) SWIG_fail;
6252 }
6253 resultobj = SWIG_From_int(static_cast< int >(result));
6254 return resultobj;
6255fail:
6256 return NULL;
6257}
6258
6259
6260SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6261 PyObject *resultobj = 0;
6262 wxComboBox *arg1 = (wxComboBox *) 0 ;
6263 wxString *arg2 = 0 ;
6264 bool result;
6265 void *argp1 = 0 ;
6266 int res1 = 0 ;
6267 bool temp2 = false ;
6268 PyObject * obj0 = 0 ;
6269 PyObject * obj1 = 0 ;
6270 char * kwnames[] = {
6271 (char *) "self",(char *) "string", NULL
6272 };
6273
6274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6276 if (!SWIG_IsOK(res1)) {
6277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6278 }
6279 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6280 {
6281 arg2 = wxString_in_helper(obj1);
6282 if (arg2 == NULL) SWIG_fail;
6283 temp2 = true;
6284 }
6285 {
6286 PyThreadState* __tstate = wxPyBeginAllowThreads();
6287 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6288 wxPyEndAllowThreads(__tstate);
6289 if (PyErr_Occurred()) SWIG_fail;
6290 }
6291 {
6292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6293 }
6294 {
6295 if (temp2)
6296 delete arg2;
6297 }
6298 return resultobj;
6299fail:
6300 {
6301 if (temp2)
6302 delete arg2;
6303 }
6304 return NULL;
6305}
6306
6307
50f151d7
RD
6308SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6309 PyObject *resultobj = 0;
6310 wxComboBox *arg1 = (wxComboBox *) 0 ;
6311 int arg2 ;
6312 wxString *arg3 = 0 ;
6313 void *argp1 = 0 ;
6314 int res1 = 0 ;
6315 int val2 ;
6316 int ecode2 = 0 ;
6317 bool temp3 = false ;
6318 PyObject * obj0 = 0 ;
6319 PyObject * obj1 = 0 ;
6320 PyObject * obj2 = 0 ;
6321 char * kwnames[] = {
6322 (char *) "self",(char *) "n",(char *) "string", NULL
6323 };
6324
6325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6327 if (!SWIG_IsOK(res1)) {
6328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6329 }
6330 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6331 ecode2 = SWIG_AsVal_int(obj1, &val2);
6332 if (!SWIG_IsOK(ecode2)) {
6333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6334 }
6335 arg2 = static_cast< int >(val2);
6336 {
6337 arg3 = wxString_in_helper(obj2);
6338 if (arg3 == NULL) SWIG_fail;
6339 temp3 = true;
6340 }
6341 {
6342 PyThreadState* __tstate = wxPyBeginAllowThreads();
6343 (arg1)->SetString(arg2,(wxString const &)*arg3);
6344 wxPyEndAllowThreads(__tstate);
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 resultobj = SWIG_Py_Void();
6348 {
6349 if (temp3)
6350 delete arg3;
6351 }
6352 return resultobj;
6353fail:
6354 {
6355 if (temp3)
6356 delete arg3;
6357 }
6358 return NULL;
6359}
6360
6361
554f62e9
RD
6362SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6363 PyObject *resultobj = 0;
6364 wxComboBox *arg1 = (wxComboBox *) 0 ;
6365 bool arg2 ;
6366 void *argp1 = 0 ;
6367 int res1 = 0 ;
6368 bool val2 ;
6369 int ecode2 = 0 ;
6370 PyObject * obj0 = 0 ;
6371 PyObject * obj1 = 0 ;
6372 char * kwnames[] = {
6373 (char *) "self",(char *) "editable", NULL
6374 };
6375
6376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6378 if (!SWIG_IsOK(res1)) {
6379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6380 }
6381 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6382 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6383 if (!SWIG_IsOK(ecode2)) {
6384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6385 }
6386 arg2 = static_cast< bool >(val2);
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 (arg1)->SetEditable(arg2);
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = SWIG_Py_Void();
6394 return resultobj;
6395fail:
6396 return NULL;
d55e5bfc
RD
6397}
6398
6399
554f62e9
RD
6400SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6401 PyObject *resultobj = 0;
6402 wxComboBox *arg1 = (wxComboBox *) 0 ;
6403 void *argp1 = 0 ;
6404 int res1 = 0 ;
6405 PyObject *swig_obj[1] ;
6406
6407 if (!args) SWIG_fail;
6408 swig_obj[0] = args;
6409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6410 if (!SWIG_IsOK(res1)) {
6411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6412 }
6413 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 (arg1)->SetInsertionPointEnd();
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 resultobj = SWIG_Py_Void();
6421 return resultobj;
6422fail:
6423 return NULL;
6424}
6425
6426
6427SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6428 PyObject *resultobj = 0;
6429 wxComboBox *arg1 = (wxComboBox *) 0 ;
6430 long arg2 ;
6431 long arg3 ;
6432 void *argp1 = 0 ;
6433 int res1 = 0 ;
6434 long val2 ;
6435 int ecode2 = 0 ;
6436 long val3 ;
6437 int ecode3 = 0 ;
6438 PyObject * obj0 = 0 ;
6439 PyObject * obj1 = 0 ;
6440 PyObject * obj2 = 0 ;
6441 char * kwnames[] = {
f460c29d 6442 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
6443 };
6444
6445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6447 if (!SWIG_IsOK(res1)) {
6448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6449 }
6450 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6451 ecode2 = SWIG_AsVal_long(obj1, &val2);
6452 if (!SWIG_IsOK(ecode2)) {
6453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6454 }
6455 arg2 = static_cast< long >(val2);
6456 ecode3 = SWIG_AsVal_long(obj2, &val3);
6457 if (!SWIG_IsOK(ecode3)) {
6458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6459 }
6460 arg3 = static_cast< long >(val3);
6461 {
6462 PyThreadState* __tstate = wxPyBeginAllowThreads();
6463 (arg1)->Remove(arg2,arg3);
6464 wxPyEndAllowThreads(__tstate);
6465 if (PyErr_Occurred()) SWIG_fail;
6466 }
6467 resultobj = SWIG_Py_Void();
6468 return resultobj;
6469fail:
6470 return NULL;
d55e5bfc
RD
6471}
6472
6473
554f62e9
RD
6474SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6475 PyObject *resultobj = 0;
6476 wxComboBox *arg1 = (wxComboBox *) 0 ;
6477 bool result;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 PyObject *swig_obj[1] ;
6481
6482 if (!args) SWIG_fail;
6483 swig_obj[0] = args;
6484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6485 if (!SWIG_IsOK(res1)) {
6486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6487 }
6488 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6489 {
6490 PyThreadState* __tstate = wxPyBeginAllowThreads();
6491 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6492 wxPyEndAllowThreads(__tstate);
6493 if (PyErr_Occurred()) SWIG_fail;
6494 }
6495 {
6496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6497 }
6498 return resultobj;
6499fail:
6500 return NULL;
d55e5bfc
RD
6501}
6502
6503
554f62e9
RD
6504SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6505 PyObject *resultobj = 0;
6506 wxComboBox *arg1 = (wxComboBox *) 0 ;
6507 void *argp1 = 0 ;
6508 int res1 = 0 ;
6509 PyObject *swig_obj[1] ;
6510
6511 if (!args) SWIG_fail;
6512 swig_obj[0] = args;
6513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6516 }
6517 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6518 {
6519 PyThreadState* __tstate = wxPyBeginAllowThreads();
6520 (arg1)->Undo();
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
6524 resultobj = SWIG_Py_Void();
6525 return resultobj;
6526fail:
6527 return NULL;
d55e5bfc
RD
6528}
6529
6530
554f62e9
RD
6531SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6532 PyObject *resultobj = 0;
6533 wxComboBox *arg1 = (wxComboBox *) 0 ;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 PyObject *swig_obj[1] ;
6537
6538 if (!args) SWIG_fail;
6539 swig_obj[0] = args;
6540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6541 if (!SWIG_IsOK(res1)) {
6542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6543 }
6544 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 (arg1)->Redo();
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_Py_Void();
6552 return resultobj;
6553fail:
6554 return NULL;
d55e5bfc
RD
6555}
6556
6557
554f62e9
RD
6558SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6559 PyObject *resultobj = 0;
6560 wxComboBox *arg1 = (wxComboBox *) 0 ;
6561 void *argp1 = 0 ;
6562 int res1 = 0 ;
6563 PyObject *swig_obj[1] ;
6564
6565 if (!args) SWIG_fail;
6566 swig_obj[0] = args;
6567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6568 if (!SWIG_IsOK(res1)) {
6569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6570 }
6571 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 (arg1)->SelectAll();
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 resultobj = SWIG_Py_Void();
6579 return resultobj;
6580fail:
6581 return NULL;
f78cc896
RD
6582}
6583
6584
554f62e9
RD
6585SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6586 PyObject *resultobj = 0;
6587 wxComboBox *arg1 = (wxComboBox *) 0 ;
6588 bool result;
6589 void *argp1 = 0 ;
6590 int res1 = 0 ;
6591 PyObject *swig_obj[1] ;
6592
6593 if (!args) SWIG_fail;
6594 swig_obj[0] = args;
6595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6596 if (!SWIG_IsOK(res1)) {
6597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6598 }
6599 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6600 {
6601 PyThreadState* __tstate = wxPyBeginAllowThreads();
6602 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6603 wxPyEndAllowThreads(__tstate);
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 {
6607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6608 }
6609 return resultobj;
6610fail:
6611 return NULL;
9d7dfdff
RD
6612}
6613
6614
554f62e9
RD
6615SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6616 PyObject *resultobj = 0;
6617 wxComboBox *arg1 = (wxComboBox *) 0 ;
6618 bool result;
6619 void *argp1 = 0 ;
6620 int res1 = 0 ;
6621 PyObject *swig_obj[1] ;
6622
6623 if (!args) SWIG_fail;
6624 swig_obj[0] = args;
6625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6626 if (!SWIG_IsOK(res1)) {
6627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6628 }
6629 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6630 {
6631 PyThreadState* __tstate = wxPyBeginAllowThreads();
6632 result = (bool)((wxComboBox const *)arg1)->CanCut();
6633 wxPyEndAllowThreads(__tstate);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 {
6637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6638 }
6639 return resultobj;
6640fail:
6641 return NULL;
121b9a67
RD
6642}
6643
6644
554f62e9
RD
6645SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6646 PyObject *resultobj = 0;
6647 wxComboBox *arg1 = (wxComboBox *) 0 ;
6648 bool result;
6649 void *argp1 = 0 ;
6650 int res1 = 0 ;
6651 PyObject *swig_obj[1] ;
6652
6653 if (!args) SWIG_fail;
6654 swig_obj[0] = args;
6655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6656 if (!SWIG_IsOK(res1)) {
6657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6658 }
6659 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6660 {
6661 PyThreadState* __tstate = wxPyBeginAllowThreads();
6662 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6663 wxPyEndAllowThreads(__tstate);
6664 if (PyErr_Occurred()) SWIG_fail;
6665 }
6666 {
6667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6668 }
6669 return resultobj;
6670fail:
6671 return NULL;
121b9a67
RD
6672}
6673
6674
554f62e9
RD
6675SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6676 PyObject *resultobj = 0;
6677 wxComboBox *arg1 = (wxComboBox *) 0 ;
6678 bool result;
6679 void *argp1 = 0 ;
6680 int res1 = 0 ;
6681 PyObject *swig_obj[1] ;
6682
6683 if (!args) SWIG_fail;
6684 swig_obj[0] = args;
6685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6686 if (!SWIG_IsOK(res1)) {
6687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6688 }
6689 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6690 {
6691 PyThreadState* __tstate = wxPyBeginAllowThreads();
6692 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6693 wxPyEndAllowThreads(__tstate);
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 {
6697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6698 }
6699 return resultobj;
6700fail:
6701 return NULL;
d55e5bfc
RD
6702}
6703
6704
554f62e9
RD
6705SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6706 PyObject *resultobj = 0;
6707 wxComboBox *arg1 = (wxComboBox *) 0 ;
6708 bool result;
6709 void *argp1 = 0 ;
6710 int res1 = 0 ;
6711 PyObject *swig_obj[1] ;
6712
6713 if (!args) SWIG_fail;
6714 swig_obj[0] = args;
6715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6716 if (!SWIG_IsOK(res1)) {
6717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6718 }
6719 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6720 {
6721 PyThreadState* __tstate = wxPyBeginAllowThreads();
6722 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6723 wxPyEndAllowThreads(__tstate);
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 {
6727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6728 }
6729 return resultobj;
6730fail:
6731 return NULL;
d55e5bfc
RD
6732}
6733
6734
554f62e9
RD
6735SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6736 PyObject *resultobj = 0;
6737 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6738 SwigValueWrapper<wxVisualAttributes > result;
6739 int val1 ;
6740 int ecode1 = 0 ;
6741 PyObject * obj0 = 0 ;
6742 char * kwnames[] = {
6743 (char *) "variant", NULL
6744 };
6745
6746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6747 if (obj0) {
6748 ecode1 = SWIG_AsVal_int(obj0, &val1);
6749 if (!SWIG_IsOK(ecode1)) {
6750 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6751 }
6752 arg1 = static_cast< wxWindowVariant >(val1);
6753 }
6754 {
6755 if (!wxPyCheckForApp()) SWIG_fail;
6756 PyThreadState* __tstate = wxPyBeginAllowThreads();
6757 result = wxComboBox::GetClassDefaultAttributes(arg1);
6758 wxPyEndAllowThreads(__tstate);
6759 if (PyErr_Occurred()) SWIG_fail;
6760 }
6761 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6762 return resultobj;
6763fail:
6764 return NULL;
d55e5bfc
RD
6765}
6766
6767
554f62e9
RD
6768SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6769 PyObject *obj;
6770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6771 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6772 return SWIG_Py_Void();
b519803b
RD
6773}
6774
554f62e9
RD
6775SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6776 return SWIG_Python_InitShadowInstance(args);
6777}
b519803b 6778
554f62e9
RD
6779SWIGINTERN int GaugeNameStr_set(PyObject *) {
6780 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6781 return 1;
b519803b
RD
6782}
6783
6784
554f62e9
RD
6785SWIGINTERN PyObject *GaugeNameStr_get(void) {
6786 PyObject *pyobj = 0;
6787
6788 {
6789#if wxUSE_UNICODE
6790 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6791#else
6792 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6793#endif
6794 }
6795 return pyobj;
6796}
6797
6798
6799SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6800 PyObject *resultobj = 0;
6801 wxWindow *arg1 = (wxWindow *) 0 ;
6802 int arg2 = (int) -1 ;
6803 int arg3 = (int) 100 ;
6804 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6805 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6806 wxSize const &arg5_defvalue = wxDefaultSize ;
6807 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6808 long arg6 = (long) wxGA_HORIZONTAL ;
6809 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6810 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6811 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6812 wxString *arg8 = (wxString *) &arg8_defvalue ;
6813 wxGauge *result = 0 ;
6814 void *argp1 = 0 ;
6815 int res1 = 0 ;
6816 int val2 ;
6817 int ecode2 = 0 ;
6818 int val3 ;
6819 int ecode3 = 0 ;
6820 wxPoint temp4 ;
6821 wxSize temp5 ;
6822 long val6 ;
6823 int ecode6 = 0 ;
6824 void *argp7 = 0 ;
6825 int res7 = 0 ;
6826 bool temp8 = false ;
6827 PyObject * obj0 = 0 ;
6828 PyObject * obj1 = 0 ;
6829 PyObject * obj2 = 0 ;
6830 PyObject * obj3 = 0 ;
6831 PyObject * obj4 = 0 ;
6832 PyObject * obj5 = 0 ;
6833 PyObject * obj6 = 0 ;
6834 PyObject * obj7 = 0 ;
6835 char * kwnames[] = {
6836 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6837 };
6838
6839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6841 if (!SWIG_IsOK(res1)) {
6842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6843 }
6844 arg1 = reinterpret_cast< wxWindow * >(argp1);
6845 if (obj1) {
6846 ecode2 = SWIG_AsVal_int(obj1, &val2);
6847 if (!SWIG_IsOK(ecode2)) {
6848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6849 }
6850 arg2 = static_cast< int >(val2);
6851 }
6852 if (obj2) {
6853 ecode3 = SWIG_AsVal_int(obj2, &val3);
6854 if (!SWIG_IsOK(ecode3)) {
6855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6856 }
6857 arg3 = static_cast< int >(val3);
6858 }
6859 if (obj3) {
b519803b 6860 {
554f62e9
RD
6861 arg4 = &temp4;
6862 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
b519803b 6863 }
554f62e9
RD
6864 }
6865 if (obj4) {
b519803b 6866 {
554f62e9
RD
6867 arg5 = &temp5;
6868 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
b519803b 6869 }
554f62e9
RD
6870 }
6871 if (obj5) {
6872 ecode6 = SWIG_AsVal_long(obj5, &val6);
6873 if (!SWIG_IsOK(ecode6)) {
6874 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6875 }
6876 arg6 = static_cast< long >(val6);
6877 }
6878 if (obj6) {
6879 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6880 if (!SWIG_IsOK(res7)) {
6881 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6882 }
6883 if (!argp7) {
6884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
b519803b 6885 }
554f62e9
RD
6886 arg7 = reinterpret_cast< wxValidator * >(argp7);
6887 }
6888 if (obj7) {
b519803b 6889 {
554f62e9
RD
6890 arg8 = wxString_in_helper(obj7);
6891 if (arg8 == NULL) SWIG_fail;
6892 temp8 = true;
b519803b 6893 }
554f62e9
RD
6894 }
6895 {
6896 if (!wxPyCheckForApp()) SWIG_fail;
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6899 wxPyEndAllowThreads(__tstate);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6903 {
6904 if (temp8)
6905 delete arg8;
6906 }
6907 return resultobj;
6908fail:
6909 {
6910 if (temp8)
6911 delete arg8;
6912 }
6913 return NULL;
b519803b
RD
6914}
6915
6916
554f62e9
RD
6917SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6918 PyObject *resultobj = 0;
6919 wxGauge *result = 0 ;
6920
6921 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6922 {
6923 if (!wxPyCheckForApp()) SWIG_fail;
6924 PyThreadState* __tstate = wxPyBeginAllowThreads();
6925 result = (wxGauge *)new wxGauge();
6926 wxPyEndAllowThreads(__tstate);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6930 return resultobj;
6931fail:
6932 return NULL;
6933}
6934
6935
6936SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj = 0;
6938 wxGauge *arg1 = (wxGauge *) 0 ;
6939 wxWindow *arg2 = (wxWindow *) 0 ;
6940 int arg3 = (int) -1 ;
6941 int arg4 = (int) 100 ;
6942 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6943 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6944 wxSize const &arg6_defvalue = wxDefaultSize ;
6945 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6946 long arg7 = (long) wxGA_HORIZONTAL ;
6947 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6948 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6949 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6950 wxString *arg9 = (wxString *) &arg9_defvalue ;
6951 bool result;
6952 void *argp1 = 0 ;
6953 int res1 = 0 ;
6954 void *argp2 = 0 ;
6955 int res2 = 0 ;
6956 int val3 ;
6957 int ecode3 = 0 ;
6958 int val4 ;
6959 int ecode4 = 0 ;
6960 wxPoint temp5 ;
6961 wxSize temp6 ;
6962 long val7 ;
6963 int ecode7 = 0 ;
6964 void *argp8 = 0 ;
6965 int res8 = 0 ;
6966 bool temp9 = false ;
6967 PyObject * obj0 = 0 ;
6968 PyObject * obj1 = 0 ;
6969 PyObject * obj2 = 0 ;
6970 PyObject * obj3 = 0 ;
6971 PyObject * obj4 = 0 ;
6972 PyObject * obj5 = 0 ;
6973 PyObject * obj6 = 0 ;
6974 PyObject * obj7 = 0 ;
6975 PyObject * obj8 = 0 ;
6976 char * kwnames[] = {
6977 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6978 };
6979
6980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6982 if (!SWIG_IsOK(res1)) {
6983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6984 }
6985 arg1 = reinterpret_cast< wxGauge * >(argp1);
6986 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6987 if (!SWIG_IsOK(res2)) {
6988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6989 }
6990 arg2 = reinterpret_cast< wxWindow * >(argp2);
6991 if (obj2) {
6992 ecode3 = SWIG_AsVal_int(obj2, &val3);
6993 if (!SWIG_IsOK(ecode3)) {
6994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6995 }
6996 arg3 = static_cast< int >(val3);
6997 }
6998 if (obj3) {
6999 ecode4 = SWIG_AsVal_int(obj3, &val4);
7000 if (!SWIG_IsOK(ecode4)) {
7001 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
7002 }
7003 arg4 = static_cast< int >(val4);
7004 }
7005 if (obj4) {
b519803b 7006 {
554f62e9
RD
7007 arg5 = &temp5;
7008 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
b519803b 7009 }
554f62e9
RD
7010 }
7011 if (obj5) {
b519803b 7012 {
554f62e9
RD
7013 arg6 = &temp6;
7014 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
b519803b 7015 }
554f62e9
RD
7016 }
7017 if (obj6) {
7018 ecode7 = SWIG_AsVal_long(obj6, &val7);
7019 if (!SWIG_IsOK(ecode7)) {
7020 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7021 }
7022 arg7 = static_cast< long >(val7);
7023 }
7024 if (obj7) {
7025 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7026 if (!SWIG_IsOK(res8)) {
7027 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
b519803b 7028 }
554f62e9
RD
7029 if (!argp8) {
7030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7031 }
7032 arg8 = reinterpret_cast< wxValidator * >(argp8);
7033 }
7034 if (obj8) {
b519803b 7035 {
554f62e9
RD
7036 arg9 = wxString_in_helper(obj8);
7037 if (arg9 == NULL) SWIG_fail;
7038 temp9 = true;
b519803b 7039 }
554f62e9
RD
7040 }
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7044 wxPyEndAllowThreads(__tstate);
7045 if (PyErr_Occurred()) SWIG_fail;
7046 }
7047 {
7048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7049 }
7050 {
7051 if (temp9)
7052 delete arg9;
7053 }
7054 return resultobj;
7055fail:
7056 {
7057 if (temp9)
7058 delete arg9;
7059 }
7060 return NULL;
7061}
7062
7063
7064SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7065 PyObject *resultobj = 0;
7066 wxGauge *arg1 = (wxGauge *) 0 ;
7067 int arg2 ;
7068 void *argp1 = 0 ;
7069 int res1 = 0 ;
7070 int val2 ;
7071 int ecode2 = 0 ;
7072 PyObject * obj0 = 0 ;
7073 PyObject * obj1 = 0 ;
7074 char * kwnames[] = {
7075 (char *) "self",(char *) "range", NULL
7076 };
7077
7078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7080 if (!SWIG_IsOK(res1)) {
7081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7082 }
7083 arg1 = reinterpret_cast< wxGauge * >(argp1);
7084 ecode2 = SWIG_AsVal_int(obj1, &val2);
7085 if (!SWIG_IsOK(ecode2)) {
7086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7087 }
7088 arg2 = static_cast< int >(val2);
7089 {
7090 PyThreadState* __tstate = wxPyBeginAllowThreads();
7091 (arg1)->SetRange(arg2);
7092 wxPyEndAllowThreads(__tstate);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 resultobj = SWIG_Py_Void();
7096 return resultobj;
7097fail:
7098 return NULL;
b519803b
RD
7099}
7100
7101
554f62e9
RD
7102SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7103 PyObject *resultobj = 0;
7104 wxGauge *arg1 = (wxGauge *) 0 ;
7105 int result;
7106 void *argp1 = 0 ;
7107 int res1 = 0 ;
7108 PyObject *swig_obj[1] ;
7109
7110 if (!args) SWIG_fail;
7111 swig_obj[0] = args;
7112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7113 if (!SWIG_IsOK(res1)) {
7114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7115 }
7116 arg1 = reinterpret_cast< wxGauge * >(argp1);
7117 {
7118 PyThreadState* __tstate = wxPyBeginAllowThreads();
7119 result = (int)((wxGauge const *)arg1)->GetRange();
7120 wxPyEndAllowThreads(__tstate);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
7123 resultobj = SWIG_From_int(static_cast< int >(result));
7124 return resultobj;
7125fail:
7126 return NULL;
7127}
7128
7129
7130SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7131 PyObject *resultobj = 0;
7132 wxGauge *arg1 = (wxGauge *) 0 ;
7133 int arg2 ;
7134 void *argp1 = 0 ;
7135 int res1 = 0 ;
7136 int val2 ;
7137 int ecode2 = 0 ;
7138 PyObject * obj0 = 0 ;
7139 PyObject * obj1 = 0 ;
7140 char * kwnames[] = {
7141 (char *) "self",(char *) "pos", NULL
7142 };
7143
7144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7146 if (!SWIG_IsOK(res1)) {
7147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7148 }
7149 arg1 = reinterpret_cast< wxGauge * >(argp1);
7150 ecode2 = SWIG_AsVal_int(obj1, &val2);
7151 if (!SWIG_IsOK(ecode2)) {
7152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7153 }
7154 arg2 = static_cast< int >(val2);
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 (arg1)->SetValue(arg2);
7158 wxPyEndAllowThreads(__tstate);
7159 if (PyErr_Occurred()) SWIG_fail;
7160 }
7161 resultobj = SWIG_Py_Void();
7162 return resultobj;
7163fail:
7164 return NULL;
b519803b
RD
7165}
7166
7167
554f62e9
RD
7168SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7169 PyObject *resultobj = 0;
7170 wxGauge *arg1 = (wxGauge *) 0 ;
7171 int result;
7172 void *argp1 = 0 ;
7173 int res1 = 0 ;
7174 PyObject *swig_obj[1] ;
7175
7176 if (!args) SWIG_fail;
7177 swig_obj[0] = args;
7178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7179 if (!SWIG_IsOK(res1)) {
7180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7181 }
7182 arg1 = reinterpret_cast< wxGauge * >(argp1);
7183 {
7184 PyThreadState* __tstate = wxPyBeginAllowThreads();
7185 result = (int)((wxGauge const *)arg1)->GetValue();
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 resultobj = SWIG_From_int(static_cast< int >(result));
7190 return resultobj;
7191fail:
7192 return NULL;
b519803b
RD
7193}
7194
7195
0d2c9713
RD
7196SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7197 PyObject *resultobj = 0;
7198 wxGauge *arg1 = (wxGauge *) 0 ;
7199 void *argp1 = 0 ;
7200 int res1 = 0 ;
7201 PyObject *swig_obj[1] ;
7202
7203 if (!args) SWIG_fail;
7204 swig_obj[0] = args;
7205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7206 if (!SWIG_IsOK(res1)) {
7207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7208 }
7209 arg1 = reinterpret_cast< wxGauge * >(argp1);
7210 {
7211 PyThreadState* __tstate = wxPyBeginAllowThreads();
7212 (arg1)->Pulse();
7213 wxPyEndAllowThreads(__tstate);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 resultobj = SWIG_Py_Void();
7217 return resultobj;
7218fail:
7219 return NULL;
7220}
7221
7222
554f62e9
RD
7223SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7224 PyObject *resultobj = 0;
7225 wxGauge *arg1 = (wxGauge *) 0 ;
7226 bool result;
7227 void *argp1 = 0 ;
7228 int res1 = 0 ;
7229 PyObject *swig_obj[1] ;
7230
7231 if (!args) SWIG_fail;
7232 swig_obj[0] = args;
7233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7234 if (!SWIG_IsOK(res1)) {
7235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7236 }
7237 arg1 = reinterpret_cast< wxGauge * >(argp1);
7238 {
7239 PyThreadState* __tstate = wxPyBeginAllowThreads();
7240 result = (bool)((wxGauge const *)arg1)->IsVertical();
7241 wxPyEndAllowThreads(__tstate);
7242 if (PyErr_Occurred()) SWIG_fail;
7243 }
7244 {
7245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7246 }
7247 return resultobj;
7248fail:
7249 return NULL;
7250}
7251
7252
7253SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7254 PyObject *resultobj = 0;
7255 wxGauge *arg1 = (wxGauge *) 0 ;
7256 int arg2 ;
7257 void *argp1 = 0 ;
7258 int res1 = 0 ;
7259 int val2 ;
7260 int ecode2 = 0 ;
7261 PyObject * obj0 = 0 ;
7262 PyObject * obj1 = 0 ;
7263 char * kwnames[] = {
7264 (char *) "self",(char *) "w", NULL
7265 };
7266
7267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7269 if (!SWIG_IsOK(res1)) {
7270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7271 }
7272 arg1 = reinterpret_cast< wxGauge * >(argp1);
7273 ecode2 = SWIG_AsVal_int(obj1, &val2);
7274 if (!SWIG_IsOK(ecode2)) {
7275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7276 }
7277 arg2 = static_cast< int >(val2);
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 (arg1)->SetShadowWidth(arg2);
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 resultobj = SWIG_Py_Void();
7285 return resultobj;
7286fail:
7287 return NULL;
f20a2e1f
RD
7288}
7289
7290
554f62e9
RD
7291SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7292 PyObject *resultobj = 0;
7293 wxGauge *arg1 = (wxGauge *) 0 ;
7294 int result;
7295 void *argp1 = 0 ;
7296 int res1 = 0 ;
7297 PyObject *swig_obj[1] ;
7298
7299 if (!args) SWIG_fail;
7300 swig_obj[0] = args;
7301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7302 if (!SWIG_IsOK(res1)) {
7303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7304 }
7305 arg1 = reinterpret_cast< wxGauge * >(argp1);
7306 {
7307 PyThreadState* __tstate = wxPyBeginAllowThreads();
7308 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 resultobj = SWIG_From_int(static_cast< int >(result));
7313 return resultobj;
7314fail:
7315 return NULL;
7316}
7317
7318
7319SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7320 PyObject *resultobj = 0;
7321 wxGauge *arg1 = (wxGauge *) 0 ;
7322 int arg2 ;
7323 void *argp1 = 0 ;
7324 int res1 = 0 ;
7325 int val2 ;
7326 int ecode2 = 0 ;
7327 PyObject * obj0 = 0 ;
7328 PyObject * obj1 = 0 ;
7329 char * kwnames[] = {
7330 (char *) "self",(char *) "w", NULL
7331 };
7332
7333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7335 if (!SWIG_IsOK(res1)) {
7336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7337 }
7338 arg1 = reinterpret_cast< wxGauge * >(argp1);
7339 ecode2 = SWIG_AsVal_int(obj1, &val2);
7340 if (!SWIG_IsOK(ecode2)) {
7341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7342 }
7343 arg2 = static_cast< int >(val2);
7344 {
7345 PyThreadState* __tstate = wxPyBeginAllowThreads();
7346 (arg1)->SetBezelFace(arg2);
7347 wxPyEndAllowThreads(__tstate);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 }
7350 resultobj = SWIG_Py_Void();
7351 return resultobj;
7352fail:
7353 return NULL;
d55e5bfc 7354}
554f62e9
RD
7355
7356
7357SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7358 PyObject *resultobj = 0;
7359 wxGauge *arg1 = (wxGauge *) 0 ;
7360 int result;
7361 void *argp1 = 0 ;
7362 int res1 = 0 ;
7363 PyObject *swig_obj[1] ;
7364
7365 if (!args) SWIG_fail;
7366 swig_obj[0] = args;
7367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7368 if (!SWIG_IsOK(res1)) {
7369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7370 }
7371 arg1 = reinterpret_cast< wxGauge * >(argp1);
7372 {
7373 PyThreadState* __tstate = wxPyBeginAllowThreads();
7374 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7375 wxPyEndAllowThreads(__tstate);
7376 if (PyErr_Occurred()) SWIG_fail;
7377 }
7378 resultobj = SWIG_From_int(static_cast< int >(result));
7379 return resultobj;
7380fail:
7381 return NULL;
7382}
7383
7384
7385SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7386 PyObject *resultobj = 0;
7387 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7388 SwigValueWrapper<wxVisualAttributes > result;
7389 int val1 ;
7390 int ecode1 = 0 ;
7391 PyObject * obj0 = 0 ;
7392 char * kwnames[] = {
7393 (char *) "variant", NULL
7394 };
7395
7396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7397 if (obj0) {
7398 ecode1 = SWIG_AsVal_int(obj0, &val1);
7399 if (!SWIG_IsOK(ecode1)) {
7400 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7401 }
7402 arg1 = static_cast< wxWindowVariant >(val1);
7403 }
7404 {
7405 if (!wxPyCheckForApp()) SWIG_fail;
7406 PyThreadState* __tstate = wxPyBeginAllowThreads();
7407 result = wxGauge::GetClassDefaultAttributes(arg1);
7408 wxPyEndAllowThreads(__tstate);
7409 if (PyErr_Occurred()) SWIG_fail;
7410 }
7411 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7412 return resultobj;
7413fail:
7414 return NULL;
d55e5bfc
RD
7415}
7416
7417
554f62e9
RD
7418SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7419 PyObject *obj;
7420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7421 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7422 return SWIG_Py_Void();
7423}
7424
7425SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7426 return SWIG_Python_InitShadowInstance(args);
7427}
7428
7429SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7430 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7431 return 1;
7432}
7433
7434
7435SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7436 PyObject *pyobj = 0;
7437
7438 {
d55e5bfc 7439#if wxUSE_UNICODE
554f62e9 7440 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
d55e5bfc 7441#else
554f62e9 7442 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
d55e5bfc 7443#endif
554f62e9
RD
7444 }
7445 return pyobj;
d55e5bfc
RD
7446}
7447
7448
554f62e9
RD
7449SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7450 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7451 return 1;
d55e5bfc
RD
7452}
7453
7454
554f62e9
RD
7455SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7456 PyObject *pyobj = 0;
7457
7458 {
7459#if wxUSE_UNICODE
7460 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7461#else
7462 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7463#endif
7464 }
7465 return pyobj;
7466}
7467
7468
7469SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7470 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7471 return 1;
7472}
7473
7474
7475SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7476 PyObject *pyobj = 0;
7477
7478 {
7479#if wxUSE_UNICODE
7480 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7481#else
7482 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7483#endif
7484 }
7485 return pyobj;
7486}
7487
7488
7489SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7490 PyObject *resultobj = 0;
7491 wxWindow *arg1 = (wxWindow *) 0 ;
7492 int arg2 = (int) -1 ;
7493 wxString const &arg3_defvalue = wxPyEmptyString ;
7494 wxString *arg3 = (wxString *) &arg3_defvalue ;
7495 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7496 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7497 wxSize const &arg5_defvalue = wxDefaultSize ;
7498 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7499 long arg6 = (long) 0 ;
7500 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7501 wxString *arg7 = (wxString *) &arg7_defvalue ;
7502 wxStaticBox *result = 0 ;
7503 void *argp1 = 0 ;
7504 int res1 = 0 ;
7505 int val2 ;
7506 int ecode2 = 0 ;
7507 bool temp3 = false ;
7508 wxPoint temp4 ;
7509 wxSize temp5 ;
7510 long val6 ;
7511 int ecode6 = 0 ;
7512 bool temp7 = false ;
7513 PyObject * obj0 = 0 ;
7514 PyObject * obj1 = 0 ;
7515 PyObject * obj2 = 0 ;
7516 PyObject * obj3 = 0 ;
7517 PyObject * obj4 = 0 ;
7518 PyObject * obj5 = 0 ;
7519 PyObject * obj6 = 0 ;
7520 char * kwnames[] = {
7521 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7522 };
7523
7524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7526 if (!SWIG_IsOK(res1)) {
7527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7528 }
7529 arg1 = reinterpret_cast< wxWindow * >(argp1);
7530 if (obj1) {
7531 ecode2 = SWIG_AsVal_int(obj1, &val2);
7532 if (!SWIG_IsOK(ecode2)) {
7533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7534 }
7535 arg2 = static_cast< int >(val2);
7536 }
7537 if (obj2) {
d55e5bfc 7538 {
554f62e9
RD
7539 arg3 = wxString_in_helper(obj2);
7540 if (arg3 == NULL) SWIG_fail;
7541 temp3 = true;
d55e5bfc 7542 }
554f62e9
RD
7543 }
7544 if (obj3) {
d55e5bfc 7545 {
554f62e9
RD
7546 arg4 = &temp4;
7547 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7548 }
554f62e9
RD
7549 }
7550 if (obj4) {
d55e5bfc 7551 {
554f62e9
RD
7552 arg5 = &temp5;
7553 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7554 }
554f62e9
RD
7555 }
7556 if (obj5) {
7557 ecode6 = SWIG_AsVal_long(obj5, &val6);
7558 if (!SWIG_IsOK(ecode6)) {
7559 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7560 }
7561 arg6 = static_cast< long >(val6);
7562 }
7563 if (obj6) {
d55e5bfc 7564 {
554f62e9
RD
7565 arg7 = wxString_in_helper(obj6);
7566 if (arg7 == NULL) SWIG_fail;
7567 temp7 = true;
d55e5bfc 7568 }
554f62e9
RD
7569 }
7570 {
7571 if (!wxPyCheckForApp()) SWIG_fail;
7572 PyThreadState* __tstate = wxPyBeginAllowThreads();
7573 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7574 wxPyEndAllowThreads(__tstate);
7575 if (PyErr_Occurred()) SWIG_fail;
7576 }
7577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7578 {
7579 if (temp3)
7580 delete arg3;
7581 }
7582 {
7583 if (temp7)
7584 delete arg7;
7585 }
7586 return resultobj;
7587fail:
7588 {
7589 if (temp3)
7590 delete arg3;
7591 }
7592 {
7593 if (temp7)
7594 delete arg7;
7595 }
7596 return NULL;
d55e5bfc
RD
7597}
7598
7599
554f62e9
RD
7600SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7601 PyObject *resultobj = 0;
7602 wxStaticBox *result = 0 ;
7603
7604 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7605 {
7606 if (!wxPyCheckForApp()) SWIG_fail;
7607 PyThreadState* __tstate = wxPyBeginAllowThreads();
7608 result = (wxStaticBox *)new wxStaticBox();
7609 wxPyEndAllowThreads(__tstate);
7610 if (PyErr_Occurred()) SWIG_fail;
7611 }
7612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7613 return resultobj;
7614fail:
7615 return NULL;
7616}
7617
7618
7619SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7620 PyObject *resultobj = 0;
7621 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7622 wxWindow *arg2 = (wxWindow *) 0 ;
7623 int arg3 = (int) -1 ;
7624 wxString const &arg4_defvalue = wxPyEmptyString ;
7625 wxString *arg4 = (wxString *) &arg4_defvalue ;
7626 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7627 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7628 wxSize const &arg6_defvalue = wxDefaultSize ;
7629 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7630 long arg7 = (long) 0 ;
7631 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7632 wxString *arg8 = (wxString *) &arg8_defvalue ;
7633 bool result;
7634 void *argp1 = 0 ;
7635 int res1 = 0 ;
7636 void *argp2 = 0 ;
7637 int res2 = 0 ;
7638 int val3 ;
7639 int ecode3 = 0 ;
7640 bool temp4 = false ;
7641 wxPoint temp5 ;
7642 wxSize temp6 ;
7643 long val7 ;
7644 int ecode7 = 0 ;
7645 bool temp8 = false ;
7646 PyObject * obj0 = 0 ;
7647 PyObject * obj1 = 0 ;
7648 PyObject * obj2 = 0 ;
7649 PyObject * obj3 = 0 ;
7650 PyObject * obj4 = 0 ;
7651 PyObject * obj5 = 0 ;
7652 PyObject * obj6 = 0 ;
7653 PyObject * obj7 = 0 ;
7654 char * kwnames[] = {
7655 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7656 };
7657
7658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7660 if (!SWIG_IsOK(res1)) {
7661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7662 }
7663 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7665 if (!SWIG_IsOK(res2)) {
7666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7667 }
7668 arg2 = reinterpret_cast< wxWindow * >(argp2);
7669 if (obj2) {
7670 ecode3 = SWIG_AsVal_int(obj2, &val3);
7671 if (!SWIG_IsOK(ecode3)) {
7672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7673 }
7674 arg3 = static_cast< int >(val3);
7675 }
7676 if (obj3) {
093d3ff1 7677 {
554f62e9
RD
7678 arg4 = wxString_in_helper(obj3);
7679 if (arg4 == NULL) SWIG_fail;
7680 temp4 = true;
093d3ff1 7681 }
554f62e9
RD
7682 }
7683 if (obj4) {
d55e5bfc 7684 {
554f62e9
RD
7685 arg5 = &temp5;
7686 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7687 }
554f62e9
RD
7688 }
7689 if (obj5) {
d55e5bfc 7690 {
554f62e9
RD
7691 arg6 = &temp6;
7692 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 7693 }
554f62e9
RD
7694 }
7695 if (obj6) {
7696 ecode7 = SWIG_AsVal_long(obj6, &val7);
7697 if (!SWIG_IsOK(ecode7)) {
7698 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7699 }
7700 arg7 = static_cast< long >(val7);
7701 }
7702 if (obj7) {
093d3ff1 7703 {
554f62e9
RD
7704 arg8 = wxString_in_helper(obj7);
7705 if (arg8 == NULL) SWIG_fail;
7706 temp8 = true;
093d3ff1 7707 }
554f62e9
RD
7708 }
7709 {
7710 PyThreadState* __tstate = wxPyBeginAllowThreads();
7711 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7712 wxPyEndAllowThreads(__tstate);
7713 if (PyErr_Occurred()) SWIG_fail;
7714 }
7715 {
7716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7717 }
7718 {
7719 if (temp4)
7720 delete arg4;
7721 }
7722 {
7723 if (temp8)
7724 delete arg8;
7725 }
7726 return resultobj;
7727fail:
7728 {
7729 if (temp4)
7730 delete arg4;
7731 }
7732 {
7733 if (temp8)
7734 delete arg8;
7735 }
7736 return NULL;
7737}
d55e5bfc 7738
554f62e9
RD
7739
7740SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7741 PyObject *resultobj = 0;
7742 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7743 SwigValueWrapper<wxVisualAttributes > result;
7744 int val1 ;
7745 int ecode1 = 0 ;
7746 PyObject * obj0 = 0 ;
7747 char * kwnames[] = {
7748 (char *) "variant", NULL
7749 };
7750
7751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7752 if (obj0) {
7753 ecode1 = SWIG_AsVal_int(obj0, &val1);
7754 if (!SWIG_IsOK(ecode1)) {
7755 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7756 }
7757 arg1 = static_cast< wxWindowVariant >(val1);
7758 }
7759 {
7760 if (!wxPyCheckForApp()) SWIG_fail;
7761 PyThreadState* __tstate = wxPyBeginAllowThreads();
7762 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7763 wxPyEndAllowThreads(__tstate);
7764 if (PyErr_Occurred()) SWIG_fail;
7765 }
7766 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7767 return resultobj;
7768fail:
7769 return NULL;
7770}
7771
7772
7773SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7774 PyObject *obj;
7775 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7776 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7777 return SWIG_Py_Void();
7778}
7779
7780SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7781 return SWIG_Python_InitShadowInstance(args);
7782}
7783
7784SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7785 PyObject *resultobj = 0;
7786 wxWindow *arg1 = (wxWindow *) 0 ;
7787 int arg2 = (int) -1 ;
7788 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7789 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7790 wxSize const &arg4_defvalue = wxDefaultSize ;
7791 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7792 long arg5 = (long) wxLI_HORIZONTAL ;
7793 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7794 wxString *arg6 = (wxString *) &arg6_defvalue ;
7795 wxStaticLine *result = 0 ;
7796 void *argp1 = 0 ;
7797 int res1 = 0 ;
7798 int val2 ;
7799 int ecode2 = 0 ;
7800 wxPoint temp3 ;
7801 wxSize temp4 ;
7802 long val5 ;
7803 int ecode5 = 0 ;
7804 bool temp6 = false ;
7805 PyObject * obj0 = 0 ;
7806 PyObject * obj1 = 0 ;
7807 PyObject * obj2 = 0 ;
7808 PyObject * obj3 = 0 ;
7809 PyObject * obj4 = 0 ;
7810 PyObject * obj5 = 0 ;
7811 char * kwnames[] = {
7812 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7813 };
7814
7815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7817 if (!SWIG_IsOK(res1)) {
7818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7819 }
7820 arg1 = reinterpret_cast< wxWindow * >(argp1);
7821 if (obj1) {
7822 ecode2 = SWIG_AsVal_int(obj1, &val2);
7823 if (!SWIG_IsOK(ecode2)) {
7824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7825 }
7826 arg2 = static_cast< int >(val2);
7827 }
7828 if (obj2) {
093d3ff1 7829 {
554f62e9
RD
7830 arg3 = &temp3;
7831 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 7832 }
554f62e9
RD
7833 }
7834 if (obj3) {
d55e5bfc 7835 {
554f62e9
RD
7836 arg4 = &temp4;
7837 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7838 }
554f62e9
RD
7839 }
7840 if (obj4) {
7841 ecode5 = SWIG_AsVal_long(obj4, &val5);
7842 if (!SWIG_IsOK(ecode5)) {
7843 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7844 }
7845 arg5 = static_cast< long >(val5);
7846 }
7847 if (obj5) {
7848 {
7849 arg6 = wxString_in_helper(obj5);
7850 if (arg6 == NULL) SWIG_fail;
7851 temp6 = true;
7852 }
7853 }
7854 {
7855 if (!wxPyCheckForApp()) SWIG_fail;
7856 PyThreadState* __tstate = wxPyBeginAllowThreads();
7857 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7858 wxPyEndAllowThreads(__tstate);
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7862 {
7863 if (temp6)
7864 delete arg6;
7865 }
7866 return resultobj;
7867fail:
7868 {
7869 if (temp6)
7870 delete arg6;
7871 }
7872 return NULL;
d55e5bfc
RD
7873}
7874
7875
554f62e9
RD
7876SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7877 PyObject *resultobj = 0;
7878 wxStaticLine *result = 0 ;
7879
7880 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7881 {
7882 if (!wxPyCheckForApp()) SWIG_fail;
7883 PyThreadState* __tstate = wxPyBeginAllowThreads();
7884 result = (wxStaticLine *)new wxStaticLine();
7885 wxPyEndAllowThreads(__tstate);
7886 if (PyErr_Occurred()) SWIG_fail;
7887 }
7888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7889 return resultobj;
7890fail:
7891 return NULL;
7892}
7893
7894
7895SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7896 PyObject *resultobj = 0;
7897 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7898 wxWindow *arg2 = (wxWindow *) 0 ;
7899 int arg3 = (int) -1 ;
7900 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7901 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7902 wxSize const &arg5_defvalue = wxDefaultSize ;
7903 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7904 long arg6 = (long) wxLI_HORIZONTAL ;
7905 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7906 wxString *arg7 = (wxString *) &arg7_defvalue ;
7907 bool result;
7908 void *argp1 = 0 ;
7909 int res1 = 0 ;
7910 void *argp2 = 0 ;
7911 int res2 = 0 ;
7912 int val3 ;
7913 int ecode3 = 0 ;
7914 wxPoint temp4 ;
7915 wxSize temp5 ;
7916 long val6 ;
7917 int ecode6 = 0 ;
7918 bool temp7 = false ;
7919 PyObject * obj0 = 0 ;
7920 PyObject * obj1 = 0 ;
7921 PyObject * obj2 = 0 ;
7922 PyObject * obj3 = 0 ;
7923 PyObject * obj4 = 0 ;
7924 PyObject * obj5 = 0 ;
7925 PyObject * obj6 = 0 ;
7926 char * kwnames[] = {
7927 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7928 };
7929
7930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7932 if (!SWIG_IsOK(res1)) {
7933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7934 }
7935 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7936 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7937 if (!SWIG_IsOK(res2)) {
7938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7939 }
7940 arg2 = reinterpret_cast< wxWindow * >(argp2);
7941 if (obj2) {
7942 ecode3 = SWIG_AsVal_int(obj2, &val3);
7943 if (!SWIG_IsOK(ecode3)) {
7944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7945 }
7946 arg3 = static_cast< int >(val3);
7947 }
7948 if (obj3) {
d55e5bfc 7949 {
554f62e9
RD
7950 arg4 = &temp4;
7951 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7952 }
554f62e9
RD
7953 }
7954 if (obj4) {
093d3ff1 7955 {
554f62e9
RD
7956 arg5 = &temp5;
7957 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 7958 }
554f62e9
RD
7959 }
7960 if (obj5) {
7961 ecode6 = SWIG_AsVal_long(obj5, &val6);
7962 if (!SWIG_IsOK(ecode6)) {
7963 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7964 }
7965 arg6 = static_cast< long >(val6);
7966 }
7967 if (obj6) {
7968 {
7969 arg7 = wxString_in_helper(obj6);
7970 if (arg7 == NULL) SWIG_fail;
7971 temp7 = true;
7972 }
7973 }
7974 {
7975 PyThreadState* __tstate = wxPyBeginAllowThreads();
7976 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7977 wxPyEndAllowThreads(__tstate);
7978 if (PyErr_Occurred()) SWIG_fail;
7979 }
7980 {
7981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7982 }
7983 {
7984 if (temp7)
7985 delete arg7;
7986 }
7987 return resultobj;
7988fail:
7989 {
7990 if (temp7)
7991 delete arg7;
7992 }
7993 return NULL;
d55e5bfc
RD
7994}
7995
7996
554f62e9
RD
7997SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7998 PyObject *resultobj = 0;
7999 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
8000 bool result;
8001 void *argp1 = 0 ;
8002 int res1 = 0 ;
8003 PyObject *swig_obj[1] ;
8004
8005 if (!args) SWIG_fail;
8006 swig_obj[0] = args;
8007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
8008 if (!SWIG_IsOK(res1)) {
8009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
8010 }
8011 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
8012 {
8013 PyThreadState* __tstate = wxPyBeginAllowThreads();
8014 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
8015 wxPyEndAllowThreads(__tstate);
8016 if (PyErr_Occurred()) SWIG_fail;
8017 }
8018 {
8019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8020 }
8021 return resultobj;
8022fail:
8023 return NULL;
8024}
8025
8026
8027SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8028 PyObject *resultobj = 0;
8029 int result;
8030
8031 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8032 {
8033 PyThreadState* __tstate = wxPyBeginAllowThreads();
8034 result = (int)wxStaticLine::GetDefaultSize();
8035 wxPyEndAllowThreads(__tstate);
8036 if (PyErr_Occurred()) SWIG_fail;
8037 }
8038 resultobj = SWIG_From_int(static_cast< int >(result));
8039 return resultobj;
8040fail:
8041 return NULL;
8042}
8043
8044
8045SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8046 PyObject *resultobj = 0;
8047 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8048 SwigValueWrapper<wxVisualAttributes > result;
8049 int val1 ;
8050 int ecode1 = 0 ;
8051 PyObject * obj0 = 0 ;
8052 char * kwnames[] = {
8053 (char *) "variant", NULL
8054 };
8055
8056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8057 if (obj0) {
8058 ecode1 = SWIG_AsVal_int(obj0, &val1);
8059 if (!SWIG_IsOK(ecode1)) {
8060 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8061 }
8062 arg1 = static_cast< wxWindowVariant >(val1);
8063 }
8064 {
8065 if (!wxPyCheckForApp()) SWIG_fail;
8066 PyThreadState* __tstate = wxPyBeginAllowThreads();
8067 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8068 wxPyEndAllowThreads(__tstate);
8069 if (PyErr_Occurred()) SWIG_fail;
8070 }
8071 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8072 return resultobj;
8073fail:
8074 return NULL;
8075}
8076
8077
8078SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8079 PyObject *obj;
8080 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8081 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8082 return SWIG_Py_Void();
8083}
8084
8085SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8086 return SWIG_Python_InitShadowInstance(args);
8087}
8088
8089SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8090 PyObject *resultobj = 0;
8091 wxWindow *arg1 = (wxWindow *) 0 ;
8092 int arg2 = (int) -1 ;
8093 wxString const &arg3_defvalue = wxPyEmptyString ;
8094 wxString *arg3 = (wxString *) &arg3_defvalue ;
8095 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8096 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8097 wxSize const &arg5_defvalue = wxDefaultSize ;
8098 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8099 long arg6 = (long) 0 ;
8100 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8101 wxString *arg7 = (wxString *) &arg7_defvalue ;
8102 wxStaticText *result = 0 ;
8103 void *argp1 = 0 ;
8104 int res1 = 0 ;
8105 int val2 ;
8106 int ecode2 = 0 ;
8107 bool temp3 = false ;
8108 wxPoint temp4 ;
8109 wxSize temp5 ;
8110 long val6 ;
8111 int ecode6 = 0 ;
8112 bool temp7 = false ;
8113 PyObject * obj0 = 0 ;
8114 PyObject * obj1 = 0 ;
8115 PyObject * obj2 = 0 ;
8116 PyObject * obj3 = 0 ;
8117 PyObject * obj4 = 0 ;
8118 PyObject * obj5 = 0 ;
8119 PyObject * obj6 = 0 ;
8120 char * kwnames[] = {
8121 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8122 };
8123
8124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8126 if (!SWIG_IsOK(res1)) {
8127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8128 }
8129 arg1 = reinterpret_cast< wxWindow * >(argp1);
8130 if (obj1) {
8131 ecode2 = SWIG_AsVal_int(obj1, &val2);
8132 if (!SWIG_IsOK(ecode2)) {
8133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8134 }
8135 arg2 = static_cast< int >(val2);
8136 }
8137 if (obj2) {
d55e5bfc 8138 {
554f62e9
RD
8139 arg3 = wxString_in_helper(obj2);
8140 if (arg3 == NULL) SWIG_fail;
8141 temp3 = true;
d55e5bfc 8142 }
554f62e9
RD
8143 }
8144 if (obj3) {
d55e5bfc 8145 {
554f62e9
RD
8146 arg4 = &temp4;
8147 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8148 }
554f62e9
RD
8149 }
8150 if (obj4) {
093d3ff1 8151 {
554f62e9
RD
8152 arg5 = &temp5;
8153 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 8154 }
554f62e9
RD
8155 }
8156 if (obj5) {
8157 ecode6 = SWIG_AsVal_long(obj5, &val6);
8158 if (!SWIG_IsOK(ecode6)) {
8159 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8160 }
8161 arg6 = static_cast< long >(val6);
8162 }
8163 if (obj6) {
d55e5bfc 8164 {
554f62e9
RD
8165 arg7 = wxString_in_helper(obj6);
8166 if (arg7 == NULL) SWIG_fail;
8167 temp7 = true;
d55e5bfc 8168 }
554f62e9
RD
8169 }
8170 {
8171 if (!wxPyCheckForApp()) SWIG_fail;
8172 PyThreadState* __tstate = wxPyBeginAllowThreads();
8173 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8174 wxPyEndAllowThreads(__tstate);
8175 if (PyErr_Occurred()) SWIG_fail;
8176 }
8177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8178 {
8179 if (temp3)
8180 delete arg3;
8181 }
8182 {
8183 if (temp7)
8184 delete arg7;
8185 }
8186 return resultobj;
8187fail:
8188 {
8189 if (temp3)
8190 delete arg3;
8191 }
8192 {
8193 if (temp7)
8194 delete arg7;
8195 }
8196 return NULL;
d55e5bfc
RD
8197}
8198
8199
554f62e9
RD
8200SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8201 PyObject *resultobj = 0;
8202 wxStaticText *result = 0 ;
8203
8204 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8205 {
8206 if (!wxPyCheckForApp()) SWIG_fail;
8207 PyThreadState* __tstate = wxPyBeginAllowThreads();
8208 result = (wxStaticText *)new wxStaticText();
8209 wxPyEndAllowThreads(__tstate);
8210 if (PyErr_Occurred()) SWIG_fail;
8211 }
8212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8213 return resultobj;
8214fail:
8215 return NULL;
8216}
8217
8218
8219SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8220 PyObject *resultobj = 0;
8221 wxStaticText *arg1 = (wxStaticText *) 0 ;
8222 wxWindow *arg2 = (wxWindow *) 0 ;
8223 int arg3 = (int) -1 ;
8224 wxString const &arg4_defvalue = wxPyEmptyString ;
8225 wxString *arg4 = (wxString *) &arg4_defvalue ;
8226 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8227 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8228 wxSize const &arg6_defvalue = wxDefaultSize ;
8229 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8230 long arg7 = (long) 0 ;
8231 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8232 wxString *arg8 = (wxString *) &arg8_defvalue ;
8233 bool result;
8234 void *argp1 = 0 ;
8235 int res1 = 0 ;
8236 void *argp2 = 0 ;
8237 int res2 = 0 ;
8238 int val3 ;
8239 int ecode3 = 0 ;
8240 bool temp4 = false ;
8241 wxPoint temp5 ;
8242 wxSize temp6 ;
8243 long val7 ;
8244 int ecode7 = 0 ;
8245 bool temp8 = false ;
8246 PyObject * obj0 = 0 ;
8247 PyObject * obj1 = 0 ;
8248 PyObject * obj2 = 0 ;
8249 PyObject * obj3 = 0 ;
8250 PyObject * obj4 = 0 ;
8251 PyObject * obj5 = 0 ;
8252 PyObject * obj6 = 0 ;
8253 PyObject * obj7 = 0 ;
8254 char * kwnames[] = {
8255 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8256 };
8257
8258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8260 if (!SWIG_IsOK(res1)) {
8261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8262 }
8263 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8264 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8265 if (!SWIG_IsOK(res2)) {
8266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8267 }
8268 arg2 = reinterpret_cast< wxWindow * >(argp2);
8269 if (obj2) {
8270 ecode3 = SWIG_AsVal_int(obj2, &val3);
8271 if (!SWIG_IsOK(ecode3)) {
8272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8273 }
8274 arg3 = static_cast< int >(val3);
8275 }
8276 if (obj3) {
d55e5bfc 8277 {
554f62e9
RD
8278 arg4 = wxString_in_helper(obj3);
8279 if (arg4 == NULL) SWIG_fail;
8280 temp4 = true;
8281 }
8282 }
8283 if (obj4) {
8284 {
8285 arg5 = &temp5;
8286 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8287 }
554f62e9
RD
8288 }
8289 if (obj5) {
093d3ff1 8290 {
554f62e9
RD
8291 arg6 = &temp6;
8292 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 8293 }
554f62e9
RD
8294 }
8295 if (obj6) {
8296 ecode7 = SWIG_AsVal_long(obj6, &val7);
8297 if (!SWIG_IsOK(ecode7)) {
8298 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8299 }
8300 arg7 = static_cast< long >(val7);
8301 }
8302 if (obj7) {
093d3ff1 8303 {
554f62e9
RD
8304 arg8 = wxString_in_helper(obj7);
8305 if (arg8 == NULL) SWIG_fail;
8306 temp8 = true;
8307 }
8308 }
8309 {
8310 PyThreadState* __tstate = wxPyBeginAllowThreads();
8311 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8312 wxPyEndAllowThreads(__tstate);
8313 if (PyErr_Occurred()) SWIG_fail;
8314 }
8315 {
8316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8317 }
8318 {
8319 if (temp4)
8320 delete arg4;
8321 }
8322 {
8323 if (temp8)
8324 delete arg8;
8325 }
8326 return resultobj;
8327fail:
8328 {
8329 if (temp4)
8330 delete arg4;
8331 }
8332 {
8333 if (temp8)
8334 delete arg8;
8335 }
8336 return NULL;
8337}
8338
8339
8340SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8341 PyObject *resultobj = 0;
8342 wxStaticText *arg1 = (wxStaticText *) 0 ;
8343 int arg2 ;
8344 void *argp1 = 0 ;
8345 int res1 = 0 ;
8346 int val2 ;
8347 int ecode2 = 0 ;
8348 PyObject * obj0 = 0 ;
8349 PyObject * obj1 = 0 ;
8350 char * kwnames[] = {
8351 (char *) "self",(char *) "width", NULL
8352 };
8353
8354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8356 if (!SWIG_IsOK(res1)) {
8357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8358 }
8359 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8360 ecode2 = SWIG_AsVal_int(obj1, &val2);
8361 if (!SWIG_IsOK(ecode2)) {
8362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8363 }
8364 arg2 = static_cast< int >(val2);
8365 {
8366 PyThreadState* __tstate = wxPyBeginAllowThreads();
8367 (arg1)->Wrap(arg2);
8368 wxPyEndAllowThreads(__tstate);
8369 if (PyErr_Occurred()) SWIG_fail;
8370 }
8371 resultobj = SWIG_Py_Void();
8372 return resultobj;
8373fail:
8374 return NULL;
8375}
8376
8377
8378SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8379 PyObject *resultobj = 0;
8380 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8381 SwigValueWrapper<wxVisualAttributes > result;
8382 int val1 ;
8383 int ecode1 = 0 ;
8384 PyObject * obj0 = 0 ;
8385 char * kwnames[] = {
8386 (char *) "variant", NULL
8387 };
8388
8389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8390 if (obj0) {
8391 ecode1 = SWIG_AsVal_int(obj0, &val1);
8392 if (!SWIG_IsOK(ecode1)) {
8393 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8394 }
8395 arg1 = static_cast< wxWindowVariant >(val1);
8396 }
8397 {
8398 if (!wxPyCheckForApp()) SWIG_fail;
8399 PyThreadState* __tstate = wxPyBeginAllowThreads();
8400 result = wxStaticText::GetClassDefaultAttributes(arg1);
8401 wxPyEndAllowThreads(__tstate);
8402 if (PyErr_Occurred()) SWIG_fail;
8403 }
8404 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8405 return resultobj;
8406fail:
8407 return NULL;
8408}
8409
8410
8411SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8412 PyObject *obj;
8413 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8414 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8415 return SWIG_Py_Void();
8416}
8417
8418SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8419 return SWIG_Python_InitShadowInstance(args);
8420}
8421
8422SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8423 PyObject *resultobj = 0;
8424 wxWindow *arg1 = (wxWindow *) 0 ;
8425 int arg2 = (int) -1 ;
8426 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8427 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8428 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8429 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8430 wxSize const &arg5_defvalue = wxDefaultSize ;
8431 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8432 long arg6 = (long) 0 ;
8433 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8434 wxString *arg7 = (wxString *) &arg7_defvalue ;
8435 wxStaticBitmap *result = 0 ;
8436 void *argp1 = 0 ;
8437 int res1 = 0 ;
8438 int val2 ;
8439 int ecode2 = 0 ;
8440 void *argp3 = 0 ;
8441 int res3 = 0 ;
8442 wxPoint temp4 ;
8443 wxSize temp5 ;
8444 long val6 ;
8445 int ecode6 = 0 ;
8446 bool temp7 = false ;
8447 PyObject * obj0 = 0 ;
8448 PyObject * obj1 = 0 ;
8449 PyObject * obj2 = 0 ;
8450 PyObject * obj3 = 0 ;
8451 PyObject * obj4 = 0 ;
8452 PyObject * obj5 = 0 ;
8453 PyObject * obj6 = 0 ;
8454 char * kwnames[] = {
8455 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8456 };
8457
8458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8460 if (!SWIG_IsOK(res1)) {
8461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8462 }
8463 arg1 = reinterpret_cast< wxWindow * >(argp1);
8464 if (obj1) {
8465 ecode2 = SWIG_AsVal_int(obj1, &val2);
8466 if (!SWIG_IsOK(ecode2)) {
8467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8468 }
8469 arg2 = static_cast< int >(val2);
8470 }
8471 if (obj2) {
8472 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8473 if (!SWIG_IsOK(res3)) {
8474 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8475 }
8476 if (!argp3) {
8477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 8478 }
554f62e9
RD
8479 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8480 }
8481 if (obj3) {
d55e5bfc 8482 {
554f62e9
RD
8483 arg4 = &temp4;
8484 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8485 }
554f62e9
RD
8486 }
8487 if (obj4) {
d55e5bfc 8488 {
554f62e9
RD
8489 arg5 = &temp5;
8490 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8491 }
554f62e9
RD
8492 }
8493 if (obj5) {
8494 ecode6 = SWIG_AsVal_long(obj5, &val6);
8495 if (!SWIG_IsOK(ecode6)) {
8496 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8497 }
8498 arg6 = static_cast< long >(val6);
8499 }
8500 if (obj6) {
093d3ff1 8501 {
554f62e9
RD
8502 arg7 = wxString_in_helper(obj6);
8503 if (arg7 == NULL) SWIG_fail;
8504 temp7 = true;
093d3ff1 8505 }
554f62e9
RD
8506 }
8507 {
8508 if (!wxPyCheckForApp()) SWIG_fail;
8509 PyThreadState* __tstate = wxPyBeginAllowThreads();
8510 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8511 wxPyEndAllowThreads(__tstate);
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8515 {
8516 if (temp7)
8517 delete arg7;
8518 }
8519 return resultobj;
8520fail:
8521 {
8522 if (temp7)
8523 delete arg7;
8524 }
8525 return NULL;
d55e5bfc
RD
8526}
8527
8528
554f62e9
RD
8529SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8530 PyObject *resultobj = 0;
8531 wxStaticBitmap *result = 0 ;
8532
8533 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8534 {
8535 if (!wxPyCheckForApp()) SWIG_fail;
8536 PyThreadState* __tstate = wxPyBeginAllowThreads();
8537 result = (wxStaticBitmap *)new wxStaticBitmap();
8538 wxPyEndAllowThreads(__tstate);
8539 if (PyErr_Occurred()) SWIG_fail;
8540 }
8541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8542 return resultobj;
8543fail:
8544 return NULL;
8545}
8546
8547
8548SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8549 PyObject *resultobj = 0;
8550 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8551 wxWindow *arg2 = (wxWindow *) 0 ;
8552 int arg3 = (int) -1 ;
8553 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8554 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8555 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8556 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8557 wxSize const &arg6_defvalue = wxDefaultSize ;
8558 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8559 long arg7 = (long) 0 ;
8560 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8561 wxString *arg8 = (wxString *) &arg8_defvalue ;
8562 bool result;
8563 void *argp1 = 0 ;
8564 int res1 = 0 ;
8565 void *argp2 = 0 ;
8566 int res2 = 0 ;
8567 int val3 ;
8568 int ecode3 = 0 ;
8569 void *argp4 = 0 ;
8570 int res4 = 0 ;
8571 wxPoint temp5 ;
8572 wxSize temp6 ;
8573 long val7 ;
8574 int ecode7 = 0 ;
8575 bool temp8 = false ;
8576 PyObject * obj0 = 0 ;
8577 PyObject * obj1 = 0 ;
8578 PyObject * obj2 = 0 ;
8579 PyObject * obj3 = 0 ;
8580 PyObject * obj4 = 0 ;
8581 PyObject * obj5 = 0 ;
8582 PyObject * obj6 = 0 ;
8583 PyObject * obj7 = 0 ;
8584 char * kwnames[] = {
8585 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8586 };
8587
8588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8590 if (!SWIG_IsOK(res1)) {
8591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8592 }
8593 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8594 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8595 if (!SWIG_IsOK(res2)) {
8596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8597 }
8598 arg2 = reinterpret_cast< wxWindow * >(argp2);
8599 if (obj2) {
8600 ecode3 = SWIG_AsVal_int(obj2, &val3);
8601 if (!SWIG_IsOK(ecode3)) {
8602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8603 }
8604 arg3 = static_cast< int >(val3);
8605 }
8606 if (obj3) {
8607 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8608 if (!SWIG_IsOK(res4)) {
8609 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8610 }
8611 if (!argp4) {
8612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
f20a2e1f 8613 }
554f62e9
RD
8614 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8615 }
8616 if (obj4) {
f20a2e1f 8617 {
554f62e9
RD
8618 arg5 = &temp5;
8619 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 8620 }
554f62e9
RD
8621 }
8622 if (obj5) {
f20a2e1f 8623 {
554f62e9
RD
8624 arg6 = &temp6;
8625 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
f20a2e1f 8626 }
554f62e9
RD
8627 }
8628 if (obj6) {
8629 ecode7 = SWIG_AsVal_long(obj6, &val7);
8630 if (!SWIG_IsOK(ecode7)) {
8631 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8632 }
8633 arg7 = static_cast< long >(val7);
8634 }
8635 if (obj7) {
d55e5bfc 8636 {
554f62e9
RD
8637 arg8 = wxString_in_helper(obj7);
8638 if (arg8 == NULL) SWIG_fail;
8639 temp8 = true;
d55e5bfc 8640 }
554f62e9
RD
8641 }
8642 {
8643 PyThreadState* __tstate = wxPyBeginAllowThreads();
8644 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8645 wxPyEndAllowThreads(__tstate);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 {
8649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8650 }
8651 {
8652 if (temp8)
8653 delete arg8;
8654 }
8655 return resultobj;
8656fail:
8657 {
8658 if (temp8)
8659 delete arg8;
8660 }
8661 return NULL;
d55e5bfc
RD
8662}
8663
8664
554f62e9
RD
8665SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8666 PyObject *resultobj = 0;
8667 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8668 wxBitmap result;
8669 void *argp1 = 0 ;
8670 int res1 = 0 ;
8671 PyObject *swig_obj[1] ;
8672
8673 if (!args) SWIG_fail;
8674 swig_obj[0] = args;
8675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8676 if (!SWIG_IsOK(res1)) {
8677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8678 }
8679 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8680 {
8681 PyThreadState* __tstate = wxPyBeginAllowThreads();
8682 result = (arg1)->GetBitmap();
8683 wxPyEndAllowThreads(__tstate);
8684 if (PyErr_Occurred()) SWIG_fail;
8685 }
8686 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8687 return resultobj;
8688fail:
8689 return NULL;
8690}
8691
8692
8693SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8694 PyObject *resultobj = 0;
8695 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8696 wxBitmap *arg2 = 0 ;
8697 void *argp1 = 0 ;
8698 int res1 = 0 ;
8699 void *argp2 = 0 ;
8700 int res2 = 0 ;
8701 PyObject * obj0 = 0 ;
8702 PyObject * obj1 = 0 ;
8703 char * kwnames[] = {
8704 (char *) "self",(char *) "bitmap", NULL
8705 };
8706
8707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8709 if (!SWIG_IsOK(res1)) {
8710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8711 }
8712 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8713 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8714 if (!SWIG_IsOK(res2)) {
8715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8716 }
8717 if (!argp2) {
8718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8719 }
8720 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8721 {
8722 PyThreadState* __tstate = wxPyBeginAllowThreads();
8723 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8724 wxPyEndAllowThreads(__tstate);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 }
8727 resultobj = SWIG_Py_Void();
8728 return resultobj;
8729fail:
8730 return NULL;
8731}
8732
8733
8734SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8735 PyObject *resultobj = 0;
8736 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8737 wxIcon *arg2 = 0 ;
8738 void *argp1 = 0 ;
8739 int res1 = 0 ;
8740 void *argp2 = 0 ;
8741 int res2 = 0 ;
8742 PyObject * obj0 = 0 ;
8743 PyObject * obj1 = 0 ;
8744 char * kwnames[] = {
8745 (char *) "self",(char *) "icon", NULL
8746 };
8747
8748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8750 if (!SWIG_IsOK(res1)) {
8751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8752 }
8753 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8754 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8755 if (!SWIG_IsOK(res2)) {
8756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8757 }
8758 if (!argp2) {
8759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8760 }
8761 arg2 = reinterpret_cast< wxIcon * >(argp2);
8762 {
8763 PyThreadState* __tstate = wxPyBeginAllowThreads();
8764 (arg1)->SetIcon((wxIcon const &)*arg2);
8765 wxPyEndAllowThreads(__tstate);
8766 if (PyErr_Occurred()) SWIG_fail;
8767 }
8768 resultobj = SWIG_Py_Void();
8769 return resultobj;
8770fail:
8771 return NULL;
8772}
8773
8774
8775SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8776 PyObject *resultobj = 0;
8777 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8778 SwigValueWrapper<wxVisualAttributes > result;
8779 int val1 ;
8780 int ecode1 = 0 ;
8781 PyObject * obj0 = 0 ;
8782 char * kwnames[] = {
8783 (char *) "variant", NULL
8784 };
8785
8786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8787 if (obj0) {
8788 ecode1 = SWIG_AsVal_int(obj0, &val1);
8789 if (!SWIG_IsOK(ecode1)) {
8790 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8791 }
8792 arg1 = static_cast< wxWindowVariant >(val1);
8793 }
8794 {
8795 if (!wxPyCheckForApp()) SWIG_fail;
8796 PyThreadState* __tstate = wxPyBeginAllowThreads();
8797 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8798 wxPyEndAllowThreads(__tstate);
8799 if (PyErr_Occurred()) SWIG_fail;
8800 }
8801 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8802 return resultobj;
8803fail:
8804 return NULL;
d55e5bfc
RD
8805}
8806
8807
554f62e9
RD
8808SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8809 PyObject *obj;
8810 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8811 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8812 return SWIG_Py_Void();
d55e5bfc
RD
8813}
8814
554f62e9
RD
8815SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8816 return SWIG_Python_InitShadowInstance(args);
8817}
d55e5bfc 8818
554f62e9
RD
8819SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8820 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8821 return 1;
d55e5bfc
RD
8822}
8823
8824
554f62e9
RD
8825SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8826 PyObject *pyobj = 0;
8827
8828 {
d55e5bfc 8829#if wxUSE_UNICODE
554f62e9 8830 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
d55e5bfc 8831#else
554f62e9 8832 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
d55e5bfc 8833#endif
554f62e9
RD
8834 }
8835 return pyobj;
8836}
8837
8838
8839SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8840 PyObject *resultobj = 0;
8841 wxWindow *arg1 = (wxWindow *) 0 ;
8842 int arg2 = (int) -1 ;
8843 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8844 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8845 wxSize const &arg4_defvalue = wxDefaultSize ;
8846 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8847 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8848 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8849 long arg6 = (long) 0 ;
8850 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8851 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8852 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8853 wxString *arg8 = (wxString *) &arg8_defvalue ;
8854 wxListBox *result = 0 ;
8855 void *argp1 = 0 ;
8856 int res1 = 0 ;
8857 int val2 ;
8858 int ecode2 = 0 ;
8859 wxPoint temp3 ;
8860 wxSize temp4 ;
8861 bool temp5 = false ;
8862 long val6 ;
8863 int ecode6 = 0 ;
8864 void *argp7 = 0 ;
8865 int res7 = 0 ;
8866 bool temp8 = false ;
8867 PyObject * obj0 = 0 ;
8868 PyObject * obj1 = 0 ;
8869 PyObject * obj2 = 0 ;
8870 PyObject * obj3 = 0 ;
8871 PyObject * obj4 = 0 ;
8872 PyObject * obj5 = 0 ;
8873 PyObject * obj6 = 0 ;
8874 PyObject * obj7 = 0 ;
8875 char * kwnames[] = {
8876 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8877 };
8878
8879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8881 if (!SWIG_IsOK(res1)) {
8882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8883 }
8884 arg1 = reinterpret_cast< wxWindow * >(argp1);
8885 if (obj1) {
8886 ecode2 = SWIG_AsVal_int(obj1, &val2);
8887 if (!SWIG_IsOK(ecode2)) {
8888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8889 }
8890 arg2 = static_cast< int >(val2);
8891 }
8892 if (obj2) {
d55e5bfc 8893 {
554f62e9
RD
8894 arg3 = &temp3;
8895 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 8896 }
554f62e9
RD
8897 }
8898 if (obj3) {
d55e5bfc 8899 {
554f62e9
RD
8900 arg4 = &temp4;
8901 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8902 }
554f62e9
RD
8903 }
8904 if (obj4) {
d55e5bfc 8905 {
554f62e9
RD
8906 if (! PySequence_Check(obj4)) {
8907 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8908 SWIG_fail;
8909 }
8910 arg5 = new wxArrayString;
8911 temp5 = true;
8912 int i, len=PySequence_Length(obj4);
8913 for (i=0; i<len; i++) {
8914 PyObject* item = PySequence_GetItem(obj4, i);
8915 wxString* s = wxString_in_helper(item);
8916 if (PyErr_Occurred()) SWIG_fail;
8917 arg5->Add(*s);
8918 delete s;
8919 Py_DECREF(item);
8920 }
d55e5bfc 8921 }
554f62e9
RD
8922 }
8923 if (obj5) {
8924 ecode6 = SWIG_AsVal_long(obj5, &val6);
8925 if (!SWIG_IsOK(ecode6)) {
8926 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8927 }
8928 arg6 = static_cast< long >(val6);
8929 }
8930 if (obj6) {
8931 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8932 if (!SWIG_IsOK(res7)) {
8933 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8934 }
554f62e9
RD
8935 if (!argp7) {
8936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8937 }
554f62e9
RD
8938 arg7 = reinterpret_cast< wxValidator * >(argp7);
8939 }
8940 if (obj7) {
d55e5bfc 8941 {
554f62e9
RD
8942 arg8 = wxString_in_helper(obj7);
8943 if (arg8 == NULL) SWIG_fail;
8944 temp8 = true;
d55e5bfc 8945 }
554f62e9
RD
8946 }
8947 {
8948 if (!wxPyCheckForApp()) SWIG_fail;
8949 PyThreadState* __tstate = wxPyBeginAllowThreads();
8950 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8951 wxPyEndAllowThreads(__tstate);
8952 if (PyErr_Occurred()) SWIG_fail;
8953 }
8954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8955 {
8956 if (temp5) delete arg5;
8957 }
8958 {
8959 if (temp8)
8960 delete arg8;
8961 }
8962 return resultobj;
8963fail:
8964 {
8965 if (temp5) delete arg5;
8966 }
8967 {
8968 if (temp8)
8969 delete arg8;
8970 }
8971 return NULL;
d55e5bfc
RD
8972}
8973
8974
554f62e9
RD
8975SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8976 PyObject *resultobj = 0;
8977 wxListBox *result = 0 ;
8978
8979 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8980 {
8981 if (!wxPyCheckForApp()) SWIG_fail;
8982 PyThreadState* __tstate = wxPyBeginAllowThreads();
8983 result = (wxListBox *)new wxListBox();
8984 wxPyEndAllowThreads(__tstate);
8985 if (PyErr_Occurred()) SWIG_fail;
8986 }
8987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8988 return resultobj;
8989fail:
8990 return NULL;
8991}
8992
8993
8994SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8995 PyObject *resultobj = 0;
8996 wxListBox *arg1 = (wxListBox *) 0 ;
8997 wxWindow *arg2 = (wxWindow *) 0 ;
8998 int arg3 = (int) -1 ;
8999 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9000 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9001 wxSize const &arg5_defvalue = wxDefaultSize ;
9002 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9003 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
9004 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
9005 long arg7 = (long) 0 ;
9006 wxValidator const &arg8_defvalue = wxDefaultValidator ;
9007 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
9008 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
9009 wxString *arg9 = (wxString *) &arg9_defvalue ;
9010 bool result;
9011 void *argp1 = 0 ;
9012 int res1 = 0 ;
9013 void *argp2 = 0 ;
9014 int res2 = 0 ;
9015 int val3 ;
9016 int ecode3 = 0 ;
9017 wxPoint temp4 ;
9018 wxSize temp5 ;
9019 bool temp6 = false ;
9020 long val7 ;
9021 int ecode7 = 0 ;
9022 void *argp8 = 0 ;
9023 int res8 = 0 ;
9024 bool temp9 = false ;
9025 PyObject * obj0 = 0 ;
9026 PyObject * obj1 = 0 ;
9027 PyObject * obj2 = 0 ;
9028 PyObject * obj3 = 0 ;
9029 PyObject * obj4 = 0 ;
9030 PyObject * obj5 = 0 ;
9031 PyObject * obj6 = 0 ;
9032 PyObject * obj7 = 0 ;
9033 PyObject * obj8 = 0 ;
9034 char * kwnames[] = {
9035 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9036 };
9037
9038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9040 if (!SWIG_IsOK(res1)) {
9041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9042 }
9043 arg1 = reinterpret_cast< wxListBox * >(argp1);
9044 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9045 if (!SWIG_IsOK(res2)) {
9046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9047 }
9048 arg2 = reinterpret_cast< wxWindow * >(argp2);
9049 if (obj2) {
9050 ecode3 = SWIG_AsVal_int(obj2, &val3);
9051 if (!SWIG_IsOK(ecode3)) {
9052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9053 }
9054 arg3 = static_cast< int >(val3);
9055 }
9056 if (obj3) {
d55e5bfc 9057 {
554f62e9
RD
9058 arg4 = &temp4;
9059 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 9060 }
554f62e9
RD
9061 }
9062 if (obj4) {
d55e5bfc 9063 {
554f62e9
RD
9064 arg5 = &temp5;
9065 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 9066 }
554f62e9
RD
9067 }
9068 if (obj5) {
d55e5bfc 9069 {
554f62e9
RD
9070 if (! PySequence_Check(obj5)) {
9071 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9072 SWIG_fail;
9073 }
9074 arg6 = new wxArrayString;
9075 temp6 = true;
9076 int i, len=PySequence_Length(obj5);
9077 for (i=0; i<len; i++) {
9078 PyObject* item = PySequence_GetItem(obj5, i);
9079 wxString* s = wxString_in_helper(item);
9080 if (PyErr_Occurred()) SWIG_fail;
9081 arg6->Add(*s);
9082 delete s;
9083 Py_DECREF(item);
9084 }
d55e5bfc 9085 }
554f62e9
RD
9086 }
9087 if (obj6) {
9088 ecode7 = SWIG_AsVal_long(obj6, &val7);
9089 if (!SWIG_IsOK(ecode7)) {
9090 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9091 }
9092 arg7 = static_cast< long >(val7);
9093 }
9094 if (obj7) {
9095 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9096 if (!SWIG_IsOK(res8)) {
9097 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 9098 }
554f62e9
RD
9099 if (!argp8) {
9100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
f20a2e1f 9101 }
554f62e9
RD
9102 arg8 = reinterpret_cast< wxValidator * >(argp8);
9103 }
9104 if (obj8) {
f20a2e1f 9105 {
554f62e9
RD
9106 arg9 = wxString_in_helper(obj8);
9107 if (arg9 == NULL) SWIG_fail;
9108 temp9 = true;
f20a2e1f 9109 }
554f62e9
RD
9110 }
9111 {
9112 PyThreadState* __tstate = wxPyBeginAllowThreads();
9113 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9114 wxPyEndAllowThreads(__tstate);
9115 if (PyErr_Occurred()) SWIG_fail;
9116 }
9117 {
9118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9119 }
9120 {
9121 if (temp6) delete arg6;
9122 }
9123 {
9124 if (temp9)
9125 delete arg9;
9126 }
9127 return resultobj;
9128fail:
9129 {
9130 if (temp6) delete arg6;
9131 }
9132 {
9133 if (temp9)
9134 delete arg9;
9135 }
9136 return NULL;
9137}
9138
9139
9140SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9141 PyObject *resultobj = 0;
9142 wxListBox *arg1 = (wxListBox *) 0 ;
9143 wxString *arg2 = 0 ;
9144 int arg3 ;
9145 PyObject *arg4 = (PyObject *) NULL ;
9146 void *argp1 = 0 ;
9147 int res1 = 0 ;
9148 bool temp2 = false ;
9149 int val3 ;
9150 int ecode3 = 0 ;
9151 PyObject * obj0 = 0 ;
9152 PyObject * obj1 = 0 ;
9153 PyObject * obj2 = 0 ;
9154 PyObject * obj3 = 0 ;
9155 char * kwnames[] = {
9156 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9157 };
9158
9159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9161 if (!SWIG_IsOK(res1)) {
9162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9163 }
9164 arg1 = reinterpret_cast< wxListBox * >(argp1);
9165 {
9166 arg2 = wxString_in_helper(obj1);
9167 if (arg2 == NULL) SWIG_fail;
9168 temp2 = true;
9169 }
9170 ecode3 = SWIG_AsVal_int(obj2, &val3);
9171 if (!SWIG_IsOK(ecode3)) {
9172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9173 }
9174 arg3 = static_cast< int >(val3);
9175 if (obj3) {
9176 arg4 = obj3;
9177 }
9178 {
9179 PyThreadState* __tstate = wxPyBeginAllowThreads();
9180 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9181 wxPyEndAllowThreads(__tstate);
9182 if (PyErr_Occurred()) SWIG_fail;
9183 }
9184 resultobj = SWIG_Py_Void();
9185 {
9186 if (temp2)
9187 delete arg2;
9188 }
9189 return resultobj;
9190fail:
9191 {
9192 if (temp2)
9193 delete arg2;
9194 }
9195 return NULL;
9196}
9197
9198
9199SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9200 PyObject *resultobj = 0;
9201 wxListBox *arg1 = (wxListBox *) 0 ;
9202 wxArrayString *arg2 = 0 ;
50f151d7 9203 unsigned int arg3 ;
554f62e9
RD
9204 void *argp1 = 0 ;
9205 int res1 = 0 ;
9206 bool temp2 = false ;
50f151d7 9207 unsigned int val3 ;
554f62e9
RD
9208 int ecode3 = 0 ;
9209 PyObject * obj0 = 0 ;
9210 PyObject * obj1 = 0 ;
9211 PyObject * obj2 = 0 ;
9212 char * kwnames[] = {
9213 (char *) "self",(char *) "items",(char *) "pos", NULL
9214 };
9215
9216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9218 if (!SWIG_IsOK(res1)) {
9219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9220 }
9221 arg1 = reinterpret_cast< wxListBox * >(argp1);
9222 {
9223 if (! PySequence_Check(obj1)) {
9224 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9225 SWIG_fail;
9226 }
9227 arg2 = new wxArrayString;
9228 temp2 = true;
9229 int i, len=PySequence_Length(obj1);
9230 for (i=0; i<len; i++) {
9231 PyObject* item = PySequence_GetItem(obj1, i);
9232 wxString* s = wxString_in_helper(item);
9233 if (PyErr_Occurred()) SWIG_fail;
9234 arg2->Add(*s);
9235 delete s;
9236 Py_DECREF(item);
f20a2e1f 9237 }
554f62e9 9238 }
50f151d7 9239 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
554f62e9 9240 if (!SWIG_IsOK(ecode3)) {
50f151d7 9241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
554f62e9 9242 }
50f151d7 9243 arg3 = static_cast< unsigned int >(val3);
554f62e9
RD
9244 {
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9247 wxPyEndAllowThreads(__tstate);
9248 if (PyErr_Occurred()) SWIG_fail;
9249 }
9250 resultobj = SWIG_Py_Void();
9251 {
9252 if (temp2) delete arg2;
9253 }
9254 return resultobj;
9255fail:
9256 {
9257 if (temp2) delete arg2;
9258 }
9259 return NULL;
f20a2e1f
RD
9260}
9261
9262
554f62e9
RD
9263SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9264 PyObject *resultobj = 0;
9265 wxListBox *arg1 = (wxListBox *) 0 ;
9266 wxArrayString *arg2 = 0 ;
9267 void *argp1 = 0 ;
9268 int res1 = 0 ;
9269 bool temp2 = false ;
9270 PyObject * obj0 = 0 ;
9271 PyObject * obj1 = 0 ;
9272 char * kwnames[] = {
9273 (char *) "self",(char *) "items", NULL
9274 };
9275
9276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9278 if (!SWIG_IsOK(res1)) {
9279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9280 }
9281 arg1 = reinterpret_cast< wxListBox * >(argp1);
9282 {
9283 if (! PySequence_Check(obj1)) {
9284 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9285 SWIG_fail;
9286 }
9287 arg2 = new wxArrayString;
9288 temp2 = true;
9289 int i, len=PySequence_Length(obj1);
9290 for (i=0; i<len; i++) {
9291 PyObject* item = PySequence_GetItem(obj1, i);
9292 wxString* s = wxString_in_helper(item);
9293 if (PyErr_Occurred()) SWIG_fail;
9294 arg2->Add(*s);
9295 delete s;
9296 Py_DECREF(item);
d55e5bfc 9297 }
554f62e9
RD
9298 }
9299 {
9300 PyThreadState* __tstate = wxPyBeginAllowThreads();
9301 (arg1)->Set((wxArrayString const &)*arg2);
9302 wxPyEndAllowThreads(__tstate);
9303 if (PyErr_Occurred()) SWIG_fail;
9304 }
9305 resultobj = SWIG_Py_Void();
9306 {
9307 if (temp2) delete arg2;
9308 }
9309 return resultobj;
9310fail:
9311 {
9312 if (temp2) delete arg2;
9313 }
9314 return NULL;
9315}
9316
9317
9318SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9319 PyObject *resultobj = 0;
9320 wxListBox *arg1 = (wxListBox *) 0 ;
9321 int arg2 ;
9322 bool result;
9323 void *argp1 = 0 ;
9324 int res1 = 0 ;
9325 int val2 ;
9326 int ecode2 = 0 ;
9327 PyObject * obj0 = 0 ;
9328 PyObject * obj1 = 0 ;
9329 char * kwnames[] = {
9330 (char *) "self",(char *) "n", NULL
9331 };
9332
9333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9335 if (!SWIG_IsOK(res1)) {
9336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9337 }
9338 arg1 = reinterpret_cast< wxListBox * >(argp1);
9339 ecode2 = SWIG_AsVal_int(obj1, &val2);
9340 if (!SWIG_IsOK(ecode2)) {
9341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9342 }
9343 arg2 = static_cast< int >(val2);
9344 {
9345 PyThreadState* __tstate = wxPyBeginAllowThreads();
9346 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9347 wxPyEndAllowThreads(__tstate);
9348 if (PyErr_Occurred()) SWIG_fail;
9349 }
9350 {
9351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9352 }
9353 return resultobj;
9354fail:
9355 return NULL;
9356}
9357
9358
9359SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9360 PyObject *resultobj = 0;
9361 wxListBox *arg1 = (wxListBox *) 0 ;
9362 int arg2 ;
9363 bool arg3 = (bool) true ;
9364 void *argp1 = 0 ;
9365 int res1 = 0 ;
9366 int val2 ;
9367 int ecode2 = 0 ;
9368 bool val3 ;
9369 int ecode3 = 0 ;
9370 PyObject * obj0 = 0 ;
9371 PyObject * obj1 = 0 ;
9372 PyObject * obj2 = 0 ;
9373 char * kwnames[] = {
9374 (char *) "self",(char *) "n",(char *) "select", NULL
9375 };
9376
9377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9379 if (!SWIG_IsOK(res1)) {
9380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9381 }
9382 arg1 = reinterpret_cast< wxListBox * >(argp1);
9383 ecode2 = SWIG_AsVal_int(obj1, &val2);
9384 if (!SWIG_IsOK(ecode2)) {
9385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9386 }
9387 arg2 = static_cast< int >(val2);
9388 if (obj2) {
9389 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9390 if (!SWIG_IsOK(ecode3)) {
9391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9392 }
9393 arg3 = static_cast< bool >(val3);
9394 }
9395 {
9396 PyThreadState* __tstate = wxPyBeginAllowThreads();
9397 (arg1)->SetSelection(arg2,arg3);
9398 wxPyEndAllowThreads(__tstate);
9399 if (PyErr_Occurred()) SWIG_fail;
9400 }
9401 resultobj = SWIG_Py_Void();
9402 return resultobj;
9403fail:
9404 return NULL;
9405}
9406
9407
9408SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9409 PyObject *resultobj = 0;
9410 wxListBox *arg1 = (wxListBox *) 0 ;
9411 int arg2 ;
9412 void *argp1 = 0 ;
9413 int res1 = 0 ;
9414 int val2 ;
9415 int ecode2 = 0 ;
9416 PyObject * obj0 = 0 ;
9417 PyObject * obj1 = 0 ;
9418 char * kwnames[] = {
9419 (char *) "self",(char *) "n", NULL
9420 };
9421
9422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9424 if (!SWIG_IsOK(res1)) {
9425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9426 }
9427 arg1 = reinterpret_cast< wxListBox * >(argp1);
9428 ecode2 = SWIG_AsVal_int(obj1, &val2);
9429 if (!SWIG_IsOK(ecode2)) {
9430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9431 }
9432 arg2 = static_cast< int >(val2);
9433 {
9434 PyThreadState* __tstate = wxPyBeginAllowThreads();
9435 (arg1)->Select(arg2);
9436 wxPyEndAllowThreads(__tstate);
9437 if (PyErr_Occurred()) SWIG_fail;
9438 }
9439 resultobj = SWIG_Py_Void();
9440 return resultobj;
9441fail:
9442 return NULL;
9443}
9444
9445
9446SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9447 PyObject *resultobj = 0;
9448 wxListBox *arg1 = (wxListBox *) 0 ;
9449 int arg2 ;
9450 void *argp1 = 0 ;
9451 int res1 = 0 ;
9452 int val2 ;
9453 int ecode2 = 0 ;
9454 PyObject * obj0 = 0 ;
9455 PyObject * obj1 = 0 ;
9456 char * kwnames[] = {
9457 (char *) "self",(char *) "n", NULL
9458 };
9459
9460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9462 if (!SWIG_IsOK(res1)) {
9463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9464 }
9465 arg1 = reinterpret_cast< wxListBox * >(argp1);
9466 ecode2 = SWIG_AsVal_int(obj1, &val2);
9467 if (!SWIG_IsOK(ecode2)) {
9468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9469 }
9470 arg2 = static_cast< int >(val2);
9471 {
9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9473 (arg1)->Deselect(arg2);
9474 wxPyEndAllowThreads(__tstate);
9475 if (PyErr_Occurred()) SWIG_fail;
9476 }
9477 resultobj = SWIG_Py_Void();
9478 return resultobj;
9479fail:
9480 return NULL;
9481}
9482
9483
9484SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9485 PyObject *resultobj = 0;
9486 wxListBox *arg1 = (wxListBox *) 0 ;
9487 int arg2 = (int) -1 ;
9488 void *argp1 = 0 ;
9489 int res1 = 0 ;
9490 int val2 ;
9491 int ecode2 = 0 ;
9492 PyObject * obj0 = 0 ;
9493 PyObject * obj1 = 0 ;
9494 char * kwnames[] = {
9495 (char *) "self",(char *) "itemToLeaveSelected", NULL
9496 };
9497
9498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9500 if (!SWIG_IsOK(res1)) {
9501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9502 }
9503 arg1 = reinterpret_cast< wxListBox * >(argp1);
9504 if (obj1) {
9505 ecode2 = SWIG_AsVal_int(obj1, &val2);
9506 if (!SWIG_IsOK(ecode2)) {
9507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9508 }
9509 arg2 = static_cast< int >(val2);
9510 }
9511 {
9512 PyThreadState* __tstate = wxPyBeginAllowThreads();
9513 (arg1)->DeselectAll(arg2);
9514 wxPyEndAllowThreads(__tstate);
9515 if (PyErr_Occurred()) SWIG_fail;
9516 }
9517 resultobj = SWIG_Py_Void();
9518 return resultobj;
9519fail:
9520 return NULL;
9521}
9522
9523
9524SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9525 PyObject *resultobj = 0;
9526 wxListBox *arg1 = (wxListBox *) 0 ;
9527 wxString *arg2 = 0 ;
9528 bool arg3 = (bool) true ;
9529 bool result;
9530 void *argp1 = 0 ;
9531 int res1 = 0 ;
9532 bool temp2 = false ;
9533 bool val3 ;
9534 int ecode3 = 0 ;
9535 PyObject * obj0 = 0 ;
9536 PyObject * obj1 = 0 ;
9537 PyObject * obj2 = 0 ;
9538 char * kwnames[] = {
9539 (char *) "self",(char *) "s",(char *) "select", NULL
9540 };
9541
9542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9544 if (!SWIG_IsOK(res1)) {
9545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9546 }
9547 arg1 = reinterpret_cast< wxListBox * >(argp1);
9548 {
9549 arg2 = wxString_in_helper(obj1);
9550 if (arg2 == NULL) SWIG_fail;
9551 temp2 = true;
9552 }
9553 if (obj2) {
9554 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9555 if (!SWIG_IsOK(ecode3)) {
9556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9557 }
9558 arg3 = static_cast< bool >(val3);
9559 }
9560 {
9561 PyThreadState* __tstate = wxPyBeginAllowThreads();
9562 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9563 wxPyEndAllowThreads(__tstate);
9564 if (PyErr_Occurred()) SWIG_fail;
9565 }
9566 {
9567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9568 }
9569 {
9570 if (temp2)
9571 delete arg2;
9572 }
9573 return resultobj;
9574fail:
9575 {
9576 if (temp2)
9577 delete arg2;
9578 }
9579 return NULL;
d55e5bfc
RD
9580}
9581
9582
554f62e9
RD
9583SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9584 PyObject *resultobj = 0;
9585 wxListBox *arg1 = (wxListBox *) 0 ;
9586 PyObject *result = 0 ;
9587 void *argp1 = 0 ;
9588 int res1 = 0 ;
9589 PyObject *swig_obj[1] ;
9590
9591 if (!args) SWIG_fail;
9592 swig_obj[0] = args;
9593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9594 if (!SWIG_IsOK(res1)) {
9595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9596 }
9597 arg1 = reinterpret_cast< wxListBox * >(argp1);
9598 {
9599 PyThreadState* __tstate = wxPyBeginAllowThreads();
9600 result = (PyObject *)wxListBox_GetSelections(arg1);
9601 wxPyEndAllowThreads(__tstate);
9602 if (PyErr_Occurred()) SWIG_fail;
9603 }
9604 resultobj = result;
9605 return resultobj;
9606fail:
9607 return NULL;
9608}
9609
9610
9611SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9612 PyObject *resultobj = 0;
9613 wxListBox *arg1 = (wxListBox *) 0 ;
9614 int arg2 ;
9615 void *argp1 = 0 ;
9616 int res1 = 0 ;
9617 int val2 ;
9618 int ecode2 = 0 ;
9619 PyObject * obj0 = 0 ;
9620 PyObject * obj1 = 0 ;
9621 char * kwnames[] = {
9622 (char *) "self",(char *) "n", NULL
9623 };
9624
9625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9627 if (!SWIG_IsOK(res1)) {
9628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9629 }
9630 arg1 = reinterpret_cast< wxListBox * >(argp1);
9631 ecode2 = SWIG_AsVal_int(obj1, &val2);
9632 if (!SWIG_IsOK(ecode2)) {
9633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9634 }
9635 arg2 = static_cast< int >(val2);
9636 {
9637 PyThreadState* __tstate = wxPyBeginAllowThreads();
9638 (arg1)->SetFirstItem(arg2);
9639 wxPyEndAllowThreads(__tstate);
9640 if (PyErr_Occurred()) SWIG_fail;
9641 }
9642 resultobj = SWIG_Py_Void();
9643 return resultobj;
9644fail:
9645 return NULL;
9646}
9647
9648
9649SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9650 PyObject *resultobj = 0;
9651 wxListBox *arg1 = (wxListBox *) 0 ;
9652 wxString *arg2 = 0 ;
9653 void *argp1 = 0 ;
9654 int res1 = 0 ;
9655 bool temp2 = false ;
9656 PyObject * obj0 = 0 ;
9657 PyObject * obj1 = 0 ;
9658 char * kwnames[] = {
9659 (char *) "self",(char *) "s", NULL
9660 };
9661
9662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9664 if (!SWIG_IsOK(res1)) {
9665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9666 }
9667 arg1 = reinterpret_cast< wxListBox * >(argp1);
9668 {
9669 arg2 = wxString_in_helper(obj1);
9670 if (arg2 == NULL) SWIG_fail;
9671 temp2 = true;
9672 }
9673 {
9674 PyThreadState* __tstate = wxPyBeginAllowThreads();
9675 (arg1)->SetFirstItem((wxString const &)*arg2);
9676 wxPyEndAllowThreads(__tstate);
9677 if (PyErr_Occurred()) SWIG_fail;
9678 }
9679 resultobj = SWIG_Py_Void();
9680 {
9681 if (temp2)
9682 delete arg2;
9683 }
9684 return resultobj;
9685fail:
9686 {
9687 if (temp2)
9688 delete arg2;
9689 }
9690 return NULL;
9691}
9692
9693
9694SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9695 PyObject *resultobj = 0;
9696 wxListBox *arg1 = (wxListBox *) 0 ;
9697 int arg2 ;
9698 void *argp1 = 0 ;
9699 int res1 = 0 ;
9700 int val2 ;
9701 int ecode2 = 0 ;
9702 PyObject * obj0 = 0 ;
9703 PyObject * obj1 = 0 ;
9704 char * kwnames[] = {
9705 (char *) "self",(char *) "n", NULL
9706 };
9707
9708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9710 if (!SWIG_IsOK(res1)) {
9711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9712 }
9713 arg1 = reinterpret_cast< wxListBox * >(argp1);
9714 ecode2 = SWIG_AsVal_int(obj1, &val2);
9715 if (!SWIG_IsOK(ecode2)) {
9716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9717 }
9718 arg2 = static_cast< int >(val2);
9719 {
9720 PyThreadState* __tstate = wxPyBeginAllowThreads();
9721 (arg1)->EnsureVisible(arg2);
9722 wxPyEndAllowThreads(__tstate);
9723 if (PyErr_Occurred()) SWIG_fail;
9724 }
9725 resultobj = SWIG_Py_Void();
9726 return resultobj;
9727fail:
9728 return NULL;
9729}
9730
9731
9732SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9733 PyObject *resultobj = 0;
9734 wxListBox *arg1 = (wxListBox *) 0 ;
9735 wxString *arg2 = 0 ;
9736 void *argp1 = 0 ;
9737 int res1 = 0 ;
9738 bool temp2 = false ;
9739 PyObject * obj0 = 0 ;
9740 PyObject * obj1 = 0 ;
9741 char * kwnames[] = {
9742 (char *) "self",(char *) "s", NULL
9743 };
9744
9745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9747 if (!SWIG_IsOK(res1)) {
9748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9749 }
9750 arg1 = reinterpret_cast< wxListBox * >(argp1);
9751 {
9752 arg2 = wxString_in_helper(obj1);
9753 if (arg2 == NULL) SWIG_fail;
9754 temp2 = true;
9755 }
9756 {
9757 PyThreadState* __tstate = wxPyBeginAllowThreads();
9758 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9759 wxPyEndAllowThreads(__tstate);
9760 if (PyErr_Occurred()) SWIG_fail;
9761 }
9762 resultobj = SWIG_Py_Void();
9763 {
9764 if (temp2)
9765 delete arg2;
9766 }
9767 return resultobj;
9768fail:
9769 {
9770 if (temp2)
9771 delete arg2;
9772 }
9773 return NULL;
d55e5bfc
RD
9774}
9775
9776
554f62e9
RD
9777SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9778 PyObject *resultobj = 0;
9779 wxListBox *arg1 = (wxListBox *) 0 ;
9780 bool result;
9781 void *argp1 = 0 ;
9782 int res1 = 0 ;
9783 PyObject *swig_obj[1] ;
9784
9785 if (!args) SWIG_fail;
9786 swig_obj[0] = args;
9787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9788 if (!SWIG_IsOK(res1)) {
9789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9790 }
9791 arg1 = reinterpret_cast< wxListBox * >(argp1);
9792 {
9793 PyThreadState* __tstate = wxPyBeginAllowThreads();
9794 result = (bool)((wxListBox const *)arg1)->IsSorted();
9795 wxPyEndAllowThreads(__tstate);
9796 if (PyErr_Occurred()) SWIG_fail;
9797 }
9798 {
9799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9800 }
9801 return resultobj;
9802fail:
9803 return NULL;
9804}
9805
9806
9807SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9808 PyObject *resultobj = 0;
9809 wxListBox *arg1 = (wxListBox *) 0 ;
9810 wxPoint *arg2 = 0 ;
9811 int result;
9812 void *argp1 = 0 ;
9813 int res1 = 0 ;
9814 wxPoint temp2 ;
9815 PyObject * obj0 = 0 ;
9816 PyObject * obj1 = 0 ;
9817 char * kwnames[] = {
9818 (char *) "self",(char *) "pt", NULL
9819 };
9820
9821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9823 if (!SWIG_IsOK(res1)) {
9824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9825 }
9826 arg1 = reinterpret_cast< wxListBox * >(argp1);
9827 {
9828 arg2 = &temp2;
9829 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9830 }
9831 {
9832 PyThreadState* __tstate = wxPyBeginAllowThreads();
9833 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9834 wxPyEndAllowThreads(__tstate);
9835 if (PyErr_Occurred()) SWIG_fail;
9836 }
9837 resultobj = SWIG_From_int(static_cast< int >(result));
9838 return resultobj;
9839fail:
9840 return NULL;
9841}
9842
9843
9844SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9845 PyObject *resultobj = 0;
9846 wxListBox *arg1 = (wxListBox *) 0 ;
9847 int arg2 ;
9848 wxColour *arg3 = 0 ;
9849 void *argp1 = 0 ;
9850 int res1 = 0 ;
9851 int val2 ;
9852 int ecode2 = 0 ;
9853 wxColour temp3 ;
9854 PyObject * obj0 = 0 ;
9855 PyObject * obj1 = 0 ;
9856 PyObject * obj2 = 0 ;
9857 char * kwnames[] = {
9858 (char *) "self",(char *) "item",(char *) "c", NULL
9859 };
9860
9861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9863 if (!SWIG_IsOK(res1)) {
9864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9865 }
9866 arg1 = reinterpret_cast< wxListBox * >(argp1);
9867 ecode2 = SWIG_AsVal_int(obj1, &val2);
9868 if (!SWIG_IsOK(ecode2)) {
9869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9870 }
9871 arg2 = static_cast< int >(val2);
9872 {
9873 arg3 = &temp3;
9874 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9875 }
9876 {
9877 PyThreadState* __tstate = wxPyBeginAllowThreads();
9878 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9879 wxPyEndAllowThreads(__tstate);
9880 if (PyErr_Occurred()) SWIG_fail;
9881 }
9882 resultobj = SWIG_Py_Void();
9883 return resultobj;
9884fail:
9885 return NULL;
9886}
9887
9888
9889SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9890 PyObject *resultobj = 0;
9891 wxListBox *arg1 = (wxListBox *) 0 ;
9892 int arg2 ;
9893 wxColour *arg3 = 0 ;
9894 void *argp1 = 0 ;
9895 int res1 = 0 ;
9896 int val2 ;
9897 int ecode2 = 0 ;
9898 wxColour temp3 ;
9899 PyObject * obj0 = 0 ;
9900 PyObject * obj1 = 0 ;
9901 PyObject * obj2 = 0 ;
9902 char * kwnames[] = {
9903 (char *) "self",(char *) "item",(char *) "c", NULL
9904 };
9905
9906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9908 if (!SWIG_IsOK(res1)) {
9909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9910 }
9911 arg1 = reinterpret_cast< wxListBox * >(argp1);
9912 ecode2 = SWIG_AsVal_int(obj1, &val2);
9913 if (!SWIG_IsOK(ecode2)) {
9914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9915 }
9916 arg2 = static_cast< int >(val2);
9917 {
9918 arg3 = &temp3;
9919 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9920 }
9921 {
9922 PyThreadState* __tstate = wxPyBeginAllowThreads();
9923 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) SWIG_fail;
9926 }
9927 resultobj = SWIG_Py_Void();
9928 return resultobj;
9929fail:
9930 return NULL;
9931}
9932
9933
9934SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9935 PyObject *resultobj = 0;
9936 wxListBox *arg1 = (wxListBox *) 0 ;
9937 int arg2 ;
9938 wxFont *arg3 = 0 ;
9939 void *argp1 = 0 ;
9940 int res1 = 0 ;
9941 int val2 ;
9942 int ecode2 = 0 ;
9943 void *argp3 = 0 ;
9944 int res3 = 0 ;
9945 PyObject * obj0 = 0 ;
9946 PyObject * obj1 = 0 ;
9947 PyObject * obj2 = 0 ;
9948 char * kwnames[] = {
9949 (char *) "self",(char *) "item",(char *) "f", NULL
9950 };
9951
9952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9954 if (!SWIG_IsOK(res1)) {
9955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9956 }
9957 arg1 = reinterpret_cast< wxListBox * >(argp1);
9958 ecode2 = SWIG_AsVal_int(obj1, &val2);
9959 if (!SWIG_IsOK(ecode2)) {
9960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9961 }
9962 arg2 = static_cast< int >(val2);
9963 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9964 if (!SWIG_IsOK(res3)) {
9965 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9966 }
9967 if (!argp3) {
9968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9969 }
9970 arg3 = reinterpret_cast< wxFont * >(argp3);
9971 {
9972 PyThreadState* __tstate = wxPyBeginAllowThreads();
9973 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9974 wxPyEndAllowThreads(__tstate);
9975 if (PyErr_Occurred()) SWIG_fail;
9976 }
9977 resultobj = SWIG_Py_Void();
9978 return resultobj;
9979fail:
9980 return NULL;
9981}
9982
9983
9984SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9985 PyObject *resultobj = 0;
9986 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9987 SwigValueWrapper<wxVisualAttributes > result;
9988 int val1 ;
9989 int ecode1 = 0 ;
9990 PyObject * obj0 = 0 ;
9991 char * kwnames[] = {
9992 (char *) "variant", NULL
9993 };
9994
9995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9996 if (obj0) {
9997 ecode1 = SWIG_AsVal_int(obj0, &val1);
9998 if (!SWIG_IsOK(ecode1)) {
9999 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
10000 }
10001 arg1 = static_cast< wxWindowVariant >(val1);
10002 }
10003 {
10004 if (!wxPyCheckForApp()) SWIG_fail;
10005 PyThreadState* __tstate = wxPyBeginAllowThreads();
10006 result = wxListBox::GetClassDefaultAttributes(arg1);
10007 wxPyEndAllowThreads(__tstate);
10008 if (PyErr_Occurred()) SWIG_fail;
10009 }
10010 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
10011 return resultobj;
10012fail:
10013 return NULL;
10014}
10015
10016
10017SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10018 PyObject *obj;
10019 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10020 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
10021 return SWIG_Py_Void();
10022}
10023
10024SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10025 return SWIG_Python_InitShadowInstance(args);
10026}
10027
10028SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10029 PyObject *resultobj = 0;
10030 wxWindow *arg1 = (wxWindow *) 0 ;
10031 int arg2 = (int) -1 ;
10032 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10033 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10034 wxSize const &arg4_defvalue = wxDefaultSize ;
10035 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10036 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10037 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10038 long arg6 = (long) 0 ;
10039 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10040 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10041 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10042 wxString *arg8 = (wxString *) &arg8_defvalue ;
10043 wxCheckListBox *result = 0 ;
10044 void *argp1 = 0 ;
10045 int res1 = 0 ;
10046 int val2 ;
10047 int ecode2 = 0 ;
10048 wxPoint temp3 ;
10049 wxSize temp4 ;
10050 bool temp5 = false ;
10051 long val6 ;
10052 int ecode6 = 0 ;
10053 void *argp7 = 0 ;
10054 int res7 = 0 ;
10055 bool temp8 = false ;
10056 PyObject * obj0 = 0 ;
10057 PyObject * obj1 = 0 ;
10058 PyObject * obj2 = 0 ;
10059 PyObject * obj3 = 0 ;
10060 PyObject * obj4 = 0 ;
10061 PyObject * obj5 = 0 ;
10062 PyObject * obj6 = 0 ;
10063 PyObject * obj7 = 0 ;
10064 char * kwnames[] = {
10065 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10066 };
10067
10068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10070 if (!SWIG_IsOK(res1)) {
10071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10072 }
10073 arg1 = reinterpret_cast< wxWindow * >(argp1);
10074 if (obj1) {
10075 ecode2 = SWIG_AsVal_int(obj1, &val2);
10076 if (!SWIG_IsOK(ecode2)) {
10077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10078 }
10079 arg2 = static_cast< int >(val2);
10080 }
10081 if (obj2) {
d55e5bfc 10082 {
554f62e9
RD
10083 arg3 = &temp3;
10084 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 10085 }
554f62e9
RD
10086 }
10087 if (obj3) {
d55e5bfc 10088 {
554f62e9
RD
10089 arg4 = &temp4;
10090 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10091 }
554f62e9
RD
10092 }
10093 if (obj4) {
d55e5bfc 10094 {
554f62e9
RD
10095 if (! PySequence_Check(obj4)) {
10096 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10097 SWIG_fail;
10098 }
10099 arg5 = new wxArrayString;
10100 temp5 = true;
10101 int i, len=PySequence_Length(obj4);
10102 for (i=0; i<len; i++) {
10103 PyObject* item = PySequence_GetItem(obj4, i);
10104 wxString* s = wxString_in_helper(item);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 arg5->Add(*s);
10107 delete s;
10108 Py_DECREF(item);
10109 }
d55e5bfc 10110 }
554f62e9
RD
10111 }
10112 if (obj5) {
10113 ecode6 = SWIG_AsVal_long(obj5, &val6);
10114 if (!SWIG_IsOK(ecode6)) {
10115 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10116 }
10117 arg6 = static_cast< long >(val6);
10118 }
10119 if (obj6) {
10120 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10121 if (!SWIG_IsOK(res7)) {
10122 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10123 }
554f62e9
RD
10124 if (!argp7) {
10125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10126 }
554f62e9
RD
10127 arg7 = reinterpret_cast< wxValidator * >(argp7);
10128 }
10129 if (obj7) {
093d3ff1 10130 {
554f62e9
RD
10131 arg8 = wxString_in_helper(obj7);
10132 if (arg8 == NULL) SWIG_fail;
10133 temp8 = true;
093d3ff1 10134 }
554f62e9
RD
10135 }
10136 {
10137 if (!wxPyCheckForApp()) SWIG_fail;
10138 PyThreadState* __tstate = wxPyBeginAllowThreads();
10139 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10140 wxPyEndAllowThreads(__tstate);
10141 if (PyErr_Occurred()) SWIG_fail;
10142 }
10143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10144 {
10145 if (temp5) delete arg5;
10146 }
10147 {
10148 if (temp8)
10149 delete arg8;
10150 }
10151 return resultobj;
10152fail:
10153 {
10154 if (temp5) delete arg5;
10155 }
10156 {
10157 if (temp8)
10158 delete arg8;
10159 }
10160 return NULL;
d55e5bfc
RD
10161}
10162
10163
554f62e9
RD
10164SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10165 PyObject *resultobj = 0;
10166 wxCheckListBox *result = 0 ;
10167
10168 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10169 {
10170 if (!wxPyCheckForApp()) SWIG_fail;
10171 PyThreadState* __tstate = wxPyBeginAllowThreads();
10172 result = (wxCheckListBox *)new wxCheckListBox();
10173 wxPyEndAllowThreads(__tstate);
10174 if (PyErr_Occurred()) SWIG_fail;
10175 }
10176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10177 return resultobj;
10178fail:
10179 return NULL;
10180}
10181
10182
10183SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10184 PyObject *resultobj = 0;
10185 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10186 wxWindow *arg2 = (wxWindow *) 0 ;
10187 int arg3 = (int) -1 ;
10188 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10189 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10190 wxSize const &arg5_defvalue = wxDefaultSize ;
10191 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10192 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10193 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10194 long arg7 = (long) 0 ;
10195 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10196 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10197 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10198 wxString *arg9 = (wxString *) &arg9_defvalue ;
10199 bool result;
10200 void *argp1 = 0 ;
10201 int res1 = 0 ;
10202 void *argp2 = 0 ;
10203 int res2 = 0 ;
10204 int val3 ;
10205 int ecode3 = 0 ;
10206 wxPoint temp4 ;
10207 wxSize temp5 ;
10208 bool temp6 = false ;
10209 long val7 ;
10210 int ecode7 = 0 ;
10211 void *argp8 = 0 ;
10212 int res8 = 0 ;
10213 bool temp9 = false ;
10214 PyObject * obj0 = 0 ;
10215 PyObject * obj1 = 0 ;
10216 PyObject * obj2 = 0 ;
10217 PyObject * obj3 = 0 ;
10218 PyObject * obj4 = 0 ;
10219 PyObject * obj5 = 0 ;
10220 PyObject * obj6 = 0 ;
10221 PyObject * obj7 = 0 ;
10222 PyObject * obj8 = 0 ;
10223 char * kwnames[] = {
10224 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10225 };
10226
10227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10229 if (!SWIG_IsOK(res1)) {
10230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10231 }
10232 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10233 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10234 if (!SWIG_IsOK(res2)) {
10235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10236 }
10237 arg2 = reinterpret_cast< wxWindow * >(argp2);
10238 if (obj2) {
10239 ecode3 = SWIG_AsVal_int(obj2, &val3);
10240 if (!SWIG_IsOK(ecode3)) {
10241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10242 }
10243 arg3 = static_cast< int >(val3);
10244 }
10245 if (obj3) {
f20a2e1f 10246 {
554f62e9
RD
10247 arg4 = &temp4;
10248 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10249 }
554f62e9
RD
10250 }
10251 if (obj4) {
d55e5bfc 10252 {
554f62e9
RD
10253 arg5 = &temp5;
10254 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 10255 }
554f62e9
RD
10256 }
10257 if (obj5) {
d55e5bfc 10258 {
554f62e9
RD
10259 if (! PySequence_Check(obj5)) {
10260 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10261 SWIG_fail;
10262 }
10263 arg6 = new wxArrayString;
10264 temp6 = true;
10265 int i, len=PySequence_Length(obj5);
10266 for (i=0; i<len; i++) {
10267 PyObject* item = PySequence_GetItem(obj5, i);
10268 wxString* s = wxString_in_helper(item);
10269 if (PyErr_Occurred()) SWIG_fail;
10270 arg6->Add(*s);
10271 delete s;
10272 Py_DECREF(item);
10273 }
d55e5bfc 10274 }
554f62e9
RD
10275 }
10276 if (obj6) {
10277 ecode7 = SWIG_AsVal_long(obj6, &val7);
10278 if (!SWIG_IsOK(ecode7)) {
10279 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10280 }
10281 arg7 = static_cast< long >(val7);
10282 }
10283 if (obj7) {
10284 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10285 if (!SWIG_IsOK(res8)) {
10286 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10287 }
554f62e9
RD
10288 if (!argp8) {
10289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10290 }
554f62e9
RD
10291 arg8 = reinterpret_cast< wxValidator * >(argp8);
10292 }
10293 if (obj8) {
d55e5bfc 10294 {
554f62e9
RD
10295 arg9 = wxString_in_helper(obj8);
10296 if (arg9 == NULL) SWIG_fail;
10297 temp9 = true;
d55e5bfc 10298 }
554f62e9
RD
10299 }
10300 {
10301 PyThreadState* __tstate = wxPyBeginAllowThreads();
10302 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10303 wxPyEndAllowThreads(__tstate);
10304 if (PyErr_Occurred()) SWIG_fail;
10305 }
10306 {
10307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10308 }
10309 {
10310 if (temp6) delete arg6;
10311 }
10312 {
10313 if (temp9)
10314 delete arg9;
10315 }
10316 return resultobj;
10317fail:
10318 {
10319 if (temp6) delete arg6;
10320 }
10321 {
10322 if (temp9)
10323 delete arg9;
10324 }
10325 return NULL;
10326}
10327
10328
10329SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10330 PyObject *resultobj = 0;
10331 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10332 unsigned int arg2 ;
554f62e9
RD
10333 bool result;
10334 void *argp1 = 0 ;
10335 int res1 = 0 ;
50f151d7 10336 unsigned int val2 ;
554f62e9
RD
10337 int ecode2 = 0 ;
10338 PyObject * obj0 = 0 ;
10339 PyObject * obj1 = 0 ;
10340 char * kwnames[] = {
10341 (char *) "self",(char *) "index", NULL
10342 };
10343
10344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10346 if (!SWIG_IsOK(res1)) {
10347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10348 }
10349 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10350 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 10351 if (!SWIG_IsOK(ecode2)) {
50f151d7 10352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 10353 }
50f151d7 10354 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
10355 {
10356 PyThreadState* __tstate = wxPyBeginAllowThreads();
10357 result = (bool)(arg1)->IsChecked(arg2);
10358 wxPyEndAllowThreads(__tstate);
10359 if (PyErr_Occurred()) SWIG_fail;
10360 }
10361 {
10362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10363 }
10364 return resultobj;
10365fail:
10366 return NULL;
10367}
10368
10369
10370SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10371 PyObject *resultobj = 0;
10372 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10373 unsigned int arg2 ;
554f62e9
RD
10374 int arg3 = (int) true ;
10375 void *argp1 = 0 ;
10376 int res1 = 0 ;
50f151d7 10377 unsigned int val2 ;
554f62e9
RD
10378 int ecode2 = 0 ;
10379 int val3 ;
10380 int ecode3 = 0 ;
10381 PyObject * obj0 = 0 ;
10382 PyObject * obj1 = 0 ;
10383 PyObject * obj2 = 0 ;
10384 char * kwnames[] = {
10385 (char *) "self",(char *) "index",(char *) "check", NULL
10386 };
10387
10388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10390 if (!SWIG_IsOK(res1)) {
10391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10392 }
10393 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10394 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 10395 if (!SWIG_IsOK(ecode2)) {
50f151d7 10396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 10397 }
50f151d7 10398 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
10399 if (obj2) {
10400 ecode3 = SWIG_AsVal_int(obj2, &val3);
10401 if (!SWIG_IsOK(ecode3)) {
10402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10403 }
10404 arg3 = static_cast< int >(val3);
10405 }
10406 {
10407 PyThreadState* __tstate = wxPyBeginAllowThreads();
10408 (arg1)->Check(arg2,arg3);
10409 wxPyEndAllowThreads(__tstate);
10410 if (PyErr_Occurred()) SWIG_fail;
10411 }
10412 resultobj = SWIG_Py_Void();
10413 return resultobj;
10414fail:
10415 return NULL;
d55e5bfc
RD
10416}
10417
10418
554f62e9
RD
10419SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10420 PyObject *resultobj = 0;
10421 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10422 int result;
10423 void *argp1 = 0 ;
10424 int res1 = 0 ;
10425 PyObject *swig_obj[1] ;
10426
10427 if (!args) SWIG_fail;
10428 swig_obj[0] = args;
10429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10430 if (!SWIG_IsOK(res1)) {
10431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10432 }
10433 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10434 {
10435 PyThreadState* __tstate = wxPyBeginAllowThreads();
10436 result = (int)(arg1)->GetItemHeight();
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 resultobj = SWIG_From_int(static_cast< int >(result));
10441 return resultobj;
10442fail:
10443 return NULL;
d55e5bfc
RD
10444}
10445
10446
554f62e9
RD
10447SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10448 PyObject *obj;
10449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10450 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10451 return SWIG_Py_Void();
d55e5bfc
RD
10452}
10453
554f62e9
RD
10454SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10455 return SWIG_Python_InitShadowInstance(args);
9d7dfdff
RD
10456}
10457
554f62e9
RD
10458SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10459 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10460 return 1;
f20a2e1f
RD
10461}
10462
10463
554f62e9
RD
10464SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10465 PyObject *pyobj = 0;
10466
10467 {
10468#if wxUSE_UNICODE
10469 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10470#else
10471 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10472#endif
10473 }
10474 return pyobj;
10475}
10476
10477
10478SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10479 PyObject *resultobj = 0;
10480 wxColour const &arg1_defvalue = wxNullColour ;
10481 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10482 wxColour const &arg2_defvalue = wxNullColour ;
10483 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10484 wxFont const &arg3_defvalue = wxNullFont ;
10485 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10486 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10487 wxTextAttr *result = 0 ;
10488 wxColour temp1 ;
10489 wxColour temp2 ;
10490 void *argp3 = 0 ;
10491 int res3 = 0 ;
10492 int val4 ;
10493 int ecode4 = 0 ;
10494 PyObject * obj0 = 0 ;
10495 PyObject * obj1 = 0 ;
10496 PyObject * obj2 = 0 ;
10497 PyObject * obj3 = 0 ;
10498 char * kwnames[] = {
10499 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10500 };
10501
10502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10503 if (obj0) {
d55e5bfc 10504 {
554f62e9
RD
10505 arg1 = &temp1;
10506 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 10507 }
554f62e9
RD
10508 }
10509 if (obj1) {
d55e5bfc 10510 {
554f62e9
RD
10511 arg2 = &temp2;
10512 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 10513 }
554f62e9
RD
10514 }
10515 if (obj2) {
10516 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10517 if (!SWIG_IsOK(res3)) {
10518 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10519 }
554f62e9
RD
10520 if (!argp3) {
10521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10522 }
10523 arg3 = reinterpret_cast< wxFont * >(argp3);
10524 }
10525 if (obj3) {
10526 ecode4 = SWIG_AsVal_int(obj3, &val4);
10527 if (!SWIG_IsOK(ecode4)) {
10528 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10529 }
10530 arg4 = static_cast< wxTextAttrAlignment >(val4);
10531 }
10532 {
10533 PyThreadState* __tstate = wxPyBeginAllowThreads();
10534 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10535 wxPyEndAllowThreads(__tstate);
10536 if (PyErr_Occurred()) SWIG_fail;
10537 }
10538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10539 return resultobj;
10540fail:
10541 return NULL;
d55e5bfc
RD
10542}
10543
10544
554f62e9
RD
10545SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10546 PyObject *resultobj = 0;
10547 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10548 void *argp1 = 0 ;
10549 int res1 = 0 ;
10550 PyObject *swig_obj[1] ;
10551
10552 if (!args) SWIG_fail;
10553 swig_obj[0] = args;
10554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10555 if (!SWIG_IsOK(res1)) {
10556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10557 }
10558 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10559 {
10560 PyThreadState* __tstate = wxPyBeginAllowThreads();
10561 delete arg1;
d55e5bfc 10562
554f62e9
RD
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 resultobj = SWIG_Py_Void();
10567 return resultobj;
10568fail:
10569 return NULL;
d55e5bfc
RD
10570}
10571
10572
554f62e9
RD
10573SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10574 PyObject *resultobj = 0;
10575 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10576 void *argp1 = 0 ;
10577 int res1 = 0 ;
10578 PyObject *swig_obj[1] ;
10579
10580 if (!args) SWIG_fail;
10581 swig_obj[0] = args;
10582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10583 if (!SWIG_IsOK(res1)) {
10584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10585 }
10586 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10587 {
10588 PyThreadState* __tstate = wxPyBeginAllowThreads();
10589 (arg1)->Init();
10590 wxPyEndAllowThreads(__tstate);
10591 if (PyErr_Occurred()) SWIG_fail;
10592 }
10593 resultobj = SWIG_Py_Void();
10594 return resultobj;
10595fail:
10596 return NULL;
10597}
10598
10599
f460c29d
RD
10600SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10601 PyObject *resultobj = 0;
10602 wxTextAttr *arg1 = 0 ;
10603 wxTextAttr *arg2 = 0 ;
10604 wxTextAttr result;
10605 void *argp1 = 0 ;
10606 int res1 = 0 ;
10607 void *argp2 = 0 ;
10608 int res2 = 0 ;
10609 PyObject * obj0 = 0 ;
10610 PyObject * obj1 = 0 ;
10611 char * kwnames[] = {
10612 (char *) "base",(char *) "overlay", NULL
10613 };
10614
10615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10616 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10617 if (!SWIG_IsOK(res1)) {
10618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10619 }
10620 if (!argp1) {
10621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10622 }
10623 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10624 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10625 if (!SWIG_IsOK(res2)) {
10626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10627 }
10628 if (!argp2) {
10629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10630 }
10631 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10632 {
10633 PyThreadState* __tstate = wxPyBeginAllowThreads();
10634 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10639 return resultobj;
10640fail:
10641 return NULL;
10642}
10643
10644
554f62e9
RD
10645SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10646 PyObject *resultobj = 0;
10647 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10648 wxColour *arg2 = 0 ;
10649 void *argp1 = 0 ;
10650 int res1 = 0 ;
10651 wxColour temp2 ;
10652 PyObject * obj0 = 0 ;
10653 PyObject * obj1 = 0 ;
10654 char * kwnames[] = {
10655 (char *) "self",(char *) "colText", NULL
10656 };
10657
10658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10660 if (!SWIG_IsOK(res1)) {
10661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10662 }
10663 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10664 {
10665 arg2 = &temp2;
10666 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10667 }
10668 {
10669 PyThreadState* __tstate = wxPyBeginAllowThreads();
10670 (arg1)->SetTextColour((wxColour const &)*arg2);
10671 wxPyEndAllowThreads(__tstate);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 }
10674 resultobj = SWIG_Py_Void();
10675 return resultobj;
10676fail:
10677 return NULL;
10678}
10679
10680
10681SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10682 PyObject *resultobj = 0;
10683 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10684 wxColour *arg2 = 0 ;
10685 void *argp1 = 0 ;
10686 int res1 = 0 ;
10687 wxColour temp2 ;
10688 PyObject * obj0 = 0 ;
10689 PyObject * obj1 = 0 ;
10690 char * kwnames[] = {
10691 (char *) "self",(char *) "colBack", NULL
10692 };
10693
10694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10696 if (!SWIG_IsOK(res1)) {
10697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10698 }
10699 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10700 {
10701 arg2 = &temp2;
10702 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10703 }
10704 {
10705 PyThreadState* __tstate = wxPyBeginAllowThreads();
10706 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10707 wxPyEndAllowThreads(__tstate);
10708 if (PyErr_Occurred()) SWIG_fail;
10709 }
10710 resultobj = SWIG_Py_Void();
10711 return resultobj;
10712fail:
10713 return NULL;
10714}
10715
10716
10717SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10718 PyObject *resultobj = 0;
10719 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10720 wxFont *arg2 = 0 ;
10721 long arg3 = (long) wxTEXT_ATTR_FONT ;
10722 void *argp1 = 0 ;
10723 int res1 = 0 ;
10724 void *argp2 = 0 ;
10725 int res2 = 0 ;
10726 long val3 ;
10727 int ecode3 = 0 ;
10728 PyObject * obj0 = 0 ;
10729 PyObject * obj1 = 0 ;
10730 PyObject * obj2 = 0 ;
10731 char * kwnames[] = {
10732 (char *) "self",(char *) "font",(char *) "flags", NULL
10733 };
10734
10735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10737 if (!SWIG_IsOK(res1)) {
10738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10739 }
10740 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10741 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10742 if (!SWIG_IsOK(res2)) {
10743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10744 }
10745 if (!argp2) {
10746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10747 }
10748 arg2 = reinterpret_cast< wxFont * >(argp2);
10749 if (obj2) {
10750 ecode3 = SWIG_AsVal_long(obj2, &val3);
10751 if (!SWIG_IsOK(ecode3)) {
10752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10753 }
10754 arg3 = static_cast< long >(val3);
10755 }
10756 {
10757 PyThreadState* __tstate = wxPyBeginAllowThreads();
10758 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10759 wxPyEndAllowThreads(__tstate);
10760 if (PyErr_Occurred()) SWIG_fail;
10761 }
10762 resultobj = SWIG_Py_Void();
10763 return resultobj;
10764fail:
10765 return NULL;
10766}
10767
10768
10769SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10770 PyObject *resultobj = 0;
10771 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10772 wxTextAttrAlignment arg2 ;
10773 void *argp1 = 0 ;
10774 int res1 = 0 ;
10775 int val2 ;
10776 int ecode2 = 0 ;
10777 PyObject * obj0 = 0 ;
10778 PyObject * obj1 = 0 ;
10779 char * kwnames[] = {
10780 (char *) "self",(char *) "alignment", NULL
10781 };
10782
10783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10785 if (!SWIG_IsOK(res1)) {
10786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10787 }
10788 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10789 ecode2 = SWIG_AsVal_int(obj1, &val2);
10790 if (!SWIG_IsOK(ecode2)) {
10791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10792 }
10793 arg2 = static_cast< wxTextAttrAlignment >(val2);
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 (arg1)->SetAlignment(arg2);
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) SWIG_fail;
10799 }
10800 resultobj = SWIG_Py_Void();
10801 return resultobj;
10802fail:
10803 return NULL;
10804}
10805
10806
10807SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10808 PyObject *resultobj = 0;
10809 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10810 wxArrayInt *arg2 = 0 ;
10811 void *argp1 = 0 ;
10812 int res1 = 0 ;
10813 bool temp2 = false ;
10814 PyObject * obj0 = 0 ;
10815 PyObject * obj1 = 0 ;
10816 char * kwnames[] = {
10817 (char *) "self",(char *) "tabs", NULL
10818 };
10819
10820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10822 if (!SWIG_IsOK(res1)) {
10823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10824 }
10825 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10826 {
10827 if (! PySequence_Check(obj1)) {
10828 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10829 SWIG_fail;
10830 }
10831 arg2 = new wxArrayInt;
10832 temp2 = true;
10833 int i, len=PySequence_Length(obj1);
10834 for (i=0; i<len; i++) {
10835 PyObject* item = PySequence_GetItem(obj1, i);
10836 PyObject* number = PyNumber_Int(item);
10837 arg2->Add(PyInt_AS_LONG(number));
10838 Py_DECREF(item);
10839 Py_DECREF(number);
d55e5bfc 10840 }
554f62e9
RD
10841 }
10842 {
10843 PyThreadState* __tstate = wxPyBeginAllowThreads();
10844 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10845 wxPyEndAllowThreads(__tstate);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 }
10848 resultobj = SWIG_Py_Void();
10849 {
10850 if (temp2) delete arg2;
10851 }
10852 return resultobj;
10853fail:
10854 {
10855 if (temp2) delete arg2;
10856 }
10857 return NULL;
10858}
10859
10860
10861SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10862 PyObject *resultobj = 0;
10863 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10864 int arg2 ;
10865 int arg3 = (int) 0 ;
10866 void *argp1 = 0 ;
10867 int res1 = 0 ;
10868 int val2 ;
10869 int ecode2 = 0 ;
10870 int val3 ;
10871 int ecode3 = 0 ;
10872 PyObject * obj0 = 0 ;
10873 PyObject * obj1 = 0 ;
10874 PyObject * obj2 = 0 ;
10875 char * kwnames[] = {
10876 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10877 };
10878
10879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10881 if (!SWIG_IsOK(res1)) {
10882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10883 }
10884 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10885 ecode2 = SWIG_AsVal_int(obj1, &val2);
10886 if (!SWIG_IsOK(ecode2)) {
10887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10888 }
10889 arg2 = static_cast< int >(val2);
10890 if (obj2) {
10891 ecode3 = SWIG_AsVal_int(obj2, &val3);
10892 if (!SWIG_IsOK(ecode3)) {
10893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10894 }
10895 arg3 = static_cast< int >(val3);
10896 }
10897 {
10898 PyThreadState* __tstate = wxPyBeginAllowThreads();
10899 (arg1)->SetLeftIndent(arg2,arg3);
10900 wxPyEndAllowThreads(__tstate);
10901 if (PyErr_Occurred()) SWIG_fail;
10902 }
10903 resultobj = SWIG_Py_Void();
10904 return resultobj;
10905fail:
10906 return NULL;
10907}
10908
10909
10910SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10911 PyObject *resultobj = 0;
10912 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10913 int arg2 ;
10914 void *argp1 = 0 ;
10915 int res1 = 0 ;
10916 int val2 ;
10917 int ecode2 = 0 ;
10918 PyObject * obj0 = 0 ;
10919 PyObject * obj1 = 0 ;
10920 char * kwnames[] = {
10921 (char *) "self",(char *) "indent", NULL
10922 };
10923
10924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10926 if (!SWIG_IsOK(res1)) {
10927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10928 }
10929 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10930 ecode2 = SWIG_AsVal_int(obj1, &val2);
10931 if (!SWIG_IsOK(ecode2)) {
10932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10933 }
10934 arg2 = static_cast< int >(val2);
10935 {
10936 PyThreadState* __tstate = wxPyBeginAllowThreads();
10937 (arg1)->SetRightIndent(arg2);
10938 wxPyEndAllowThreads(__tstate);
10939 if (PyErr_Occurred()) SWIG_fail;
10940 }
10941 resultobj = SWIG_Py_Void();
10942 return resultobj;
10943fail:
10944 return NULL;
10945}
10946
10947
10948SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10949 PyObject *resultobj = 0;
10950 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10951 long arg2 ;
10952 void *argp1 = 0 ;
10953 int res1 = 0 ;
10954 long val2 ;
10955 int ecode2 = 0 ;
10956 PyObject * obj0 = 0 ;
10957 PyObject * obj1 = 0 ;
10958 char * kwnames[] = {
10959 (char *) "self",(char *) "flags", NULL
10960 };
10961
10962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10964 if (!SWIG_IsOK(res1)) {
10965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10966 }
10967 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10968 ecode2 = SWIG_AsVal_long(obj1, &val2);
10969 if (!SWIG_IsOK(ecode2)) {
10970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10971 }
10972 arg2 = static_cast< long >(val2);
10973 {
10974 PyThreadState* __tstate = wxPyBeginAllowThreads();
10975 (arg1)->SetFlags(arg2);
10976 wxPyEndAllowThreads(__tstate);
10977 if (PyErr_Occurred()) SWIG_fail;
10978 }
10979 resultobj = SWIG_Py_Void();
10980 return resultobj;
10981fail:
10982 return NULL;
d55e5bfc
RD
10983}
10984
10985
554f62e9
RD
10986SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10987 PyObject *resultobj = 0;
10988 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10989 bool result;
10990 void *argp1 = 0 ;
10991 int res1 = 0 ;
10992 PyObject *swig_obj[1] ;
10993
10994 if (!args) SWIG_fail;
10995 swig_obj[0] = args;
10996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10997 if (!SWIG_IsOK(res1)) {
10998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10999 }
11000 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11001 {
11002 PyThreadState* __tstate = wxPyBeginAllowThreads();
11003 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
11004 wxPyEndAllowThreads(__tstate);
11005 if (PyErr_Occurred()) SWIG_fail;
11006 }
11007 {
11008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11009 }
11010 return resultobj;
11011fail:
11012 return NULL;
d55e5bfc
RD
11013}
11014
11015
554f62e9
RD
11016SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11017 PyObject *resultobj = 0;
11018 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11019 bool result;
11020 void *argp1 = 0 ;
11021 int res1 = 0 ;
11022 PyObject *swig_obj[1] ;
11023
11024 if (!args) SWIG_fail;
11025 swig_obj[0] = args;
11026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11027 if (!SWIG_IsOK(res1)) {
11028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11029 }
11030 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11031 {
11032 PyThreadState* __tstate = wxPyBeginAllowThreads();
11033 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11034 wxPyEndAllowThreads(__tstate);
11035 if (PyErr_Occurred()) SWIG_fail;
11036 }
11037 {
11038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11039 }
11040 return resultobj;
11041fail:
11042 return NULL;
d55e5bfc
RD
11043}
11044
11045
554f62e9
RD
11046SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11047 PyObject *resultobj = 0;
11048 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11049 bool result;
11050 void *argp1 = 0 ;
11051 int res1 = 0 ;
11052 PyObject *swig_obj[1] ;
11053
11054 if (!args) SWIG_fail;
11055 swig_obj[0] = args;
11056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11057 if (!SWIG_IsOK(res1)) {
11058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11059 }
11060 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11061 {
11062 PyThreadState* __tstate = wxPyBeginAllowThreads();
11063 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11064 wxPyEndAllowThreads(__tstate);
11065 if (PyErr_Occurred()) SWIG_fail;
11066 }
11067 {
11068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11069 }
11070 return resultobj;
11071fail:
11072 return NULL;
d55e5bfc
RD
11073}
11074
11075
554f62e9
RD
11076SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11077 PyObject *resultobj = 0;
11078 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11079 bool result;
11080 void *argp1 = 0 ;
11081 int res1 = 0 ;
11082 PyObject *swig_obj[1] ;
11083
11084 if (!args) SWIG_fail;
11085 swig_obj[0] = args;
11086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11087 if (!SWIG_IsOK(res1)) {
11088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11089 }
11090 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11091 {
11092 PyThreadState* __tstate = wxPyBeginAllowThreads();
11093 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11094 wxPyEndAllowThreads(__tstate);
11095 if (PyErr_Occurred()) SWIG_fail;
11096 }
11097 {
11098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11099 }
11100 return resultobj;
11101fail:
11102 return NULL;
f20a2e1f
RD
11103}
11104
11105
554f62e9
RD
11106SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11107 PyObject *resultobj = 0;
11108 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11109 bool result;
11110 void *argp1 = 0 ;
11111 int res1 = 0 ;
11112 PyObject *swig_obj[1] ;
11113
11114 if (!args) SWIG_fail;
11115 swig_obj[0] = args;
11116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11117 if (!SWIG_IsOK(res1)) {
11118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11119 }
11120 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11121 {
11122 PyThreadState* __tstate = wxPyBeginAllowThreads();
11123 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11124 wxPyEndAllowThreads(__tstate);
11125 if (PyErr_Occurred()) SWIG_fail;
11126 }
11127 {
11128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11129 }
11130 return resultobj;
11131fail:
11132 return NULL;
d55e5bfc
RD
11133}
11134
11135
554f62e9
RD
11136SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11137 PyObject *resultobj = 0;
11138 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11139 bool result;
11140 void *argp1 = 0 ;
11141 int res1 = 0 ;
11142 PyObject *swig_obj[1] ;
11143
11144 if (!args) SWIG_fail;
11145 swig_obj[0] = args;
11146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11147 if (!SWIG_IsOK(res1)) {
11148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11149 }
11150 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11151 {
11152 PyThreadState* __tstate = wxPyBeginAllowThreads();
11153 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11154 wxPyEndAllowThreads(__tstate);
11155 if (PyErr_Occurred()) SWIG_fail;
11156 }
11157 {
11158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11159 }
11160 return resultobj;
11161fail:
11162 return NULL;
d55e5bfc
RD
11163}
11164
11165
554f62e9
RD
11166SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11167 PyObject *resultobj = 0;
11168 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11169 bool result;
11170 void *argp1 = 0 ;
11171 int res1 = 0 ;
11172 PyObject *swig_obj[1] ;
11173
11174 if (!args) SWIG_fail;
11175 swig_obj[0] = args;
11176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11177 if (!SWIG_IsOK(res1)) {
11178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11179 }
11180 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11181 {
11182 PyThreadState* __tstate = wxPyBeginAllowThreads();
11183 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11184 wxPyEndAllowThreads(__tstate);
11185 if (PyErr_Occurred()) SWIG_fail;
11186 }
11187 {
11188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11189 }
11190 return resultobj;
11191fail:
11192 return NULL;
11193}
11194
11195
11196SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11197 PyObject *resultobj = 0;
11198 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11199 long arg2 ;
11200 bool result;
11201 void *argp1 = 0 ;
11202 int res1 = 0 ;
11203 long val2 ;
11204 int ecode2 = 0 ;
11205 PyObject * obj0 = 0 ;
11206 PyObject * obj1 = 0 ;
11207 char * kwnames[] = {
11208 (char *) "self",(char *) "flag", NULL
11209 };
11210
11211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11213 if (!SWIG_IsOK(res1)) {
11214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11215 }
11216 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11217 ecode2 = SWIG_AsVal_long(obj1, &val2);
11218 if (!SWIG_IsOK(ecode2)) {
11219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11220 }
11221 arg2 = static_cast< long >(val2);
11222 {
11223 PyThreadState* __tstate = wxPyBeginAllowThreads();
11224 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11225 wxPyEndAllowThreads(__tstate);
11226 if (PyErr_Occurred()) SWIG_fail;
11227 }
11228 {
11229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11230 }
11231 return resultobj;
11232fail:
11233 return NULL;
d55e5bfc
RD
11234}
11235
11236
554f62e9
RD
11237SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11238 PyObject *resultobj = 0;
11239 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11240 wxColour *result = 0 ;
11241 void *argp1 = 0 ;
11242 int res1 = 0 ;
11243 PyObject *swig_obj[1] ;
11244
11245 if (!args) SWIG_fail;
11246 swig_obj[0] = args;
11247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11248 if (!SWIG_IsOK(res1)) {
11249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11250 }
11251 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11252 {
11253 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11254 {
554f62e9
RD
11255 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
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_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11269 PyObject *resultobj = 0;
11270 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11271 wxColour *result = 0 ;
11272 void *argp1 = 0 ;
11273 int res1 = 0 ;
11274 PyObject *swig_obj[1] ;
11275
11276 if (!args) SWIG_fail;
11277 swig_obj[0] = args;
11278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11279 if (!SWIG_IsOK(res1)) {
11280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11281 }
11282 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11283 {
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11285 {
554f62e9
RD
11286 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11287 result = (wxColour *) &_result_ref;
d55e5bfc 11288 }
554f62e9
RD
11289 wxPyEndAllowThreads(__tstate);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 }
11292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11293 return resultobj;
11294fail:
11295 return NULL;
d55e5bfc
RD
11296}
11297
11298
554f62e9
RD
11299SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11300 PyObject *resultobj = 0;
11301 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11302 wxFont *result = 0 ;
11303 void *argp1 = 0 ;
11304 int res1 = 0 ;
11305 PyObject *swig_obj[1] ;
11306
11307 if (!args) SWIG_fail;
11308 swig_obj[0] = args;
11309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11310 if (!SWIG_IsOK(res1)) {
11311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11312 }
11313 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11314 {
11315 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11316 {
554f62e9
RD
11317 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11318 result = (wxFont *) &_result_ref;
d55e5bfc 11319 }
554f62e9
RD
11320 wxPyEndAllowThreads(__tstate);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 }
11323 {
11324 wxFont* resultptr = new wxFont(*result);
11325 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11326 }
11327 return resultobj;
11328fail:
11329 return NULL;
d55e5bfc
RD
11330}
11331
11332
554f62e9
RD
11333SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11334 PyObject *resultobj = 0;
11335 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11336 wxTextAttrAlignment result;
11337 void *argp1 = 0 ;
11338 int res1 = 0 ;
11339 PyObject *swig_obj[1] ;
11340
11341 if (!args) SWIG_fail;
11342 swig_obj[0] = args;
11343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11344 if (!SWIG_IsOK(res1)) {
11345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11346 }
11347 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11348 {
11349 PyThreadState* __tstate = wxPyBeginAllowThreads();
11350 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11351 wxPyEndAllowThreads(__tstate);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 }
11354 resultobj = SWIG_From_int(static_cast< int >(result));
11355 return resultobj;
11356fail:
11357 return NULL;
d55e5bfc
RD
11358}
11359
11360
554f62e9
RD
11361SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11362 PyObject *resultobj = 0;
11363 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11364 wxArrayInt *result = 0 ;
11365 void *argp1 = 0 ;
11366 int res1 = 0 ;
11367 PyObject *swig_obj[1] ;
11368
11369 if (!args) SWIG_fail;
11370 swig_obj[0] = args;
11371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11372 if (!SWIG_IsOK(res1)) {
11373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11374 }
11375 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11376 {
11377 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11378 {
554f62e9
RD
11379 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11380 result = (wxArrayInt *) &_result_ref;
d55e5bfc 11381 }
554f62e9
RD
11382 wxPyEndAllowThreads(__tstate);
11383 if (PyErr_Occurred()) SWIG_fail;
11384 }
11385 {
b39fe951 11386 resultobj = wxArrayInt2PyList_helper(*result);
554f62e9
RD
11387 }
11388 return resultobj;
11389fail:
11390 return NULL;
d55e5bfc
RD
11391}
11392
11393
554f62e9
RD
11394SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11395 PyObject *resultobj = 0;
11396 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11397 long result;
11398 void *argp1 = 0 ;
11399 int res1 = 0 ;
11400 PyObject *swig_obj[1] ;
11401
11402 if (!args) SWIG_fail;
11403 swig_obj[0] = args;
11404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11405 if (!SWIG_IsOK(res1)) {
11406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11407 }
11408 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11409 {
11410 PyThreadState* __tstate = wxPyBeginAllowThreads();
11411 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11412 wxPyEndAllowThreads(__tstate);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 resultobj = SWIG_From_long(static_cast< long >(result));
11416 return resultobj;
11417fail:
11418 return NULL;
d55e5bfc
RD
11419}
11420
11421
554f62e9
RD
11422SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11423 PyObject *resultobj = 0;
11424 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11425 long result;
11426 void *argp1 = 0 ;
11427 int res1 = 0 ;
11428 PyObject *swig_obj[1] ;
11429
11430 if (!args) SWIG_fail;
11431 swig_obj[0] = args;
11432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11433 if (!SWIG_IsOK(res1)) {
11434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11435 }
11436 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11437 {
11438 PyThreadState* __tstate = wxPyBeginAllowThreads();
11439 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11440 wxPyEndAllowThreads(__tstate);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 resultobj = SWIG_From_long(static_cast< long >(result));
11444 return resultobj;
11445fail:
11446 return NULL;
d55e5bfc
RD
11447}
11448
11449
554f62e9
RD
11450SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11451 PyObject *resultobj = 0;
11452 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11453 long result;
11454 void *argp1 = 0 ;
11455 int res1 = 0 ;
11456 PyObject *swig_obj[1] ;
11457
11458 if (!args) SWIG_fail;
11459 swig_obj[0] = args;
11460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11461 if (!SWIG_IsOK(res1)) {
11462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11463 }
11464 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11465 {
11466 PyThreadState* __tstate = wxPyBeginAllowThreads();
11467 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11468 wxPyEndAllowThreads(__tstate);
11469 if (PyErr_Occurred()) SWIG_fail;
11470 }
11471 resultobj = SWIG_From_long(static_cast< long >(result));
11472 return resultobj;
11473fail:
11474 return NULL;
d55e5bfc
RD
11475}
11476
11477
554f62e9
RD
11478SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11479 PyObject *resultobj = 0;
11480 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11481 long result;
11482 void *argp1 = 0 ;
11483 int res1 = 0 ;
11484 PyObject *swig_obj[1] ;
11485
11486 if (!args) SWIG_fail;
11487 swig_obj[0] = args;
11488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11489 if (!SWIG_IsOK(res1)) {
11490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11491 }
11492 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11493 {
11494 PyThreadState* __tstate = wxPyBeginAllowThreads();
11495 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11496 wxPyEndAllowThreads(__tstate);
11497 if (PyErr_Occurred()) SWIG_fail;
11498 }
11499 resultobj = SWIG_From_long(static_cast< long >(result));
11500 return resultobj;
11501fail:
11502 return NULL;
d55e5bfc
RD
11503}
11504
11505
554f62e9
RD
11506SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11507 PyObject *resultobj = 0;
11508 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11509 bool result;
11510 void *argp1 = 0 ;
11511 int res1 = 0 ;
11512 PyObject *swig_obj[1] ;
11513
11514 if (!args) SWIG_fail;
11515 swig_obj[0] = args;
11516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11517 if (!SWIG_IsOK(res1)) {
11518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11519 }
11520 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11521 {
11522 PyThreadState* __tstate = wxPyBeginAllowThreads();
11523 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11524 wxPyEndAllowThreads(__tstate);
11525 if (PyErr_Occurred()) SWIG_fail;
11526 }
11527 {
11528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11529 }
11530 return resultobj;
11531fail:
11532 return NULL;
11533}
11534
11535
11536SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11537 PyObject *resultobj = 0;
11538 wxTextAttr *arg1 = 0 ;
11539 wxTextAttr *arg2 = 0 ;
11540 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11541 wxTextAttr result;
11542 void *argp1 = 0 ;
11543 int res1 = 0 ;
11544 void *argp2 = 0 ;
11545 int res2 = 0 ;
11546 void *argp3 = 0 ;
11547 int res3 = 0 ;
11548 PyObject * obj0 = 0 ;
11549 PyObject * obj1 = 0 ;
11550 PyObject * obj2 = 0 ;
11551 char * kwnames[] = {
11552 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11553 };
11554
11555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11556 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11557 if (!SWIG_IsOK(res1)) {
11558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11559 }
11560 if (!argp1) {
11561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11562 }
11563 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11564 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11565 if (!SWIG_IsOK(res2)) {
11566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11567 }
11568 if (!argp2) {
11569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11570 }
11571 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11572 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11573 if (!SWIG_IsOK(res3)) {
11574 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11575 }
11576 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11577 {
11578 PyThreadState* __tstate = wxPyBeginAllowThreads();
11579 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11580 wxPyEndAllowThreads(__tstate);
11581 if (PyErr_Occurred()) SWIG_fail;
11582 }
11583 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11584 return resultobj;
11585fail:
11586 return NULL;
11587}
11588
11589
11590SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11591 PyObject *obj;
11592 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11593 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11594 return SWIG_Py_Void();
11595}
11596
11597SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11598 return SWIG_Python_InitShadowInstance(args);
11599}
11600
11601SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11602 PyObject *resultobj = 0;
11603 wxWindow *arg1 = (wxWindow *) 0 ;
11604 int arg2 = (int) -1 ;
11605 wxString const &arg3_defvalue = wxPyEmptyString ;
11606 wxString *arg3 = (wxString *) &arg3_defvalue ;
11607 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11608 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11609 wxSize const &arg5_defvalue = wxDefaultSize ;
11610 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11611 long arg6 = (long) 0 ;
11612 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11613 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11614 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11615 wxString *arg8 = (wxString *) &arg8_defvalue ;
11616 wxTextCtrl *result = 0 ;
11617 void *argp1 = 0 ;
11618 int res1 = 0 ;
11619 int val2 ;
11620 int ecode2 = 0 ;
11621 bool temp3 = false ;
11622 wxPoint temp4 ;
11623 wxSize temp5 ;
11624 long val6 ;
11625 int ecode6 = 0 ;
11626 void *argp7 = 0 ;
11627 int res7 = 0 ;
11628 bool temp8 = false ;
11629 PyObject * obj0 = 0 ;
11630 PyObject * obj1 = 0 ;
11631 PyObject * obj2 = 0 ;
11632 PyObject * obj3 = 0 ;
11633 PyObject * obj4 = 0 ;
11634 PyObject * obj5 = 0 ;
11635 PyObject * obj6 = 0 ;
11636 PyObject * obj7 = 0 ;
11637 char * kwnames[] = {
11638 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11639 };
11640
11641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11643 if (!SWIG_IsOK(res1)) {
11644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11645 }
11646 arg1 = reinterpret_cast< wxWindow * >(argp1);
11647 if (obj1) {
11648 ecode2 = SWIG_AsVal_int(obj1, &val2);
11649 if (!SWIG_IsOK(ecode2)) {
11650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11651 }
11652 arg2 = static_cast< int >(val2);
11653 }
11654 if (obj2) {
d55e5bfc 11655 {
554f62e9
RD
11656 arg3 = wxString_in_helper(obj2);
11657 if (arg3 == NULL) SWIG_fail;
11658 temp3 = true;
d55e5bfc 11659 }
554f62e9
RD
11660 }
11661 if (obj3) {
d55e5bfc 11662 {
554f62e9
RD
11663 arg4 = &temp4;
11664 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 11665 }
554f62e9
RD
11666 }
11667 if (obj4) {
d55e5bfc 11668 {
554f62e9
RD
11669 arg5 = &temp5;
11670 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11671 }
554f62e9
RD
11672 }
11673 if (obj5) {
11674 ecode6 = SWIG_AsVal_long(obj5, &val6);
11675 if (!SWIG_IsOK(ecode6)) {
11676 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11677 }
11678 arg6 = static_cast< long >(val6);
11679 }
11680 if (obj6) {
11681 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11682 if (!SWIG_IsOK(res7)) {
11683 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11684 }
554f62e9
RD
11685 if (!argp7) {
11686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 11687 }
554f62e9
RD
11688 arg7 = reinterpret_cast< wxValidator * >(argp7);
11689 }
11690 if (obj7) {
d55e5bfc 11691 {
554f62e9
RD
11692 arg8 = wxString_in_helper(obj7);
11693 if (arg8 == NULL) SWIG_fail;
11694 temp8 = true;
d55e5bfc 11695 }
554f62e9
RD
11696 }
11697 {
11698 if (!wxPyCheckForApp()) SWIG_fail;
11699 PyThreadState* __tstate = wxPyBeginAllowThreads();
11700 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11701 wxPyEndAllowThreads(__tstate);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 }
11704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11705 {
11706 if (temp3)
11707 delete arg3;
11708 }
11709 {
11710 if (temp8)
11711 delete arg8;
11712 }
11713 return resultobj;
11714fail:
11715 {
11716 if (temp3)
11717 delete arg3;
11718 }
11719 {
11720 if (temp8)
11721 delete arg8;
11722 }
11723 return NULL;
d55e5bfc
RD
11724}
11725
11726
554f62e9
RD
11727SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11728 PyObject *resultobj = 0;
11729 wxTextCtrl *result = 0 ;
11730
11731 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11732 {
11733 if (!wxPyCheckForApp()) SWIG_fail;
11734 PyThreadState* __tstate = wxPyBeginAllowThreads();
11735 result = (wxTextCtrl *)new wxTextCtrl();
11736 wxPyEndAllowThreads(__tstate);
11737 if (PyErr_Occurred()) SWIG_fail;
11738 }
11739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11740 return resultobj;
11741fail:
11742 return NULL;
11743}
11744
11745
11746SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11747 PyObject *resultobj = 0;
11748 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11749 wxWindow *arg2 = (wxWindow *) 0 ;
11750 int arg3 = (int) -1 ;
11751 wxString const &arg4_defvalue = wxPyEmptyString ;
11752 wxString *arg4 = (wxString *) &arg4_defvalue ;
11753 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11754 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11755 wxSize const &arg6_defvalue = wxDefaultSize ;
11756 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11757 long arg7 = (long) 0 ;
11758 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11759 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11760 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11761 wxString *arg9 = (wxString *) &arg9_defvalue ;
11762 bool result;
11763 void *argp1 = 0 ;
11764 int res1 = 0 ;
11765 void *argp2 = 0 ;
11766 int res2 = 0 ;
11767 int val3 ;
11768 int ecode3 = 0 ;
11769 bool temp4 = false ;
11770 wxPoint temp5 ;
11771 wxSize temp6 ;
11772 long val7 ;
11773 int ecode7 = 0 ;
11774 void *argp8 = 0 ;
11775 int res8 = 0 ;
11776 bool temp9 = false ;
11777 PyObject * obj0 = 0 ;
11778 PyObject * obj1 = 0 ;
11779 PyObject * obj2 = 0 ;
11780 PyObject * obj3 = 0 ;
11781 PyObject * obj4 = 0 ;
11782 PyObject * obj5 = 0 ;
11783 PyObject * obj6 = 0 ;
11784 PyObject * obj7 = 0 ;
11785 PyObject * obj8 = 0 ;
11786 char * kwnames[] = {
11787 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11788 };
11789
11790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11792 if (!SWIG_IsOK(res1)) {
11793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11794 }
11795 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11796 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11797 if (!SWIG_IsOK(res2)) {
11798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11799 }
11800 arg2 = reinterpret_cast< wxWindow * >(argp2);
11801 if (obj2) {
11802 ecode3 = SWIG_AsVal_int(obj2, &val3);
11803 if (!SWIG_IsOK(ecode3)) {
11804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11805 }
11806 arg3 = static_cast< int >(val3);
11807 }
11808 if (obj3) {
d55e5bfc 11809 {
554f62e9
RD
11810 arg4 = wxString_in_helper(obj3);
11811 if (arg4 == NULL) SWIG_fail;
11812 temp4 = true;
d55e5bfc 11813 }
554f62e9
RD
11814 }
11815 if (obj4) {
d55e5bfc 11816 {
554f62e9
RD
11817 arg5 = &temp5;
11818 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11819 }
554f62e9
RD
11820 }
11821 if (obj5) {
d55e5bfc 11822 {
554f62e9
RD
11823 arg6 = &temp6;
11824 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 11825 }
554f62e9
RD
11826 }
11827 if (obj6) {
11828 ecode7 = SWIG_AsVal_long(obj6, &val7);
11829 if (!SWIG_IsOK(ecode7)) {
11830 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11831 }
11832 arg7 = static_cast< long >(val7);
11833 }
11834 if (obj7) {
11835 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11836 if (!SWIG_IsOK(res8)) {
11837 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 11838 }
554f62e9
RD
11839 if (!argp8) {
11840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 11841 }
554f62e9
RD
11842 arg8 = reinterpret_cast< wxValidator * >(argp8);
11843 }
11844 if (obj8) {
d55e5bfc 11845 {
554f62e9
RD
11846 arg9 = wxString_in_helper(obj8);
11847 if (arg9 == NULL) SWIG_fail;
11848 temp9 = true;
d55e5bfc 11849 }
554f62e9
RD
11850 }
11851 {
11852 PyThreadState* __tstate = wxPyBeginAllowThreads();
11853 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11854 wxPyEndAllowThreads(__tstate);
11855 if (PyErr_Occurred()) SWIG_fail;
11856 }
11857 {
11858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11859 }
11860 {
11861 if (temp4)
11862 delete arg4;
11863 }
11864 {
11865 if (temp9)
11866 delete arg9;
11867 }
11868 return resultobj;
11869fail:
11870 {
11871 if (temp4)
11872 delete arg4;
11873 }
11874 {
11875 if (temp9)
11876 delete arg9;
11877 }
11878 return NULL;
d55e5bfc
RD
11879}
11880
11881
554f62e9
RD
11882SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11883 PyObject *resultobj = 0;
11884 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11885 wxString result;
11886 void *argp1 = 0 ;
11887 int res1 = 0 ;
11888 PyObject *swig_obj[1] ;
11889
11890 if (!args) SWIG_fail;
11891 swig_obj[0] = args;
11892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11893 if (!SWIG_IsOK(res1)) {
11894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11895 }
11896 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11897 {
11898 PyThreadState* __tstate = wxPyBeginAllowThreads();
11899 result = ((wxTextCtrl const *)arg1)->GetValue();
11900 wxPyEndAllowThreads(__tstate);
11901 if (PyErr_Occurred()) SWIG_fail;
11902 }
11903 {
11904#if wxUSE_UNICODE
11905 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11906#else
11907 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11908#endif
11909 }
11910 return resultobj;
11911fail:
11912 return NULL;
11913}
11914
11915
11916SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11917 PyObject *resultobj = 0;
11918 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11919 wxString *arg2 = 0 ;
11920 void *argp1 = 0 ;
11921 int res1 = 0 ;
11922 bool temp2 = false ;
11923 PyObject * obj0 = 0 ;
11924 PyObject * obj1 = 0 ;
11925 char * kwnames[] = {
11926 (char *) "self",(char *) "value", NULL
11927 };
11928
11929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11931 if (!SWIG_IsOK(res1)) {
11932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11933 }
11934 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11935 {
11936 arg2 = wxString_in_helper(obj1);
11937 if (arg2 == NULL) SWIG_fail;
11938 temp2 = true;
11939 }
11940 {
11941 PyThreadState* __tstate = wxPyBeginAllowThreads();
11942 (arg1)->SetValue((wxString const &)*arg2);
11943 wxPyEndAllowThreads(__tstate);
11944 if (PyErr_Occurred()) SWIG_fail;
11945 }
11946 resultobj = SWIG_Py_Void();
11947 {
11948 if (temp2)
11949 delete arg2;
11950 }
11951 return resultobj;
11952fail:
11953 {
11954 if (temp2)
11955 delete arg2;
11956 }
11957 return NULL;
11958}
11959
11960
b39fe951
RD
11961SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11962 PyObject *resultobj = 0;
11963 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11964 bool result;
11965 void *argp1 = 0 ;
11966 int res1 = 0 ;
11967 PyObject *swig_obj[1] ;
11968
11969 if (!args) SWIG_fail;
11970 swig_obj[0] = args;
11971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11972 if (!SWIG_IsOK(res1)) {
11973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11974 }
11975 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11976 {
11977 PyThreadState* __tstate = wxPyBeginAllowThreads();
11978 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11979 wxPyEndAllowThreads(__tstate);
11980 if (PyErr_Occurred()) SWIG_fail;
11981 }
11982 {
11983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11984 }
11985 return resultobj;
11986fail:
11987 return NULL;
11988}
11989
11990
11991SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11992 PyObject *resultobj = 0;
11993 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11994 wxString *arg2 = 0 ;
11995 void *argp1 = 0 ;
11996 int res1 = 0 ;
11997 bool temp2 = false ;
11998 PyObject * obj0 = 0 ;
11999 PyObject * obj1 = 0 ;
12000 char * kwnames[] = {
12001 (char *) "self",(char *) "value", NULL
12002 };
12003
12004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
12005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12006 if (!SWIG_IsOK(res1)) {
12007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12008 }
12009 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12010 {
12011 arg2 = wxString_in_helper(obj1);
12012 if (arg2 == NULL) SWIG_fail;
12013 temp2 = true;
12014 }
12015 {
12016 PyThreadState* __tstate = wxPyBeginAllowThreads();
12017 (arg1)->ChangeValue((wxString const &)*arg2);
12018 wxPyEndAllowThreads(__tstate);
12019 if (PyErr_Occurred()) SWIG_fail;
12020 }
12021 resultobj = SWIG_Py_Void();
12022 {
12023 if (temp2)
12024 delete arg2;
12025 }
12026 return resultobj;
12027fail:
12028 {
12029 if (temp2)
12030 delete arg2;
12031 }
12032 return NULL;
12033}
12034
12035
554f62e9
RD
12036SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12037 PyObject *resultobj = 0;
12038 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12039 long arg2 ;
12040 long arg3 ;
12041 wxString result;
12042 void *argp1 = 0 ;
12043 int res1 = 0 ;
12044 long val2 ;
12045 int ecode2 = 0 ;
12046 long val3 ;
12047 int ecode3 = 0 ;
12048 PyObject * obj0 = 0 ;
12049 PyObject * obj1 = 0 ;
12050 PyObject * obj2 = 0 ;
12051 char * kwnames[] = {
f460c29d 12052 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
12053 };
12054
12055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12057 if (!SWIG_IsOK(res1)) {
12058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12059 }
12060 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12061 ecode2 = SWIG_AsVal_long(obj1, &val2);
12062 if (!SWIG_IsOK(ecode2)) {
12063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12064 }
12065 arg2 = static_cast< long >(val2);
12066 ecode3 = SWIG_AsVal_long(obj2, &val3);
12067 if (!SWIG_IsOK(ecode3)) {
12068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12069 }
12070 arg3 = static_cast< long >(val3);
12071 {
12072 PyThreadState* __tstate = wxPyBeginAllowThreads();
12073 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12074 wxPyEndAllowThreads(__tstate);
12075 if (PyErr_Occurred()) SWIG_fail;
12076 }
12077 {
12078#if wxUSE_UNICODE
12079 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12080#else
12081 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12082#endif
12083 }
12084 return resultobj;
12085fail:
12086 return NULL;
12087}
12088
12089
12090SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12091 PyObject *resultobj = 0;
12092 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12093 long arg2 ;
12094 int result;
12095 void *argp1 = 0 ;
12096 int res1 = 0 ;
12097 long val2 ;
12098 int ecode2 = 0 ;
12099 PyObject * obj0 = 0 ;
12100 PyObject * obj1 = 0 ;
12101 char * kwnames[] = {
12102 (char *) "self",(char *) "lineNo", NULL
12103 };
12104
12105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12107 if (!SWIG_IsOK(res1)) {
12108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12109 }
12110 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12111 ecode2 = SWIG_AsVal_long(obj1, &val2);
12112 if (!SWIG_IsOK(ecode2)) {
12113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12114 }
12115 arg2 = static_cast< long >(val2);
12116 {
12117 PyThreadState* __tstate = wxPyBeginAllowThreads();
12118 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 resultobj = SWIG_From_int(static_cast< int >(result));
12123 return resultobj;
12124fail:
12125 return NULL;
12126}
12127
12128
12129SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12130 PyObject *resultobj = 0;
12131 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12132 long arg2 ;
12133 wxString result;
12134 void *argp1 = 0 ;
12135 int res1 = 0 ;
12136 long val2 ;
12137 int ecode2 = 0 ;
12138 PyObject * obj0 = 0 ;
12139 PyObject * obj1 = 0 ;
12140 char * kwnames[] = {
12141 (char *) "self",(char *) "lineNo", NULL
12142 };
12143
12144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12146 if (!SWIG_IsOK(res1)) {
12147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12148 }
12149 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12150 ecode2 = SWIG_AsVal_long(obj1, &val2);
12151 if (!SWIG_IsOK(ecode2)) {
12152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12153 }
12154 arg2 = static_cast< long >(val2);
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12158 wxPyEndAllowThreads(__tstate);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 {
12162#if wxUSE_UNICODE
12163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12164#else
12165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12166#endif
12167 }
12168 return resultobj;
12169fail:
12170 return NULL;
d55e5bfc
RD
12171}
12172
12173
554f62e9
RD
12174SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12175 PyObject *resultobj = 0;
12176 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12177 int result;
12178 void *argp1 = 0 ;
12179 int res1 = 0 ;
12180 PyObject *swig_obj[1] ;
12181
12182 if (!args) SWIG_fail;
12183 swig_obj[0] = args;
12184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12185 if (!SWIG_IsOK(res1)) {
12186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12187 }
12188 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12189 {
12190 PyThreadState* __tstate = wxPyBeginAllowThreads();
12191 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12192 wxPyEndAllowThreads(__tstate);
12193 if (PyErr_Occurred()) SWIG_fail;
12194 }
12195 resultobj = SWIG_From_int(static_cast< int >(result));
12196 return resultobj;
12197fail:
12198 return NULL;
d55e5bfc
RD
12199}
12200
12201
554f62e9
RD
12202SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12203 PyObject *resultobj = 0;
12204 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12205 bool result;
12206 void *argp1 = 0 ;
12207 int res1 = 0 ;
12208 PyObject *swig_obj[1] ;
12209
12210 if (!args) SWIG_fail;
12211 swig_obj[0] = args;
12212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12213 if (!SWIG_IsOK(res1)) {
12214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12215 }
12216 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12217 {
12218 PyThreadState* __tstate = wxPyBeginAllowThreads();
12219 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 {
12224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12225 }
12226 return resultobj;
12227fail:
12228 return NULL;
d55e5bfc
RD
12229}
12230
12231
554f62e9
RD
12232SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12233 PyObject *resultobj = 0;
12234 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12235 bool result;
12236 void *argp1 = 0 ;
12237 int res1 = 0 ;
12238 PyObject *swig_obj[1] ;
12239
12240 if (!args) SWIG_fail;
12241 swig_obj[0] = args;
12242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12243 if (!SWIG_IsOK(res1)) {
12244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12245 }
12246 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12247 {
12248 PyThreadState* __tstate = wxPyBeginAllowThreads();
12249 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12250 wxPyEndAllowThreads(__tstate);
12251 if (PyErr_Occurred()) SWIG_fail;
12252 }
12253 {
12254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12255 }
12256 return resultobj;
12257fail:
12258 return NULL;
d55e5bfc
RD
12259}
12260
12261
554f62e9
RD
12262SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12263 PyObject *resultobj = 0;
12264 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12265 bool result;
12266 void *argp1 = 0 ;
12267 int res1 = 0 ;
12268 PyObject *swig_obj[1] ;
12269
12270 if (!args) SWIG_fail;
12271 swig_obj[0] = args;
12272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12273 if (!SWIG_IsOK(res1)) {
12274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12275 }
12276 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12277 {
12278 PyThreadState* __tstate = wxPyBeginAllowThreads();
12279 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12280 wxPyEndAllowThreads(__tstate);
12281 if (PyErr_Occurred()) SWIG_fail;
12282 }
12283 {
12284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12285 }
12286 return resultobj;
12287fail:
12288 return NULL;
d55e5bfc
RD
12289}
12290
12291
554f62e9
RD
12292SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12293 PyObject *resultobj = 0;
12294 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12295 bool result;
12296 void *argp1 = 0 ;
12297 int res1 = 0 ;
12298 PyObject *swig_obj[1] ;
12299
12300 if (!args) SWIG_fail;
12301 swig_obj[0] = args;
12302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12303 if (!SWIG_IsOK(res1)) {
12304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12305 }
12306 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12307 {
12308 PyThreadState* __tstate = wxPyBeginAllowThreads();
12309 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12310 wxPyEndAllowThreads(__tstate);
12311 if (PyErr_Occurred()) SWIG_fail;
12312 }
12313 {
12314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12315 }
12316 return resultobj;
12317fail:
12318 return NULL;
12319}
12320
12321
12322SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12323 PyObject *resultobj = 0;
12324 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12325 long *arg2 = (long *) 0 ;
12326 long *arg3 = (long *) 0 ;
12327 void *argp1 = 0 ;
12328 int res1 = 0 ;
12329 long temp2 ;
12330 int res2 = SWIG_TMPOBJ ;
12331 long temp3 ;
12332 int res3 = SWIG_TMPOBJ ;
12333 PyObject *swig_obj[1] ;
12334
12335 arg2 = &temp2;
12336 arg3 = &temp3;
12337 if (!args) SWIG_fail;
12338 swig_obj[0] = args;
12339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12340 if (!SWIG_IsOK(res1)) {
12341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12342 }
12343 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12344 {
12345 PyThreadState* __tstate = wxPyBeginAllowThreads();
12346 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12347 wxPyEndAllowThreads(__tstate);
12348 if (PyErr_Occurred()) SWIG_fail;
12349 }
12350 resultobj = SWIG_Py_Void();
12351 if (SWIG_IsTmpObj(res2)) {
12352 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12353 } else {
12354 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12355 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12356 }
12357 if (SWIG_IsTmpObj(res3)) {
12358 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12359 } else {
12360 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12361 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12362 }
12363 return resultobj;
12364fail:
12365 return NULL;
d55e5bfc
RD
12366}
12367
12368
554f62e9
RD
12369SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12370 PyObject *resultobj = 0;
12371 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12372 wxString result;
12373 void *argp1 = 0 ;
12374 int res1 = 0 ;
12375 PyObject *swig_obj[1] ;
12376
12377 if (!args) SWIG_fail;
12378 swig_obj[0] = args;
12379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12380 if (!SWIG_IsOK(res1)) {
12381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12382 }
12383 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12384 {
12385 PyThreadState* __tstate = wxPyBeginAllowThreads();
12386 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12387 wxPyEndAllowThreads(__tstate);
12388 if (PyErr_Occurred()) SWIG_fail;
12389 }
12390 {
12391#if wxUSE_UNICODE
12392 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12393#else
12394 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12395#endif
12396 }
12397 return resultobj;
12398fail:
12399 return NULL;
d55e5bfc
RD
12400}
12401
12402
554f62e9
RD
12403SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12404 PyObject *resultobj = 0;
12405 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12406 void *argp1 = 0 ;
12407 int res1 = 0 ;
12408 PyObject *swig_obj[1] ;
12409
12410 if (!args) SWIG_fail;
12411 swig_obj[0] = args;
12412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12413 if (!SWIG_IsOK(res1)) {
12414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12415 }
12416 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12417 {
12418 PyThreadState* __tstate = wxPyBeginAllowThreads();
12419 (arg1)->Clear();
12420 wxPyEndAllowThreads(__tstate);
12421 if (PyErr_Occurred()) SWIG_fail;
12422 }
12423 resultobj = SWIG_Py_Void();
12424 return resultobj;
12425fail:
12426 return NULL;
12427}
12428
12429
12430SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12431 PyObject *resultobj = 0;
12432 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12433 long arg2 ;
12434 long arg3 ;
12435 wxString *arg4 = 0 ;
12436 void *argp1 = 0 ;
12437 int res1 = 0 ;
12438 long val2 ;
12439 int ecode2 = 0 ;
12440 long val3 ;
12441 int ecode3 = 0 ;
12442 bool temp4 = false ;
12443 PyObject * obj0 = 0 ;
12444 PyObject * obj1 = 0 ;
12445 PyObject * obj2 = 0 ;
12446 PyObject * obj3 = 0 ;
12447 char * kwnames[] = {
f460c29d 12448 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
554f62e9
RD
12449 };
12450
12451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12453 if (!SWIG_IsOK(res1)) {
12454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12455 }
12456 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12457 ecode2 = SWIG_AsVal_long(obj1, &val2);
12458 if (!SWIG_IsOK(ecode2)) {
12459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12460 }
12461 arg2 = static_cast< long >(val2);
12462 ecode3 = SWIG_AsVal_long(obj2, &val3);
12463 if (!SWIG_IsOK(ecode3)) {
12464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12465 }
12466 arg3 = static_cast< long >(val3);
12467 {
12468 arg4 = wxString_in_helper(obj3);
12469 if (arg4 == NULL) SWIG_fail;
12470 temp4 = true;
12471 }
12472 {
12473 PyThreadState* __tstate = wxPyBeginAllowThreads();
12474 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12475 wxPyEndAllowThreads(__tstate);
12476 if (PyErr_Occurred()) SWIG_fail;
12477 }
12478 resultobj = SWIG_Py_Void();
12479 {
12480 if (temp4)
12481 delete arg4;
12482 }
12483 return resultobj;
12484fail:
12485 {
12486 if (temp4)
12487 delete arg4;
12488 }
12489 return NULL;
12490}
12491
12492
12493SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12494 PyObject *resultobj = 0;
12495 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12496 long arg2 ;
12497 long arg3 ;
12498 void *argp1 = 0 ;
12499 int res1 = 0 ;
12500 long val2 ;
12501 int ecode2 = 0 ;
12502 long val3 ;
12503 int ecode3 = 0 ;
12504 PyObject * obj0 = 0 ;
12505 PyObject * obj1 = 0 ;
12506 PyObject * obj2 = 0 ;
12507 char * kwnames[] = {
f460c29d 12508 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
12509 };
12510
12511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12513 if (!SWIG_IsOK(res1)) {
12514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12515 }
12516 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12517 ecode2 = SWIG_AsVal_long(obj1, &val2);
12518 if (!SWIG_IsOK(ecode2)) {
12519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12520 }
12521 arg2 = static_cast< long >(val2);
12522 ecode3 = SWIG_AsVal_long(obj2, &val3);
12523 if (!SWIG_IsOK(ecode3)) {
12524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12525 }
12526 arg3 = static_cast< long >(val3);
12527 {
12528 PyThreadState* __tstate = wxPyBeginAllowThreads();
12529 (arg1)->Remove(arg2,arg3);
12530 wxPyEndAllowThreads(__tstate);
12531 if (PyErr_Occurred()) SWIG_fail;
12532 }
12533 resultobj = SWIG_Py_Void();
12534 return resultobj;
12535fail:
12536 return NULL;
12537}
12538
12539
12540SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12541 PyObject *resultobj = 0;
12542 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12543 wxString *arg2 = 0 ;
f5263701 12544 int arg3 = (int) wxTEXT_TYPE_ANY ;
554f62e9
RD
12545 bool result;
12546 void *argp1 = 0 ;
12547 int res1 = 0 ;
12548 bool temp2 = false ;
f5263701
RD
12549 int val3 ;
12550 int ecode3 = 0 ;
554f62e9
RD
12551 PyObject * obj0 = 0 ;
12552 PyObject * obj1 = 0 ;
f5263701 12553 PyObject * obj2 = 0 ;
554f62e9 12554 char * kwnames[] = {
f5263701 12555 (char *) "self",(char *) "file",(char *) "fileType", NULL
554f62e9
RD
12556 };
12557
f5263701 12558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
554f62e9
RD
12559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12560 if (!SWIG_IsOK(res1)) {
12561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12562 }
12563 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12564 {
12565 arg2 = wxString_in_helper(obj1);
12566 if (arg2 == NULL) SWIG_fail;
12567 temp2 = true;
12568 }
f5263701
RD
12569 if (obj2) {
12570 ecode3 = SWIG_AsVal_int(obj2, &val3);
12571 if (!SWIG_IsOK(ecode3)) {
12572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12573 }
12574 arg3 = static_cast< int >(val3);
12575 }
554f62e9
RD
12576 {
12577 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12578 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
554f62e9
RD
12579 wxPyEndAllowThreads(__tstate);
12580 if (PyErr_Occurred()) SWIG_fail;
12581 }
12582 {
12583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12584 }
12585 {
12586 if (temp2)
12587 delete arg2;
12588 }
12589 return resultobj;
12590fail:
12591 {
12592 if (temp2)
12593 delete arg2;
12594 }
12595 return NULL;
12596}
12597
12598
12599SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12600 PyObject *resultobj = 0;
12601 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12602 wxString const &arg2_defvalue = wxPyEmptyString ;
12603 wxString *arg2 = (wxString *) &arg2_defvalue ;
f5263701 12604 int arg3 = (int) wxTEXT_TYPE_ANY ;
554f62e9
RD
12605 bool result;
12606 void *argp1 = 0 ;
12607 int res1 = 0 ;
12608 bool temp2 = false ;
f5263701
RD
12609 int val3 ;
12610 int ecode3 = 0 ;
554f62e9
RD
12611 PyObject * obj0 = 0 ;
12612 PyObject * obj1 = 0 ;
f5263701 12613 PyObject * obj2 = 0 ;
554f62e9 12614 char * kwnames[] = {
f5263701 12615 (char *) "self",(char *) "file",(char *) "fileType", NULL
554f62e9
RD
12616 };
12617
f5263701 12618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
554f62e9
RD
12619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12620 if (!SWIG_IsOK(res1)) {
12621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12622 }
12623 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12624 if (obj1) {
d55e5bfc 12625 {
554f62e9
RD
12626 arg2 = wxString_in_helper(obj1);
12627 if (arg2 == NULL) SWIG_fail;
12628 temp2 = true;
d55e5bfc 12629 }
554f62e9 12630 }
f5263701
RD
12631 if (obj2) {
12632 ecode3 = SWIG_AsVal_int(obj2, &val3);
12633 if (!SWIG_IsOK(ecode3)) {
12634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12635 }
12636 arg3 = static_cast< int >(val3);
12637 }
554f62e9
RD
12638 {
12639 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12640 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
554f62e9
RD
12641 wxPyEndAllowThreads(__tstate);
12642 if (PyErr_Occurred()) SWIG_fail;
12643 }
12644 {
12645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12646 }
12647 {
12648 if (temp2)
12649 delete arg2;
12650 }
12651 return resultobj;
12652fail:
12653 {
12654 if (temp2)
12655 delete arg2;
12656 }
12657 return NULL;
d55e5bfc
RD
12658}
12659
12660
554f62e9
RD
12661SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12662 PyObject *resultobj = 0;
12663 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12664 void *argp1 = 0 ;
12665 int res1 = 0 ;
12666 PyObject *swig_obj[1] ;
12667
12668 if (!args) SWIG_fail;
12669 swig_obj[0] = args;
12670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12671 if (!SWIG_IsOK(res1)) {
12672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12673 }
12674 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12675 {
12676 PyThreadState* __tstate = wxPyBeginAllowThreads();
12677 (arg1)->MarkDirty();
12678 wxPyEndAllowThreads(__tstate);
12679 if (PyErr_Occurred()) SWIG_fail;
12680 }
12681 resultobj = SWIG_Py_Void();
12682 return resultobj;
12683fail:
12684 return NULL;
d55e5bfc
RD
12685}
12686
12687
554f62e9
RD
12688SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12689 PyObject *resultobj = 0;
12690 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12691 void *argp1 = 0 ;
12692 int res1 = 0 ;
12693 PyObject *swig_obj[1] ;
12694
12695 if (!args) SWIG_fail;
12696 swig_obj[0] = args;
12697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12698 if (!SWIG_IsOK(res1)) {
12699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12700 }
12701 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12702 {
12703 PyThreadState* __tstate = wxPyBeginAllowThreads();
12704 (arg1)->DiscardEdits();
12705 wxPyEndAllowThreads(__tstate);
12706 if (PyErr_Occurred()) SWIG_fail;
12707 }
12708 resultobj = SWIG_Py_Void();
12709 return resultobj;
12710fail:
12711 return NULL;
12712}
12713
12714
b02396e8
RD
12715SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12716 PyObject *resultobj = 0;
12717 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12718 bool arg2 ;
12719 void *argp1 = 0 ;
12720 int res1 = 0 ;
12721 bool val2 ;
12722 int ecode2 = 0 ;
12723 PyObject * obj0 = 0 ;
12724 PyObject * obj1 = 0 ;
12725 char * kwnames[] = {
12726 (char *) "self",(char *) "modified", NULL
12727 };
12728
12729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12731 if (!SWIG_IsOK(res1)) {
12732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12733 }
12734 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12735 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12736 if (!SWIG_IsOK(ecode2)) {
12737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12738 }
12739 arg2 = static_cast< bool >(val2);
12740 {
12741 PyThreadState* __tstate = wxPyBeginAllowThreads();
12742 (arg1)->SetModified(arg2);
12743 wxPyEndAllowThreads(__tstate);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 }
12746 resultobj = SWIG_Py_Void();
12747 return resultobj;
12748fail:
12749 return NULL;
12750}
12751
12752
554f62e9
RD
12753SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12754 PyObject *resultobj = 0;
12755 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12756 unsigned long arg2 ;
12757 void *argp1 = 0 ;
12758 int res1 = 0 ;
12759 unsigned long val2 ;
12760 int ecode2 = 0 ;
12761 PyObject * obj0 = 0 ;
12762 PyObject * obj1 = 0 ;
12763 char * kwnames[] = {
12764 (char *) "self",(char *) "len", NULL
12765 };
12766
12767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12769 if (!SWIG_IsOK(res1)) {
12770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12771 }
12772 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12773 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12774 if (!SWIG_IsOK(ecode2)) {
12775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12776 }
12777 arg2 = static_cast< unsigned long >(val2);
12778 {
12779 PyThreadState* __tstate = wxPyBeginAllowThreads();
12780 (arg1)->SetMaxLength(arg2);
12781 wxPyEndAllowThreads(__tstate);
12782 if (PyErr_Occurred()) SWIG_fail;
12783 }
12784 resultobj = SWIG_Py_Void();
12785 return resultobj;
12786fail:
12787 return NULL;
12788}
12789
12790
12791SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12792 PyObject *resultobj = 0;
12793 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12794 wxString *arg2 = 0 ;
12795 void *argp1 = 0 ;
12796 int res1 = 0 ;
12797 bool temp2 = false ;
12798 PyObject * obj0 = 0 ;
12799 PyObject * obj1 = 0 ;
12800 char * kwnames[] = {
12801 (char *) "self",(char *) "text", NULL
12802 };
12803
12804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12806 if (!SWIG_IsOK(res1)) {
12807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12808 }
12809 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12810 {
12811 arg2 = wxString_in_helper(obj1);
12812 if (arg2 == NULL) SWIG_fail;
12813 temp2 = true;
12814 }
12815 {
12816 PyThreadState* __tstate = wxPyBeginAllowThreads();
12817 (arg1)->WriteText((wxString const &)*arg2);
12818 wxPyEndAllowThreads(__tstate);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 }
12821 resultobj = SWIG_Py_Void();
12822 {
12823 if (temp2)
12824 delete arg2;
12825 }
12826 return resultobj;
12827fail:
12828 {
12829 if (temp2)
12830 delete arg2;
12831 }
12832 return NULL;
d55e5bfc
RD
12833}
12834
12835
554f62e9
RD
12836SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12837 PyObject *resultobj = 0;
12838 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12839 wxString *arg2 = 0 ;
12840 void *argp1 = 0 ;
12841 int res1 = 0 ;
12842 bool temp2 = false ;
12843 PyObject * obj0 = 0 ;
12844 PyObject * obj1 = 0 ;
12845 char * kwnames[] = {
12846 (char *) "self",(char *) "text", NULL
12847 };
12848
12849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12851 if (!SWIG_IsOK(res1)) {
12852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12853 }
12854 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12855 {
12856 arg2 = wxString_in_helper(obj1);
12857 if (arg2 == NULL) SWIG_fail;
12858 temp2 = true;
12859 }
12860 {
12861 PyThreadState* __tstate = wxPyBeginAllowThreads();
12862 (arg1)->AppendText((wxString const &)*arg2);
12863 wxPyEndAllowThreads(__tstate);
12864 if (PyErr_Occurred()) SWIG_fail;
12865 }
12866 resultobj = SWIG_Py_Void();
12867 {
12868 if (temp2)
12869 delete arg2;
12870 }
12871 return resultobj;
12872fail:
12873 {
12874 if (temp2)
12875 delete arg2;
12876 }
12877 return NULL;
12878}
12879
12880
12881SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12882 PyObject *resultobj = 0;
12883 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12884 wxKeyEvent *arg2 = 0 ;
12885 bool result;
12886 void *argp1 = 0 ;
12887 int res1 = 0 ;
12888 void *argp2 = 0 ;
12889 int res2 = 0 ;
12890 PyObject * obj0 = 0 ;
12891 PyObject * obj1 = 0 ;
12892 char * kwnames[] = {
12893 (char *) "self",(char *) "event", NULL
12894 };
12895
12896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12898 if (!SWIG_IsOK(res1)) {
12899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12900 }
12901 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12902 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12903 if (!SWIG_IsOK(res2)) {
12904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12905 }
12906 if (!argp2) {
12907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12908 }
12909 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12910 {
12911 PyThreadState* __tstate = wxPyBeginAllowThreads();
12912 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12913 wxPyEndAllowThreads(__tstate);
12914 if (PyErr_Occurred()) SWIG_fail;
12915 }
12916 {
12917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12918 }
12919 return resultobj;
12920fail:
12921 return NULL;
12922}
12923
12924
12925SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12926 PyObject *resultobj = 0;
12927 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12928 long arg2 ;
12929 long arg3 ;
12930 wxTextAttr *arg4 = 0 ;
12931 bool result;
12932 void *argp1 = 0 ;
12933 int res1 = 0 ;
12934 long val2 ;
12935 int ecode2 = 0 ;
12936 long val3 ;
12937 int ecode3 = 0 ;
12938 void *argp4 = 0 ;
12939 int res4 = 0 ;
12940 PyObject * obj0 = 0 ;
12941 PyObject * obj1 = 0 ;
12942 PyObject * obj2 = 0 ;
12943 PyObject * obj3 = 0 ;
12944 char * kwnames[] = {
12945 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12946 };
12947
12948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12950 if (!SWIG_IsOK(res1)) {
12951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12952 }
12953 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12954 ecode2 = SWIG_AsVal_long(obj1, &val2);
12955 if (!SWIG_IsOK(ecode2)) {
12956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12957 }
12958 arg2 = static_cast< long >(val2);
12959 ecode3 = SWIG_AsVal_long(obj2, &val3);
12960 if (!SWIG_IsOK(ecode3)) {
12961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12962 }
12963 arg3 = static_cast< long >(val3);
12964 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12965 if (!SWIG_IsOK(res4)) {
12966 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12967 }
12968 if (!argp4) {
12969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12970 }
12971 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12972 {
12973 PyThreadState* __tstate = wxPyBeginAllowThreads();
12974 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12975 wxPyEndAllowThreads(__tstate);
12976 if (PyErr_Occurred()) SWIG_fail;
12977 }
12978 {
12979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12980 }
12981 return resultobj;
12982fail:
12983 return NULL;
12984}
12985
12986
12987SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12988 PyObject *resultobj = 0;
12989 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12990 long arg2 ;
12991 wxTextAttr *arg3 = 0 ;
12992 bool result;
12993 void *argp1 = 0 ;
12994 int res1 = 0 ;
12995 long val2 ;
12996 int ecode2 = 0 ;
12997 void *argp3 = 0 ;
12998 int res3 = 0 ;
12999 PyObject * obj0 = 0 ;
13000 PyObject * obj1 = 0 ;
13001 PyObject * obj2 = 0 ;
13002 char * kwnames[] = {
13003 (char *) "self",(char *) "position",(char *) "style", NULL
13004 };
13005
13006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13008 if (!SWIG_IsOK(res1)) {
13009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13010 }
13011 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13012 ecode2 = SWIG_AsVal_long(obj1, &val2);
13013 if (!SWIG_IsOK(ecode2)) {
13014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
13015 }
13016 arg2 = static_cast< long >(val2);
13017 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
13018 if (!SWIG_IsOK(res3)) {
13019 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13020 }
13021 if (!argp3) {
13022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13023 }
13024 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
13025 {
13026 PyThreadState* __tstate = wxPyBeginAllowThreads();
13027 result = (bool)(arg1)->GetStyle(arg2,*arg3);
13028 wxPyEndAllowThreads(__tstate);
13029 if (PyErr_Occurred()) SWIG_fail;
13030 }
13031 {
13032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13033 }
13034 return resultobj;
13035fail:
13036 return NULL;
13037}
13038
13039
13040SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13041 PyObject *resultobj = 0;
13042 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13043 wxTextAttr *arg2 = 0 ;
13044 bool result;
13045 void *argp1 = 0 ;
13046 int res1 = 0 ;
13047 void *argp2 = 0 ;
13048 int res2 = 0 ;
13049 PyObject * obj0 = 0 ;
13050 PyObject * obj1 = 0 ;
13051 char * kwnames[] = {
13052 (char *) "self",(char *) "style", NULL
13053 };
13054
13055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13057 if (!SWIG_IsOK(res1)) {
13058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13059 }
13060 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13062 if (!SWIG_IsOK(res2)) {
13063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13064 }
13065 if (!argp2) {
13066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13067 }
13068 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13069 {
13070 PyThreadState* __tstate = wxPyBeginAllowThreads();
13071 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13072 wxPyEndAllowThreads(__tstate);
13073 if (PyErr_Occurred()) SWIG_fail;
13074 }
13075 {
13076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13077 }
13078 return resultobj;
13079fail:
13080 return NULL;
d55e5bfc
RD
13081}
13082
13083
554f62e9
RD
13084SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13085 PyObject *resultobj = 0;
13086 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13087 wxTextAttr *result = 0 ;
13088 void *argp1 = 0 ;
13089 int res1 = 0 ;
13090 PyObject *swig_obj[1] ;
13091
13092 if (!args) SWIG_fail;
13093 swig_obj[0] = args;
13094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13095 if (!SWIG_IsOK(res1)) {
13096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13097 }
13098 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13099 {
13100 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13101 {
554f62e9
RD
13102 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13103 result = (wxTextAttr *) &_result_ref;
093d3ff1 13104 }
554f62e9
RD
13105 wxPyEndAllowThreads(__tstate);
13106 if (PyErr_Occurred()) SWIG_fail;
13107 }
13108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13109 return resultobj;
13110fail:
13111 return NULL;
13112}
13113
13114
13115SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13116 PyObject *resultobj = 0;
13117 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13118 long arg2 ;
13119 long arg3 ;
13120 long result;
13121 void *argp1 = 0 ;
13122 int res1 = 0 ;
13123 long val2 ;
13124 int ecode2 = 0 ;
13125 long val3 ;
13126 int ecode3 = 0 ;
13127 PyObject * obj0 = 0 ;
13128 PyObject * obj1 = 0 ;
13129 PyObject * obj2 = 0 ;
13130 char * kwnames[] = {
13131 (char *) "self",(char *) "x",(char *) "y", NULL
13132 };
13133
13134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13136 if (!SWIG_IsOK(res1)) {
13137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13138 }
13139 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13140 ecode2 = SWIG_AsVal_long(obj1, &val2);
13141 if (!SWIG_IsOK(ecode2)) {
13142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13143 }
13144 arg2 = static_cast< long >(val2);
13145 ecode3 = SWIG_AsVal_long(obj2, &val3);
13146 if (!SWIG_IsOK(ecode3)) {
13147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13148 }
13149 arg3 = static_cast< long >(val3);
13150 {
13151 PyThreadState* __tstate = wxPyBeginAllowThreads();
13152 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13153 wxPyEndAllowThreads(__tstate);
13154 if (PyErr_Occurred()) SWIG_fail;
13155 }
13156 resultobj = SWIG_From_long(static_cast< long >(result));
13157 return resultobj;
13158fail:
13159 return NULL;
13160}
13161
13162
13163SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13164 PyObject *resultobj = 0;
13165 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13166 long arg2 ;
13167 long *arg3 = (long *) 0 ;
13168 long *arg4 = (long *) 0 ;
13169 void *argp1 = 0 ;
13170 int res1 = 0 ;
13171 long val2 ;
13172 int ecode2 = 0 ;
13173 long temp3 ;
13174 int res3 = SWIG_TMPOBJ ;
13175 long temp4 ;
13176 int res4 = SWIG_TMPOBJ ;
13177 PyObject * obj0 = 0 ;
13178 PyObject * obj1 = 0 ;
13179 char * kwnames[] = {
13180 (char *) "self",(char *) "pos", NULL
13181 };
13182
13183 arg3 = &temp3;
13184 arg4 = &temp4;
13185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13187 if (!SWIG_IsOK(res1)) {
13188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13189 }
13190 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13191 ecode2 = SWIG_AsVal_long(obj1, &val2);
13192 if (!SWIG_IsOK(ecode2)) {
13193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13194 }
13195 arg2 = static_cast< long >(val2);
13196 {
13197 PyThreadState* __tstate = wxPyBeginAllowThreads();
13198 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13199 wxPyEndAllowThreads(__tstate);
13200 if (PyErr_Occurred()) SWIG_fail;
13201 }
13202 resultobj = SWIG_Py_Void();
13203 if (SWIG_IsTmpObj(res3)) {
13204 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13205 } else {
13206 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13207 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13208 }
13209 if (SWIG_IsTmpObj(res4)) {
13210 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13211 } else {
13212 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13213 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13214 }
13215 return resultobj;
13216fail:
13217 return NULL;
13218}
13219
13220
13221SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13222 PyObject *resultobj = 0;
13223 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13224 long arg2 ;
13225 void *argp1 = 0 ;
13226 int res1 = 0 ;
13227 long val2 ;
13228 int ecode2 = 0 ;
13229 PyObject * obj0 = 0 ;
13230 PyObject * obj1 = 0 ;
13231 char * kwnames[] = {
13232 (char *) "self",(char *) "pos", NULL
13233 };
13234
13235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13237 if (!SWIG_IsOK(res1)) {
13238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13239 }
13240 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13241 ecode2 = SWIG_AsVal_long(obj1, &val2);
13242 if (!SWIG_IsOK(ecode2)) {
13243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13244 }
13245 arg2 = static_cast< long >(val2);
13246 {
13247 PyThreadState* __tstate = wxPyBeginAllowThreads();
13248 (arg1)->ShowPosition(arg2);
13249 wxPyEndAllowThreads(__tstate);
13250 if (PyErr_Occurred()) SWIG_fail;
13251 }
13252 resultobj = SWIG_Py_Void();
13253 return resultobj;
13254fail:
13255 return NULL;
13256}
13257
13258
13259SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13260 PyObject *resultobj = 0;
13261 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13262 wxPoint *arg2 = 0 ;
13263 long *arg3 = (long *) 0 ;
13264 long *arg4 = (long *) 0 ;
13265 wxTextCtrlHitTestResult result;
13266 void *argp1 = 0 ;
13267 int res1 = 0 ;
13268 wxPoint temp2 ;
13269 long temp3 ;
13270 int res3 = SWIG_TMPOBJ ;
13271 long temp4 ;
13272 int res4 = SWIG_TMPOBJ ;
13273 PyObject * obj0 = 0 ;
13274 PyObject * obj1 = 0 ;
13275 char * kwnames[] = {
13276 (char *) "self",(char *) "pt", NULL
13277 };
13278
13279 arg3 = &temp3;
13280 arg4 = &temp4;
13281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13283 if (!SWIG_IsOK(res1)) {
13284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13285 }
13286 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13287 {
13288 arg2 = &temp2;
13289 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13290 }
13291 {
13292 PyThreadState* __tstate = wxPyBeginAllowThreads();
13293 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13294 wxPyEndAllowThreads(__tstate);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 resultobj = SWIG_From_int(static_cast< int >(result));
13298 if (SWIG_IsTmpObj(res3)) {
13299 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13300 } else {
13301 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13302 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13303 }
13304 if (SWIG_IsTmpObj(res4)) {
13305 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13306 } else {
13307 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13308 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13309 }
13310 return resultobj;
13311fail:
13312 return NULL;
13313}
13314
13315
13316SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13317 PyObject *resultobj = 0;
13318 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13319 wxPoint *arg2 = 0 ;
13320 long *arg3 = (long *) 0 ;
13321 wxTextCtrlHitTestResult result;
13322 void *argp1 = 0 ;
13323 int res1 = 0 ;
13324 wxPoint temp2 ;
13325 long temp3 ;
13326 int res3 = SWIG_TMPOBJ ;
13327 PyObject * obj0 = 0 ;
13328 PyObject * obj1 = 0 ;
13329 char * kwnames[] = {
13330 (char *) "self",(char *) "pt", NULL
13331 };
13332
13333 arg3 = &temp3;
13334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13336 if (!SWIG_IsOK(res1)) {
13337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13338 }
13339 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13340 {
13341 arg2 = &temp2;
13342 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13343 }
13344 {
13345 PyThreadState* __tstate = wxPyBeginAllowThreads();
13346 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13347 wxPyEndAllowThreads(__tstate);
13348 if (PyErr_Occurred()) SWIG_fail;
13349 }
13350 resultobj = SWIG_From_int(static_cast< int >(result));
13351 if (SWIG_IsTmpObj(res3)) {
13352 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13353 } else {
13354 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13355 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13356 }
13357 return resultobj;
13358fail:
13359 return NULL;
d55e5bfc
RD
13360}
13361
13362
554f62e9
RD
13363SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13364 PyObject *resultobj = 0;
13365 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13366 void *argp1 = 0 ;
13367 int res1 = 0 ;
13368 PyObject *swig_obj[1] ;
13369
13370 if (!args) SWIG_fail;
13371 swig_obj[0] = args;
13372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13373 if (!SWIG_IsOK(res1)) {
13374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13375 }
13376 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13377 {
13378 PyThreadState* __tstate = wxPyBeginAllowThreads();
13379 (arg1)->Copy();
13380 wxPyEndAllowThreads(__tstate);
13381 if (PyErr_Occurred()) SWIG_fail;
13382 }
13383 resultobj = SWIG_Py_Void();
13384 return resultobj;
13385fail:
13386 return NULL;
d55e5bfc 13387}
554f62e9
RD
13388
13389
13390SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13391 PyObject *resultobj = 0;
13392 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13393 void *argp1 = 0 ;
13394 int res1 = 0 ;
13395 PyObject *swig_obj[1] ;
13396
13397 if (!args) SWIG_fail;
13398 swig_obj[0] = args;
13399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13400 if (!SWIG_IsOK(res1)) {
13401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13402 }
13403 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13404 {
13405 PyThreadState* __tstate = wxPyBeginAllowThreads();
13406 (arg1)->Cut();
13407 wxPyEndAllowThreads(__tstate);
13408 if (PyErr_Occurred()) SWIG_fail;
13409 }
13410 resultobj = SWIG_Py_Void();
13411 return resultobj;
13412fail:
13413 return NULL;
d55e5bfc
RD
13414}
13415
13416
554f62e9
RD
13417SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13418 PyObject *resultobj = 0;
13419 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13420 void *argp1 = 0 ;
13421 int res1 = 0 ;
13422 PyObject *swig_obj[1] ;
13423
13424 if (!args) SWIG_fail;
13425 swig_obj[0] = args;
13426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13427 if (!SWIG_IsOK(res1)) {
13428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13429 }
13430 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13431 {
13432 PyThreadState* __tstate = wxPyBeginAllowThreads();
13433 (arg1)->Paste();
13434 wxPyEndAllowThreads(__tstate);
13435 if (PyErr_Occurred()) SWIG_fail;
13436 }
13437 resultobj = SWIG_Py_Void();
13438 return resultobj;
13439fail:
13440 return NULL;
d55e5bfc
RD
13441}
13442
13443
554f62e9
RD
13444SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13445 PyObject *resultobj = 0;
13446 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13447 bool result;
13448 void *argp1 = 0 ;
13449 int res1 = 0 ;
13450 PyObject *swig_obj[1] ;
13451
13452 if (!args) SWIG_fail;
13453 swig_obj[0] = args;
13454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13455 if (!SWIG_IsOK(res1)) {
13456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13457 }
13458 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13459 {
13460 PyThreadState* __tstate = wxPyBeginAllowThreads();
13461 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13462 wxPyEndAllowThreads(__tstate);
13463 if (PyErr_Occurred()) SWIG_fail;
13464 }
13465 {
13466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13467 }
13468 return resultobj;
13469fail:
13470 return NULL;
d55e5bfc
RD
13471}
13472
13473
554f62e9
RD
13474SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13475 PyObject *resultobj = 0;
13476 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13477 bool result;
13478 void *argp1 = 0 ;
13479 int res1 = 0 ;
13480 PyObject *swig_obj[1] ;
13481
13482 if (!args) SWIG_fail;
13483 swig_obj[0] = args;
13484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13485 if (!SWIG_IsOK(res1)) {
13486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13487 }
13488 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13489 {
13490 PyThreadState* __tstate = wxPyBeginAllowThreads();
13491 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13492 wxPyEndAllowThreads(__tstate);
13493 if (PyErr_Occurred()) SWIG_fail;
13494 }
13495 {
13496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13497 }
13498 return resultobj;
13499fail:
13500 return NULL;
d55e5bfc
RD
13501}
13502
13503
554f62e9
RD
13504SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13505 PyObject *resultobj = 0;
13506 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13507 bool result;
13508 void *argp1 = 0 ;
13509 int res1 = 0 ;
13510 PyObject *swig_obj[1] ;
13511
13512 if (!args) SWIG_fail;
13513 swig_obj[0] = args;
13514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13515 if (!SWIG_IsOK(res1)) {
13516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13517 }
13518 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13519 {
13520 PyThreadState* __tstate = wxPyBeginAllowThreads();
13521 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13522 wxPyEndAllowThreads(__tstate);
13523 if (PyErr_Occurred()) SWIG_fail;
13524 }
13525 {
13526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13527 }
13528 return resultobj;
13529fail:
13530 return NULL;
d55e5bfc
RD
13531}
13532
13533
554f62e9
RD
13534SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13535 PyObject *resultobj = 0;
13536 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13537 void *argp1 = 0 ;
13538 int res1 = 0 ;
13539 PyObject *swig_obj[1] ;
13540
13541 if (!args) SWIG_fail;
13542 swig_obj[0] = args;
13543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13544 if (!SWIG_IsOK(res1)) {
13545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13546 }
13547 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13548 {
13549 PyThreadState* __tstate = wxPyBeginAllowThreads();
13550 (arg1)->Undo();
13551 wxPyEndAllowThreads(__tstate);
13552 if (PyErr_Occurred()) SWIG_fail;
13553 }
13554 resultobj = SWIG_Py_Void();
13555 return resultobj;
13556fail:
13557 return NULL;
d55e5bfc
RD
13558}
13559
13560
554f62e9
RD
13561SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13562 PyObject *resultobj = 0;
13563 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13564 void *argp1 = 0 ;
13565 int res1 = 0 ;
13566 PyObject *swig_obj[1] ;
13567
13568 if (!args) SWIG_fail;
13569 swig_obj[0] = args;
13570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13571 if (!SWIG_IsOK(res1)) {
13572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13573 }
13574 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13575 {
13576 PyThreadState* __tstate = wxPyBeginAllowThreads();
13577 (arg1)->Redo();
13578 wxPyEndAllowThreads(__tstate);
13579 if (PyErr_Occurred()) SWIG_fail;
13580 }
13581 resultobj = SWIG_Py_Void();
13582 return resultobj;
13583fail:
13584 return NULL;
d55e5bfc
RD
13585}
13586
13587
554f62e9
RD
13588SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13589 PyObject *resultobj = 0;
13590 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13591 bool result;
13592 void *argp1 = 0 ;
13593 int res1 = 0 ;
13594 PyObject *swig_obj[1] ;
13595
13596 if (!args) SWIG_fail;
13597 swig_obj[0] = args;
13598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13599 if (!SWIG_IsOK(res1)) {
13600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13601 }
13602 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13603 {
13604 PyThreadState* __tstate = wxPyBeginAllowThreads();
13605 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13606 wxPyEndAllowThreads(__tstate);
13607 if (PyErr_Occurred()) SWIG_fail;
13608 }
13609 {
13610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13611 }
13612 return resultobj;
13613fail:
13614 return NULL;
d55e5bfc
RD
13615}
13616
13617
554f62e9
RD
13618SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13619 PyObject *resultobj = 0;
13620 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13621 bool result;
13622 void *argp1 = 0 ;
13623 int res1 = 0 ;
13624 PyObject *swig_obj[1] ;
13625
13626 if (!args) SWIG_fail;
13627 swig_obj[0] = args;
13628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13629 if (!SWIG_IsOK(res1)) {
13630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13631 }
13632 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13633 {
13634 PyThreadState* __tstate = wxPyBeginAllowThreads();
13635 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13636 wxPyEndAllowThreads(__tstate);
13637 if (PyErr_Occurred()) SWIG_fail;
13638 }
13639 {
13640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13641 }
13642 return resultobj;
13643fail:
13644 return NULL;
13645}
13646
13647
13648SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13649 PyObject *resultobj = 0;
13650 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13651 long arg2 ;
13652 void *argp1 = 0 ;
13653 int res1 = 0 ;
13654 long val2 ;
13655 int ecode2 = 0 ;
13656 PyObject * obj0 = 0 ;
13657 PyObject * obj1 = 0 ;
13658 char * kwnames[] = {
13659 (char *) "self",(char *) "pos", NULL
13660 };
13661
13662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13664 if (!SWIG_IsOK(res1)) {
13665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13666 }
13667 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13668 ecode2 = SWIG_AsVal_long(obj1, &val2);
13669 if (!SWIG_IsOK(ecode2)) {
13670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13671 }
13672 arg2 = static_cast< long >(val2);
13673 {
13674 PyThreadState* __tstate = wxPyBeginAllowThreads();
13675 (arg1)->SetInsertionPoint(arg2);
13676 wxPyEndAllowThreads(__tstate);
13677 if (PyErr_Occurred()) SWIG_fail;
13678 }
13679 resultobj = SWIG_Py_Void();
13680 return resultobj;
13681fail:
13682 return NULL;
d55e5bfc
RD
13683}
13684
13685
554f62e9
RD
13686SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13687 PyObject *resultobj = 0;
13688 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13689 void *argp1 = 0 ;
13690 int res1 = 0 ;
13691 PyObject *swig_obj[1] ;
13692
13693 if (!args) SWIG_fail;
13694 swig_obj[0] = args;
13695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13696 if (!SWIG_IsOK(res1)) {
13697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13698 }
13699 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13700 {
13701 PyThreadState* __tstate = wxPyBeginAllowThreads();
13702 (arg1)->SetInsertionPointEnd();
13703 wxPyEndAllowThreads(__tstate);
13704 if (PyErr_Occurred()) SWIG_fail;
13705 }
13706 resultobj = SWIG_Py_Void();
13707 return resultobj;
13708fail:
13709 return NULL;
d55e5bfc
RD
13710}
13711
13712
554f62e9
RD
13713SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13714 PyObject *resultobj = 0;
13715 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13716 long result;
13717 void *argp1 = 0 ;
13718 int res1 = 0 ;
13719 PyObject *swig_obj[1] ;
13720
13721 if (!args) SWIG_fail;
13722 swig_obj[0] = args;
13723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13724 if (!SWIG_IsOK(res1)) {
13725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13726 }
13727 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13728 {
13729 PyThreadState* __tstate = wxPyBeginAllowThreads();
13730 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13731 wxPyEndAllowThreads(__tstate);
13732 if (PyErr_Occurred()) SWIG_fail;
13733 }
13734 resultobj = SWIG_From_long(static_cast< long >(result));
13735 return resultobj;
13736fail:
13737 return NULL;
d55e5bfc
RD
13738}
13739
13740
554f62e9
RD
13741SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13742 PyObject *resultobj = 0;
13743 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13744 long result;
13745 void *argp1 = 0 ;
13746 int res1 = 0 ;
13747 PyObject *swig_obj[1] ;
13748
13749 if (!args) SWIG_fail;
13750 swig_obj[0] = args;
13751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13752 if (!SWIG_IsOK(res1)) {
13753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13754 }
13755 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13756 {
13757 PyThreadState* __tstate = wxPyBeginAllowThreads();
13758 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13759 wxPyEndAllowThreads(__tstate);
13760 if (PyErr_Occurred()) SWIG_fail;
13761 }
13762 resultobj = SWIG_From_long(static_cast< long >(result));
13763 return resultobj;
13764fail:
13765 return NULL;
13766}
13767
13768
13769SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13770 PyObject *resultobj = 0;
13771 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13772 long arg2 ;
13773 long arg3 ;
13774 void *argp1 = 0 ;
13775 int res1 = 0 ;
13776 long val2 ;
13777 int ecode2 = 0 ;
13778 long val3 ;
13779 int ecode3 = 0 ;
13780 PyObject * obj0 = 0 ;
13781 PyObject * obj1 = 0 ;
13782 PyObject * obj2 = 0 ;
13783 char * kwnames[] = {
f460c29d 13784 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
13785 };
13786
13787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13789 if (!SWIG_IsOK(res1)) {
13790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13791 }
13792 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13793 ecode2 = SWIG_AsVal_long(obj1, &val2);
13794 if (!SWIG_IsOK(ecode2)) {
13795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13796 }
13797 arg2 = static_cast< long >(val2);
13798 ecode3 = SWIG_AsVal_long(obj2, &val3);
13799 if (!SWIG_IsOK(ecode3)) {
13800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13801 }
13802 arg3 = static_cast< long >(val3);
13803 {
13804 PyThreadState* __tstate = wxPyBeginAllowThreads();
13805 (arg1)->SetSelection(arg2,arg3);
13806 wxPyEndAllowThreads(__tstate);
13807 if (PyErr_Occurred()) SWIG_fail;
13808 }
13809 resultobj = SWIG_Py_Void();
13810 return resultobj;
13811fail:
13812 return NULL;
d55e5bfc
RD
13813}
13814
13815
554f62e9
RD
13816SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13817 PyObject *resultobj = 0;
13818 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13819 void *argp1 = 0 ;
13820 int res1 = 0 ;
13821 PyObject *swig_obj[1] ;
13822
13823 if (!args) SWIG_fail;
13824 swig_obj[0] = args;
13825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13826 if (!SWIG_IsOK(res1)) {
13827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13828 }
13829 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13830 {
13831 PyThreadState* __tstate = wxPyBeginAllowThreads();
13832 (arg1)->SelectAll();
13833 wxPyEndAllowThreads(__tstate);
13834 if (PyErr_Occurred()) SWIG_fail;
13835 }
13836 resultobj = SWIG_Py_Void();
13837 return resultobj;
13838fail:
13839 return NULL;
13840}
13841
13842
13843SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13844 PyObject *resultobj = 0;
13845 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13846 bool arg2 ;
13847 void *argp1 = 0 ;
13848 int res1 = 0 ;
13849 bool val2 ;
13850 int ecode2 = 0 ;
13851 PyObject * obj0 = 0 ;
13852 PyObject * obj1 = 0 ;
13853 char * kwnames[] = {
13854 (char *) "self",(char *) "editable", NULL
13855 };
13856
13857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13859 if (!SWIG_IsOK(res1)) {
13860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13861 }
13862 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13863 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13864 if (!SWIG_IsOK(ecode2)) {
13865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13866 }
13867 arg2 = static_cast< bool >(val2);
13868 {
13869 PyThreadState* __tstate = wxPyBeginAllowThreads();
13870 (arg1)->SetEditable(arg2);
13871 wxPyEndAllowThreads(__tstate);
13872 if (PyErr_Occurred()) SWIG_fail;
13873 }
13874 resultobj = SWIG_Py_Void();
13875 return resultobj;
13876fail:
13877 return NULL;
13878}
13879
13880
b39fe951
RD
13881SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13882 PyObject *resultobj = 0;
13883 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13884 void *argp1 = 0 ;
13885 int res1 = 0 ;
13886 PyObject *swig_obj[1] ;
13887
13888 if (!args) SWIG_fail;
13889 swig_obj[0] = args;
13890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13891 if (!SWIG_IsOK(res1)) {
13892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13893 }
13894 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13895 {
13896 PyThreadState* __tstate = wxPyBeginAllowThreads();
13897 (arg1)->SendTextUpdatedEvent();
13898 wxPyEndAllowThreads(__tstate);
13899 if (PyErr_Occurred()) SWIG_fail;
13900 }
13901 resultobj = SWIG_Py_Void();
13902 return resultobj;
13903fail:
13904 return NULL;
13905}
13906
13907
554f62e9
RD
13908SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13909 PyObject *resultobj = 0;
13910 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13911 bool arg2 = (bool) true ;
13912 bool result;
13913 void *argp1 = 0 ;
13914 int res1 = 0 ;
13915 bool val2 ;
13916 int ecode2 = 0 ;
13917 PyObject * obj0 = 0 ;
13918 PyObject * obj1 = 0 ;
13919 char * kwnames[] = {
13920 (char *) "self",(char *) "show", NULL
13921 };
13922
13923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13925 if (!SWIG_IsOK(res1)) {
13926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13927 }
13928 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13929 if (obj1) {
13930 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13931 if (!SWIG_IsOK(ecode2)) {
13932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13933 }
13934 arg2 = static_cast< bool >(val2);
13935 }
13936 {
13937 PyThreadState* __tstate = wxPyBeginAllowThreads();
13938 result = (bool)(arg1)->ShowNativeCaret(arg2);
13939 wxPyEndAllowThreads(__tstate);
13940 if (PyErr_Occurred()) SWIG_fail;
13941 }
13942 {
13943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13944 }
13945 return resultobj;
13946fail:
13947 return NULL;
d55e5bfc
RD
13948}
13949
13950
554f62e9
RD
13951SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13952 PyObject *resultobj = 0;
13953 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13954 bool result;
13955 void *argp1 = 0 ;
13956 int res1 = 0 ;
13957 PyObject *swig_obj[1] ;
13958
13959 if (!args) SWIG_fail;
13960 swig_obj[0] = args;
13961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13962 if (!SWIG_IsOK(res1)) {
13963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13964 }
13965 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13966 {
13967 PyThreadState* __tstate = wxPyBeginAllowThreads();
13968 result = (bool)(arg1)->HideNativeCaret();
13969 wxPyEndAllowThreads(__tstate);
13970 if (PyErr_Occurred()) SWIG_fail;
13971 }
13972 {
13973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13974 }
13975 return resultobj;
13976fail:
13977 return NULL;
13978}
13979
13980
13981SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13982 PyObject *resultobj = 0;
13983 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13984 wxString *arg2 = 0 ;
13985 void *argp1 = 0 ;
13986 int res1 = 0 ;
13987 bool temp2 = false ;
13988 PyObject * obj0 = 0 ;
13989 PyObject * obj1 = 0 ;
13990 char * kwnames[] = {
13991 (char *) "self",(char *) "text", NULL
13992 };
13993
13994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13996 if (!SWIG_IsOK(res1)) {
13997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13998 }
13999 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14000 {
14001 arg2 = wxString_in_helper(obj1);
14002 if (arg2 == NULL) SWIG_fail;
14003 temp2 = true;
14004 }
14005 {
14006 PyThreadState* __tstate = wxPyBeginAllowThreads();
14007 wxTextCtrl_write(arg1,(wxString const &)*arg2);
14008 wxPyEndAllowThreads(__tstate);
14009 if (PyErr_Occurred()) SWIG_fail;
14010 }
14011 resultobj = SWIG_Py_Void();
14012 {
14013 if (temp2)
14014 delete arg2;
14015 }
14016 return resultobj;
14017fail:
14018 {
14019 if (temp2)
14020 delete arg2;
14021 }
14022 return NULL;
14023}
14024
14025
14026SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14027 PyObject *resultobj = 0;
14028 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14029 long arg2 ;
14030 long arg3 ;
14031 wxString result;
14032 void *argp1 = 0 ;
14033 int res1 = 0 ;
14034 long val2 ;
14035 int ecode2 = 0 ;
14036 long val3 ;
14037 int ecode3 = 0 ;
14038 PyObject * obj0 = 0 ;
14039 PyObject * obj1 = 0 ;
14040 PyObject * obj2 = 0 ;
14041 char * kwnames[] = {
f460c29d 14042 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
14043 };
14044
14045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14047 if (!SWIG_IsOK(res1)) {
14048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14049 }
14050 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14051 ecode2 = SWIG_AsVal_long(obj1, &val2);
14052 if (!SWIG_IsOK(ecode2)) {
14053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
14054 }
14055 arg2 = static_cast< long >(val2);
14056 ecode3 = SWIG_AsVal_long(obj2, &val3);
14057 if (!SWIG_IsOK(ecode3)) {
14058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
14059 }
14060 arg3 = static_cast< long >(val3);
14061 {
14062 PyThreadState* __tstate = wxPyBeginAllowThreads();
14063 result = wxTextCtrl_GetString(arg1,arg2,arg3);
14064 wxPyEndAllowThreads(__tstate);
14065 if (PyErr_Occurred()) SWIG_fail;
14066 }
14067 {
14068#if wxUSE_UNICODE
14069 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14070#else
14071 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14072#endif
14073 }
14074 return resultobj;
14075fail:
14076 return NULL;
d55e5bfc
RD
14077}
14078
14079
554f62e9
RD
14080SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14081 PyObject *resultobj = 0;
14082 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14083 SwigValueWrapper<wxVisualAttributes > result;
14084 int val1 ;
14085 int ecode1 = 0 ;
14086 PyObject * obj0 = 0 ;
14087 char * kwnames[] = {
14088 (char *) "variant", NULL
14089 };
14090
14091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14092 if (obj0) {
14093 ecode1 = SWIG_AsVal_int(obj0, &val1);
14094 if (!SWIG_IsOK(ecode1)) {
14095 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14096 }
14097 arg1 = static_cast< wxWindowVariant >(val1);
14098 }
14099 {
14100 if (!wxPyCheckForApp()) SWIG_fail;
14101 PyThreadState* __tstate = wxPyBeginAllowThreads();
14102 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14103 wxPyEndAllowThreads(__tstate);
14104 if (PyErr_Occurred()) SWIG_fail;
14105 }
14106 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14107 return resultobj;
14108fail:
14109 return NULL;
14110}
14111
14112
14113SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14114 PyObject *obj;
14115 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14116 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14117 return SWIG_Py_Void();
14118}
14119
14120SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14121 return SWIG_Python_InitShadowInstance(args);
14122}
14123
14124SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14125 PyObject *resultobj = 0;
14126 int arg1 ;
14127 wxMouseEvent *arg2 = 0 ;
14128 long arg3 ;
14129 long arg4 ;
14130 wxTextUrlEvent *result = 0 ;
14131 int val1 ;
14132 int ecode1 = 0 ;
14133 void *argp2 = 0 ;
14134 int res2 = 0 ;
14135 long val3 ;
14136 int ecode3 = 0 ;
14137 long val4 ;
14138 int ecode4 = 0 ;
14139 PyObject * obj0 = 0 ;
14140 PyObject * obj1 = 0 ;
14141 PyObject * obj2 = 0 ;
14142 PyObject * obj3 = 0 ;
14143 char * kwnames[] = {
14144 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14145 };
14146
14147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14148 ecode1 = SWIG_AsVal_int(obj0, &val1);
14149 if (!SWIG_IsOK(ecode1)) {
14150 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14151 }
14152 arg1 = static_cast< int >(val1);
14153 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14154 if (!SWIG_IsOK(res2)) {
14155 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14156 }
14157 if (!argp2) {
14158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14159 }
14160 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14161 ecode3 = SWIG_AsVal_long(obj2, &val3);
14162 if (!SWIG_IsOK(ecode3)) {
14163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14164 }
14165 arg3 = static_cast< long >(val3);
14166 ecode4 = SWIG_AsVal_long(obj3, &val4);
14167 if (!SWIG_IsOK(ecode4)) {
14168 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14169 }
14170 arg4 = static_cast< long >(val4);
14171 {
14172 PyThreadState* __tstate = wxPyBeginAllowThreads();
14173 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14174 wxPyEndAllowThreads(__tstate);
14175 if (PyErr_Occurred()) SWIG_fail;
14176 }
14177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14178 return resultobj;
14179fail:
14180 return NULL;
d55e5bfc
RD
14181}
14182
14183
554f62e9
RD
14184SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14185 PyObject *resultobj = 0;
14186 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14187 wxMouseEvent *result = 0 ;
14188 void *argp1 = 0 ;
14189 int res1 = 0 ;
14190 PyObject *swig_obj[1] ;
14191
14192 if (!args) SWIG_fail;
14193 swig_obj[0] = args;
14194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14195 if (!SWIG_IsOK(res1)) {
14196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14197 }
14198 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14199 {
14200 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 14201 {
554f62e9
RD
14202 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14203 result = (wxMouseEvent *) &_result_ref;
d55e5bfc 14204 }
554f62e9
RD
14205 wxPyEndAllowThreads(__tstate);
14206 if (PyErr_Occurred()) SWIG_fail;
14207 }
14208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14209 return resultobj;
14210fail:
14211 return NULL;
d55e5bfc
RD
14212}
14213
14214
554f62e9
RD
14215SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14216 PyObject *resultobj = 0;
14217 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14218 long result;
14219 void *argp1 = 0 ;
14220 int res1 = 0 ;
14221 PyObject *swig_obj[1] ;
14222
14223 if (!args) SWIG_fail;
14224 swig_obj[0] = args;
14225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14226 if (!SWIG_IsOK(res1)) {
14227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14228 }
14229 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14230 {
14231 PyThreadState* __tstate = wxPyBeginAllowThreads();
14232 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14233 wxPyEndAllowThreads(__tstate);
14234 if (PyErr_Occurred()) SWIG_fail;
14235 }
14236 resultobj = SWIG_From_long(static_cast< long >(result));
14237 return resultobj;
14238fail:
14239 return NULL;
d55e5bfc
RD
14240}
14241
14242
554f62e9
RD
14243SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14244 PyObject *resultobj = 0;
14245 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14246 long result;
14247 void *argp1 = 0 ;
14248 int res1 = 0 ;
14249 PyObject *swig_obj[1] ;
14250
14251 if (!args) SWIG_fail;
14252 swig_obj[0] = args;
14253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14254 if (!SWIG_IsOK(res1)) {
14255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14256 }
14257 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14258 {
14259 PyThreadState* __tstate = wxPyBeginAllowThreads();
14260 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14261 wxPyEndAllowThreads(__tstate);
14262 if (PyErr_Occurred()) SWIG_fail;
14263 }
14264 resultobj = SWIG_From_long(static_cast< long >(result));
14265 return resultobj;
14266fail:
14267 return NULL;
d55e5bfc
RD
14268}
14269
14270
554f62e9
RD
14271SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14272 PyObject *obj;
14273 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14274 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14275 return SWIG_Py_Void();
d55e5bfc
RD
14276}
14277
554f62e9
RD
14278SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14279 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14280}
14281
554f62e9
RD
14282SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14283 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14284 return 1;
d55e5bfc
RD
14285}
14286
14287
554f62e9
RD
14288SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14289 PyObject *pyobj = 0;
14290
14291 {
14292#if wxUSE_UNICODE
14293 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14294#else
14295 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14296#endif
14297 }
14298 return pyobj;
14299}
14300
14301
14302SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14303 PyObject *resultobj = 0;
14304 wxWindow *arg1 = (wxWindow *) 0 ;
14305 int arg2 = (int) -1 ;
14306 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14307 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14308 wxSize const &arg4_defvalue = wxDefaultSize ;
14309 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14310 long arg5 = (long) wxSB_HORIZONTAL ;
14311 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14312 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14313 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14314 wxString *arg7 = (wxString *) &arg7_defvalue ;
14315 wxScrollBar *result = 0 ;
14316 void *argp1 = 0 ;
14317 int res1 = 0 ;
14318 int val2 ;
14319 int ecode2 = 0 ;
14320 wxPoint temp3 ;
14321 wxSize temp4 ;
14322 long val5 ;
14323 int ecode5 = 0 ;
14324 void *argp6 = 0 ;
14325 int res6 = 0 ;
14326 bool temp7 = false ;
14327 PyObject * obj0 = 0 ;
14328 PyObject * obj1 = 0 ;
14329 PyObject * obj2 = 0 ;
14330 PyObject * obj3 = 0 ;
14331 PyObject * obj4 = 0 ;
14332 PyObject * obj5 = 0 ;
14333 PyObject * obj6 = 0 ;
14334 char * kwnames[] = {
14335 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14336 };
14337
14338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14340 if (!SWIG_IsOK(res1)) {
14341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14342 }
14343 arg1 = reinterpret_cast< wxWindow * >(argp1);
14344 if (obj1) {
14345 ecode2 = SWIG_AsVal_int(obj1, &val2);
14346 if (!SWIG_IsOK(ecode2)) {
14347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14348 }
14349 arg2 = static_cast< int >(val2);
14350 }
14351 if (obj2) {
d55e5bfc 14352 {
554f62e9
RD
14353 arg3 = &temp3;
14354 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14355 }
554f62e9
RD
14356 }
14357 if (obj3) {
d55e5bfc 14358 {
554f62e9
RD
14359 arg4 = &temp4;
14360 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14361 }
554f62e9
RD
14362 }
14363 if (obj4) {
14364 ecode5 = SWIG_AsVal_long(obj4, &val5);
14365 if (!SWIG_IsOK(ecode5)) {
14366 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14367 }
14368 arg5 = static_cast< long >(val5);
14369 }
14370 if (obj5) {
14371 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14372 if (!SWIG_IsOK(res6)) {
14373 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14374 }
14375 if (!argp6) {
14376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14377 }
554f62e9
RD
14378 arg6 = reinterpret_cast< wxValidator * >(argp6);
14379 }
14380 if (obj6) {
d55e5bfc 14381 {
554f62e9
RD
14382 arg7 = wxString_in_helper(obj6);
14383 if (arg7 == NULL) SWIG_fail;
14384 temp7 = true;
d55e5bfc 14385 }
554f62e9
RD
14386 }
14387 {
14388 if (!wxPyCheckForApp()) SWIG_fail;
14389 PyThreadState* __tstate = wxPyBeginAllowThreads();
14390 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14391 wxPyEndAllowThreads(__tstate);
14392 if (PyErr_Occurred()) SWIG_fail;
14393 }
14394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14395 {
14396 if (temp7)
14397 delete arg7;
14398 }
14399 return resultobj;
14400fail:
14401 {
14402 if (temp7)
14403 delete arg7;
14404 }
14405 return NULL;
d55e5bfc
RD
14406}
14407
14408
554f62e9
RD
14409SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14410 PyObject *resultobj = 0;
14411 wxScrollBar *result = 0 ;
14412
14413 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14414 {
14415 if (!wxPyCheckForApp()) SWIG_fail;
14416 PyThreadState* __tstate = wxPyBeginAllowThreads();
14417 result = (wxScrollBar *)new wxScrollBar();
14418 wxPyEndAllowThreads(__tstate);
14419 if (PyErr_Occurred()) SWIG_fail;
14420 }
14421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14422 return resultobj;
14423fail:
14424 return NULL;
14425}
14426
14427
14428SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14429 PyObject *resultobj = 0;
14430 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14431 wxWindow *arg2 = (wxWindow *) 0 ;
14432 int arg3 = (int) -1 ;
14433 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14434 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14435 wxSize const &arg5_defvalue = wxDefaultSize ;
14436 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14437 long arg6 = (long) wxSB_HORIZONTAL ;
14438 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14439 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14440 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14441 wxString *arg8 = (wxString *) &arg8_defvalue ;
14442 bool result;
14443 void *argp1 = 0 ;
14444 int res1 = 0 ;
14445 void *argp2 = 0 ;
14446 int res2 = 0 ;
14447 int val3 ;
14448 int ecode3 = 0 ;
14449 wxPoint temp4 ;
14450 wxSize temp5 ;
14451 long val6 ;
14452 int ecode6 = 0 ;
14453 void *argp7 = 0 ;
14454 int res7 = 0 ;
14455 bool temp8 = false ;
14456 PyObject * obj0 = 0 ;
14457 PyObject * obj1 = 0 ;
14458 PyObject * obj2 = 0 ;
14459 PyObject * obj3 = 0 ;
14460 PyObject * obj4 = 0 ;
14461 PyObject * obj5 = 0 ;
14462 PyObject * obj6 = 0 ;
14463 PyObject * obj7 = 0 ;
14464 char * kwnames[] = {
14465 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14466 };
14467
14468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14470 if (!SWIG_IsOK(res1)) {
14471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14472 }
14473 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14474 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14475 if (!SWIG_IsOK(res2)) {
14476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14477 }
14478 arg2 = reinterpret_cast< wxWindow * >(argp2);
14479 if (obj2) {
14480 ecode3 = SWIG_AsVal_int(obj2, &val3);
14481 if (!SWIG_IsOK(ecode3)) {
14482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14483 }
14484 arg3 = static_cast< int >(val3);
14485 }
14486 if (obj3) {
d55e5bfc 14487 {
554f62e9
RD
14488 arg4 = &temp4;
14489 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14490 }
554f62e9
RD
14491 }
14492 if (obj4) {
093d3ff1 14493 {
554f62e9
RD
14494 arg5 = &temp5;
14495 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 14496 }
554f62e9
RD
14497 }
14498 if (obj5) {
14499 ecode6 = SWIG_AsVal_long(obj5, &val6);
14500 if (!SWIG_IsOK(ecode6)) {
14501 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14502 }
14503 arg6 = static_cast< long >(val6);
14504 }
14505 if (obj6) {
14506 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14507 if (!SWIG_IsOK(res7)) {
14508 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
a07a67e6 14509 }
554f62e9
RD
14510 if (!argp7) {
14511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14512 }
14513 arg7 = reinterpret_cast< wxValidator * >(argp7);
14514 }
14515 if (obj7) {
093d3ff1 14516 {
554f62e9
RD
14517 arg8 = wxString_in_helper(obj7);
14518 if (arg8 == NULL) SWIG_fail;
14519 temp8 = true;
093d3ff1 14520 }
554f62e9
RD
14521 }
14522 {
14523 PyThreadState* __tstate = wxPyBeginAllowThreads();
14524 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14525 wxPyEndAllowThreads(__tstate);
14526 if (PyErr_Occurred()) SWIG_fail;
14527 }
14528 {
14529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14530 }
14531 {
14532 if (temp8)
14533 delete arg8;
14534 }
14535 return resultobj;
14536fail:
14537 {
14538 if (temp8)
14539 delete arg8;
14540 }
14541 return NULL;
a07a67e6
RD
14542}
14543
14544
554f62e9
RD
14545SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14546 PyObject *resultobj = 0;
14547 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14548 int result;
14549 void *argp1 = 0 ;
14550 int res1 = 0 ;
14551 PyObject *swig_obj[1] ;
14552
14553 if (!args) SWIG_fail;
14554 swig_obj[0] = args;
14555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14556 if (!SWIG_IsOK(res1)) {
14557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14558 }
14559 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14560 {
14561 PyThreadState* __tstate = wxPyBeginAllowThreads();
14562 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14563 wxPyEndAllowThreads(__tstate);
14564 if (PyErr_Occurred()) SWIG_fail;
14565 }
14566 resultobj = SWIG_From_int(static_cast< int >(result));
14567 return resultobj;
14568fail:
14569 return NULL;
d55e5bfc
RD
14570}
14571
14572
554f62e9
RD
14573SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14574 PyObject *resultobj = 0;
14575 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14576 int result;
14577 void *argp1 = 0 ;
14578 int res1 = 0 ;
14579 PyObject *swig_obj[1] ;
14580
14581 if (!args) SWIG_fail;
14582 swig_obj[0] = args;
14583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14584 if (!SWIG_IsOK(res1)) {
14585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14586 }
14587 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14588 {
14589 PyThreadState* __tstate = wxPyBeginAllowThreads();
14590 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14591 wxPyEndAllowThreads(__tstate);
14592 if (PyErr_Occurred()) SWIG_fail;
14593 }
14594 resultobj = SWIG_From_int(static_cast< int >(result));
14595 return resultobj;
14596fail:
14597 return NULL;
d55e5bfc
RD
14598}
14599
14600
554f62e9
RD
14601SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14602 PyObject *resultobj = 0;
14603 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14604 int result;
14605 void *argp1 = 0 ;
14606 int res1 = 0 ;
14607 PyObject *swig_obj[1] ;
14608
14609 if (!args) SWIG_fail;
14610 swig_obj[0] = args;
14611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14612 if (!SWIG_IsOK(res1)) {
14613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14614 }
14615 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14616 {
14617 PyThreadState* __tstate = wxPyBeginAllowThreads();
14618 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14619 wxPyEndAllowThreads(__tstate);
14620 if (PyErr_Occurred()) SWIG_fail;
14621 }
14622 resultobj = SWIG_From_int(static_cast< int >(result));
14623 return resultobj;
14624fail:
14625 return NULL;
d55e5bfc
RD
14626}
14627
14628
554f62e9
RD
14629SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14630 PyObject *resultobj = 0;
14631 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14632 int result;
14633 void *argp1 = 0 ;
14634 int res1 = 0 ;
14635 PyObject *swig_obj[1] ;
14636
14637 if (!args) SWIG_fail;
14638 swig_obj[0] = args;
14639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14640 if (!SWIG_IsOK(res1)) {
14641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14642 }
14643 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14644 {
14645 PyThreadState* __tstate = wxPyBeginAllowThreads();
14646 result = (int)((wxScrollBar const *)arg1)->GetRange();
14647 wxPyEndAllowThreads(__tstate);
14648 if (PyErr_Occurred()) SWIG_fail;
14649 }
14650 resultobj = SWIG_From_int(static_cast< int >(result));
14651 return resultobj;
14652fail:
14653 return NULL;
d55e5bfc
RD
14654}
14655
14656
554f62e9
RD
14657SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14658 PyObject *resultobj = 0;
14659 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14660 bool result;
14661 void *argp1 = 0 ;
14662 int res1 = 0 ;
14663 PyObject *swig_obj[1] ;
14664
14665 if (!args) SWIG_fail;
14666 swig_obj[0] = args;
14667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14668 if (!SWIG_IsOK(res1)) {
14669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14670 }
14671 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14672 {
14673 PyThreadState* __tstate = wxPyBeginAllowThreads();
14674 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14675 wxPyEndAllowThreads(__tstate);
14676 if (PyErr_Occurred()) SWIG_fail;
14677 }
14678 {
14679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14680 }
14681 return resultobj;
14682fail:
14683 return NULL;
14684}
14685
14686
14687SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14688 PyObject *resultobj = 0;
14689 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14690 int arg2 ;
14691 void *argp1 = 0 ;
14692 int res1 = 0 ;
14693 int val2 ;
14694 int ecode2 = 0 ;
14695 PyObject * obj0 = 0 ;
14696 PyObject * obj1 = 0 ;
14697 char * kwnames[] = {
14698 (char *) "self",(char *) "viewStart", NULL
14699 };
14700
14701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14703 if (!SWIG_IsOK(res1)) {
14704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14705 }
14706 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14707 ecode2 = SWIG_AsVal_int(obj1, &val2);
14708 if (!SWIG_IsOK(ecode2)) {
14709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14710 }
14711 arg2 = static_cast< int >(val2);
14712 {
14713 PyThreadState* __tstate = wxPyBeginAllowThreads();
14714 (arg1)->SetThumbPosition(arg2);
14715 wxPyEndAllowThreads(__tstate);
14716 if (PyErr_Occurred()) SWIG_fail;
14717 }
14718 resultobj = SWIG_Py_Void();
14719 return resultobj;
14720fail:
14721 return NULL;
14722}
14723
14724
14725SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14726 PyObject *resultobj = 0;
14727 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14728 SwigValueWrapper<wxVisualAttributes > result;
14729 int val1 ;
14730 int ecode1 = 0 ;
14731 PyObject * obj0 = 0 ;
14732 char * kwnames[] = {
14733 (char *) "variant", NULL
14734 };
14735
14736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14737 if (obj0) {
14738 ecode1 = SWIG_AsVal_int(obj0, &val1);
14739 if (!SWIG_IsOK(ecode1)) {
14740 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14741 }
14742 arg1 = static_cast< wxWindowVariant >(val1);
14743 }
14744 {
14745 if (!wxPyCheckForApp()) SWIG_fail;
14746 PyThreadState* __tstate = wxPyBeginAllowThreads();
14747 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14748 wxPyEndAllowThreads(__tstate);
14749 if (PyErr_Occurred()) SWIG_fail;
14750 }
14751 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14752 return resultobj;
14753fail:
14754 return NULL;
d55e5bfc
RD
14755}
14756
14757
554f62e9
RD
14758SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14759 PyObject *obj;
14760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14761 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14762 return SWIG_Py_Void();
d55e5bfc
RD
14763}
14764
554f62e9
RD
14765SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14766 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14767}
14768
554f62e9
RD
14769SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14770 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14771 return 1;
d55e5bfc
RD
14772}
14773
14774
554f62e9
RD
14775SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14776 PyObject *pyobj = 0;
14777
14778 {
d55e5bfc 14779#if wxUSE_UNICODE
554f62e9 14780 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14781#else
554f62e9 14782 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14783#endif
554f62e9
RD
14784 }
14785 return pyobj;
d55e5bfc
RD
14786}
14787
14788
554f62e9
RD
14789SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14790 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14791 return 1;
d55e5bfc
RD
14792}
14793
14794
554f62e9
RD
14795SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14796 PyObject *pyobj = 0;
14797
14798 {
d55e5bfc 14799#if wxUSE_UNICODE
554f62e9 14800 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
d55e5bfc 14801#else
554f62e9 14802 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
d55e5bfc 14803#endif
554f62e9
RD
14804 }
14805 return pyobj;
14806}
14807
14808
14809SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14810 PyObject *resultobj = 0;
14811 wxWindow *arg1 = (wxWindow *) 0 ;
14812 int arg2 = (int) -1 ;
14813 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14814 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14815 wxSize const &arg4_defvalue = wxDefaultSize ;
14816 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14817 long arg5 = (long) wxSP_HORIZONTAL ;
14818 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14819 wxString *arg6 = (wxString *) &arg6_defvalue ;
14820 wxSpinButton *result = 0 ;
14821 void *argp1 = 0 ;
14822 int res1 = 0 ;
14823 int val2 ;
14824 int ecode2 = 0 ;
14825 wxPoint temp3 ;
14826 wxSize temp4 ;
14827 long val5 ;
14828 int ecode5 = 0 ;
14829 bool temp6 = false ;
14830 PyObject * obj0 = 0 ;
14831 PyObject * obj1 = 0 ;
14832 PyObject * obj2 = 0 ;
14833 PyObject * obj3 = 0 ;
14834 PyObject * obj4 = 0 ;
14835 PyObject * obj5 = 0 ;
14836 char * kwnames[] = {
14837 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14838 };
14839
14840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14842 if (!SWIG_IsOK(res1)) {
14843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14844 }
14845 arg1 = reinterpret_cast< wxWindow * >(argp1);
14846 if (obj1) {
14847 ecode2 = SWIG_AsVal_int(obj1, &val2);
14848 if (!SWIG_IsOK(ecode2)) {
14849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14850 }
14851 arg2 = static_cast< int >(val2);
14852 }
14853 if (obj2) {
14854 {
14855 arg3 = &temp3;
14856 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14857 }
554f62e9
RD
14858 }
14859 if (obj3) {
d55e5bfc 14860 {
554f62e9
RD
14861 arg4 = &temp4;
14862 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14863 }
554f62e9
RD
14864 }
14865 if (obj4) {
14866 ecode5 = SWIG_AsVal_long(obj4, &val5);
14867 if (!SWIG_IsOK(ecode5)) {
14868 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14869 }
14870 arg5 = static_cast< long >(val5);
14871 }
14872 if (obj5) {
093d3ff1 14873 {
554f62e9
RD
14874 arg6 = wxString_in_helper(obj5);
14875 if (arg6 == NULL) SWIG_fail;
14876 temp6 = true;
093d3ff1 14877 }
554f62e9
RD
14878 }
14879 {
14880 if (!wxPyCheckForApp()) SWIG_fail;
14881 PyThreadState* __tstate = wxPyBeginAllowThreads();
14882 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14883 wxPyEndAllowThreads(__tstate);
14884 if (PyErr_Occurred()) SWIG_fail;
14885 }
14886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14887 {
14888 if (temp6)
14889 delete arg6;
14890 }
14891 return resultobj;
14892fail:
14893 {
14894 if (temp6)
14895 delete arg6;
14896 }
14897 return NULL;
d55e5bfc
RD
14898}
14899
14900
554f62e9
RD
14901SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14902 PyObject *resultobj = 0;
14903 wxSpinButton *result = 0 ;
14904
14905 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14906 {
14907 if (!wxPyCheckForApp()) SWIG_fail;
14908 PyThreadState* __tstate = wxPyBeginAllowThreads();
14909 result = (wxSpinButton *)new wxSpinButton();
14910 wxPyEndAllowThreads(__tstate);
14911 if (PyErr_Occurred()) SWIG_fail;
14912 }
14913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14914 return resultobj;
14915fail:
14916 return NULL;
14917}
14918
14919
14920SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14921 PyObject *resultobj = 0;
14922 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14923 wxWindow *arg2 = (wxWindow *) 0 ;
14924 int arg3 = (int) -1 ;
14925 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14926 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14927 wxSize const &arg5_defvalue = wxDefaultSize ;
14928 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14929 long arg6 = (long) wxSP_HORIZONTAL ;
14930 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14931 wxString *arg7 = (wxString *) &arg7_defvalue ;
14932 bool result;
14933 void *argp1 = 0 ;
14934 int res1 = 0 ;
14935 void *argp2 = 0 ;
14936 int res2 = 0 ;
14937 int val3 ;
14938 int ecode3 = 0 ;
14939 wxPoint temp4 ;
14940 wxSize temp5 ;
14941 long val6 ;
14942 int ecode6 = 0 ;
14943 bool temp7 = false ;
14944 PyObject * obj0 = 0 ;
14945 PyObject * obj1 = 0 ;
14946 PyObject * obj2 = 0 ;
14947 PyObject * obj3 = 0 ;
14948 PyObject * obj4 = 0 ;
14949 PyObject * obj5 = 0 ;
14950 PyObject * obj6 = 0 ;
14951 char * kwnames[] = {
14952 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14953 };
14954
14955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14957 if (!SWIG_IsOK(res1)) {
14958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14959 }
14960 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14961 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14962 if (!SWIG_IsOK(res2)) {
14963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14964 }
14965 arg2 = reinterpret_cast< wxWindow * >(argp2);
14966 if (obj2) {
14967 ecode3 = SWIG_AsVal_int(obj2, &val3);
14968 if (!SWIG_IsOK(ecode3)) {
14969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14970 }
14971 arg3 = static_cast< int >(val3);
14972 }
14973 if (obj3) {
d55e5bfc 14974 {
554f62e9
RD
14975 arg4 = &temp4;
14976 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14977 }
554f62e9
RD
14978 }
14979 if (obj4) {
d55e5bfc 14980 {
554f62e9
RD
14981 arg5 = &temp5;
14982 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14983 }
554f62e9
RD
14984 }
14985 if (obj5) {
14986 ecode6 = SWIG_AsVal_long(obj5, &val6);
14987 if (!SWIG_IsOK(ecode6)) {
14988 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14989 }
14990 arg6 = static_cast< long >(val6);
14991 }
14992 if (obj6) {
d55e5bfc 14993 {
554f62e9
RD
14994 arg7 = wxString_in_helper(obj6);
14995 if (arg7 == NULL) SWIG_fail;
14996 temp7 = true;
d55e5bfc 14997 }
554f62e9
RD
14998 }
14999 {
15000 PyThreadState* __tstate = wxPyBeginAllowThreads();
15001 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15002 wxPyEndAllowThreads(__tstate);
15003 if (PyErr_Occurred()) SWIG_fail;
15004 }
15005 {
15006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15007 }
15008 {
15009 if (temp7)
15010 delete arg7;
15011 }
15012 return resultobj;
15013fail:
15014 {
15015 if (temp7)
15016 delete arg7;
15017 }
15018 return NULL;
d55e5bfc
RD
15019}
15020
15021
554f62e9
RD
15022SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15023 PyObject *resultobj = 0;
15024 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15025 int result;
15026 void *argp1 = 0 ;
15027 int res1 = 0 ;
15028 PyObject *swig_obj[1] ;
15029
15030 if (!args) SWIG_fail;
15031 swig_obj[0] = args;
15032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15033 if (!SWIG_IsOK(res1)) {
15034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15035 }
15036 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15037 {
15038 PyThreadState* __tstate = wxPyBeginAllowThreads();
15039 result = (int)((wxSpinButton const *)arg1)->GetValue();
15040 wxPyEndAllowThreads(__tstate);
15041 if (PyErr_Occurred()) SWIG_fail;
15042 }
15043 resultobj = SWIG_From_int(static_cast< int >(result));
15044 return resultobj;
15045fail:
15046 return NULL;
d55e5bfc
RD
15047}
15048
15049
554f62e9
RD
15050SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15051 PyObject *resultobj = 0;
15052 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15053 int result;
15054 void *argp1 = 0 ;
15055 int res1 = 0 ;
15056 PyObject *swig_obj[1] ;
15057
15058 if (!args) SWIG_fail;
15059 swig_obj[0] = args;
15060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15061 if (!SWIG_IsOK(res1)) {
15062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15063 }
15064 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15065 {
15066 PyThreadState* __tstate = wxPyBeginAllowThreads();
15067 result = (int)((wxSpinButton const *)arg1)->GetMin();
15068 wxPyEndAllowThreads(__tstate);
15069 if (PyErr_Occurred()) SWIG_fail;
15070 }
15071 resultobj = SWIG_From_int(static_cast< int >(result));
15072 return resultobj;
15073fail:
15074 return NULL;
d55e5bfc
RD
15075}
15076
15077
554f62e9
RD
15078SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15079 PyObject *resultobj = 0;
15080 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15081 int result;
15082 void *argp1 = 0 ;
15083 int res1 = 0 ;
15084 PyObject *swig_obj[1] ;
15085
15086 if (!args) SWIG_fail;
15087 swig_obj[0] = args;
15088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15089 if (!SWIG_IsOK(res1)) {
15090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15091 }
15092 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15093 {
15094 PyThreadState* __tstate = wxPyBeginAllowThreads();
15095 result = (int)((wxSpinButton const *)arg1)->GetMax();
15096 wxPyEndAllowThreads(__tstate);
15097 if (PyErr_Occurred()) SWIG_fail;
15098 }
15099 resultobj = SWIG_From_int(static_cast< int >(result));
15100 return resultobj;
15101fail:
15102 return NULL;
15103}
15104
15105
15106SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15107 PyObject *resultobj = 0;
15108 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15109 int arg2 ;
15110 void *argp1 = 0 ;
15111 int res1 = 0 ;
15112 int val2 ;
15113 int ecode2 = 0 ;
15114 PyObject * obj0 = 0 ;
15115 PyObject * obj1 = 0 ;
15116 char * kwnames[] = {
15117 (char *) "self",(char *) "val", NULL
15118 };
15119
15120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15122 if (!SWIG_IsOK(res1)) {
15123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15124 }
15125 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15126 ecode2 = SWIG_AsVal_int(obj1, &val2);
15127 if (!SWIG_IsOK(ecode2)) {
15128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15129 }
15130 arg2 = static_cast< int >(val2);
15131 {
15132 PyThreadState* __tstate = wxPyBeginAllowThreads();
15133 (arg1)->SetValue(arg2);
15134 wxPyEndAllowThreads(__tstate);
15135 if (PyErr_Occurred()) SWIG_fail;
15136 }
15137 resultobj = SWIG_Py_Void();
15138 return resultobj;
15139fail:
15140 return NULL;
15141}
15142
15143
15144SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15145 PyObject *resultobj = 0;
15146 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15147 int arg2 ;
15148 void *argp1 = 0 ;
15149 int res1 = 0 ;
15150 int val2 ;
15151 int ecode2 = 0 ;
15152 PyObject * obj0 = 0 ;
15153 PyObject * obj1 = 0 ;
15154 char * kwnames[] = {
15155 (char *) "self",(char *) "minVal", NULL
15156 };
15157
15158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15160 if (!SWIG_IsOK(res1)) {
15161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15162 }
15163 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15164 ecode2 = SWIG_AsVal_int(obj1, &val2);
15165 if (!SWIG_IsOK(ecode2)) {
15166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15167 }
15168 arg2 = static_cast< int >(val2);
15169 {
15170 PyThreadState* __tstate = wxPyBeginAllowThreads();
15171 (arg1)->SetMin(arg2);
15172 wxPyEndAllowThreads(__tstate);
15173 if (PyErr_Occurred()) SWIG_fail;
15174 }
15175 resultobj = SWIG_Py_Void();
15176 return resultobj;
15177fail:
15178 return NULL;
15179}
15180
15181
15182SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15183 PyObject *resultobj = 0;
15184 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15185 int arg2 ;
15186 void *argp1 = 0 ;
15187 int res1 = 0 ;
15188 int val2 ;
15189 int ecode2 = 0 ;
15190 PyObject * obj0 = 0 ;
15191 PyObject * obj1 = 0 ;
15192 char * kwnames[] = {
15193 (char *) "self",(char *) "maxVal", NULL
15194 };
15195
15196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15198 if (!SWIG_IsOK(res1)) {
15199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15200 }
15201 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15202 ecode2 = SWIG_AsVal_int(obj1, &val2);
15203 if (!SWIG_IsOK(ecode2)) {
15204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15205 }
15206 arg2 = static_cast< int >(val2);
15207 {
15208 PyThreadState* __tstate = wxPyBeginAllowThreads();
15209 (arg1)->SetMax(arg2);
15210 wxPyEndAllowThreads(__tstate);
15211 if (PyErr_Occurred()) SWIG_fail;
15212 }
15213 resultobj = SWIG_Py_Void();
15214 return resultobj;
15215fail:
15216 return NULL;
15217}
15218
15219
15220SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15221 PyObject *resultobj = 0;
15222 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15223 int arg2 ;
15224 int arg3 ;
15225 void *argp1 = 0 ;
15226 int res1 = 0 ;
15227 int val2 ;
15228 int ecode2 = 0 ;
15229 int val3 ;
15230 int ecode3 = 0 ;
15231 PyObject * obj0 = 0 ;
15232 PyObject * obj1 = 0 ;
15233 PyObject * obj2 = 0 ;
15234 char * kwnames[] = {
15235 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15236 };
15237
15238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15240 if (!SWIG_IsOK(res1)) {
15241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15242 }
15243 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15244 ecode2 = SWIG_AsVal_int(obj1, &val2);
15245 if (!SWIG_IsOK(ecode2)) {
15246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15247 }
15248 arg2 = static_cast< int >(val2);
15249 ecode3 = SWIG_AsVal_int(obj2, &val3);
15250 if (!SWIG_IsOK(ecode3)) {
15251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15252 }
15253 arg3 = static_cast< int >(val3);
15254 {
15255 PyThreadState* __tstate = wxPyBeginAllowThreads();
15256 (arg1)->SetRange(arg2,arg3);
15257 wxPyEndAllowThreads(__tstate);
15258 if (PyErr_Occurred()) SWIG_fail;
15259 }
15260 resultobj = SWIG_Py_Void();
15261 return resultobj;
15262fail:
15263 return NULL;
d55e5bfc
RD
15264}
15265
15266
554f62e9
RD
15267SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15268 PyObject *resultobj = 0;
15269 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15270 bool result;
15271 void *argp1 = 0 ;
15272 int res1 = 0 ;
15273 PyObject *swig_obj[1] ;
15274
15275 if (!args) SWIG_fail;
15276 swig_obj[0] = args;
15277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15278 if (!SWIG_IsOK(res1)) {
15279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15280 }
15281 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15282 {
15283 PyThreadState* __tstate = wxPyBeginAllowThreads();
15284 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15285 wxPyEndAllowThreads(__tstate);
15286 if (PyErr_Occurred()) SWIG_fail;
15287 }
15288 {
15289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15290 }
15291 return resultobj;
15292fail:
15293 return NULL;
d55e5bfc
RD
15294}
15295
15296
554f62e9
RD
15297SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15298 PyObject *resultobj = 0;
15299 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15300 SwigValueWrapper<wxVisualAttributes > result;
15301 int val1 ;
15302 int ecode1 = 0 ;
15303 PyObject * obj0 = 0 ;
15304 char * kwnames[] = {
15305 (char *) "variant", NULL
15306 };
15307
15308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15309 if (obj0) {
15310 ecode1 = SWIG_AsVal_int(obj0, &val1);
15311 if (!SWIG_IsOK(ecode1)) {
15312 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15313 }
15314 arg1 = static_cast< wxWindowVariant >(val1);
15315 }
15316 {
15317 if (!wxPyCheckForApp()) SWIG_fail;
15318 PyThreadState* __tstate = wxPyBeginAllowThreads();
15319 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15320 wxPyEndAllowThreads(__tstate);
15321 if (PyErr_Occurred()) SWIG_fail;
15322 }
15323 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15324 return resultobj;
15325fail:
15326 return NULL;
15327}
15328
15329
15330SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15331 PyObject *obj;
15332 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15333 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15334 return SWIG_Py_Void();
15335}
15336
15337SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15338 return SWIG_Python_InitShadowInstance(args);
15339}
15340
15341SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15342 PyObject *resultobj = 0;
15343 wxWindow *arg1 = (wxWindow *) 0 ;
15344 int arg2 = (int) -1 ;
15345 wxString const &arg3_defvalue = wxPyEmptyString ;
15346 wxString *arg3 = (wxString *) &arg3_defvalue ;
15347 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15348 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15349 wxSize const &arg5_defvalue = wxDefaultSize ;
15350 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15351 long arg6 = (long) wxSP_ARROW_KEYS ;
15352 int arg7 = (int) 0 ;
15353 int arg8 = (int) 100 ;
15354 int arg9 = (int) 0 ;
15355 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15356 wxString *arg10 = (wxString *) &arg10_defvalue ;
15357 wxSpinCtrl *result = 0 ;
15358 void *argp1 = 0 ;
15359 int res1 = 0 ;
15360 int val2 ;
15361 int ecode2 = 0 ;
15362 bool temp3 = false ;
15363 wxPoint temp4 ;
15364 wxSize temp5 ;
15365 long val6 ;
15366 int ecode6 = 0 ;
15367 int val7 ;
15368 int ecode7 = 0 ;
15369 int val8 ;
15370 int ecode8 = 0 ;
15371 int val9 ;
15372 int ecode9 = 0 ;
15373 bool temp10 = false ;
15374 PyObject * obj0 = 0 ;
15375 PyObject * obj1 = 0 ;
15376 PyObject * obj2 = 0 ;
15377 PyObject * obj3 = 0 ;
15378 PyObject * obj4 = 0 ;
15379 PyObject * obj5 = 0 ;
15380 PyObject * obj6 = 0 ;
15381 PyObject * obj7 = 0 ;
15382 PyObject * obj8 = 0 ;
15383 PyObject * obj9 = 0 ;
15384 char * kwnames[] = {
15385 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15386 };
15387
15388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15390 if (!SWIG_IsOK(res1)) {
15391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15392 }
15393 arg1 = reinterpret_cast< wxWindow * >(argp1);
15394 if (obj1) {
15395 ecode2 = SWIG_AsVal_int(obj1, &val2);
15396 if (!SWIG_IsOK(ecode2)) {
15397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15398 }
15399 arg2 = static_cast< int >(val2);
15400 }
15401 if (obj2) {
d55e5bfc 15402 {
554f62e9
RD
15403 arg3 = wxString_in_helper(obj2);
15404 if (arg3 == NULL) SWIG_fail;
15405 temp3 = true;
d55e5bfc 15406 }
554f62e9
RD
15407 }
15408 if (obj3) {
d55e5bfc 15409 {
554f62e9
RD
15410 arg4 = &temp4;
15411 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15412 }
554f62e9
RD
15413 }
15414 if (obj4) {
d55e5bfc 15415 {
554f62e9
RD
15416 arg5 = &temp5;
15417 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15418 }
554f62e9
RD
15419 }
15420 if (obj5) {
15421 ecode6 = SWIG_AsVal_long(obj5, &val6);
15422 if (!SWIG_IsOK(ecode6)) {
15423 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15424 }
15425 arg6 = static_cast< long >(val6);
15426 }
15427 if (obj6) {
15428 ecode7 = SWIG_AsVal_int(obj6, &val7);
15429 if (!SWIG_IsOK(ecode7)) {
15430 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15431 }
15432 arg7 = static_cast< int >(val7);
15433 }
15434 if (obj7) {
15435 ecode8 = SWIG_AsVal_int(obj7, &val8);
15436 if (!SWIG_IsOK(ecode8)) {
15437 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15438 }
15439 arg8 = static_cast< int >(val8);
15440 }
15441 if (obj8) {
15442 ecode9 = SWIG_AsVal_int(obj8, &val9);
15443 if (!SWIG_IsOK(ecode9)) {
15444 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15445 }
15446 arg9 = static_cast< int >(val9);
15447 }
15448 if (obj9) {
d55e5bfc 15449 {
554f62e9
RD
15450 arg10 = wxString_in_helper(obj9);
15451 if (arg10 == NULL) SWIG_fail;
15452 temp10 = true;
d55e5bfc 15453 }
554f62e9
RD
15454 }
15455 {
15456 if (!wxPyCheckForApp()) SWIG_fail;
15457 PyThreadState* __tstate = wxPyBeginAllowThreads();
15458 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15459 wxPyEndAllowThreads(__tstate);
15460 if (PyErr_Occurred()) SWIG_fail;
15461 }
15462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15463 {
15464 if (temp3)
15465 delete arg3;
15466 }
15467 {
15468 if (temp10)
15469 delete arg10;
15470 }
15471 return resultobj;
15472fail:
15473 {
15474 if (temp3)
15475 delete arg3;
15476 }
15477 {
15478 if (temp10)
15479 delete arg10;
15480 }
15481 return NULL;
d55e5bfc
RD
15482}
15483
15484
554f62e9
RD
15485SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15486 PyObject *resultobj = 0;
15487 wxSpinCtrl *result = 0 ;
15488
15489 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15490 {
15491 if (!wxPyCheckForApp()) SWIG_fail;
15492 PyThreadState* __tstate = wxPyBeginAllowThreads();
15493 result = (wxSpinCtrl *)new wxSpinCtrl();
15494 wxPyEndAllowThreads(__tstate);
15495 if (PyErr_Occurred()) SWIG_fail;
15496 }
15497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15498 return resultobj;
15499fail:
15500 return NULL;
15501}
15502
15503
15504SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15505 PyObject *resultobj = 0;
15506 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15507 wxWindow *arg2 = (wxWindow *) 0 ;
15508 int arg3 = (int) -1 ;
15509 wxString const &arg4_defvalue = wxPyEmptyString ;
15510 wxString *arg4 = (wxString *) &arg4_defvalue ;
15511 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15512 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15513 wxSize const &arg6_defvalue = wxDefaultSize ;
15514 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15515 long arg7 = (long) wxSP_ARROW_KEYS ;
15516 int arg8 = (int) 0 ;
15517 int arg9 = (int) 100 ;
15518 int arg10 = (int) 0 ;
15519 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15520 wxString *arg11 = (wxString *) &arg11_defvalue ;
15521 bool result;
15522 void *argp1 = 0 ;
15523 int res1 = 0 ;
15524 void *argp2 = 0 ;
15525 int res2 = 0 ;
15526 int val3 ;
15527 int ecode3 = 0 ;
15528 bool temp4 = false ;
15529 wxPoint temp5 ;
15530 wxSize temp6 ;
15531 long val7 ;
15532 int ecode7 = 0 ;
15533 int val8 ;
15534 int ecode8 = 0 ;
15535 int val9 ;
15536 int ecode9 = 0 ;
15537 int val10 ;
15538 int ecode10 = 0 ;
15539 bool temp11 = false ;
15540 PyObject * obj0 = 0 ;
15541 PyObject * obj1 = 0 ;
15542 PyObject * obj2 = 0 ;
15543 PyObject * obj3 = 0 ;
15544 PyObject * obj4 = 0 ;
15545 PyObject * obj5 = 0 ;
15546 PyObject * obj6 = 0 ;
15547 PyObject * obj7 = 0 ;
15548 PyObject * obj8 = 0 ;
15549 PyObject * obj9 = 0 ;
15550 PyObject * obj10 = 0 ;
15551 char * kwnames[] = {
15552 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15553 };
15554
15555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15557 if (!SWIG_IsOK(res1)) {
15558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15559 }
15560 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15561 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15562 if (!SWIG_IsOK(res2)) {
15563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15564 }
15565 arg2 = reinterpret_cast< wxWindow * >(argp2);
15566 if (obj2) {
15567 ecode3 = SWIG_AsVal_int(obj2, &val3);
15568 if (!SWIG_IsOK(ecode3)) {
15569 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15570 }
15571 arg3 = static_cast< int >(val3);
15572 }
15573 if (obj3) {
093d3ff1 15574 {
554f62e9
RD
15575 arg4 = wxString_in_helper(obj3);
15576 if (arg4 == NULL) SWIG_fail;
15577 temp4 = true;
093d3ff1 15578 }
554f62e9
RD
15579 }
15580 if (obj4) {
093d3ff1 15581 {
554f62e9
RD
15582 arg5 = &temp5;
15583 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 15584 }
554f62e9
RD
15585 }
15586 if (obj5) {
d55e5bfc 15587 {
554f62e9
RD
15588 arg6 = &temp6;
15589 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15590 }
554f62e9
RD
15591 }
15592 if (obj6) {
15593 ecode7 = SWIG_AsVal_long(obj6, &val7);
15594 if (!SWIG_IsOK(ecode7)) {
15595 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15596 }
15597 arg7 = static_cast< long >(val7);
15598 }
15599 if (obj7) {
15600 ecode8 = SWIG_AsVal_int(obj7, &val8);
15601 if (!SWIG_IsOK(ecode8)) {
15602 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15603 }
15604 arg8 = static_cast< int >(val8);
15605 }
15606 if (obj8) {
15607 ecode9 = SWIG_AsVal_int(obj8, &val9);
15608 if (!SWIG_IsOK(ecode9)) {
15609 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15610 }
15611 arg9 = static_cast< int >(val9);
15612 }
15613 if (obj9) {
15614 ecode10 = SWIG_AsVal_int(obj9, &val10);
15615 if (!SWIG_IsOK(ecode10)) {
15616 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15617 }
15618 arg10 = static_cast< int >(val10);
15619 }
15620 if (obj10) {
15621 {
15622 arg11 = wxString_in_helper(obj10);
15623 if (arg11 == NULL) SWIG_fail;
15624 temp11 = true;
15625 }
15626 }
15627 {
15628 PyThreadState* __tstate = wxPyBeginAllowThreads();
15629 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15630 wxPyEndAllowThreads(__tstate);
15631 if (PyErr_Occurred()) SWIG_fail;
15632 }
15633 {
15634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15635 }
15636 {
15637 if (temp4)
15638 delete arg4;
15639 }
15640 {
15641 if (temp11)
15642 delete arg11;
15643 }
15644 return resultobj;
15645fail:
15646 {
15647 if (temp4)
15648 delete arg4;
15649 }
15650 {
15651 if (temp11)
15652 delete arg11;
15653 }
15654 return NULL;
d55e5bfc
RD
15655}
15656
15657
554f62e9
RD
15658SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15659 PyObject *resultobj = 0;
15660 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15661 int result;
15662 void *argp1 = 0 ;
15663 int res1 = 0 ;
15664 PyObject *swig_obj[1] ;
15665
15666 if (!args) SWIG_fail;
15667 swig_obj[0] = args;
15668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15669 if (!SWIG_IsOK(res1)) {
15670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15671 }
15672 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15673 {
15674 PyThreadState* __tstate = wxPyBeginAllowThreads();
15675 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15676 wxPyEndAllowThreads(__tstate);
15677 if (PyErr_Occurred()) SWIG_fail;
15678 }
15679 resultobj = SWIG_From_int(static_cast< int >(result));
15680 return resultobj;
15681fail:
15682 return NULL;
15683}
15684
15685
15686SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15687 PyObject *resultobj = 0;
15688 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15689 int arg2 ;
15690 void *argp1 = 0 ;
15691 int res1 = 0 ;
15692 int val2 ;
15693 int ecode2 = 0 ;
15694 PyObject * obj0 = 0 ;
15695 PyObject * obj1 = 0 ;
15696 char * kwnames[] = {
15697 (char *) "self",(char *) "value", NULL
15698 };
15699
15700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15702 if (!SWIG_IsOK(res1)) {
15703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15704 }
15705 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15706 ecode2 = SWIG_AsVal_int(obj1, &val2);
15707 if (!SWIG_IsOK(ecode2)) {
15708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15709 }
15710 arg2 = static_cast< int >(val2);
15711 {
15712 PyThreadState* __tstate = wxPyBeginAllowThreads();
15713 (arg1)->SetValue(arg2);
15714 wxPyEndAllowThreads(__tstate);
15715 if (PyErr_Occurred()) SWIG_fail;
15716 }
15717 resultobj = SWIG_Py_Void();
15718 return resultobj;
15719fail:
15720 return NULL;
15721}
15722
15723
15724SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15725 PyObject *resultobj = 0;
15726 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15727 wxString *arg2 = 0 ;
15728 void *argp1 = 0 ;
15729 int res1 = 0 ;
15730 bool temp2 = false ;
15731 PyObject * obj0 = 0 ;
15732 PyObject * obj1 = 0 ;
15733 char * kwnames[] = {
15734 (char *) "self",(char *) "text", NULL
15735 };
15736
15737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15739 if (!SWIG_IsOK(res1)) {
15740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15741 }
15742 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15743 {
15744 arg2 = wxString_in_helper(obj1);
15745 if (arg2 == NULL) SWIG_fail;
15746 temp2 = true;
15747 }
15748 {
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
15750 (arg1)->SetValue((wxString const &)*arg2);
15751 wxPyEndAllowThreads(__tstate);
15752 if (PyErr_Occurred()) SWIG_fail;
15753 }
15754 resultobj = SWIG_Py_Void();
15755 {
15756 if (temp2)
15757 delete arg2;
15758 }
15759 return resultobj;
15760fail:
15761 {
15762 if (temp2)
15763 delete arg2;
15764 }
15765 return NULL;
15766}
15767
15768
15769SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15770 PyObject *resultobj = 0;
15771 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15772 int arg2 ;
15773 int arg3 ;
15774 void *argp1 = 0 ;
15775 int res1 = 0 ;
15776 int val2 ;
15777 int ecode2 = 0 ;
15778 int val3 ;
15779 int ecode3 = 0 ;
15780 PyObject * obj0 = 0 ;
15781 PyObject * obj1 = 0 ;
15782 PyObject * obj2 = 0 ;
15783 char * kwnames[] = {
15784 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15785 };
15786
15787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15789 if (!SWIG_IsOK(res1)) {
15790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15791 }
15792 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15793 ecode2 = SWIG_AsVal_int(obj1, &val2);
15794 if (!SWIG_IsOK(ecode2)) {
15795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15796 }
15797 arg2 = static_cast< int >(val2);
15798 ecode3 = SWIG_AsVal_int(obj2, &val3);
15799 if (!SWIG_IsOK(ecode3)) {
15800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15801 }
15802 arg3 = static_cast< int >(val3);
15803 {
15804 PyThreadState* __tstate = wxPyBeginAllowThreads();
15805 (arg1)->SetRange(arg2,arg3);
15806 wxPyEndAllowThreads(__tstate);
15807 if (PyErr_Occurred()) SWIG_fail;
15808 }
15809 resultobj = SWIG_Py_Void();
15810 return resultobj;
15811fail:
15812 return NULL;
d55e5bfc
RD
15813}
15814
15815
554f62e9
RD
15816SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15817 PyObject *resultobj = 0;
15818 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15819 int result;
15820 void *argp1 = 0 ;
15821 int res1 = 0 ;
15822 PyObject *swig_obj[1] ;
15823
15824 if (!args) SWIG_fail;
15825 swig_obj[0] = args;
15826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15827 if (!SWIG_IsOK(res1)) {
15828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15829 }
15830 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15831 {
15832 PyThreadState* __tstate = wxPyBeginAllowThreads();
15833 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15834 wxPyEndAllowThreads(__tstate);
15835 if (PyErr_Occurred()) SWIG_fail;
15836 }
15837 resultobj = SWIG_From_int(static_cast< int >(result));
15838 return resultobj;
15839fail:
15840 return NULL;
d55e5bfc
RD
15841}
15842
15843
554f62e9
RD
15844SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15845 PyObject *resultobj = 0;
15846 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15847 int result;
15848 void *argp1 = 0 ;
15849 int res1 = 0 ;
15850 PyObject *swig_obj[1] ;
15851
15852 if (!args) SWIG_fail;
15853 swig_obj[0] = args;
15854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15855 if (!SWIG_IsOK(res1)) {
15856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15857 }
15858 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15859 {
15860 PyThreadState* __tstate = wxPyBeginAllowThreads();
15861 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15862 wxPyEndAllowThreads(__tstate);
15863 if (PyErr_Occurred()) SWIG_fail;
15864 }
15865 resultobj = SWIG_From_int(static_cast< int >(result));
15866 return resultobj;
15867fail:
15868 return NULL;
15869}
15870
15871
15872SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15873 PyObject *resultobj = 0;
15874 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15875 long arg2 ;
15876 long arg3 ;
15877 void *argp1 = 0 ;
15878 int res1 = 0 ;
15879 long val2 ;
15880 int ecode2 = 0 ;
15881 long val3 ;
15882 int ecode3 = 0 ;
15883 PyObject * obj0 = 0 ;
15884 PyObject * obj1 = 0 ;
15885 PyObject * obj2 = 0 ;
15886 char * kwnames[] = {
f460c29d 15887 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
15888 };
15889
15890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15892 if (!SWIG_IsOK(res1)) {
15893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15894 }
15895 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15896 ecode2 = SWIG_AsVal_long(obj1, &val2);
15897 if (!SWIG_IsOK(ecode2)) {
15898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15899 }
15900 arg2 = static_cast< long >(val2);
15901 ecode3 = SWIG_AsVal_long(obj2, &val3);
15902 if (!SWIG_IsOK(ecode3)) {
15903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15904 }
15905 arg3 = static_cast< long >(val3);
15906 {
15907 PyThreadState* __tstate = wxPyBeginAllowThreads();
15908 (arg1)->SetSelection(arg2,arg3);
15909 wxPyEndAllowThreads(__tstate);
15910 if (PyErr_Occurred()) SWIG_fail;
15911 }
15912 resultobj = SWIG_Py_Void();
15913 return resultobj;
15914fail:
15915 return NULL;
15916}
15917
15918
15919SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15920 PyObject *resultobj = 0;
15921 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15922 SwigValueWrapper<wxVisualAttributes > result;
15923 int val1 ;
15924 int ecode1 = 0 ;
15925 PyObject * obj0 = 0 ;
15926 char * kwnames[] = {
15927 (char *) "variant", NULL
15928 };
15929
15930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15931 if (obj0) {
15932 ecode1 = SWIG_AsVal_int(obj0, &val1);
15933 if (!SWIG_IsOK(ecode1)) {
15934 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15935 }
15936 arg1 = static_cast< wxWindowVariant >(val1);
15937 }
15938 {
15939 if (!wxPyCheckForApp()) SWIG_fail;
15940 PyThreadState* __tstate = wxPyBeginAllowThreads();
15941 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15942 wxPyEndAllowThreads(__tstate);
15943 if (PyErr_Occurred()) SWIG_fail;
15944 }
15945 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15946 return resultobj;
15947fail:
15948 return NULL;
d55e5bfc
RD
15949}
15950
15951
554f62e9
RD
15952SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15953 PyObject *obj;
15954 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15955 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15956 return SWIG_Py_Void();
d55e5bfc
RD
15957}
15958
554f62e9
RD
15959SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15960 return SWIG_Python_InitShadowInstance(args);
15961}
d55e5bfc 15962
554f62e9
RD
15963SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15964 PyObject *resultobj = 0;
15965 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15966 int arg2 = (int) 0 ;
15967 wxSpinEvent *result = 0 ;
15968 int val1 ;
15969 int ecode1 = 0 ;
15970 int val2 ;
15971 int ecode2 = 0 ;
15972 PyObject * obj0 = 0 ;
15973 PyObject * obj1 = 0 ;
15974 char * kwnames[] = {
15975 (char *) "commandType",(char *) "winid", NULL
15976 };
15977
15978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15979 if (obj0) {
15980 ecode1 = SWIG_AsVal_int(obj0, &val1);
15981 if (!SWIG_IsOK(ecode1)) {
15982 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15983 }
15984 arg1 = static_cast< wxEventType >(val1);
15985 }
15986 if (obj1) {
15987 ecode2 = SWIG_AsVal_int(obj1, &val2);
15988 if (!SWIG_IsOK(ecode2)) {
15989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15990 }
15991 arg2 = static_cast< int >(val2);
15992 }
15993 {
15994 PyThreadState* __tstate = wxPyBeginAllowThreads();
15995 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15996 wxPyEndAllowThreads(__tstate);
15997 if (PyErr_Occurred()) SWIG_fail;
15998 }
15999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
16000 return resultobj;
16001fail:
16002 return NULL;
d55e5bfc
RD
16003}
16004
16005
554f62e9
RD
16006SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16007 PyObject *resultobj = 0;
16008 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16009 int result;
16010 void *argp1 = 0 ;
16011 int res1 = 0 ;
16012 PyObject *swig_obj[1] ;
16013
16014 if (!args) SWIG_fail;
16015 swig_obj[0] = args;
16016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16017 if (!SWIG_IsOK(res1)) {
16018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
16019 }
16020 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16021 {
16022 PyThreadState* __tstate = wxPyBeginAllowThreads();
16023 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
16024 wxPyEndAllowThreads(__tstate);
16025 if (PyErr_Occurred()) SWIG_fail;
16026 }
16027 resultobj = SWIG_From_int(static_cast< int >(result));
16028 return resultobj;
16029fail:
16030 return NULL;
16031}
16032
16033
16034SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16035 PyObject *resultobj = 0;
16036 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16037 int arg2 ;
16038 void *argp1 = 0 ;
16039 int res1 = 0 ;
16040 int val2 ;
16041 int ecode2 = 0 ;
16042 PyObject * obj0 = 0 ;
16043 PyObject * obj1 = 0 ;
16044 char * kwnames[] = {
16045 (char *) "self",(char *) "pos", NULL
16046 };
16047
16048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16050 if (!SWIG_IsOK(res1)) {
16051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
16052 }
16053 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16054 ecode2 = SWIG_AsVal_int(obj1, &val2);
16055 if (!SWIG_IsOK(ecode2)) {
16056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
16057 }
16058 arg2 = static_cast< int >(val2);
16059 {
16060 PyThreadState* __tstate = wxPyBeginAllowThreads();
16061 (arg1)->SetPosition(arg2);
16062 wxPyEndAllowThreads(__tstate);
16063 if (PyErr_Occurred()) SWIG_fail;
16064 }
16065 resultobj = SWIG_Py_Void();
16066 return resultobj;
16067fail:
16068 return NULL;
d55e5bfc
RD
16069}
16070
16071
554f62e9
RD
16072SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16073 PyObject *obj;
16074 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16075 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
16076 return SWIG_Py_Void();
d55e5bfc
RD
16077}
16078
554f62e9
RD
16079SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16080 return SWIG_Python_InitShadowInstance(args);
16081}
d55e5bfc 16082
554f62e9
RD
16083SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
16084 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
16085 return 1;
d55e5bfc
RD
16086}
16087
16088
554f62e9
RD
16089SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16090 PyObject *pyobj = 0;
16091
16092 {
16093#if wxUSE_UNICODE
16094 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16095#else
16096 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16097#endif
16098 }
16099 return pyobj;
d55e5bfc
RD
16100}
16101
16102
554f62e9
RD
16103SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16104 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16105 return 1;
16106}
16107
16108
16109SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16110 PyObject *pyobj = 0;
16111
16112 {
16113#if wxUSE_UNICODE
16114 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16115#else
16116 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16117#endif
16118 }
16119 return pyobj;
16120}
16121
16122
16123SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16124 PyObject *resultobj = 0;
16125 wxWindow *arg1 = (wxWindow *) 0 ;
16126 int arg2 = (int) -1 ;
16127 wxString const &arg3_defvalue = wxPyEmptyString ;
16128 wxString *arg3 = (wxString *) &arg3_defvalue ;
16129 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16130 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16131 wxSize const &arg5_defvalue = wxDefaultSize ;
16132 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16133 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16134 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16135 int arg7 = (int) 0 ;
16136 long arg8 = (long) wxRA_HORIZONTAL ;
16137 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16138 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16139 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16140 wxString *arg10 = (wxString *) &arg10_defvalue ;
16141 wxRadioBox *result = 0 ;
16142 void *argp1 = 0 ;
16143 int res1 = 0 ;
16144 int val2 ;
16145 int ecode2 = 0 ;
16146 bool temp3 = false ;
16147 wxPoint temp4 ;
16148 wxSize temp5 ;
16149 bool temp6 = false ;
16150 int val7 ;
16151 int ecode7 = 0 ;
16152 long val8 ;
16153 int ecode8 = 0 ;
16154 void *argp9 = 0 ;
16155 int res9 = 0 ;
16156 bool temp10 = false ;
16157 PyObject * obj0 = 0 ;
16158 PyObject * obj1 = 0 ;
16159 PyObject * obj2 = 0 ;
16160 PyObject * obj3 = 0 ;
16161 PyObject * obj4 = 0 ;
16162 PyObject * obj5 = 0 ;
16163 PyObject * obj6 = 0 ;
16164 PyObject * obj7 = 0 ;
16165 PyObject * obj8 = 0 ;
16166 PyObject * obj9 = 0 ;
16167 char * kwnames[] = {
16168 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16169 };
16170
16171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16173 if (!SWIG_IsOK(res1)) {
16174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16175 }
16176 arg1 = reinterpret_cast< wxWindow * >(argp1);
16177 if (obj1) {
16178 ecode2 = SWIG_AsVal_int(obj1, &val2);
16179 if (!SWIG_IsOK(ecode2)) {
16180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16181 }
16182 arg2 = static_cast< int >(val2);
16183 }
16184 if (obj2) {
093d3ff1 16185 {
554f62e9
RD
16186 arg3 = wxString_in_helper(obj2);
16187 if (arg3 == NULL) SWIG_fail;
16188 temp3 = true;
093d3ff1 16189 }
554f62e9
RD
16190 }
16191 if (obj3) {
093d3ff1 16192 {
554f62e9
RD
16193 arg4 = &temp4;
16194 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 16195 }
554f62e9
RD
16196 }
16197 if (obj4) {
d55e5bfc 16198 {
554f62e9
RD
16199 arg5 = &temp5;
16200 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16201 }
554f62e9
RD
16202 }
16203 if (obj5) {
d55e5bfc 16204 {
554f62e9
RD
16205 if (! PySequence_Check(obj5)) {
16206 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16207 SWIG_fail;
16208 }
16209 arg6 = new wxArrayString;
16210 temp6 = true;
16211 int i, len=PySequence_Length(obj5);
16212 for (i=0; i<len; i++) {
16213 PyObject* item = PySequence_GetItem(obj5, i);
16214 wxString* s = wxString_in_helper(item);
16215 if (PyErr_Occurred()) SWIG_fail;
16216 arg6->Add(*s);
16217 delete s;
16218 Py_DECREF(item);
16219 }
d55e5bfc 16220 }
554f62e9
RD
16221 }
16222 if (obj6) {
16223 ecode7 = SWIG_AsVal_int(obj6, &val7);
16224 if (!SWIG_IsOK(ecode7)) {
16225 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16226 }
16227 arg7 = static_cast< int >(val7);
16228 }
16229 if (obj7) {
16230 ecode8 = SWIG_AsVal_long(obj7, &val8);
16231 if (!SWIG_IsOK(ecode8)) {
16232 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16233 }
16234 arg8 = static_cast< long >(val8);
16235 }
16236 if (obj8) {
16237 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16238 if (!SWIG_IsOK(res9)) {
16239 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16240 }
554f62e9
RD
16241 if (!argp9) {
16242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16243 }
554f62e9
RD
16244 arg9 = reinterpret_cast< wxValidator * >(argp9);
16245 }
16246 if (obj9) {
d55e5bfc 16247 {
554f62e9
RD
16248 arg10 = wxString_in_helper(obj9);
16249 if (arg10 == NULL) SWIG_fail;
16250 temp10 = true;
d55e5bfc 16251 }
554f62e9
RD
16252 }
16253 {
16254 if (!wxPyCheckForApp()) SWIG_fail;
16255 PyThreadState* __tstate = wxPyBeginAllowThreads();
16256 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);
16257 wxPyEndAllowThreads(__tstate);
16258 if (PyErr_Occurred()) SWIG_fail;
16259 }
16260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16261 {
16262 if (temp3)
16263 delete arg3;
16264 }
16265 {
16266 if (temp6) delete arg6;
16267 }
16268 {
16269 if (temp10)
16270 delete arg10;
16271 }
16272 return resultobj;
16273fail:
16274 {
16275 if (temp3)
16276 delete arg3;
16277 }
16278 {
16279 if (temp6) delete arg6;
16280 }
16281 {
16282 if (temp10)
16283 delete arg10;
16284 }
16285 return NULL;
d55e5bfc
RD
16286}
16287
16288
554f62e9
RD
16289SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16290 PyObject *resultobj = 0;
16291 wxRadioBox *result = 0 ;
16292
16293 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16294 {
16295 if (!wxPyCheckForApp()) SWIG_fail;
16296 PyThreadState* __tstate = wxPyBeginAllowThreads();
16297 result = (wxRadioBox *)new wxRadioBox();
16298 wxPyEndAllowThreads(__tstate);
16299 if (PyErr_Occurred()) SWIG_fail;
16300 }
16301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16302 return resultobj;
16303fail:
16304 return NULL;
16305}
16306
16307
16308SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16309 PyObject *resultobj = 0;
16310 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16311 wxWindow *arg2 = (wxWindow *) 0 ;
16312 int arg3 = (int) -1 ;
16313 wxString const &arg4_defvalue = wxPyEmptyString ;
16314 wxString *arg4 = (wxString *) &arg4_defvalue ;
16315 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16316 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16317 wxSize const &arg6_defvalue = wxDefaultSize ;
16318 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16319 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16320 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16321 int arg8 = (int) 0 ;
16322 long arg9 = (long) wxRA_HORIZONTAL ;
16323 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16324 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16325 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16326 wxString *arg11 = (wxString *) &arg11_defvalue ;
16327 bool result;
16328 void *argp1 = 0 ;
16329 int res1 = 0 ;
16330 void *argp2 = 0 ;
16331 int res2 = 0 ;
16332 int val3 ;
16333 int ecode3 = 0 ;
16334 bool temp4 = false ;
16335 wxPoint temp5 ;
16336 wxSize temp6 ;
16337 bool temp7 = false ;
16338 int val8 ;
16339 int ecode8 = 0 ;
16340 long val9 ;
16341 int ecode9 = 0 ;
16342 void *argp10 = 0 ;
16343 int res10 = 0 ;
16344 bool temp11 = false ;
16345 PyObject * obj0 = 0 ;
16346 PyObject * obj1 = 0 ;
16347 PyObject * obj2 = 0 ;
16348 PyObject * obj3 = 0 ;
16349 PyObject * obj4 = 0 ;
16350 PyObject * obj5 = 0 ;
16351 PyObject * obj6 = 0 ;
16352 PyObject * obj7 = 0 ;
16353 PyObject * obj8 = 0 ;
16354 PyObject * obj9 = 0 ;
16355 PyObject * obj10 = 0 ;
16356 char * kwnames[] = {
16357 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16358 };
16359
16360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16362 if (!SWIG_IsOK(res1)) {
16363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16364 }
16365 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16366 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16367 if (!SWIG_IsOK(res2)) {
16368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16369 }
16370 arg2 = reinterpret_cast< wxWindow * >(argp2);
16371 if (obj2) {
16372 ecode3 = SWIG_AsVal_int(obj2, &val3);
16373 if (!SWIG_IsOK(ecode3)) {
16374 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16375 }
16376 arg3 = static_cast< int >(val3);
16377 }
16378 if (obj3) {
093d3ff1 16379 {
554f62e9
RD
16380 arg4 = wxString_in_helper(obj3);
16381 if (arg4 == NULL) SWIG_fail;
16382 temp4 = true;
093d3ff1 16383 }
554f62e9
RD
16384 }
16385 if (obj4) {
d55e5bfc 16386 {
554f62e9
RD
16387 arg5 = &temp5;
16388 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16389 }
554f62e9
RD
16390 }
16391 if (obj5) {
093d3ff1 16392 {
554f62e9
RD
16393 arg6 = &temp6;
16394 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 16395 }
554f62e9
RD
16396 }
16397 if (obj6) {
093d3ff1 16398 {
554f62e9
RD
16399 if (! PySequence_Check(obj6)) {
16400 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16401 SWIG_fail;
16402 }
16403 arg7 = new wxArrayString;
16404 temp7 = true;
16405 int i, len=PySequence_Length(obj6);
16406 for (i=0; i<len; i++) {
16407 PyObject* item = PySequence_GetItem(obj6, i);
16408 wxString* s = wxString_in_helper(item);
16409 if (PyErr_Occurred()) SWIG_fail;
16410 arg7->Add(*s);
16411 delete s;
16412 Py_DECREF(item);
16413 }
093d3ff1 16414 }
554f62e9
RD
16415 }
16416 if (obj7) {
16417 ecode8 = SWIG_AsVal_int(obj7, &val8);
16418 if (!SWIG_IsOK(ecode8)) {
16419 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16420 }
16421 arg8 = static_cast< int >(val8);
16422 }
16423 if (obj8) {
16424 ecode9 = SWIG_AsVal_long(obj8, &val9);
16425 if (!SWIG_IsOK(ecode9)) {
16426 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16427 }
16428 arg9 = static_cast< long >(val9);
16429 }
16430 if (obj9) {
16431 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16432 if (!SWIG_IsOK(res10)) {
16433 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
093d3ff1 16434 }
554f62e9
RD
16435 if (!argp10) {
16436 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 16437 }
554f62e9
RD
16438 arg10 = reinterpret_cast< wxValidator * >(argp10);
16439 }
16440 if (obj10) {
d55e5bfc 16441 {
554f62e9
RD
16442 arg11 = wxString_in_helper(obj10);
16443 if (arg11 == NULL) SWIG_fail;
16444 temp11 = true;
d55e5bfc 16445 }
554f62e9
RD
16446 }
16447 {
16448 PyThreadState* __tstate = wxPyBeginAllowThreads();
16449 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);
16450 wxPyEndAllowThreads(__tstate);
16451 if (PyErr_Occurred()) SWIG_fail;
16452 }
16453 {
16454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16455 }
16456 {
16457 if (temp4)
16458 delete arg4;
16459 }
16460 {
16461 if (temp7) delete arg7;
16462 }
16463 {
16464 if (temp11)
16465 delete arg11;
16466 }
16467 return resultobj;
16468fail:
16469 {
16470 if (temp4)
16471 delete arg4;
16472 }
16473 {
16474 if (temp7) delete arg7;
16475 }
16476 {
16477 if (temp11)
16478 delete arg11;
16479 }
16480 return NULL;
16481}
16482
16483
16484SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16485 PyObject *resultobj = 0;
16486 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16487 int arg2 ;
16488 void *argp1 = 0 ;
16489 int res1 = 0 ;
16490 int val2 ;
16491 int ecode2 = 0 ;
16492 PyObject * obj0 = 0 ;
16493 PyObject * obj1 = 0 ;
16494 char * kwnames[] = {
16495 (char *) "self",(char *) "n", NULL
16496 };
16497
16498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16500 if (!SWIG_IsOK(res1)) {
16501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16502 }
16503 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16504 ecode2 = SWIG_AsVal_int(obj1, &val2);
16505 if (!SWIG_IsOK(ecode2)) {
16506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16507 }
16508 arg2 = static_cast< int >(val2);
16509 {
16510 PyThreadState* __tstate = wxPyBeginAllowThreads();
16511 (arg1)->SetSelection(arg2);
16512 wxPyEndAllowThreads(__tstate);
16513 if (PyErr_Occurred()) SWIG_fail;
16514 }
16515 resultobj = SWIG_Py_Void();
16516 return resultobj;
16517fail:
16518 return NULL;
d55e5bfc
RD
16519}
16520
16521
554f62e9
RD
16522SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16523 PyObject *resultobj = 0;
16524 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16525 int result;
16526 void *argp1 = 0 ;
16527 int res1 = 0 ;
16528 PyObject *swig_obj[1] ;
16529
16530 if (!args) SWIG_fail;
16531 swig_obj[0] = args;
16532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16533 if (!SWIG_IsOK(res1)) {
16534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16535 }
16536 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16537 {
16538 PyThreadState* __tstate = wxPyBeginAllowThreads();
16539 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16540 wxPyEndAllowThreads(__tstate);
16541 if (PyErr_Occurred()) SWIG_fail;
16542 }
16543 resultobj = SWIG_From_int(static_cast< int >(result));
16544 return resultobj;
16545fail:
16546 return NULL;
4896ac9e
RD
16547}
16548
16549
554f62e9
RD
16550SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16551 PyObject *resultobj = 0;
16552 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16553 wxString result;
16554 void *argp1 = 0 ;
16555 int res1 = 0 ;
16556 PyObject *swig_obj[1] ;
16557
16558 if (!args) SWIG_fail;
16559 swig_obj[0] = args;
16560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16561 if (!SWIG_IsOK(res1)) {
16562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16563 }
16564 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16565 {
16566 PyThreadState* __tstate = wxPyBeginAllowThreads();
16567 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16568 wxPyEndAllowThreads(__tstate);
16569 if (PyErr_Occurred()) SWIG_fail;
16570 }
16571 {
16572#if wxUSE_UNICODE
16573 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16574#else
16575 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16576#endif
16577 }
16578 return resultobj;
16579fail:
16580 return NULL;
16581}
16582
16583
16584SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16585 PyObject *resultobj = 0;
16586 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16587 wxString *arg2 = 0 ;
16588 bool result;
16589 void *argp1 = 0 ;
16590 int res1 = 0 ;
16591 bool temp2 = false ;
16592 PyObject * obj0 = 0 ;
16593 PyObject * obj1 = 0 ;
16594 char * kwnames[] = {
16595 (char *) "self",(char *) "s", NULL
16596 };
16597
16598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16600 if (!SWIG_IsOK(res1)) {
16601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16602 }
16603 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16604 {
16605 arg2 = wxString_in_helper(obj1);
16606 if (arg2 == NULL) SWIG_fail;
16607 temp2 = true;
16608 }
16609 {
16610 PyThreadState* __tstate = wxPyBeginAllowThreads();
16611 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16612 wxPyEndAllowThreads(__tstate);
16613 if (PyErr_Occurred()) SWIG_fail;
16614 }
16615 {
16616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16617 }
16618 {
16619 if (temp2)
16620 delete arg2;
16621 }
16622 return resultobj;
16623fail:
16624 {
16625 if (temp2)
16626 delete arg2;
16627 }
16628 return NULL;
d55e5bfc
RD
16629}
16630
16631
554f62e9
RD
16632SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16633 PyObject *resultobj = 0;
16634 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
1c71765a 16635 size_t result;
554f62e9
RD
16636 void *argp1 = 0 ;
16637 int res1 = 0 ;
16638 PyObject *swig_obj[1] ;
16639
16640 if (!args) SWIG_fail;
16641 swig_obj[0] = args;
16642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16643 if (!SWIG_IsOK(res1)) {
16644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16645 }
16646 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16647 {
16648 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 16649 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
554f62e9
RD
16650 wxPyEndAllowThreads(__tstate);
16651 if (PyErr_Occurred()) SWIG_fail;
16652 }
1c71765a 16653 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
554f62e9
RD
16654 return resultobj;
16655fail:
16656 return NULL;
16657}
16658
16659
16660SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16661 PyObject *resultobj = 0;
16662 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16663 wxString *arg2 = 0 ;
16664 int result;
16665 void *argp1 = 0 ;
16666 int res1 = 0 ;
16667 bool temp2 = false ;
16668 PyObject * obj0 = 0 ;
16669 PyObject * obj1 = 0 ;
16670 char * kwnames[] = {
16671 (char *) "self",(char *) "s", NULL
16672 };
16673
16674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) 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_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16678 }
16679 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16680 {
16681 arg2 = wxString_in_helper(obj1);
16682 if (arg2 == NULL) SWIG_fail;
16683 temp2 = true;
16684 }
16685 {
16686 PyThreadState* __tstate = wxPyBeginAllowThreads();
16687 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16688 wxPyEndAllowThreads(__tstate);
16689 if (PyErr_Occurred()) SWIG_fail;
16690 }
16691 resultobj = SWIG_From_int(static_cast< int >(result));
16692 {
16693 if (temp2)
16694 delete arg2;
16695 }
16696 return resultobj;
16697fail:
16698 {
16699 if (temp2)
16700 delete arg2;
16701 }
16702 return NULL;
16703}
16704
16705
16706SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16707 PyObject *resultobj = 0;
16708 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16709 int arg2 ;
16710 wxString result;
16711 void *argp1 = 0 ;
16712 int res1 = 0 ;
16713 int val2 ;
16714 int ecode2 = 0 ;
16715 PyObject * obj0 = 0 ;
16716 PyObject * obj1 = 0 ;
16717 char * kwnames[] = {
16718 (char *) "self",(char *) "n", NULL
16719 };
16720
16721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16723 if (!SWIG_IsOK(res1)) {
16724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16725 }
16726 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16727 ecode2 = SWIG_AsVal_int(obj1, &val2);
16728 if (!SWIG_IsOK(ecode2)) {
16729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16730 }
16731 arg2 = static_cast< int >(val2);
16732 {
16733 PyThreadState* __tstate = wxPyBeginAllowThreads();
16734 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16735 wxPyEndAllowThreads(__tstate);
16736 if (PyErr_Occurred()) SWIG_fail;
16737 }
16738 {
16739#if wxUSE_UNICODE
16740 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16741#else
16742 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16743#endif
16744 }
16745 return resultobj;
16746fail:
16747 return NULL;
16748}
16749
16750
16751SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16752 PyObject *resultobj = 0;
16753 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16754 int arg2 ;
16755 wxString *arg3 = 0 ;
16756 void *argp1 = 0 ;
16757 int res1 = 0 ;
16758 int val2 ;
16759 int ecode2 = 0 ;
16760 bool temp3 = false ;
16761 PyObject * obj0 = 0 ;
16762 PyObject * obj1 = 0 ;
16763 PyObject * obj2 = 0 ;
16764 char * kwnames[] = {
16765 (char *) "self",(char *) "n",(char *) "label", NULL
16766 };
16767
16768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16770 if (!SWIG_IsOK(res1)) {
16771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16772 }
16773 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16774 ecode2 = SWIG_AsVal_int(obj1, &val2);
16775 if (!SWIG_IsOK(ecode2)) {
16776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16777 }
16778 arg2 = static_cast< int >(val2);
16779 {
16780 arg3 = wxString_in_helper(obj2);
16781 if (arg3 == NULL) SWIG_fail;
16782 temp3 = true;
16783 }
16784 {
16785 PyThreadState* __tstate = wxPyBeginAllowThreads();
16786 (arg1)->SetString(arg2,(wxString const &)*arg3);
16787 wxPyEndAllowThreads(__tstate);
16788 if (PyErr_Occurred()) SWIG_fail;
16789 }
16790 resultobj = SWIG_Py_Void();
16791 {
16792 if (temp3)
16793 delete arg3;
16794 }
16795 return resultobj;
16796fail:
16797 {
16798 if (temp3)
16799 delete arg3;
16800 }
16801 return NULL;
16802}
16803
16804
16805SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16806 PyObject *resultobj = 0;
16807 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16808 unsigned int arg2 ;
554f62e9
RD
16809 bool arg3 = (bool) true ;
16810 void *argp1 = 0 ;
16811 int res1 = 0 ;
50f151d7 16812 unsigned int val2 ;
554f62e9
RD
16813 int ecode2 = 0 ;
16814 bool val3 ;
16815 int ecode3 = 0 ;
16816 PyObject * obj0 = 0 ;
16817 PyObject * obj1 = 0 ;
16818 PyObject * obj2 = 0 ;
16819 char * kwnames[] = {
16820 (char *) "self",(char *) "n",(char *) "enable", NULL
16821 };
16822
16823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16825 if (!SWIG_IsOK(res1)) {
16826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16827 }
16828 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16829 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 16830 if (!SWIG_IsOK(ecode2)) {
50f151d7 16831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 16832 }
50f151d7 16833 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
16834 if (obj2) {
16835 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16836 if (!SWIG_IsOK(ecode3)) {
16837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16838 }
16839 arg3 = static_cast< bool >(val3);
16840 }
16841 {
16842 PyThreadState* __tstate = wxPyBeginAllowThreads();
16843 (arg1)->Enable(arg2,arg3);
16844 wxPyEndAllowThreads(__tstate);
16845 if (PyErr_Occurred()) SWIG_fail;
16846 }
16847 resultobj = SWIG_Py_Void();
16848 return resultobj;
16849fail:
16850 return NULL;
16851}
16852
16853
16854SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16855 PyObject *resultobj = 0;
16856 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16857 unsigned int arg2 ;
554f62e9
RD
16858 bool arg3 = (bool) true ;
16859 void *argp1 = 0 ;
16860 int res1 = 0 ;
50f151d7 16861 unsigned int val2 ;
554f62e9
RD
16862 int ecode2 = 0 ;
16863 bool val3 ;
16864 int ecode3 = 0 ;
16865 PyObject * obj0 = 0 ;
16866 PyObject * obj1 = 0 ;
16867 PyObject * obj2 = 0 ;
16868 char * kwnames[] = {
16869 (char *) "self",(char *) "n",(char *) "show", NULL
16870 };
16871
16872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16874 if (!SWIG_IsOK(res1)) {
16875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16876 }
16877 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16878 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 16879 if (!SWIG_IsOK(ecode2)) {
50f151d7 16880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 16881 }
50f151d7 16882 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
16883 if (obj2) {
16884 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16885 if (!SWIG_IsOK(ecode3)) {
16886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16887 }
16888 arg3 = static_cast< bool >(val3);
16889 }
16890 {
16891 PyThreadState* __tstate = wxPyBeginAllowThreads();
16892 (arg1)->Show(arg2,arg3);
16893 wxPyEndAllowThreads(__tstate);
16894 if (PyErr_Occurred()) SWIG_fail;
16895 }
16896 resultobj = SWIG_Py_Void();
16897 return resultobj;
16898fail:
16899 return NULL;
d55e5bfc
RD
16900}
16901
16902
50f151d7
RD
16903SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16904 PyObject *resultobj = 0;
16905 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16906 unsigned int arg2 ;
16907 bool result;
16908 void *argp1 = 0 ;
16909 int res1 = 0 ;
16910 unsigned int val2 ;
16911 int ecode2 = 0 ;
16912 PyObject * obj0 = 0 ;
16913 PyObject * obj1 = 0 ;
16914 char * kwnames[] = {
16915 (char *) "self",(char *) "n", NULL
16916 };
16917
16918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16920 if (!SWIG_IsOK(res1)) {
16921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16922 }
16923 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16924 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16925 if (!SWIG_IsOK(ecode2)) {
16926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16927 }
16928 arg2 = static_cast< unsigned int >(val2);
16929 {
16930 PyThreadState* __tstate = wxPyBeginAllowThreads();
16931 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16932 wxPyEndAllowThreads(__tstate);
16933 if (PyErr_Occurred()) SWIG_fail;
16934 }
16935 {
16936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16937 }
16938 return resultobj;
16939fail:
16940 return NULL;
16941}
16942
16943
16944SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16945 PyObject *resultobj = 0;
16946 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16947 unsigned int arg2 ;
16948 bool result;
16949 void *argp1 = 0 ;
16950 int res1 = 0 ;
16951 unsigned int val2 ;
16952 int ecode2 = 0 ;
16953 PyObject * obj0 = 0 ;
16954 PyObject * obj1 = 0 ;
16955 char * kwnames[] = {
16956 (char *) "self",(char *) "n", NULL
16957 };
16958
16959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16961 if (!SWIG_IsOK(res1)) {
16962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16963 }
16964 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16965 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16966 if (!SWIG_IsOK(ecode2)) {
16967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16968 }
16969 arg2 = static_cast< unsigned int >(val2);
16970 {
16971 PyThreadState* __tstate = wxPyBeginAllowThreads();
16972 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16973 wxPyEndAllowThreads(__tstate);
16974 if (PyErr_Occurred()) SWIG_fail;
16975 }
16976 {
16977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16978 }
16979 return resultobj;
16980fail:
16981 return NULL;
16982}
16983
16984
554f62e9
RD
16985SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16986 PyObject *resultobj = 0;
16987 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16988 unsigned int result;
554f62e9
RD
16989 void *argp1 = 0 ;
16990 int res1 = 0 ;
16991 PyObject *swig_obj[1] ;
16992
16993 if (!args) SWIG_fail;
16994 swig_obj[0] = args;
16995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16996 if (!SWIG_IsOK(res1)) {
16997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16998 }
16999 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17000 {
17001 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 17002 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
554f62e9
RD
17003 wxPyEndAllowThreads(__tstate);
17004 if (PyErr_Occurred()) SWIG_fail;
17005 }
50f151d7 17006 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
17007 return resultobj;
17008fail:
17009 return NULL;
d55e5bfc
RD
17010}
17011
17012
554f62e9
RD
17013SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17014 PyObject *resultobj = 0;
17015 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 17016 unsigned int result;
554f62e9
RD
17017 void *argp1 = 0 ;
17018 int res1 = 0 ;
17019 PyObject *swig_obj[1] ;
17020
17021 if (!args) SWIG_fail;
17022 swig_obj[0] = args;
17023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17024 if (!SWIG_IsOK(res1)) {
17025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17026 }
17027 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17028 {
17029 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 17030 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
554f62e9
RD
17031 wxPyEndAllowThreads(__tstate);
17032 if (PyErr_Occurred()) SWIG_fail;
17033 }
50f151d7 17034 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
17035 return resultobj;
17036fail:
17037 return NULL;
17038}
17039
17040
17041SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17042 PyObject *resultobj = 0;
17043 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17044 int arg2 ;
17045 wxDirection arg3 ;
17046 long arg4 ;
17047 int result;
17048 void *argp1 = 0 ;
17049 int res1 = 0 ;
17050 int val2 ;
17051 int ecode2 = 0 ;
17052 int val3 ;
17053 int ecode3 = 0 ;
17054 long val4 ;
17055 int ecode4 = 0 ;
17056 PyObject * obj0 = 0 ;
17057 PyObject * obj1 = 0 ;
17058 PyObject * obj2 = 0 ;
17059 PyObject * obj3 = 0 ;
17060 char * kwnames[] = {
17061 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
17062 };
17063
17064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17066 if (!SWIG_IsOK(res1)) {
17067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17068 }
17069 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17070 ecode2 = SWIG_AsVal_int(obj1, &val2);
17071 if (!SWIG_IsOK(ecode2)) {
17072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
17073 }
17074 arg2 = static_cast< int >(val2);
17075 ecode3 = SWIG_AsVal_int(obj2, &val3);
17076 if (!SWIG_IsOK(ecode3)) {
17077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
17078 }
17079 arg3 = static_cast< wxDirection >(val3);
17080 ecode4 = SWIG_AsVal_long(obj3, &val4);
17081 if (!SWIG_IsOK(ecode4)) {
17082 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
17083 }
17084 arg4 = static_cast< long >(val4);
17085 {
17086 PyThreadState* __tstate = wxPyBeginAllowThreads();
17087 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
17088 wxPyEndAllowThreads(__tstate);
17089 if (PyErr_Occurred()) SWIG_fail;
17090 }
17091 resultobj = SWIG_From_int(static_cast< int >(result));
17092 return resultobj;
17093fail:
17094 return NULL;
17095}
17096
17097
f460c29d
RD
17098SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17099 PyObject *resultobj = 0;
17100 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17101 unsigned int arg2 ;
17102 wxString *arg3 = 0 ;
17103 void *argp1 = 0 ;
17104 int res1 = 0 ;
17105 unsigned int val2 ;
17106 int ecode2 = 0 ;
17107 bool temp3 = false ;
17108 PyObject * obj0 = 0 ;
17109 PyObject * obj1 = 0 ;
17110 PyObject * obj2 = 0 ;
17111 char * kwnames[] = {
17112 (char *) "self",(char *) "item",(char *) "text", NULL
17113 };
17114
17115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17117 if (!SWIG_IsOK(res1)) {
17118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17119 }
17120 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17121 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17122 if (!SWIG_IsOK(ecode2)) {
17123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17124 }
17125 arg2 = static_cast< unsigned int >(val2);
17126 {
17127 arg3 = wxString_in_helper(obj2);
17128 if (arg3 == NULL) SWIG_fail;
17129 temp3 = true;
17130 }
17131 {
17132 PyThreadState* __tstate = wxPyBeginAllowThreads();
17133 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17134 wxPyEndAllowThreads(__tstate);
17135 if (PyErr_Occurred()) SWIG_fail;
17136 }
17137 resultobj = SWIG_Py_Void();
17138 {
17139 if (temp3)
17140 delete arg3;
17141 }
17142 return resultobj;
17143fail:
17144 {
17145 if (temp3)
17146 delete arg3;
17147 }
17148 return NULL;
17149}
17150
17151
17152SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17153 PyObject *resultobj = 0;
17154 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17155 unsigned int arg2 ;
17156 wxToolTip *result = 0 ;
17157 void *argp1 = 0 ;
17158 int res1 = 0 ;
17159 unsigned int val2 ;
17160 int ecode2 = 0 ;
17161 PyObject * obj0 = 0 ;
17162 PyObject * obj1 = 0 ;
17163 char * kwnames[] = {
17164 (char *) "self",(char *) "item", NULL
17165 };
17166
17167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17169 if (!SWIG_IsOK(res1)) {
17170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17171 }
17172 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17173 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17174 if (!SWIG_IsOK(ecode2)) {
17175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17176 }
17177 arg2 = static_cast< unsigned int >(val2);
17178 {
17179 PyThreadState* __tstate = wxPyBeginAllowThreads();
17180 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17181 wxPyEndAllowThreads(__tstate);
17182 if (PyErr_Occurred()) SWIG_fail;
17183 }
17184 {
17185 resultobj = wxPyMake_wxObject(result, (bool)0);
17186 }
17187 return resultobj;
17188fail:
17189 return NULL;
17190}
17191
17192
b850e7f3
RD
17193SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17194 PyObject *resultobj = 0;
17195 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17196 unsigned int arg2 ;
17197 wxString *arg3 = 0 ;
17198 void *argp1 = 0 ;
17199 int res1 = 0 ;
17200 unsigned int val2 ;
17201 int ecode2 = 0 ;
17202 bool temp3 = false ;
17203 PyObject * obj0 = 0 ;
17204 PyObject * obj1 = 0 ;
17205 PyObject * obj2 = 0 ;
17206 char * kwnames[] = {
17207 (char *) "self",(char *) "n",(char *) "helpText", NULL
17208 };
17209
17210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17212 if (!SWIG_IsOK(res1)) {
17213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17214 }
17215 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17216 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17217 if (!SWIG_IsOK(ecode2)) {
17218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17219 }
17220 arg2 = static_cast< unsigned int >(val2);
17221 {
17222 arg3 = wxString_in_helper(obj2);
17223 if (arg3 == NULL) SWIG_fail;
17224 temp3 = true;
17225 }
17226 {
17227 PyThreadState* __tstate = wxPyBeginAllowThreads();
17228 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17229 wxPyEndAllowThreads(__tstate);
17230 if (PyErr_Occurred()) SWIG_fail;
17231 }
17232 resultobj = SWIG_Py_Void();
17233 {
17234 if (temp3)
17235 delete arg3;
17236 }
17237 return resultobj;
17238fail:
17239 {
17240 if (temp3)
17241 delete arg3;
17242 }
17243 return NULL;
17244}
17245
17246
17247SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17248 PyObject *resultobj = 0;
17249 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17250 unsigned int arg2 ;
17251 wxString result;
17252 void *argp1 = 0 ;
17253 int res1 = 0 ;
17254 unsigned int val2 ;
17255 int ecode2 = 0 ;
17256 PyObject * obj0 = 0 ;
17257 PyObject * obj1 = 0 ;
17258 char * kwnames[] = {
17259 (char *) "self",(char *) "n", NULL
17260 };
17261
17262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17264 if (!SWIG_IsOK(res1)) {
17265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17266 }
17267 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17268 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17269 if (!SWIG_IsOK(ecode2)) {
17270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17271 }
17272 arg2 = static_cast< unsigned int >(val2);
17273 {
17274 PyThreadState* __tstate = wxPyBeginAllowThreads();
17275 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17276 wxPyEndAllowThreads(__tstate);
17277 if (PyErr_Occurred()) SWIG_fail;
17278 }
17279 {
17280#if wxUSE_UNICODE
17281 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17282#else
17283 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17284#endif
17285 }
17286 return resultobj;
17287fail:
17288 return NULL;
17289}
17290
17291
554f62e9
RD
17292SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17293 PyObject *resultobj = 0;
17294 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17295 SwigValueWrapper<wxVisualAttributes > result;
17296 int val1 ;
17297 int ecode1 = 0 ;
17298 PyObject * obj0 = 0 ;
17299 char * kwnames[] = {
17300 (char *) "variant", NULL
17301 };
17302
17303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17304 if (obj0) {
17305 ecode1 = SWIG_AsVal_int(obj0, &val1);
17306 if (!SWIG_IsOK(ecode1)) {
17307 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17308 }
17309 arg1 = static_cast< wxWindowVariant >(val1);
17310 }
17311 {
17312 if (!wxPyCheckForApp()) SWIG_fail;
17313 PyThreadState* __tstate = wxPyBeginAllowThreads();
17314 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17315 wxPyEndAllowThreads(__tstate);
17316 if (PyErr_Occurred()) SWIG_fail;
17317 }
17318 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17319 return resultobj;
17320fail:
17321 return NULL;
17322}
17323
17324
17325SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17326 PyObject *obj;
17327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17328 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17329 return SWIG_Py_Void();
17330}
17331
17332SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17333 return SWIG_Python_InitShadowInstance(args);
17334}
17335
17336SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17337 PyObject *resultobj = 0;
17338 wxWindow *arg1 = (wxWindow *) 0 ;
17339 int arg2 = (int) -1 ;
17340 wxString const &arg3_defvalue = wxPyEmptyString ;
17341 wxString *arg3 = (wxString *) &arg3_defvalue ;
17342 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17343 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17344 wxSize const &arg5_defvalue = wxDefaultSize ;
17345 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17346 long arg6 = (long) 0 ;
17347 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17348 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17349 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17350 wxString *arg8 = (wxString *) &arg8_defvalue ;
17351 wxRadioButton *result = 0 ;
17352 void *argp1 = 0 ;
17353 int res1 = 0 ;
17354 int val2 ;
17355 int ecode2 = 0 ;
17356 bool temp3 = false ;
17357 wxPoint temp4 ;
17358 wxSize temp5 ;
17359 long val6 ;
17360 int ecode6 = 0 ;
17361 void *argp7 = 0 ;
17362 int res7 = 0 ;
17363 bool temp8 = false ;
17364 PyObject * obj0 = 0 ;
17365 PyObject * obj1 = 0 ;
17366 PyObject * obj2 = 0 ;
17367 PyObject * obj3 = 0 ;
17368 PyObject * obj4 = 0 ;
17369 PyObject * obj5 = 0 ;
17370 PyObject * obj6 = 0 ;
17371 PyObject * obj7 = 0 ;
17372 char * kwnames[] = {
17373 (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 *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17378 if (!SWIG_IsOK(res1)) {
17379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17380 }
17381 arg1 = reinterpret_cast< wxWindow * >(argp1);
17382 if (obj1) {
17383 ecode2 = SWIG_AsVal_int(obj1, &val2);
17384 if (!SWIG_IsOK(ecode2)) {
17385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17386 }
17387 arg2 = static_cast< int >(val2);
17388 }
17389 if (obj2) {
d55e5bfc 17390 {
554f62e9
RD
17391 arg3 = wxString_in_helper(obj2);
17392 if (arg3 == NULL) SWIG_fail;
17393 temp3 = true;
d55e5bfc 17394 }
554f62e9
RD
17395 }
17396 if (obj3) {
d55e5bfc 17397 {
554f62e9
RD
17398 arg4 = &temp4;
17399 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 17400 }
554f62e9
RD
17401 }
17402 if (obj4) {
d55e5bfc 17403 {
554f62e9
RD
17404 arg5 = &temp5;
17405 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17406 }
554f62e9
RD
17407 }
17408 if (obj5) {
17409 ecode6 = SWIG_AsVal_long(obj5, &val6);
17410 if (!SWIG_IsOK(ecode6)) {
17411 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17412 }
17413 arg6 = static_cast< long >(val6);
17414 }
17415 if (obj6) {
17416 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17417 if (!SWIG_IsOK(res7)) {
17418 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17419 }
554f62e9
RD
17420 if (!argp7) {
17421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17422 }
554f62e9
RD
17423 arg7 = reinterpret_cast< wxValidator * >(argp7);
17424 }
17425 if (obj7) {
d55e5bfc 17426 {
554f62e9
RD
17427 arg8 = wxString_in_helper(obj7);
17428 if (arg8 == NULL) SWIG_fail;
17429 temp8 = true;
d55e5bfc 17430 }
554f62e9
RD
17431 }
17432 {
17433 if (!wxPyCheckForApp()) SWIG_fail;
17434 PyThreadState* __tstate = wxPyBeginAllowThreads();
17435 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17436 wxPyEndAllowThreads(__tstate);
17437 if (PyErr_Occurred()) SWIG_fail;
17438 }
17439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17440 {
17441 if (temp3)
17442 delete arg3;
17443 }
17444 {
17445 if (temp8)
17446 delete arg8;
17447 }
17448 return resultobj;
17449fail:
17450 {
17451 if (temp3)
17452 delete arg3;
17453 }
17454 {
17455 if (temp8)
17456 delete arg8;
17457 }
17458 return NULL;
d55e5bfc
RD
17459}
17460
17461
554f62e9
RD
17462SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17463 PyObject *resultobj = 0;
17464 wxRadioButton *result = 0 ;
17465
17466 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17467 {
17468 if (!wxPyCheckForApp()) SWIG_fail;
17469 PyThreadState* __tstate = wxPyBeginAllowThreads();
17470 result = (wxRadioButton *)new wxRadioButton();
17471 wxPyEndAllowThreads(__tstate);
17472 if (PyErr_Occurred()) SWIG_fail;
17473 }
17474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17475 return resultobj;
17476fail:
17477 return NULL;
17478}
17479
17480
17481SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17482 PyObject *resultobj = 0;
17483 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17484 wxWindow *arg2 = (wxWindow *) 0 ;
17485 int arg3 = (int) -1 ;
17486 wxString const &arg4_defvalue = wxPyEmptyString ;
17487 wxString *arg4 = (wxString *) &arg4_defvalue ;
17488 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17489 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17490 wxSize const &arg6_defvalue = wxDefaultSize ;
17491 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17492 long arg7 = (long) 0 ;
17493 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17494 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17495 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17496 wxString *arg9 = (wxString *) &arg9_defvalue ;
17497 bool result;
17498 void *argp1 = 0 ;
17499 int res1 = 0 ;
17500 void *argp2 = 0 ;
17501 int res2 = 0 ;
17502 int val3 ;
17503 int ecode3 = 0 ;
17504 bool temp4 = false ;
17505 wxPoint temp5 ;
17506 wxSize temp6 ;
17507 long val7 ;
17508 int ecode7 = 0 ;
17509 void *argp8 = 0 ;
17510 int res8 = 0 ;
17511 bool temp9 = false ;
17512 PyObject * obj0 = 0 ;
17513 PyObject * obj1 = 0 ;
17514 PyObject * obj2 = 0 ;
17515 PyObject * obj3 = 0 ;
17516 PyObject * obj4 = 0 ;
17517 PyObject * obj5 = 0 ;
17518 PyObject * obj6 = 0 ;
17519 PyObject * obj7 = 0 ;
17520 PyObject * obj8 = 0 ;
17521 char * kwnames[] = {
17522 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17523 };
17524
17525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17527 if (!SWIG_IsOK(res1)) {
17528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17529 }
17530 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17531 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17532 if (!SWIG_IsOK(res2)) {
17533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17534 }
17535 arg2 = reinterpret_cast< wxWindow * >(argp2);
17536 if (obj2) {
17537 ecode3 = SWIG_AsVal_int(obj2, &val3);
17538 if (!SWIG_IsOK(ecode3)) {
17539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17540 }
17541 arg3 = static_cast< int >(val3);
17542 }
17543 if (obj3) {
d55e5bfc 17544 {
554f62e9
RD
17545 arg4 = wxString_in_helper(obj3);
17546 if (arg4 == NULL) SWIG_fail;
17547 temp4 = true;
d55e5bfc 17548 }
554f62e9
RD
17549 }
17550 if (obj4) {
d55e5bfc 17551 {
554f62e9
RD
17552 arg5 = &temp5;
17553 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17554 }
554f62e9
RD
17555 }
17556 if (obj5) {
d55e5bfc 17557 {
554f62e9
RD
17558 arg6 = &temp6;
17559 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17560 }
554f62e9
RD
17561 }
17562 if (obj6) {
17563 ecode7 = SWIG_AsVal_long(obj6, &val7);
17564 if (!SWIG_IsOK(ecode7)) {
17565 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17566 }
17567 arg7 = static_cast< long >(val7);
17568 }
17569 if (obj7) {
17570 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17571 if (!SWIG_IsOK(res8)) {
17572 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17573 }
17574 if (!argp8) {
17575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17576 }
554f62e9
RD
17577 arg8 = reinterpret_cast< wxValidator * >(argp8);
17578 }
17579 if (obj8) {
d55e5bfc 17580 {
554f62e9
RD
17581 arg9 = wxString_in_helper(obj8);
17582 if (arg9 == NULL) SWIG_fail;
17583 temp9 = true;
d55e5bfc 17584 }
554f62e9
RD
17585 }
17586 {
17587 PyThreadState* __tstate = wxPyBeginAllowThreads();
17588 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17589 wxPyEndAllowThreads(__tstate);
17590 if (PyErr_Occurred()) SWIG_fail;
17591 }
17592 {
17593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17594 }
17595 {
17596 if (temp4)
17597 delete arg4;
17598 }
17599 {
17600 if (temp9)
17601 delete arg9;
17602 }
17603 return resultobj;
17604fail:
17605 {
17606 if (temp4)
17607 delete arg4;
17608 }
17609 {
17610 if (temp9)
17611 delete arg9;
17612 }
17613 return NULL;
d55e5bfc
RD
17614}
17615
17616
554f62e9
RD
17617SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17618 PyObject *resultobj = 0;
17619 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17620 bool result;
17621 void *argp1 = 0 ;
17622 int res1 = 0 ;
17623 PyObject *swig_obj[1] ;
17624
17625 if (!args) SWIG_fail;
17626 swig_obj[0] = args;
17627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17628 if (!SWIG_IsOK(res1)) {
17629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17630 }
17631 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17632 {
17633 PyThreadState* __tstate = wxPyBeginAllowThreads();
17634 result = (bool)(arg1)->GetValue();
17635 wxPyEndAllowThreads(__tstate);
17636 if (PyErr_Occurred()) SWIG_fail;
17637 }
17638 {
17639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17640 }
17641 return resultobj;
17642fail:
17643 return NULL;
17644}
17645
17646
17647SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17648 PyObject *resultobj = 0;
17649 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17650 bool arg2 ;
17651 void *argp1 = 0 ;
17652 int res1 = 0 ;
17653 bool val2 ;
17654 int ecode2 = 0 ;
17655 PyObject * obj0 = 0 ;
17656 PyObject * obj1 = 0 ;
17657 char * kwnames[] = {
17658 (char *) "self",(char *) "value", NULL
17659 };
17660
17661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17663 if (!SWIG_IsOK(res1)) {
17664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17665 }
17666 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17667 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17668 if (!SWIG_IsOK(ecode2)) {
17669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17670 }
17671 arg2 = static_cast< bool >(val2);
17672 {
17673 PyThreadState* __tstate = wxPyBeginAllowThreads();
17674 (arg1)->SetValue(arg2);
17675 wxPyEndAllowThreads(__tstate);
17676 if (PyErr_Occurred()) SWIG_fail;
17677 }
17678 resultobj = SWIG_Py_Void();
17679 return resultobj;
17680fail:
17681 return NULL;
17682}
17683
17684
17685SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17686 PyObject *resultobj = 0;
17687 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17688 SwigValueWrapper<wxVisualAttributes > result;
17689 int val1 ;
17690 int ecode1 = 0 ;
17691 PyObject * obj0 = 0 ;
17692 char * kwnames[] = {
17693 (char *) "variant", NULL
17694 };
17695
17696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17697 if (obj0) {
17698 ecode1 = SWIG_AsVal_int(obj0, &val1);
17699 if (!SWIG_IsOK(ecode1)) {
17700 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17701 }
17702 arg1 = static_cast< wxWindowVariant >(val1);
17703 }
17704 {
17705 if (!wxPyCheckForApp()) SWIG_fail;
17706 PyThreadState* __tstate = wxPyBeginAllowThreads();
17707 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17708 wxPyEndAllowThreads(__tstate);
17709 if (PyErr_Occurred()) SWIG_fail;
17710 }
17711 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17712 return resultobj;
17713fail:
17714 return NULL;
d55e5bfc
RD
17715}
17716
17717
554f62e9
RD
17718SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17719 PyObject *obj;
17720 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17721 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17722 return SWIG_Py_Void();
d55e5bfc
RD
17723}
17724
554f62e9
RD
17725SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17726 return SWIG_Python_InitShadowInstance(args);
17727}
d55e5bfc 17728
554f62e9
RD
17729SWIGINTERN int SliderNameStr_set(PyObject *) {
17730 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17731 return 1;
d55e5bfc
RD
17732}
17733
17734
554f62e9
RD
17735SWIGINTERN PyObject *SliderNameStr_get(void) {
17736 PyObject *pyobj = 0;
17737
17738 {
17739#if wxUSE_UNICODE
17740 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17741#else
17742 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17743#endif
17744 }
17745 return pyobj;
17746}
17747
17748
17749SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17750 PyObject *resultobj = 0;
17751 wxWindow *arg1 = (wxWindow *) 0 ;
17752 int arg2 = (int) -1 ;
17753 int arg3 = (int) 0 ;
17754 int arg4 = (int) 0 ;
17755 int arg5 = (int) 100 ;
17756 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17757 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17758 wxSize const &arg7_defvalue = wxDefaultSize ;
17759 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17760 long arg8 = (long) wxSL_HORIZONTAL ;
17761 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17762 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17763 wxString const &arg10_defvalue = wxPySliderNameStr ;
17764 wxString *arg10 = (wxString *) &arg10_defvalue ;
17765 wxSlider *result = 0 ;
17766 void *argp1 = 0 ;
17767 int res1 = 0 ;
17768 int val2 ;
17769 int ecode2 = 0 ;
17770 int val3 ;
17771 int ecode3 = 0 ;
17772 int val4 ;
17773 int ecode4 = 0 ;
17774 int val5 ;
17775 int ecode5 = 0 ;
17776 wxPoint temp6 ;
17777 wxSize temp7 ;
17778 long val8 ;
17779 int ecode8 = 0 ;
17780 void *argp9 = 0 ;
17781 int res9 = 0 ;
17782 bool temp10 = false ;
17783 PyObject * obj0 = 0 ;
17784 PyObject * obj1 = 0 ;
17785 PyObject * obj2 = 0 ;
17786 PyObject * obj3 = 0 ;
17787 PyObject * obj4 = 0 ;
17788 PyObject * obj5 = 0 ;
17789 PyObject * obj6 = 0 ;
17790 PyObject * obj7 = 0 ;
17791 PyObject * obj8 = 0 ;
17792 PyObject * obj9 = 0 ;
17793 char * kwnames[] = {
17794 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17795 };
17796
17797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17799 if (!SWIG_IsOK(res1)) {
17800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17801 }
17802 arg1 = reinterpret_cast< wxWindow * >(argp1);
17803 if (obj1) {
17804 ecode2 = SWIG_AsVal_int(obj1, &val2);
17805 if (!SWIG_IsOK(ecode2)) {
17806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17807 }
17808 arg2 = static_cast< int >(val2);
17809 }
17810 if (obj2) {
17811 ecode3 = SWIG_AsVal_int(obj2, &val3);
17812 if (!SWIG_IsOK(ecode3)) {
17813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17814 }
17815 arg3 = static_cast< int >(val3);
17816 }
17817 if (obj3) {
17818 ecode4 = SWIG_AsVal_int(obj3, &val4);
17819 if (!SWIG_IsOK(ecode4)) {
17820 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17821 }
17822 arg4 = static_cast< int >(val4);
17823 }
17824 if (obj4) {
17825 ecode5 = SWIG_AsVal_int(obj4, &val5);
17826 if (!SWIG_IsOK(ecode5)) {
17827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17828 }
17829 arg5 = static_cast< int >(val5);
17830 }
17831 if (obj5) {
d55e5bfc 17832 {
554f62e9
RD
17833 arg6 = &temp6;
17834 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17835 }
554f62e9
RD
17836 }
17837 if (obj6) {
093d3ff1 17838 {
554f62e9
RD
17839 arg7 = &temp7;
17840 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
093d3ff1 17841 }
554f62e9
RD
17842 }
17843 if (obj7) {
17844 ecode8 = SWIG_AsVal_long(obj7, &val8);
17845 if (!SWIG_IsOK(ecode8)) {
17846 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17847 }
17848 arg8 = static_cast< long >(val8);
17849 }
17850 if (obj8) {
17851 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17852 if (!SWIG_IsOK(res9)) {
17853 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
093d3ff1 17854 }
554f62e9
RD
17855 if (!argp9) {
17856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
093d3ff1 17857 }
554f62e9
RD
17858 arg9 = reinterpret_cast< wxValidator * >(argp9);
17859 }
17860 if (obj9) {
d55e5bfc 17861 {
554f62e9
RD
17862 arg10 = wxString_in_helper(obj9);
17863 if (arg10 == NULL) SWIG_fail;
17864 temp10 = true;
d55e5bfc 17865 }
554f62e9
RD
17866 }
17867 {
17868 if (!wxPyCheckForApp()) SWIG_fail;
17869 PyThreadState* __tstate = wxPyBeginAllowThreads();
17870 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17871 wxPyEndAllowThreads(__tstate);
17872 if (PyErr_Occurred()) SWIG_fail;
17873 }
17874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17875 {
17876 if (temp10)
17877 delete arg10;
17878 }
17879 return resultobj;
17880fail:
17881 {
17882 if (temp10)
17883 delete arg10;
17884 }
17885 return NULL;
d55e5bfc
RD
17886}
17887
17888
554f62e9
RD
17889SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17890 PyObject *resultobj = 0;
17891 wxSlider *result = 0 ;
17892
17893 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17894 {
17895 if (!wxPyCheckForApp()) SWIG_fail;
17896 PyThreadState* __tstate = wxPyBeginAllowThreads();
17897 result = (wxSlider *)new wxSlider();
17898 wxPyEndAllowThreads(__tstate);
17899 if (PyErr_Occurred()) SWIG_fail;
17900 }
17901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17902 return resultobj;
17903fail:
17904 return NULL;
17905}
17906
17907
17908SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17909 PyObject *resultobj = 0;
17910 wxSlider *arg1 = (wxSlider *) 0 ;
17911 wxWindow *arg2 = (wxWindow *) 0 ;
17912 int arg3 = (int) -1 ;
17913 int arg4 = (int) 0 ;
17914 int arg5 = (int) 0 ;
17915 int arg6 = (int) 100 ;
17916 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17917 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17918 wxSize const &arg8_defvalue = wxDefaultSize ;
17919 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17920 long arg9 = (long) wxSL_HORIZONTAL ;
17921 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17922 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17923 wxString const &arg11_defvalue = wxPySliderNameStr ;
17924 wxString *arg11 = (wxString *) &arg11_defvalue ;
17925 bool result;
17926 void *argp1 = 0 ;
17927 int res1 = 0 ;
17928 void *argp2 = 0 ;
17929 int res2 = 0 ;
17930 int val3 ;
17931 int ecode3 = 0 ;
17932 int val4 ;
17933 int ecode4 = 0 ;
17934 int val5 ;
17935 int ecode5 = 0 ;
17936 int val6 ;
17937 int ecode6 = 0 ;
17938 wxPoint temp7 ;
17939 wxSize temp8 ;
17940 long val9 ;
17941 int ecode9 = 0 ;
17942 void *argp10 = 0 ;
17943 int res10 = 0 ;
17944 bool temp11 = false ;
17945 PyObject * obj0 = 0 ;
17946 PyObject * obj1 = 0 ;
17947 PyObject * obj2 = 0 ;
17948 PyObject * obj3 = 0 ;
17949 PyObject * obj4 = 0 ;
17950 PyObject * obj5 = 0 ;
17951 PyObject * obj6 = 0 ;
17952 PyObject * obj7 = 0 ;
17953 PyObject * obj8 = 0 ;
17954 PyObject * obj9 = 0 ;
17955 PyObject * obj10 = 0 ;
17956 char * kwnames[] = {
17957 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17958 };
17959
17960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17962 if (!SWIG_IsOK(res1)) {
17963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17964 }
17965 arg1 = reinterpret_cast< wxSlider * >(argp1);
17966 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17967 if (!SWIG_IsOK(res2)) {
17968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17969 }
17970 arg2 = reinterpret_cast< wxWindow * >(argp2);
17971 if (obj2) {
17972 ecode3 = SWIG_AsVal_int(obj2, &val3);
17973 if (!SWIG_IsOK(ecode3)) {
17974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17975 }
17976 arg3 = static_cast< int >(val3);
17977 }
17978 if (obj3) {
17979 ecode4 = SWIG_AsVal_int(obj3, &val4);
17980 if (!SWIG_IsOK(ecode4)) {
17981 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17982 }
17983 arg4 = static_cast< int >(val4);
17984 }
17985 if (obj4) {
17986 ecode5 = SWIG_AsVal_int(obj4, &val5);
17987 if (!SWIG_IsOK(ecode5)) {
17988 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17989 }
17990 arg5 = static_cast< int >(val5);
17991 }
17992 if (obj5) {
17993 ecode6 = SWIG_AsVal_int(obj5, &val6);
17994 if (!SWIG_IsOK(ecode6)) {
17995 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17996 }
17997 arg6 = static_cast< int >(val6);
17998 }
17999 if (obj6) {
d55e5bfc 18000 {
554f62e9
RD
18001 arg7 = &temp7;
18002 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d55e5bfc 18003 }
554f62e9
RD
18004 }
18005 if (obj7) {
093d3ff1 18006 {
554f62e9
RD
18007 arg8 = &temp8;
18008 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
18009 }
18010 }
18011 if (obj8) {
18012 ecode9 = SWIG_AsVal_long(obj8, &val9);
18013 if (!SWIG_IsOK(ecode9)) {
18014 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
18015 }
18016 arg9 = static_cast< long >(val9);
18017 }
18018 if (obj9) {
18019 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
18020 if (!SWIG_IsOK(res10)) {
18021 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
093d3ff1 18022 }
554f62e9
RD
18023 if (!argp10) {
18024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18025 }
18026 arg10 = reinterpret_cast< wxValidator * >(argp10);
18027 }
18028 if (obj10) {
d55e5bfc 18029 {
554f62e9
RD
18030 arg11 = wxString_in_helper(obj10);
18031 if (arg11 == NULL) SWIG_fail;
18032 temp11 = true;
d55e5bfc 18033 }
554f62e9
RD
18034 }
18035 {
18036 PyThreadState* __tstate = wxPyBeginAllowThreads();
18037 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
18038 wxPyEndAllowThreads(__tstate);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 }
18041 {
18042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18043 }
18044 {
18045 if (temp11)
18046 delete arg11;
18047 }
18048 return resultobj;
18049fail:
18050 {
18051 if (temp11)
18052 delete arg11;
18053 }
18054 return NULL;
d55e5bfc
RD
18055}
18056
18057
554f62e9
RD
18058SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18059 PyObject *resultobj = 0;
18060 wxSlider *arg1 = (wxSlider *) 0 ;
18061 int result;
18062 void *argp1 = 0 ;
18063 int res1 = 0 ;
18064 PyObject *swig_obj[1] ;
18065
18066 if (!args) SWIG_fail;
18067 swig_obj[0] = args;
18068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18069 if (!SWIG_IsOK(res1)) {
18070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
18071 }
18072 arg1 = reinterpret_cast< wxSlider * >(argp1);
18073 {
18074 PyThreadState* __tstate = wxPyBeginAllowThreads();
18075 result = (int)((wxSlider const *)arg1)->GetValue();
18076 wxPyEndAllowThreads(__tstate);
18077 if (PyErr_Occurred()) SWIG_fail;
18078 }
18079 resultobj = SWIG_From_int(static_cast< int >(result));
18080 return resultobj;
18081fail:
18082 return NULL;
18083}
18084
18085
18086SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18087 PyObject *resultobj = 0;
18088 wxSlider *arg1 = (wxSlider *) 0 ;
18089 int arg2 ;
18090 void *argp1 = 0 ;
18091 int res1 = 0 ;
18092 int val2 ;
18093 int ecode2 = 0 ;
18094 PyObject * obj0 = 0 ;
18095 PyObject * obj1 = 0 ;
18096 char * kwnames[] = {
18097 (char *) "self",(char *) "value", NULL
18098 };
18099
18100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18102 if (!SWIG_IsOK(res1)) {
18103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18104 }
18105 arg1 = reinterpret_cast< wxSlider * >(argp1);
18106 ecode2 = SWIG_AsVal_int(obj1, &val2);
18107 if (!SWIG_IsOK(ecode2)) {
18108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18109 }
18110 arg2 = static_cast< int >(val2);
18111 {
18112 PyThreadState* __tstate = wxPyBeginAllowThreads();
18113 (arg1)->SetValue(arg2);
18114 wxPyEndAllowThreads(__tstate);
18115 if (PyErr_Occurred()) SWIG_fail;
18116 }
18117 resultobj = SWIG_Py_Void();
18118 return resultobj;
18119fail:
18120 return NULL;
18121}
18122
18123
18124SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18125 PyObject *resultobj = 0;
18126 wxSlider *arg1 = (wxSlider *) 0 ;
18127 int arg2 ;
18128 int arg3 ;
18129 void *argp1 = 0 ;
18130 int res1 = 0 ;
18131 int val2 ;
18132 int ecode2 = 0 ;
18133 int val3 ;
18134 int ecode3 = 0 ;
18135 PyObject * obj0 = 0 ;
18136 PyObject * obj1 = 0 ;
18137 PyObject * obj2 = 0 ;
18138 char * kwnames[] = {
18139 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18140 };
18141
18142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18144 if (!SWIG_IsOK(res1)) {
18145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18146 }
18147 arg1 = reinterpret_cast< wxSlider * >(argp1);
18148 ecode2 = SWIG_AsVal_int(obj1, &val2);
18149 if (!SWIG_IsOK(ecode2)) {
18150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18151 }
18152 arg2 = static_cast< int >(val2);
18153 ecode3 = SWIG_AsVal_int(obj2, &val3);
18154 if (!SWIG_IsOK(ecode3)) {
18155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18156 }
18157 arg3 = static_cast< int >(val3);
18158 {
18159 PyThreadState* __tstate = wxPyBeginAllowThreads();
18160 (arg1)->SetRange(arg2,arg3);
18161 wxPyEndAllowThreads(__tstate);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 resultobj = SWIG_Py_Void();
18165 return resultobj;
18166fail:
18167 return NULL;
d55e5bfc
RD
18168}
18169
18170
554f62e9
RD
18171SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18172 PyObject *resultobj = 0;
18173 wxSlider *arg1 = (wxSlider *) 0 ;
18174 int result;
18175 void *argp1 = 0 ;
18176 int res1 = 0 ;
18177 PyObject *swig_obj[1] ;
18178
18179 if (!args) SWIG_fail;
18180 swig_obj[0] = args;
18181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18182 if (!SWIG_IsOK(res1)) {
18183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18184 }
18185 arg1 = reinterpret_cast< wxSlider * >(argp1);
18186 {
18187 PyThreadState* __tstate = wxPyBeginAllowThreads();
18188 result = (int)((wxSlider const *)arg1)->GetMin();
18189 wxPyEndAllowThreads(__tstate);
18190 if (PyErr_Occurred()) SWIG_fail;
18191 }
18192 resultobj = SWIG_From_int(static_cast< int >(result));
18193 return resultobj;
18194fail:
18195 return NULL;
d55e5bfc
RD
18196}
18197
18198
554f62e9
RD
18199SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18200 PyObject *resultobj = 0;
18201 wxSlider *arg1 = (wxSlider *) 0 ;
18202 int result;
18203 void *argp1 = 0 ;
18204 int res1 = 0 ;
18205 PyObject *swig_obj[1] ;
18206
18207 if (!args) SWIG_fail;
18208 swig_obj[0] = args;
18209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18210 if (!SWIG_IsOK(res1)) {
18211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18212 }
18213 arg1 = reinterpret_cast< wxSlider * >(argp1);
18214 {
18215 PyThreadState* __tstate = wxPyBeginAllowThreads();
18216 result = (int)((wxSlider const *)arg1)->GetMax();
18217 wxPyEndAllowThreads(__tstate);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 }
18220 resultobj = SWIG_From_int(static_cast< int >(result));
18221 return resultobj;
18222fail:
18223 return NULL;
18224}
18225
18226
18227SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18228 PyObject *resultobj = 0;
18229 wxSlider *arg1 = (wxSlider *) 0 ;
18230 int arg2 ;
18231 void *argp1 = 0 ;
18232 int res1 = 0 ;
18233 int val2 ;
18234 int ecode2 = 0 ;
18235 PyObject * obj0 = 0 ;
18236 PyObject * obj1 = 0 ;
18237 char * kwnames[] = {
18238 (char *) "self",(char *) "minValue", NULL
18239 };
18240
18241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18243 if (!SWIG_IsOK(res1)) {
18244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18245 }
18246 arg1 = reinterpret_cast< wxSlider * >(argp1);
18247 ecode2 = SWIG_AsVal_int(obj1, &val2);
18248 if (!SWIG_IsOK(ecode2)) {
18249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18250 }
18251 arg2 = static_cast< int >(val2);
18252 {
18253 PyThreadState* __tstate = wxPyBeginAllowThreads();
18254 (arg1)->SetMin(arg2);
18255 wxPyEndAllowThreads(__tstate);
18256 if (PyErr_Occurred()) SWIG_fail;
18257 }
18258 resultobj = SWIG_Py_Void();
18259 return resultobj;
18260fail:
18261 return NULL;
18262}
18263
18264
18265SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18266 PyObject *resultobj = 0;
18267 wxSlider *arg1 = (wxSlider *) 0 ;
18268 int arg2 ;
18269 void *argp1 = 0 ;
18270 int res1 = 0 ;
18271 int val2 ;
18272 int ecode2 = 0 ;
18273 PyObject * obj0 = 0 ;
18274 PyObject * obj1 = 0 ;
18275 char * kwnames[] = {
18276 (char *) "self",(char *) "maxValue", NULL
18277 };
18278
18279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18281 if (!SWIG_IsOK(res1)) {
18282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18283 }
18284 arg1 = reinterpret_cast< wxSlider * >(argp1);
18285 ecode2 = SWIG_AsVal_int(obj1, &val2);
18286 if (!SWIG_IsOK(ecode2)) {
18287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18288 }
18289 arg2 = static_cast< int >(val2);
18290 {
18291 PyThreadState* __tstate = wxPyBeginAllowThreads();
18292 (arg1)->SetMax(arg2);
18293 wxPyEndAllowThreads(__tstate);
18294 if (PyErr_Occurred()) SWIG_fail;
18295 }
18296 resultobj = SWIG_Py_Void();
18297 return resultobj;
18298fail:
18299 return NULL;
18300}
18301
18302
18303SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18304 PyObject *resultobj = 0;
18305 wxSlider *arg1 = (wxSlider *) 0 ;
18306 int arg2 ;
18307 void *argp1 = 0 ;
18308 int res1 = 0 ;
18309 int val2 ;
18310 int ecode2 = 0 ;
18311 PyObject * obj0 = 0 ;
18312 PyObject * obj1 = 0 ;
18313 char * kwnames[] = {
18314 (char *) "self",(char *) "lineSize", NULL
18315 };
18316
18317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18319 if (!SWIG_IsOK(res1)) {
18320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18321 }
18322 arg1 = reinterpret_cast< wxSlider * >(argp1);
18323 ecode2 = SWIG_AsVal_int(obj1, &val2);
18324 if (!SWIG_IsOK(ecode2)) {
18325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18326 }
18327 arg2 = static_cast< int >(val2);
18328 {
18329 PyThreadState* __tstate = wxPyBeginAllowThreads();
18330 (arg1)->SetLineSize(arg2);
18331 wxPyEndAllowThreads(__tstate);
18332 if (PyErr_Occurred()) SWIG_fail;
18333 }
18334 resultobj = SWIG_Py_Void();
18335 return resultobj;
18336fail:
18337 return NULL;
18338}
18339
18340
18341SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18342 PyObject *resultobj = 0;
18343 wxSlider *arg1 = (wxSlider *) 0 ;
18344 int arg2 ;
18345 void *argp1 = 0 ;
18346 int res1 = 0 ;
18347 int val2 ;
18348 int ecode2 = 0 ;
18349 PyObject * obj0 = 0 ;
18350 PyObject * obj1 = 0 ;
18351 char * kwnames[] = {
18352 (char *) "self",(char *) "pageSize", NULL
18353 };
18354
18355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18357 if (!SWIG_IsOK(res1)) {
18358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18359 }
18360 arg1 = reinterpret_cast< wxSlider * >(argp1);
18361 ecode2 = SWIG_AsVal_int(obj1, &val2);
18362 if (!SWIG_IsOK(ecode2)) {
18363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18364 }
18365 arg2 = static_cast< int >(val2);
18366 {
18367 PyThreadState* __tstate = wxPyBeginAllowThreads();
18368 (arg1)->SetPageSize(arg2);
18369 wxPyEndAllowThreads(__tstate);
18370 if (PyErr_Occurred()) SWIG_fail;
18371 }
18372 resultobj = SWIG_Py_Void();
18373 return resultobj;
18374fail:
18375 return NULL;
d55e5bfc
RD
18376}
18377
18378
554f62e9
RD
18379SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18380 PyObject *resultobj = 0;
18381 wxSlider *arg1 = (wxSlider *) 0 ;
18382 int result;
18383 void *argp1 = 0 ;
18384 int res1 = 0 ;
18385 PyObject *swig_obj[1] ;
18386
18387 if (!args) SWIG_fail;
18388 swig_obj[0] = args;
18389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18390 if (!SWIG_IsOK(res1)) {
18391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18392 }
18393 arg1 = reinterpret_cast< wxSlider * >(argp1);
18394 {
18395 PyThreadState* __tstate = wxPyBeginAllowThreads();
18396 result = (int)((wxSlider const *)arg1)->GetLineSize();
18397 wxPyEndAllowThreads(__tstate);
18398 if (PyErr_Occurred()) SWIG_fail;
18399 }
18400 resultobj = SWIG_From_int(static_cast< int >(result));
18401 return resultobj;
18402fail:
18403 return NULL;
d55e5bfc
RD
18404}
18405
18406
554f62e9
RD
18407SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18408 PyObject *resultobj = 0;
18409 wxSlider *arg1 = (wxSlider *) 0 ;
18410 int result;
18411 void *argp1 = 0 ;
18412 int res1 = 0 ;
18413 PyObject *swig_obj[1] ;
18414
18415 if (!args) SWIG_fail;
18416 swig_obj[0] = args;
18417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18418 if (!SWIG_IsOK(res1)) {
18419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18420 }
18421 arg1 = reinterpret_cast< wxSlider * >(argp1);
18422 {
18423 PyThreadState* __tstate = wxPyBeginAllowThreads();
18424 result = (int)((wxSlider const *)arg1)->GetPageSize();
18425 wxPyEndAllowThreads(__tstate);
18426 if (PyErr_Occurred()) SWIG_fail;
18427 }
18428 resultobj = SWIG_From_int(static_cast< int >(result));
18429 return resultobj;
18430fail:
18431 return NULL;
18432}
18433
18434
18435SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18436 PyObject *resultobj = 0;
18437 wxSlider *arg1 = (wxSlider *) 0 ;
18438 int arg2 ;
18439 void *argp1 = 0 ;
18440 int res1 = 0 ;
18441 int val2 ;
18442 int ecode2 = 0 ;
18443 PyObject * obj0 = 0 ;
18444 PyObject * obj1 = 0 ;
18445 char * kwnames[] = {
18446 (char *) "self",(char *) "lenPixels", NULL
18447 };
18448
18449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18451 if (!SWIG_IsOK(res1)) {
18452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18453 }
18454 arg1 = reinterpret_cast< wxSlider * >(argp1);
18455 ecode2 = SWIG_AsVal_int(obj1, &val2);
18456 if (!SWIG_IsOK(ecode2)) {
18457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18458 }
18459 arg2 = static_cast< int >(val2);
18460 {
18461 PyThreadState* __tstate = wxPyBeginAllowThreads();
18462 (arg1)->SetThumbLength(arg2);
18463 wxPyEndAllowThreads(__tstate);
18464 if (PyErr_Occurred()) SWIG_fail;
18465 }
18466 resultobj = SWIG_Py_Void();
18467 return resultobj;
18468fail:
18469 return NULL;
f20a2e1f
RD
18470}
18471
18472
554f62e9
RD
18473SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18474 PyObject *resultobj = 0;
18475 wxSlider *arg1 = (wxSlider *) 0 ;
18476 int result;
18477 void *argp1 = 0 ;
18478 int res1 = 0 ;
18479 PyObject *swig_obj[1] ;
18480
18481 if (!args) SWIG_fail;
18482 swig_obj[0] = args;
18483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18484 if (!SWIG_IsOK(res1)) {
18485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18486 }
18487 arg1 = reinterpret_cast< wxSlider * >(argp1);
18488 {
18489 PyThreadState* __tstate = wxPyBeginAllowThreads();
18490 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18491 wxPyEndAllowThreads(__tstate);
18492 if (PyErr_Occurred()) SWIG_fail;
18493 }
18494 resultobj = SWIG_From_int(static_cast< int >(result));
18495 return resultobj;
18496fail:
18497 return NULL;
18498}
18499
18500
18501SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18502 PyObject *resultobj = 0;
18503 wxSlider *arg1 = (wxSlider *) 0 ;
18504 int arg2 ;
18505 int arg3 = (int) 1 ;
18506 void *argp1 = 0 ;
18507 int res1 = 0 ;
18508 int val2 ;
18509 int ecode2 = 0 ;
18510 int val3 ;
18511 int ecode3 = 0 ;
18512 PyObject * obj0 = 0 ;
18513 PyObject * obj1 = 0 ;
18514 PyObject * obj2 = 0 ;
18515 char * kwnames[] = {
18516 (char *) "self",(char *) "n",(char *) "pos", NULL
18517 };
18518
18519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18521 if (!SWIG_IsOK(res1)) {
18522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18523 }
18524 arg1 = reinterpret_cast< wxSlider * >(argp1);
18525 ecode2 = SWIG_AsVal_int(obj1, &val2);
18526 if (!SWIG_IsOK(ecode2)) {
18527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18528 }
18529 arg2 = static_cast< int >(val2);
18530 if (obj2) {
18531 ecode3 = SWIG_AsVal_int(obj2, &val3);
18532 if (!SWIG_IsOK(ecode3)) {
18533 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18534 }
18535 arg3 = static_cast< int >(val3);
18536 }
18537 {
18538 PyThreadState* __tstate = wxPyBeginAllowThreads();
18539 (arg1)->SetTickFreq(arg2,arg3);
18540 wxPyEndAllowThreads(__tstate);
18541 if (PyErr_Occurred()) SWIG_fail;
18542 }
18543 resultobj = SWIG_Py_Void();
18544 return resultobj;
18545fail:
18546 return NULL;
d55e5bfc
RD
18547}
18548
18549
554f62e9
RD
18550SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18551 PyObject *resultobj = 0;
18552 wxSlider *arg1 = (wxSlider *) 0 ;
18553 int result;
18554 void *argp1 = 0 ;
18555 int res1 = 0 ;
18556 PyObject *swig_obj[1] ;
18557
18558 if (!args) SWIG_fail;
18559 swig_obj[0] = args;
18560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18561 if (!SWIG_IsOK(res1)) {
18562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18563 }
18564 arg1 = reinterpret_cast< wxSlider * >(argp1);
18565 {
18566 PyThreadState* __tstate = wxPyBeginAllowThreads();
18567 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18568 wxPyEndAllowThreads(__tstate);
18569 if (PyErr_Occurred()) SWIG_fail;
18570 }
18571 resultobj = SWIG_From_int(static_cast< int >(result));
18572 return resultobj;
18573fail:
18574 return NULL;
d55e5bfc
RD
18575}
18576
18577
554f62e9
RD
18578SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18579 PyObject *resultobj = 0;
18580 wxSlider *arg1 = (wxSlider *) 0 ;
18581 void *argp1 = 0 ;
18582 int res1 = 0 ;
18583 PyObject *swig_obj[1] ;
18584
18585 if (!args) SWIG_fail;
18586 swig_obj[0] = args;
18587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18588 if (!SWIG_IsOK(res1)) {
18589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18590 }
18591 arg1 = reinterpret_cast< wxSlider * >(argp1);
18592 {
18593 PyThreadState* __tstate = wxPyBeginAllowThreads();
18594 (arg1)->ClearTicks();
18595 wxPyEndAllowThreads(__tstate);
18596 if (PyErr_Occurred()) SWIG_fail;
18597 }
18598 resultobj = SWIG_Py_Void();
18599 return resultobj;
18600fail:
18601 return NULL;
18602}
18603
18604
18605SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18606 PyObject *resultobj = 0;
18607 wxSlider *arg1 = (wxSlider *) 0 ;
18608 int arg2 ;
18609 void *argp1 = 0 ;
18610 int res1 = 0 ;
18611 int val2 ;
18612 int ecode2 = 0 ;
18613 PyObject * obj0 = 0 ;
18614 PyObject * obj1 = 0 ;
18615 char * kwnames[] = {
18616 (char *) "self",(char *) "tickPos", NULL
18617 };
18618
18619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18621 if (!SWIG_IsOK(res1)) {
18622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18623 }
18624 arg1 = reinterpret_cast< wxSlider * >(argp1);
18625 ecode2 = SWIG_AsVal_int(obj1, &val2);
18626 if (!SWIG_IsOK(ecode2)) {
18627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18628 }
18629 arg2 = static_cast< int >(val2);
18630 {
18631 PyThreadState* __tstate = wxPyBeginAllowThreads();
18632 (arg1)->SetTick(arg2);
18633 wxPyEndAllowThreads(__tstate);
18634 if (PyErr_Occurred()) SWIG_fail;
18635 }
18636 resultobj = SWIG_Py_Void();
18637 return resultobj;
18638fail:
18639 return NULL;
d55e5bfc
RD
18640}
18641
18642
554f62e9
RD
18643SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18644 PyObject *resultobj = 0;
18645 wxSlider *arg1 = (wxSlider *) 0 ;
18646 void *argp1 = 0 ;
18647 int res1 = 0 ;
18648 PyObject *swig_obj[1] ;
18649
18650 if (!args) SWIG_fail;
18651 swig_obj[0] = args;
18652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18653 if (!SWIG_IsOK(res1)) {
18654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18655 }
18656 arg1 = reinterpret_cast< wxSlider * >(argp1);
18657 {
18658 PyThreadState* __tstate = wxPyBeginAllowThreads();
18659 (arg1)->ClearSel();
18660 wxPyEndAllowThreads(__tstate);
18661 if (PyErr_Occurred()) SWIG_fail;
18662 }
18663 resultobj = SWIG_Py_Void();
18664 return resultobj;
18665fail:
18666 return NULL;
d55e5bfc
RD
18667}
18668
18669
554f62e9
RD
18670SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18671 PyObject *resultobj = 0;
18672 wxSlider *arg1 = (wxSlider *) 0 ;
18673 int result;
18674 void *argp1 = 0 ;
18675 int res1 = 0 ;
18676 PyObject *swig_obj[1] ;
18677
18678 if (!args) SWIG_fail;
18679 swig_obj[0] = args;
18680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18681 if (!SWIG_IsOK(res1)) {
18682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18683 }
18684 arg1 = reinterpret_cast< wxSlider * >(argp1);
18685 {
18686 PyThreadState* __tstate = wxPyBeginAllowThreads();
18687 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18688 wxPyEndAllowThreads(__tstate);
18689 if (PyErr_Occurred()) SWIG_fail;
18690 }
18691 resultobj = SWIG_From_int(static_cast< int >(result));
18692 return resultobj;
18693fail:
18694 return NULL;
d55e5bfc 18695}
554f62e9
RD
18696
18697
18698SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18699 PyObject *resultobj = 0;
18700 wxSlider *arg1 = (wxSlider *) 0 ;
18701 int result;
18702 void *argp1 = 0 ;
18703 int res1 = 0 ;
18704 PyObject *swig_obj[1] ;
18705
18706 if (!args) SWIG_fail;
18707 swig_obj[0] = args;
18708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18709 if (!SWIG_IsOK(res1)) {
18710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18711 }
18712 arg1 = reinterpret_cast< wxSlider * >(argp1);
18713 {
18714 PyThreadState* __tstate = wxPyBeginAllowThreads();
18715 result = (int)((wxSlider const *)arg1)->GetSelStart();
18716 wxPyEndAllowThreads(__tstate);
18717 if (PyErr_Occurred()) SWIG_fail;
18718 }
18719 resultobj = SWIG_From_int(static_cast< int >(result));
18720 return resultobj;
18721fail:
18722 return NULL;
18723}
18724
18725
18726SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18727 PyObject *resultobj = 0;
18728 wxSlider *arg1 = (wxSlider *) 0 ;
18729 int arg2 ;
18730 int arg3 ;
18731 void *argp1 = 0 ;
18732 int res1 = 0 ;
18733 int val2 ;
18734 int ecode2 = 0 ;
18735 int val3 ;
18736 int ecode3 = 0 ;
18737 PyObject * obj0 = 0 ;
18738 PyObject * obj1 = 0 ;
18739 PyObject * obj2 = 0 ;
18740 char * kwnames[] = {
18741 (char *) "self",(char *) "min",(char *) "max", NULL
18742 };
18743
18744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18746 if (!SWIG_IsOK(res1)) {
18747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18748 }
18749 arg1 = reinterpret_cast< wxSlider * >(argp1);
18750 ecode2 = SWIG_AsVal_int(obj1, &val2);
18751 if (!SWIG_IsOK(ecode2)) {
18752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18753 }
18754 arg2 = static_cast< int >(val2);
18755 ecode3 = SWIG_AsVal_int(obj2, &val3);
18756 if (!SWIG_IsOK(ecode3)) {
18757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18758 }
18759 arg3 = static_cast< int >(val3);
18760 {
18761 PyThreadState* __tstate = wxPyBeginAllowThreads();
18762 (arg1)->SetSelection(arg2,arg3);
18763 wxPyEndAllowThreads(__tstate);
18764 if (PyErr_Occurred()) SWIG_fail;
18765 }
18766 resultobj = SWIG_Py_Void();
18767 return resultobj;
18768fail:
18769 return NULL;
18770}
18771
18772
18773SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18774 PyObject *resultobj = 0;
18775 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18776 SwigValueWrapper<wxVisualAttributes > result;
18777 int val1 ;
18778 int ecode1 = 0 ;
18779 PyObject * obj0 = 0 ;
18780 char * kwnames[] = {
18781 (char *) "variant", NULL
18782 };
18783
18784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18785 if (obj0) {
18786 ecode1 = SWIG_AsVal_int(obj0, &val1);
18787 if (!SWIG_IsOK(ecode1)) {
18788 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18789 }
18790 arg1 = static_cast< wxWindowVariant >(val1);
18791 }
18792 {
18793 if (!wxPyCheckForApp()) SWIG_fail;
18794 PyThreadState* __tstate = wxPyBeginAllowThreads();
18795 result = wxSlider::GetClassDefaultAttributes(arg1);
18796 wxPyEndAllowThreads(__tstate);
18797 if (PyErr_Occurred()) SWIG_fail;
18798 }
18799 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18800 return resultobj;
18801fail:
18802 return NULL;
d55e5bfc
RD
18803}
18804
18805
554f62e9
RD
18806SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18807 PyObject *obj;
18808 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18809 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18810 return SWIG_Py_Void();
d55e5bfc
RD
18811}
18812
554f62e9
RD
18813SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18814 return SWIG_Python_InitShadowInstance(args);
18815}
d55e5bfc 18816
554f62e9
RD
18817SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18818 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18819 return 1;
d55e5bfc
RD
18820}
18821
18822
554f62e9
RD
18823SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18824 PyObject *pyobj = 0;
18825
18826 {
18827#if wxUSE_UNICODE
18828 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18829#else
18830 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18831#endif
18832 }
18833 return pyobj;
18834}
18835
18836
18837SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18838 PyObject *resultobj = 0;
18839 wxWindow *arg1 = (wxWindow *) 0 ;
18840 int arg2 = (int) -1 ;
18841 wxString const &arg3_defvalue = wxPyEmptyString ;
18842 wxString *arg3 = (wxString *) &arg3_defvalue ;
18843 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18844 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18845 wxSize const &arg5_defvalue = wxDefaultSize ;
18846 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18847 long arg6 = (long) 0 ;
18848 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18849 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18850 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18851 wxString *arg8 = (wxString *) &arg8_defvalue ;
18852 wxToggleButton *result = 0 ;
18853 void *argp1 = 0 ;
18854 int res1 = 0 ;
18855 int val2 ;
18856 int ecode2 = 0 ;
18857 bool temp3 = false ;
18858 wxPoint temp4 ;
18859 wxSize temp5 ;
18860 long val6 ;
18861 int ecode6 = 0 ;
18862 void *argp7 = 0 ;
18863 int res7 = 0 ;
18864 bool temp8 = false ;
18865 PyObject * obj0 = 0 ;
18866 PyObject * obj1 = 0 ;
18867 PyObject * obj2 = 0 ;
18868 PyObject * obj3 = 0 ;
18869 PyObject * obj4 = 0 ;
18870 PyObject * obj5 = 0 ;
18871 PyObject * obj6 = 0 ;
18872 PyObject * obj7 = 0 ;
18873 char * kwnames[] = {
18874 (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 *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18879 if (!SWIG_IsOK(res1)) {
18880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18881 }
18882 arg1 = reinterpret_cast< wxWindow * >(argp1);
18883 if (obj1) {
18884 ecode2 = SWIG_AsVal_int(obj1, &val2);
18885 if (!SWIG_IsOK(ecode2)) {
18886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18887 }
18888 arg2 = static_cast< int >(val2);
18889 }
18890 if (obj2) {
d55e5bfc 18891 {
554f62e9
RD
18892 arg3 = wxString_in_helper(obj2);
18893 if (arg3 == NULL) SWIG_fail;
18894 temp3 = true;
d55e5bfc 18895 }
554f62e9
RD
18896 }
18897 if (obj3) {
d55e5bfc 18898 {
554f62e9
RD
18899 arg4 = &temp4;
18900 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 18901 }
554f62e9
RD
18902 }
18903 if (obj4) {
d55e5bfc 18904 {
554f62e9
RD
18905 arg5 = &temp5;
18906 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 18907 }
554f62e9
RD
18908 }
18909 if (obj5) {
18910 ecode6 = SWIG_AsVal_long(obj5, &val6);
18911 if (!SWIG_IsOK(ecode6)) {
18912 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18913 }
18914 arg6 = static_cast< long >(val6);
18915 }
18916 if (obj6) {
18917 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18918 if (!SWIG_IsOK(res7)) {
18919 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18920 }
554f62e9
RD
18921 if (!argp7) {
18922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18923 }
554f62e9
RD
18924 arg7 = reinterpret_cast< wxValidator * >(argp7);
18925 }
18926 if (obj7) {
093d3ff1 18927 {
554f62e9
RD
18928 arg8 = wxString_in_helper(obj7);
18929 if (arg8 == NULL) SWIG_fail;
18930 temp8 = true;
093d3ff1 18931 }
554f62e9
RD
18932 }
18933 {
18934 if (!wxPyCheckForApp()) SWIG_fail;
18935 PyThreadState* __tstate = wxPyBeginAllowThreads();
18936 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18937 wxPyEndAllowThreads(__tstate);
18938 if (PyErr_Occurred()) SWIG_fail;
18939 }
18940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18941 {
18942 if (temp3)
18943 delete arg3;
18944 }
18945 {
18946 if (temp8)
18947 delete arg8;
18948 }
18949 return resultobj;
18950fail:
18951 {
18952 if (temp3)
18953 delete arg3;
18954 }
18955 {
18956 if (temp8)
18957 delete arg8;
18958 }
18959 return NULL;
d55e5bfc
RD
18960}
18961
18962
554f62e9
RD
18963SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18964 PyObject *resultobj = 0;
18965 wxToggleButton *result = 0 ;
18966
18967 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18968 {
18969 if (!wxPyCheckForApp()) SWIG_fail;
18970 PyThreadState* __tstate = wxPyBeginAllowThreads();
18971 result = (wxToggleButton *)new wxToggleButton();
18972 wxPyEndAllowThreads(__tstate);
18973 if (PyErr_Occurred()) SWIG_fail;
18974 }
18975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18976 return resultobj;
18977fail:
18978 return NULL;
18979}
18980
18981
18982SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18983 PyObject *resultobj = 0;
18984 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18985 wxWindow *arg2 = (wxWindow *) 0 ;
18986 int arg3 = (int) -1 ;
18987 wxString const &arg4_defvalue = wxPyEmptyString ;
18988 wxString *arg4 = (wxString *) &arg4_defvalue ;
18989 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18990 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18991 wxSize const &arg6_defvalue = wxDefaultSize ;
18992 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18993 long arg7 = (long) 0 ;
18994 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18995 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18996 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18997 wxString *arg9 = (wxString *) &arg9_defvalue ;
18998 bool result;
18999 void *argp1 = 0 ;
19000 int res1 = 0 ;
19001 void *argp2 = 0 ;
19002 int res2 = 0 ;
19003 int val3 ;
19004 int ecode3 = 0 ;
19005 bool temp4 = false ;
19006 wxPoint temp5 ;
19007 wxSize temp6 ;
19008 long val7 ;
19009 int ecode7 = 0 ;
19010 void *argp8 = 0 ;
19011 int res8 = 0 ;
19012 bool temp9 = false ;
19013 PyObject * obj0 = 0 ;
19014 PyObject * obj1 = 0 ;
19015 PyObject * obj2 = 0 ;
19016 PyObject * obj3 = 0 ;
19017 PyObject * obj4 = 0 ;
19018 PyObject * obj5 = 0 ;
19019 PyObject * obj6 = 0 ;
19020 PyObject * obj7 = 0 ;
19021 PyObject * obj8 = 0 ;
19022 char * kwnames[] = {
19023 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19024 };
19025
19026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
19027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19028 if (!SWIG_IsOK(res1)) {
19029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19030 }
19031 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19032 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19033 if (!SWIG_IsOK(res2)) {
19034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
19035 }
19036 arg2 = reinterpret_cast< wxWindow * >(argp2);
19037 if (obj2) {
19038 ecode3 = SWIG_AsVal_int(obj2, &val3);
19039 if (!SWIG_IsOK(ecode3)) {
19040 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
19041 }
19042 arg3 = static_cast< int >(val3);
19043 }
19044 if (obj3) {
d55e5bfc 19045 {
554f62e9
RD
19046 arg4 = wxString_in_helper(obj3);
19047 if (arg4 == NULL) SWIG_fail;
19048 temp4 = true;
d55e5bfc 19049 }
554f62e9
RD
19050 }
19051 if (obj4) {
093d3ff1 19052 {
554f62e9
RD
19053 arg5 = &temp5;
19054 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 19055 }
554f62e9
RD
19056 }
19057 if (obj5) {
d55e5bfc 19058 {
554f62e9
RD
19059 arg6 = &temp6;
19060 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 19061 }
554f62e9
RD
19062 }
19063 if (obj6) {
19064 ecode7 = SWIG_AsVal_long(obj6, &val7);
19065 if (!SWIG_IsOK(ecode7)) {
19066 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
19067 }
19068 arg7 = static_cast< long >(val7);
19069 }
19070 if (obj7) {
19071 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
19072 if (!SWIG_IsOK(res8)) {
19073 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 19074 }
554f62e9
RD
19075 if (!argp8) {
19076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 19077 }
554f62e9
RD
19078 arg8 = reinterpret_cast< wxValidator * >(argp8);
19079 }
19080 if (obj8) {
093d3ff1 19081 {
554f62e9
RD
19082 arg9 = wxString_in_helper(obj8);
19083 if (arg9 == NULL) SWIG_fail;
19084 temp9 = true;
093d3ff1 19085 }
554f62e9
RD
19086 }
19087 {
19088 PyThreadState* __tstate = wxPyBeginAllowThreads();
19089 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19090 wxPyEndAllowThreads(__tstate);
19091 if (PyErr_Occurred()) SWIG_fail;
19092 }
19093 {
19094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19095 }
19096 {
19097 if (temp4)
19098 delete arg4;
19099 }
19100 {
19101 if (temp9)
19102 delete arg9;
19103 }
19104 return resultobj;
19105fail:
19106 {
19107 if (temp4)
19108 delete arg4;
19109 }
19110 {
19111 if (temp9)
19112 delete arg9;
19113 }
19114 return NULL;
19115}
19116
19117
19118SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19119 PyObject *resultobj = 0;
19120 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19121 bool arg2 ;
19122 void *argp1 = 0 ;
19123 int res1 = 0 ;
19124 bool val2 ;
19125 int ecode2 = 0 ;
19126 PyObject * obj0 = 0 ;
19127 PyObject * obj1 = 0 ;
19128 char * kwnames[] = {
19129 (char *) "self",(char *) "value", NULL
19130 };
19131
19132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19134 if (!SWIG_IsOK(res1)) {
19135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19136 }
19137 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19138 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19139 if (!SWIG_IsOK(ecode2)) {
19140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19141 }
19142 arg2 = static_cast< bool >(val2);
19143 {
19144 PyThreadState* __tstate = wxPyBeginAllowThreads();
19145 (arg1)->SetValue(arg2);
19146 wxPyEndAllowThreads(__tstate);
19147 if (PyErr_Occurred()) SWIG_fail;
19148 }
19149 resultobj = SWIG_Py_Void();
19150 return resultobj;
19151fail:
19152 return NULL;
d55e5bfc
RD
19153}
19154
19155
554f62e9
RD
19156SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19157 PyObject *resultobj = 0;
19158 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19159 bool result;
19160 void *argp1 = 0 ;
19161 int res1 = 0 ;
19162 PyObject *swig_obj[1] ;
19163
19164 if (!args) SWIG_fail;
19165 swig_obj[0] = args;
19166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19167 if (!SWIG_IsOK(res1)) {
19168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19169 }
19170 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19171 {
19172 PyThreadState* __tstate = wxPyBeginAllowThreads();
19173 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19174 wxPyEndAllowThreads(__tstate);
19175 if (PyErr_Occurred()) SWIG_fail;
19176 }
19177 {
19178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19179 }
19180 return resultobj;
19181fail:
19182 return NULL;
d55e5bfc
RD
19183}
19184
19185
554f62e9
RD
19186SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19187 PyObject *resultobj = 0;
19188 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19189 SwigValueWrapper<wxVisualAttributes > result;
19190 int val1 ;
19191 int ecode1 = 0 ;
19192 PyObject * obj0 = 0 ;
19193 char * kwnames[] = {
19194 (char *) "variant", NULL
19195 };
19196
19197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19198 if (obj0) {
19199 ecode1 = SWIG_AsVal_int(obj0, &val1);
19200 if (!SWIG_IsOK(ecode1)) {
19201 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19202 }
19203 arg1 = static_cast< wxWindowVariant >(val1);
19204 }
19205 {
19206 if (!wxPyCheckForApp()) SWIG_fail;
19207 PyThreadState* __tstate = wxPyBeginAllowThreads();
19208 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19209 wxPyEndAllowThreads(__tstate);
19210 if (PyErr_Occurred()) SWIG_fail;
19211 }
19212 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19213 return resultobj;
19214fail:
19215 return NULL;
d55e5bfc
RD
19216}
19217
19218
554f62e9
RD
19219SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19220 PyObject *obj;
19221 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19222 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19223 return SWIG_Py_Void();
d55e5bfc
RD
19224}
19225
554f62e9
RD
19226SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19227 return SWIG_Python_InitShadowInstance(args);
f20a2e1f
RD
19228}
19229
554f62e9
RD
19230SWIGINTERN int NotebookNameStr_set(PyObject *) {
19231 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19232 return 1;
d55e5bfc
RD
19233}
19234
19235
554f62e9
RD
19236SWIGINTERN PyObject *NotebookNameStr_get(void) {
19237 PyObject *pyobj = 0;
19238
19239 {
d55e5bfc 19240#if wxUSE_UNICODE
554f62e9 19241 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19242#else
554f62e9 19243 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19244#endif
554f62e9
RD
19245 }
19246 return pyobj;
d55e5bfc
RD
19247}
19248
19249
554f62e9
RD
19250SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19251 PyObject *resultobj = 0;
19252 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19253 size_t result;
19254 void *argp1 = 0 ;
19255 int res1 = 0 ;
19256 PyObject *swig_obj[1] ;
19257
19258 if (!args) SWIG_fail;
19259 swig_obj[0] = args;
19260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19261 if (!SWIG_IsOK(res1)) {
19262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19263 }
19264 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19265 {
19266 PyThreadState* __tstate = wxPyBeginAllowThreads();
19267 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19268 wxPyEndAllowThreads(__tstate);
19269 if (PyErr_Occurred()) SWIG_fail;
19270 }
19271 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19272 return resultobj;
19273fail:
19274 return NULL;
19275}
19276
19277
19278SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19279 PyObject *resultobj = 0;
19280 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19281 size_t arg2 ;
19282 wxWindow *result = 0 ;
19283 void *argp1 = 0 ;
19284 int res1 = 0 ;
19285 size_t val2 ;
19286 int ecode2 = 0 ;
19287 PyObject * obj0 = 0 ;
19288 PyObject * obj1 = 0 ;
19289 char * kwnames[] = {
19290 (char *) "self",(char *) "n", NULL
19291 };
19292
19293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19295 if (!SWIG_IsOK(res1)) {
19296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19297 }
19298 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19299 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19300 if (!SWIG_IsOK(ecode2)) {
19301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19302 }
19303 arg2 = static_cast< size_t >(val2);
19304 {
19305 PyThreadState* __tstate = wxPyBeginAllowThreads();
19306 result = (wxWindow *)(arg1)->GetPage(arg2);
19307 wxPyEndAllowThreads(__tstate);
19308 if (PyErr_Occurred()) SWIG_fail;
19309 }
19310 {
19311 resultobj = wxPyMake_wxObject(result, 0);
19312 }
19313 return resultobj;
19314fail:
19315 return NULL;
d55e5bfc
RD
19316}
19317
19318
554f62e9
RD
19319SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19320 PyObject *resultobj = 0;
19321 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19322 wxWindow *result = 0 ;
19323 void *argp1 = 0 ;
19324 int res1 = 0 ;
19325 PyObject *swig_obj[1] ;
19326
19327 if (!args) SWIG_fail;
19328 swig_obj[0] = args;
19329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19330 if (!SWIG_IsOK(res1)) {
19331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19332 }
19333 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19334 {
19335 PyThreadState* __tstate = wxPyBeginAllowThreads();
19336 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19337 wxPyEndAllowThreads(__tstate);
19338 if (PyErr_Occurred()) SWIG_fail;
19339 }
19340 {
19341 resultobj = wxPyMake_wxObject(result, 0);
19342 }
19343 return resultobj;
19344fail:
19345 return NULL;
d55e5bfc
RD
19346}
19347
19348
554f62e9
RD
19349SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19350 PyObject *resultobj = 0;
19351 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19352 int result;
19353 void *argp1 = 0 ;
19354 int res1 = 0 ;
19355 PyObject *swig_obj[1] ;
19356
19357 if (!args) SWIG_fail;
19358 swig_obj[0] = args;
19359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19360 if (!SWIG_IsOK(res1)) {
19361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19362 }
19363 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19364 {
19365 PyThreadState* __tstate = wxPyBeginAllowThreads();
19366 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19367 wxPyEndAllowThreads(__tstate);
19368 if (PyErr_Occurred()) SWIG_fail;
19369 }
19370 resultobj = SWIG_From_int(static_cast< int >(result));
19371 return resultobj;
19372fail:
19373 return NULL;
19374}
19375
19376
19377SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19378 PyObject *resultobj = 0;
19379 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19380 size_t arg2 ;
19381 wxString *arg3 = 0 ;
19382 bool result;
19383 void *argp1 = 0 ;
19384 int res1 = 0 ;
19385 size_t val2 ;
19386 int ecode2 = 0 ;
19387 bool temp3 = false ;
19388 PyObject * obj0 = 0 ;
19389 PyObject * obj1 = 0 ;
19390 PyObject * obj2 = 0 ;
19391 char * kwnames[] = {
19392 (char *) "self",(char *) "n",(char *) "strText", NULL
19393 };
19394
19395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19397 if (!SWIG_IsOK(res1)) {
19398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19399 }
19400 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19401 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19402 if (!SWIG_IsOK(ecode2)) {
19403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19404 }
19405 arg2 = static_cast< size_t >(val2);
19406 {
19407 arg3 = wxString_in_helper(obj2);
19408 if (arg3 == NULL) SWIG_fail;
19409 temp3 = true;
19410 }
19411 {
19412 PyThreadState* __tstate = wxPyBeginAllowThreads();
19413 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19414 wxPyEndAllowThreads(__tstate);
19415 if (PyErr_Occurred()) SWIG_fail;
19416 }
19417 {
19418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19419 }
19420 {
19421 if (temp3)
19422 delete arg3;
19423 }
19424 return resultobj;
19425fail:
19426 {
19427 if (temp3)
19428 delete arg3;
19429 }
19430 return NULL;
19431}
19432
19433
19434SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19435 PyObject *resultobj = 0;
19436 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19437 size_t arg2 ;
19438 wxString 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_GetPageText",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_GetPageText" "', 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_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19458 }
19459 arg2 = static_cast< size_t >(val2);
19460 {
19461 PyThreadState* __tstate = wxPyBeginAllowThreads();
19462 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19463 wxPyEndAllowThreads(__tstate);
19464 if (PyErr_Occurred()) SWIG_fail;
19465 }
19466 {
19467#if wxUSE_UNICODE
19468 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19469#else
19470 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19471#endif
19472 }
19473 return resultobj;
19474fail:
19475 return NULL;
19476}
19477
19478
19479SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19480 PyObject *resultobj = 0;
19481 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19482 wxImageList *arg2 = (wxImageList *) 0 ;
19483 void *argp1 = 0 ;
19484 int res1 = 0 ;
19485 void *argp2 = 0 ;
19486 int res2 = 0 ;
19487 PyObject * obj0 = 0 ;
19488 PyObject * obj1 = 0 ;
19489 char * kwnames[] = {
19490 (char *) "self",(char *) "imageList", NULL
19491 };
19492
19493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19495 if (!SWIG_IsOK(res1)) {
19496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19497 }
19498 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19499 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19500 if (!SWIG_IsOK(res2)) {
19501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19502 }
19503 arg2 = reinterpret_cast< wxImageList * >(argp2);
19504 {
19505 PyThreadState* __tstate = wxPyBeginAllowThreads();
19506 (arg1)->SetImageList(arg2);
19507 wxPyEndAllowThreads(__tstate);
19508 if (PyErr_Occurred()) SWIG_fail;
19509 }
19510 resultobj = SWIG_Py_Void();
19511 return resultobj;
19512fail:
19513 return NULL;
19514}
19515
19516
19517SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19518 PyObject *resultobj = 0;
19519 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19520 wxImageList *arg2 = (wxImageList *) 0 ;
19521 void *argp1 = 0 ;
19522 int res1 = 0 ;
19523 int res2 = 0 ;
19524 PyObject * obj0 = 0 ;
19525 PyObject * obj1 = 0 ;
19526 char * kwnames[] = {
19527 (char *) "self",(char *) "imageList", NULL
19528 };
19529
19530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19532 if (!SWIG_IsOK(res1)) {
19533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19534 }
19535 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19536 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19537 if (!SWIG_IsOK(res2)) {
19538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19539 }
19540 {
19541 PyThreadState* __tstate = wxPyBeginAllowThreads();
19542 (arg1)->AssignImageList(arg2);
19543 wxPyEndAllowThreads(__tstate);
19544 if (PyErr_Occurred()) SWIG_fail;
19545 }
19546 resultobj = SWIG_Py_Void();
19547 return resultobj;
19548fail:
19549 return NULL;
d55e5bfc
RD
19550}
19551
19552
554f62e9
RD
19553SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19554 PyObject *resultobj = 0;
19555 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19556 wxImageList *result = 0 ;
19557 void *argp1 = 0 ;
19558 int res1 = 0 ;
19559 PyObject *swig_obj[1] ;
19560
19561 if (!args) SWIG_fail;
19562 swig_obj[0] = args;
19563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19564 if (!SWIG_IsOK(res1)) {
19565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19566 }
19567 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19568 {
19569 PyThreadState* __tstate = wxPyBeginAllowThreads();
19570 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19571 wxPyEndAllowThreads(__tstate);
19572 if (PyErr_Occurred()) SWIG_fail;
19573 }
e02c0a13 19574 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, 0 | 0 );
554f62e9
RD
19575 return resultobj;
19576fail:
19577 return NULL;
19578}
19579
19580
19581SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19582 PyObject *resultobj = 0;
19583 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19584 size_t arg2 ;
19585 int result;
19586 void *argp1 = 0 ;
19587 int res1 = 0 ;
19588 size_t val2 ;
19589 int ecode2 = 0 ;
19590 PyObject * obj0 = 0 ;
19591 PyObject * obj1 = 0 ;
19592 char * kwnames[] = {
19593 (char *) "self",(char *) "n", NULL
19594 };
19595
19596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19598 if (!SWIG_IsOK(res1)) {
19599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19600 }
19601 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19602 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19603 if (!SWIG_IsOK(ecode2)) {
19604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19605 }
19606 arg2 = static_cast< size_t >(val2);
19607 {
19608 PyThreadState* __tstate = wxPyBeginAllowThreads();
19609 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19610 wxPyEndAllowThreads(__tstate);
19611 if (PyErr_Occurred()) SWIG_fail;
19612 }
19613 resultobj = SWIG_From_int(static_cast< int >(result));
19614 return resultobj;
19615fail:
19616 return NULL;
19617}
19618
19619
19620SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19621 PyObject *resultobj = 0;
19622 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19623 size_t arg2 ;
19624 int arg3 ;
19625 bool result;
19626 void *argp1 = 0 ;
19627 int res1 = 0 ;
19628 size_t val2 ;
19629 int ecode2 = 0 ;
19630 int val3 ;
19631 int ecode3 = 0 ;
19632 PyObject * obj0 = 0 ;
19633 PyObject * obj1 = 0 ;
19634 PyObject * obj2 = 0 ;
19635 char * kwnames[] = {
19636 (char *) "self",(char *) "n",(char *) "imageId", NULL
19637 };
19638
19639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19641 if (!SWIG_IsOK(res1)) {
19642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19643 }
19644 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19645 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19646 if (!SWIG_IsOK(ecode2)) {
19647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19648 }
19649 arg2 = static_cast< size_t >(val2);
19650 ecode3 = SWIG_AsVal_int(obj2, &val3);
19651 if (!SWIG_IsOK(ecode3)) {
19652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19653 }
19654 arg3 = static_cast< int >(val3);
19655 {
19656 PyThreadState* __tstate = wxPyBeginAllowThreads();
19657 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19658 wxPyEndAllowThreads(__tstate);
19659 if (PyErr_Occurred()) SWIG_fail;
19660 }
19661 {
19662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19663 }
19664 return resultobj;
19665fail:
19666 return NULL;
19667}
19668
19669
19670SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19671 PyObject *resultobj = 0;
19672 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19673 wxSize *arg2 = 0 ;
19674 void *argp1 = 0 ;
19675 int res1 = 0 ;
19676 wxSize temp2 ;
19677 PyObject * obj0 = 0 ;
19678 PyObject * obj1 = 0 ;
19679 char * kwnames[] = {
19680 (char *) "self",(char *) "size", NULL
19681 };
19682
19683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19685 if (!SWIG_IsOK(res1)) {
19686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19687 }
19688 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19689 {
19690 arg2 = &temp2;
19691 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19692 }
19693 {
19694 PyThreadState* __tstate = wxPyBeginAllowThreads();
19695 (arg1)->SetPageSize((wxSize const &)*arg2);
19696 wxPyEndAllowThreads(__tstate);
19697 if (PyErr_Occurred()) SWIG_fail;
19698 }
19699 resultobj = SWIG_Py_Void();
19700 return resultobj;
19701fail:
19702 return NULL;
19703}
19704
19705
19706SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19707 PyObject *resultobj = 0;
19708 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19709 wxSize *arg2 = 0 ;
19710 wxSize result;
19711 void *argp1 = 0 ;
19712 int res1 = 0 ;
19713 wxSize temp2 ;
19714 PyObject * obj0 = 0 ;
19715 PyObject * obj1 = 0 ;
19716 char * kwnames[] = {
19717 (char *) "self",(char *) "sizePage", NULL
19718 };
19719
19720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19722 if (!SWIG_IsOK(res1)) {
19723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19724 }
19725 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19726 {
19727 arg2 = &temp2;
19728 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19729 }
19730 {
19731 PyThreadState* __tstate = wxPyBeginAllowThreads();
19732 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19733 wxPyEndAllowThreads(__tstate);
19734 if (PyErr_Occurred()) SWIG_fail;
19735 }
19736 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19737 return resultobj;
19738fail:
19739 return NULL;
d55e5bfc
RD
19740}
19741
19742
554f62e9
RD
19743SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19744 PyObject *resultobj = 0;
19745 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19746 unsigned int result;
554f62e9
RD
19747 void *argp1 = 0 ;
19748 int res1 = 0 ;
19749 PyObject *swig_obj[1] ;
19750
19751 if (!args) SWIG_fail;
19752 swig_obj[0] = args;
19753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19754 if (!SWIG_IsOK(res1)) {
19755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19756 }
19757 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19758 {
19759 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19760 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
554f62e9
RD
19761 wxPyEndAllowThreads(__tstate);
19762 if (PyErr_Occurred()) SWIG_fail;
19763 }
e9d6f3a4 19764 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
19765 return resultobj;
19766fail:
19767 return NULL;
19768}
19769
19770
19771SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19772 PyObject *resultobj = 0;
19773 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19774 unsigned int arg2 ;
554f62e9
RD
19775 void *argp1 = 0 ;
19776 int res1 = 0 ;
e9d6f3a4 19777 unsigned int val2 ;
554f62e9
RD
19778 int ecode2 = 0 ;
19779 PyObject * obj0 = 0 ;
19780 PyObject * obj1 = 0 ;
19781 char * kwnames[] = {
19782 (char *) "self",(char *) "internalBorder", NULL
19783 };
19784
19785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19787 if (!SWIG_IsOK(res1)) {
19788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19789 }
19790 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19791 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 19792 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 19794 }
e9d6f3a4 19795 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
19796 {
19797 PyThreadState* __tstate = wxPyBeginAllowThreads();
19798 (arg1)->SetInternalBorder(arg2);
19799 wxPyEndAllowThreads(__tstate);
19800 if (PyErr_Occurred()) SWIG_fail;
19801 }
19802 resultobj = SWIG_Py_Void();
19803 return resultobj;
19804fail:
19805 return NULL;
d55e5bfc
RD
19806}
19807
19808
554f62e9
RD
19809SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19810 PyObject *resultobj = 0;
19811 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19812 bool result;
19813 void *argp1 = 0 ;
19814 int res1 = 0 ;
19815 PyObject *swig_obj[1] ;
19816
19817 if (!args) SWIG_fail;
19818 swig_obj[0] = args;
19819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19820 if (!SWIG_IsOK(res1)) {
19821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19822 }
19823 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19824 {
19825 PyThreadState* __tstate = wxPyBeginAllowThreads();
19826 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19827 wxPyEndAllowThreads(__tstate);
19828 if (PyErr_Occurred()) SWIG_fail;
19829 }
19830 {
19831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19832 }
19833 return resultobj;
19834fail:
19835 return NULL;
19836}
19837
19838
e9d6f3a4
RD
19839SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19840 PyObject *resultobj = 0;
19841 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19842 int arg2 ;
19843 void *argp1 = 0 ;
19844 int res1 = 0 ;
19845 int val2 ;
19846 int ecode2 = 0 ;
19847 PyObject * obj0 = 0 ;
19848 PyObject * obj1 = 0 ;
19849 char * kwnames[] = {
19850 (char *) "self",(char *) "margin", NULL
19851 };
19852
19853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19855 if (!SWIG_IsOK(res1)) {
19856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19857 }
19858 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19859 ecode2 = SWIG_AsVal_int(obj1, &val2);
19860 if (!SWIG_IsOK(ecode2)) {
19861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19862 }
19863 arg2 = static_cast< int >(val2);
19864 {
19865 PyThreadState* __tstate = wxPyBeginAllowThreads();
19866 (arg1)->SetControlMargin(arg2);
19867 wxPyEndAllowThreads(__tstate);
19868 if (PyErr_Occurred()) SWIG_fail;
19869 }
19870 resultobj = SWIG_Py_Void();
19871 return resultobj;
19872fail:
19873 return NULL;
19874}
19875
19876
19877SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19878 PyObject *resultobj = 0;
19879 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19880 int result;
19881 void *argp1 = 0 ;
19882 int res1 = 0 ;
19883 PyObject *swig_obj[1] ;
19884
19885 if (!args) SWIG_fail;
19886 swig_obj[0] = args;
19887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19888 if (!SWIG_IsOK(res1)) {
19889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19890 }
19891 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19892 {
19893 PyThreadState* __tstate = wxPyBeginAllowThreads();
19894 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19895 wxPyEndAllowThreads(__tstate);
19896 if (PyErr_Occurred()) SWIG_fail;
19897 }
19898 resultobj = SWIG_From_int(static_cast< int >(result));
19899 return resultobj;
19900fail:
19901 return NULL;
19902}
19903
19904
554f62e9
RD
19905SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19906 PyObject *resultobj = 0;
19907 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19908 bool arg2 ;
19909 void *argp1 = 0 ;
19910 int res1 = 0 ;
19911 bool val2 ;
19912 int ecode2 = 0 ;
19913 PyObject * obj0 = 0 ;
19914 PyObject * obj1 = 0 ;
19915 char * kwnames[] = {
19916 (char *) "self",(char *) "fit", NULL
19917 };
19918
19919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19921 if (!SWIG_IsOK(res1)) {
19922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19923 }
19924 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19925 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19926 if (!SWIG_IsOK(ecode2)) {
19927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19928 }
19929 arg2 = static_cast< bool >(val2);
19930 {
19931 PyThreadState* __tstate = wxPyBeginAllowThreads();
19932 (arg1)->SetFitToCurrentPage(arg2);
19933 wxPyEndAllowThreads(__tstate);
19934 if (PyErr_Occurred()) SWIG_fail;
19935 }
19936 resultobj = SWIG_Py_Void();
19937 return resultobj;
19938fail:
19939 return NULL;
d55e5bfc
RD
19940}
19941
19942
554f62e9
RD
19943SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19944 PyObject *resultobj = 0;
19945 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19946 bool result;
19947 void *argp1 = 0 ;
19948 int res1 = 0 ;
19949 PyObject *swig_obj[1] ;
19950
19951 if (!args) SWIG_fail;
19952 swig_obj[0] = args;
19953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19954 if (!SWIG_IsOK(res1)) {
19955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19956 }
19957 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19958 {
19959 PyThreadState* __tstate = wxPyBeginAllowThreads();
19960 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19961 wxPyEndAllowThreads(__tstate);
19962 if (PyErr_Occurred()) SWIG_fail;
19963 }
19964 {
19965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19966 }
19967 return resultobj;
19968fail:
19969 return NULL;
19970}
19971
19972
e9d6f3a4
RD
19973SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19974 PyObject *resultobj = 0;
19975 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19976 wxSizer *result = 0 ;
19977 void *argp1 = 0 ;
19978 int res1 = 0 ;
19979 PyObject *swig_obj[1] ;
19980
19981 if (!args) SWIG_fail;
19982 swig_obj[0] = args;
19983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19984 if (!SWIG_IsOK(res1)) {
19985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19986 }
19987 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19988 {
19989 PyThreadState* __tstate = wxPyBeginAllowThreads();
19990 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19991 wxPyEndAllowThreads(__tstate);
19992 if (PyErr_Occurred()) SWIG_fail;
19993 }
19994 {
19995 resultobj = wxPyMake_wxObject(result, (bool)0);
19996 }
19997 return resultobj;
19998fail:
19999 return NULL;
20000}
20001
20002
554f62e9
RD
20003SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20004 PyObject *resultobj = 0;
20005 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20006 size_t arg2 ;
20007 bool result;
20008 void *argp1 = 0 ;
20009 int res1 = 0 ;
20010 size_t val2 ;
20011 int ecode2 = 0 ;
20012 PyObject * obj0 = 0 ;
20013 PyObject * obj1 = 0 ;
20014 char * kwnames[] = {
20015 (char *) "self",(char *) "n", NULL
20016 };
20017
20018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
20019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20020 if (!SWIG_IsOK(res1)) {
20021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20022 }
20023 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20024 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20025 if (!SWIG_IsOK(ecode2)) {
20026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
20027 }
20028 arg2 = static_cast< size_t >(val2);
20029 {
20030 PyThreadState* __tstate = wxPyBeginAllowThreads();
20031 result = (bool)(arg1)->DeletePage(arg2);
20032 wxPyEndAllowThreads(__tstate);
20033 if (PyErr_Occurred()) SWIG_fail;
20034 }
20035 {
20036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20037 }
20038 return resultobj;
20039fail:
20040 return NULL;
20041}
20042
20043
20044SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20045 PyObject *resultobj = 0;
20046 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20047 size_t arg2 ;
20048 bool result;
20049 void *argp1 = 0 ;
20050 int res1 = 0 ;
20051 size_t val2 ;
20052 int ecode2 = 0 ;
20053 PyObject * obj0 = 0 ;
20054 PyObject * obj1 = 0 ;
20055 char * kwnames[] = {
20056 (char *) "self",(char *) "n", NULL
20057 };
20058
20059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
20060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20061 if (!SWIG_IsOK(res1)) {
20062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20063 }
20064 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20065 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20066 if (!SWIG_IsOK(ecode2)) {
20067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
20068 }
20069 arg2 = static_cast< size_t >(val2);
20070 {
20071 PyThreadState* __tstate = wxPyBeginAllowThreads();
20072 result = (bool)(arg1)->RemovePage(arg2);
20073 wxPyEndAllowThreads(__tstate);
20074 if (PyErr_Occurred()) SWIG_fail;
20075 }
20076 {
20077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20078 }
20079 return resultobj;
20080fail:
20081 return NULL;
d55e5bfc
RD
20082}
20083
20084
554f62e9
RD
20085SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20086 PyObject *resultobj = 0;
20087 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20088 bool result;
20089 void *argp1 = 0 ;
20090 int res1 = 0 ;
20091 PyObject *swig_obj[1] ;
20092
20093 if (!args) SWIG_fail;
20094 swig_obj[0] = args;
20095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20096 if (!SWIG_IsOK(res1)) {
20097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20098 }
20099 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20100 {
20101 PyThreadState* __tstate = wxPyBeginAllowThreads();
20102 result = (bool)(arg1)->DeleteAllPages();
20103 wxPyEndAllowThreads(__tstate);
20104 if (PyErr_Occurred()) SWIG_fail;
20105 }
20106 {
20107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20108 }
20109 return resultobj;
20110fail:
20111 return NULL;
20112}
20113
20114
20115SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20116 PyObject *resultobj = 0;
20117 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20118 wxWindow *arg2 = (wxWindow *) 0 ;
20119 wxString *arg3 = 0 ;
20120 bool arg4 = (bool) false ;
20121 int arg5 = (int) -1 ;
20122 bool result;
20123 void *argp1 = 0 ;
20124 int res1 = 0 ;
20125 void *argp2 = 0 ;
20126 int res2 = 0 ;
20127 bool temp3 = false ;
20128 bool val4 ;
20129 int ecode4 = 0 ;
20130 int val5 ;
20131 int ecode5 = 0 ;
20132 PyObject * obj0 = 0 ;
20133 PyObject * obj1 = 0 ;
20134 PyObject * obj2 = 0 ;
20135 PyObject * obj3 = 0 ;
20136 PyObject * obj4 = 0 ;
20137 char * kwnames[] = {
20138 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20139 };
20140
20141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20143 if (!SWIG_IsOK(res1)) {
20144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20145 }
20146 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20147 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20148 if (!SWIG_IsOK(res2)) {
20149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20150 }
20151 arg2 = reinterpret_cast< wxWindow * >(argp2);
20152 {
20153 arg3 = wxString_in_helper(obj2);
20154 if (arg3 == NULL) SWIG_fail;
20155 temp3 = true;
20156 }
20157 if (obj3) {
20158 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20159 if (!SWIG_IsOK(ecode4)) {
20160 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20161 }
20162 arg4 = static_cast< bool >(val4);
20163 }
20164 if (obj4) {
20165 ecode5 = SWIG_AsVal_int(obj4, &val5);
20166 if (!SWIG_IsOK(ecode5)) {
20167 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20168 }
20169 arg5 = static_cast< int >(val5);
20170 }
20171 {
20172 PyThreadState* __tstate = wxPyBeginAllowThreads();
20173 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20174 wxPyEndAllowThreads(__tstate);
20175 if (PyErr_Occurred()) SWIG_fail;
20176 }
20177 {
20178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20179 }
20180 {
20181 if (temp3)
20182 delete arg3;
20183 }
20184 return resultobj;
20185fail:
20186 {
20187 if (temp3)
20188 delete arg3;
20189 }
20190 return NULL;
20191}
20192
20193
20194SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20195 PyObject *resultobj = 0;
20196 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20197 size_t arg2 ;
20198 wxWindow *arg3 = (wxWindow *) 0 ;
20199 wxString *arg4 = 0 ;
20200 bool arg5 = (bool) false ;
20201 int arg6 = (int) -1 ;
20202 bool result;
20203 void *argp1 = 0 ;
20204 int res1 = 0 ;
20205 size_t val2 ;
20206 int ecode2 = 0 ;
20207 void *argp3 = 0 ;
20208 int res3 = 0 ;
20209 bool temp4 = false ;
20210 bool val5 ;
20211 int ecode5 = 0 ;
20212 int val6 ;
20213 int ecode6 = 0 ;
20214 PyObject * obj0 = 0 ;
20215 PyObject * obj1 = 0 ;
20216 PyObject * obj2 = 0 ;
20217 PyObject * obj3 = 0 ;
20218 PyObject * obj4 = 0 ;
20219 PyObject * obj5 = 0 ;
20220 char * kwnames[] = {
20221 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20222 };
20223
20224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20226 if (!SWIG_IsOK(res1)) {
20227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20228 }
20229 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20230 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20231 if (!SWIG_IsOK(ecode2)) {
20232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20233 }
20234 arg2 = static_cast< size_t >(val2);
20235 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20236 if (!SWIG_IsOK(res3)) {
20237 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20238 }
20239 arg3 = reinterpret_cast< wxWindow * >(argp3);
20240 {
20241 arg4 = wxString_in_helper(obj3);
20242 if (arg4 == NULL) SWIG_fail;
20243 temp4 = true;
20244 }
20245 if (obj4) {
20246 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20247 if (!SWIG_IsOK(ecode5)) {
20248 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20249 }
20250 arg5 = static_cast< bool >(val5);
20251 }
20252 if (obj5) {
20253 ecode6 = SWIG_AsVal_int(obj5, &val6);
20254 if (!SWIG_IsOK(ecode6)) {
20255 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20256 }
20257 arg6 = static_cast< int >(val6);
20258 }
20259 {
20260 PyThreadState* __tstate = wxPyBeginAllowThreads();
20261 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20262 wxPyEndAllowThreads(__tstate);
20263 if (PyErr_Occurred()) SWIG_fail;
20264 }
20265 {
20266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20267 }
20268 {
20269 if (temp4)
20270 delete arg4;
20271 }
20272 return resultobj;
20273fail:
20274 {
20275 if (temp4)
20276 delete arg4;
20277 }
20278 return NULL;
20279}
20280
20281
20282SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20283 PyObject *resultobj = 0;
20284 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20285 size_t arg2 ;
20286 int result;
20287 void *argp1 = 0 ;
20288 int res1 = 0 ;
20289 size_t val2 ;
20290 int ecode2 = 0 ;
20291 PyObject * obj0 = 0 ;
20292 PyObject * obj1 = 0 ;
20293 char * kwnames[] = {
20294 (char *) "self",(char *) "n", NULL
20295 };
20296
20297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20299 if (!SWIG_IsOK(res1)) {
20300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20301 }
20302 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20303 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20304 if (!SWIG_IsOK(ecode2)) {
20305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20306 }
20307 arg2 = static_cast< size_t >(val2);
20308 {
20309 PyThreadState* __tstate = wxPyBeginAllowThreads();
20310 result = (int)(arg1)->SetSelection(arg2);
20311 wxPyEndAllowThreads(__tstate);
20312 if (PyErr_Occurred()) SWIG_fail;
20313 }
20314 resultobj = SWIG_From_int(static_cast< int >(result));
20315 return resultobj;
20316fail:
20317 return NULL;
20318}
20319
20320
b39fe951
RD
20321SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20322 PyObject *resultobj = 0;
20323 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20324 size_t arg2 ;
20325 int result;
20326 void *argp1 = 0 ;
20327 int res1 = 0 ;
20328 size_t val2 ;
20329 int ecode2 = 0 ;
20330 PyObject * obj0 = 0 ;
20331 PyObject * obj1 = 0 ;
20332 char * kwnames[] = {
20333 (char *) "self",(char *) "n", NULL
20334 };
20335
20336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20338 if (!SWIG_IsOK(res1)) {
20339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20340 }
20341 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20342 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20343 if (!SWIG_IsOK(ecode2)) {
20344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20345 }
20346 arg2 = static_cast< size_t >(val2);
20347 {
20348 PyThreadState* __tstate = wxPyBeginAllowThreads();
20349 result = (int)(arg1)->ChangeSelection(arg2);
20350 wxPyEndAllowThreads(__tstate);
20351 if (PyErr_Occurred()) SWIG_fail;
20352 }
20353 resultobj = SWIG_From_int(static_cast< int >(result));
20354 return resultobj;
20355fail:
20356 return NULL;
20357}
20358
20359
554f62e9
RD
20360SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20361 PyObject *resultobj = 0;
20362 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20363 bool arg2 = (bool) true ;
20364 void *argp1 = 0 ;
20365 int res1 = 0 ;
20366 bool val2 ;
20367 int ecode2 = 0 ;
20368 PyObject * obj0 = 0 ;
20369 PyObject * obj1 = 0 ;
20370 char * kwnames[] = {
20371 (char *) "self",(char *) "forward", NULL
20372 };
20373
20374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20376 if (!SWIG_IsOK(res1)) {
20377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20378 }
20379 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20380 if (obj1) {
20381 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20382 if (!SWIG_IsOK(ecode2)) {
20383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20384 }
20385 arg2 = static_cast< bool >(val2);
20386 }
20387 {
20388 PyThreadState* __tstate = wxPyBeginAllowThreads();
20389 (arg1)->AdvanceSelection(arg2);
20390 wxPyEndAllowThreads(__tstate);
20391 if (PyErr_Occurred()) SWIG_fail;
20392 }
20393 resultobj = SWIG_Py_Void();
20394 return resultobj;
20395fail:
20396 return NULL;
20397}
20398
20399
704eda0c
RD
20400SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20401 PyObject *resultobj = 0;
20402 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20403 wxPoint *arg2 = 0 ;
20404 long *arg3 = (long *) 0 ;
20405 int result;
20406 void *argp1 = 0 ;
20407 int res1 = 0 ;
20408 wxPoint temp2 ;
20409 long temp3 ;
20410 int res3 = SWIG_TMPOBJ ;
20411 PyObject * obj0 = 0 ;
20412 PyObject * obj1 = 0 ;
20413 char * kwnames[] = {
20414 (char *) "self",(char *) "pt", NULL
20415 };
20416
20417 arg3 = &temp3;
20418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20420 if (!SWIG_IsOK(res1)) {
20421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20422 }
20423 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20424 {
20425 arg2 = &temp2;
20426 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20427 }
20428 {
20429 PyThreadState* __tstate = wxPyBeginAllowThreads();
20430 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20431 wxPyEndAllowThreads(__tstate);
20432 if (PyErr_Occurred()) SWIG_fail;
20433 }
20434 resultobj = SWIG_From_int(static_cast< int >(result));
20435 if (SWIG_IsTmpObj(res3)) {
20436 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20437 } else {
20438 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20439 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20440 }
20441 return resultobj;
20442fail:
20443 return NULL;
20444}
20445
20446
554f62e9
RD
20447SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20448 PyObject *resultobj = 0;
20449 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20450 SwigValueWrapper<wxVisualAttributes > result;
20451 int val1 ;
20452 int ecode1 = 0 ;
20453 PyObject * obj0 = 0 ;
20454 char * kwnames[] = {
20455 (char *) "variant", NULL
20456 };
20457
20458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20459 if (obj0) {
20460 ecode1 = SWIG_AsVal_int(obj0, &val1);
20461 if (!SWIG_IsOK(ecode1)) {
20462 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20463 }
20464 arg1 = static_cast< wxWindowVariant >(val1);
20465 }
20466 {
20467 if (!wxPyCheckForApp()) SWIG_fail;
20468 PyThreadState* __tstate = wxPyBeginAllowThreads();
20469 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20470 wxPyEndAllowThreads(__tstate);
20471 if (PyErr_Occurred()) SWIG_fail;
20472 }
20473 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20474 return resultobj;
20475fail:
20476 return NULL;
20477}
20478
20479
20480SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20481 PyObject *obj;
20482 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20483 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20484 return SWIG_Py_Void();
20485}
20486
20487SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20488 PyObject *resultobj = 0;
20489 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20490 int arg2 = (int) 0 ;
20491 int arg3 = (int) -1 ;
20492 int arg4 = (int) -1 ;
20493 wxBookCtrlBaseEvent *result = 0 ;
20494 int val1 ;
20495 int ecode1 = 0 ;
20496 int val2 ;
20497 int ecode2 = 0 ;
20498 int val3 ;
20499 int ecode3 = 0 ;
20500 int val4 ;
20501 int ecode4 = 0 ;
20502 PyObject * obj0 = 0 ;
20503 PyObject * obj1 = 0 ;
20504 PyObject * obj2 = 0 ;
20505 PyObject * obj3 = 0 ;
20506 char * kwnames[] = {
20507 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20508 };
20509
20510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20511 if (obj0) {
20512 ecode1 = SWIG_AsVal_int(obj0, &val1);
20513 if (!SWIG_IsOK(ecode1)) {
20514 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20515 }
20516 arg1 = static_cast< wxEventType >(val1);
20517 }
20518 if (obj1) {
20519 ecode2 = SWIG_AsVal_int(obj1, &val2);
20520 if (!SWIG_IsOK(ecode2)) {
20521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20522 }
20523 arg2 = static_cast< int >(val2);
20524 }
20525 if (obj2) {
20526 ecode3 = SWIG_AsVal_int(obj2, &val3);
20527 if (!SWIG_IsOK(ecode3)) {
20528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20529 }
20530 arg3 = static_cast< int >(val3);
20531 }
20532 if (obj3) {
20533 ecode4 = SWIG_AsVal_int(obj3, &val4);
20534 if (!SWIG_IsOK(ecode4)) {
20535 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20536 }
20537 arg4 = static_cast< int >(val4);
20538 }
20539 {
20540 PyThreadState* __tstate = wxPyBeginAllowThreads();
20541 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20542 wxPyEndAllowThreads(__tstate);
20543 if (PyErr_Occurred()) SWIG_fail;
20544 }
20545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20546 return resultobj;
20547fail:
20548 return NULL;
d55e5bfc
RD
20549}
20550
20551
554f62e9
RD
20552SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20553 PyObject *resultobj = 0;
20554 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20555 int result;
20556 void *argp1 = 0 ;
20557 int res1 = 0 ;
20558 PyObject *swig_obj[1] ;
20559
20560 if (!args) SWIG_fail;
20561 swig_obj[0] = args;
20562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20563 if (!SWIG_IsOK(res1)) {
20564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20565 }
20566 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20567 {
20568 PyThreadState* __tstate = wxPyBeginAllowThreads();
20569 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20570 wxPyEndAllowThreads(__tstate);
20571 if (PyErr_Occurred()) SWIG_fail;
20572 }
20573 resultobj = SWIG_From_int(static_cast< int >(result));
20574 return resultobj;
20575fail:
20576 return NULL;
20577}
20578
20579
20580SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20581 PyObject *resultobj = 0;
20582 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20583 int arg2 ;
20584 void *argp1 = 0 ;
20585 int res1 = 0 ;
20586 int val2 ;
20587 int ecode2 = 0 ;
20588 PyObject * obj0 = 0 ;
20589 PyObject * obj1 = 0 ;
20590 char * kwnames[] = {
20591 (char *) "self",(char *) "nSel", NULL
20592 };
20593
20594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20596 if (!SWIG_IsOK(res1)) {
20597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20598 }
20599 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20600 ecode2 = SWIG_AsVal_int(obj1, &val2);
20601 if (!SWIG_IsOK(ecode2)) {
20602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20603 }
20604 arg2 = static_cast< int >(val2);
20605 {
20606 PyThreadState* __tstate = wxPyBeginAllowThreads();
20607 (arg1)->SetSelection(arg2);
20608 wxPyEndAllowThreads(__tstate);
20609 if (PyErr_Occurred()) SWIG_fail;
20610 }
20611 resultobj = SWIG_Py_Void();
20612 return resultobj;
20613fail:
20614 return NULL;
d55e5bfc
RD
20615}
20616
20617
554f62e9
RD
20618SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20619 PyObject *resultobj = 0;
20620 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20621 int result;
20622 void *argp1 = 0 ;
20623 int res1 = 0 ;
20624 PyObject *swig_obj[1] ;
20625
20626 if (!args) SWIG_fail;
20627 swig_obj[0] = args;
20628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20629 if (!SWIG_IsOK(res1)) {
20630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20631 }
20632 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20633 {
20634 PyThreadState* __tstate = wxPyBeginAllowThreads();
20635 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20636 wxPyEndAllowThreads(__tstate);
20637 if (PyErr_Occurred()) SWIG_fail;
20638 }
20639 resultobj = SWIG_From_int(static_cast< int >(result));
20640 return resultobj;
20641fail:
20642 return NULL;
20643}
20644
20645
20646SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20647 PyObject *resultobj = 0;
20648 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20649 int arg2 ;
20650 void *argp1 = 0 ;
20651 int res1 = 0 ;
20652 int val2 ;
20653 int ecode2 = 0 ;
20654 PyObject * obj0 = 0 ;
20655 PyObject * obj1 = 0 ;
20656 char * kwnames[] = {
20657 (char *) "self",(char *) "nOldSel", NULL
20658 };
20659
20660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20662 if (!SWIG_IsOK(res1)) {
20663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20664 }
20665 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20666 ecode2 = SWIG_AsVal_int(obj1, &val2);
20667 if (!SWIG_IsOK(ecode2)) {
20668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20669 }
20670 arg2 = static_cast< int >(val2);
20671 {
20672 PyThreadState* __tstate = wxPyBeginAllowThreads();
20673 (arg1)->SetOldSelection(arg2);
20674 wxPyEndAllowThreads(__tstate);
20675 if (PyErr_Occurred()) SWIG_fail;
20676 }
20677 resultobj = SWIG_Py_Void();
20678 return resultobj;
20679fail:
20680 return NULL;
20681}
20682
20683
20684SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20685 PyObject *obj;
20686 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20687 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20688 return SWIG_Py_Void();
20689}
20690
20691SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20692 return SWIG_Python_InitShadowInstance(args);
20693}
20694
20695SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20696 PyObject *resultobj = 0;
20697 wxWindow *arg1 = (wxWindow *) 0 ;
20698 int arg2 = (int) -1 ;
20699 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20700 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20701 wxSize const &arg4_defvalue = wxDefaultSize ;
20702 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20703 long arg5 = (long) 0 ;
20704 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20705 wxString *arg6 = (wxString *) &arg6_defvalue ;
20706 wxNotebook *result = 0 ;
20707 void *argp1 = 0 ;
20708 int res1 = 0 ;
20709 int val2 ;
20710 int ecode2 = 0 ;
20711 wxPoint temp3 ;
20712 wxSize temp4 ;
20713 long val5 ;
20714 int ecode5 = 0 ;
20715 bool temp6 = false ;
20716 PyObject * obj0 = 0 ;
20717 PyObject * obj1 = 0 ;
20718 PyObject * obj2 = 0 ;
20719 PyObject * obj3 = 0 ;
20720 PyObject * obj4 = 0 ;
20721 PyObject * obj5 = 0 ;
20722 char * kwnames[] = {
20723 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20724 };
20725
20726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20728 if (!SWIG_IsOK(res1)) {
20729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20730 }
20731 arg1 = reinterpret_cast< wxWindow * >(argp1);
20732 if (obj1) {
20733 ecode2 = SWIG_AsVal_int(obj1, &val2);
20734 if (!SWIG_IsOK(ecode2)) {
20735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20736 }
20737 arg2 = static_cast< int >(val2);
20738 }
20739 if (obj2) {
093d3ff1 20740 {
554f62e9
RD
20741 arg3 = &temp3;
20742 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20743 }
554f62e9
RD
20744 }
20745 if (obj3) {
d55e5bfc 20746 {
554f62e9
RD
20747 arg4 = &temp4;
20748 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20749 }
554f62e9
RD
20750 }
20751 if (obj4) {
20752 ecode5 = SWIG_AsVal_long(obj4, &val5);
20753 if (!SWIG_IsOK(ecode5)) {
20754 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20755 }
20756 arg5 = static_cast< long >(val5);
20757 }
20758 if (obj5) {
20759 {
20760 arg6 = wxString_in_helper(obj5);
20761 if (arg6 == NULL) SWIG_fail;
20762 temp6 = true;
20763 }
20764 }
20765 {
20766 if (!wxPyCheckForApp()) SWIG_fail;
20767 PyThreadState* __tstate = wxPyBeginAllowThreads();
20768 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20769 wxPyEndAllowThreads(__tstate);
20770 if (PyErr_Occurred()) SWIG_fail;
20771 }
20772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20773 {
20774 if (temp6)
20775 delete arg6;
20776 }
20777 return resultobj;
20778fail:
20779 {
20780 if (temp6)
20781 delete arg6;
20782 }
20783 return NULL;
d55e5bfc
RD
20784}
20785
20786
554f62e9
RD
20787SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20788 PyObject *resultobj = 0;
20789 wxNotebook *result = 0 ;
20790
20791 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20792 {
20793 if (!wxPyCheckForApp()) SWIG_fail;
20794 PyThreadState* __tstate = wxPyBeginAllowThreads();
20795 result = (wxNotebook *)new wxNotebook();
20796 wxPyEndAllowThreads(__tstate);
20797 if (PyErr_Occurred()) SWIG_fail;
20798 }
20799 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20800 return resultobj;
20801fail:
20802 return NULL;
20803}
20804
20805
20806SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20807 PyObject *resultobj = 0;
20808 wxNotebook *arg1 = (wxNotebook *) 0 ;
20809 wxWindow *arg2 = (wxWindow *) 0 ;
20810 int arg3 = (int) -1 ;
20811 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20812 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20813 wxSize const &arg5_defvalue = wxDefaultSize ;
20814 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20815 long arg6 = (long) 0 ;
20816 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20817 wxString *arg7 = (wxString *) &arg7_defvalue ;
20818 bool result;
20819 void *argp1 = 0 ;
20820 int res1 = 0 ;
20821 void *argp2 = 0 ;
20822 int res2 = 0 ;
20823 int val3 ;
20824 int ecode3 = 0 ;
20825 wxPoint temp4 ;
20826 wxSize temp5 ;
20827 long val6 ;
20828 int ecode6 = 0 ;
20829 bool temp7 = false ;
20830 PyObject * obj0 = 0 ;
20831 PyObject * obj1 = 0 ;
20832 PyObject * obj2 = 0 ;
20833 PyObject * obj3 = 0 ;
20834 PyObject * obj4 = 0 ;
20835 PyObject * obj5 = 0 ;
20836 PyObject * obj6 = 0 ;
20837 char * kwnames[] = {
20838 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20839 };
20840
20841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20843 if (!SWIG_IsOK(res1)) {
20844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20845 }
20846 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20847 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20848 if (!SWIG_IsOK(res2)) {
20849 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20850 }
20851 arg2 = reinterpret_cast< wxWindow * >(argp2);
20852 if (obj2) {
20853 ecode3 = SWIG_AsVal_int(obj2, &val3);
20854 if (!SWIG_IsOK(ecode3)) {
20855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20856 }
20857 arg3 = static_cast< int >(val3);
20858 }
20859 if (obj3) {
093d3ff1 20860 {
554f62e9
RD
20861 arg4 = &temp4;
20862 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 20863 }
554f62e9
RD
20864 }
20865 if (obj4) {
093d3ff1 20866 {
554f62e9
RD
20867 arg5 = &temp5;
20868 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 20869 }
554f62e9
RD
20870 }
20871 if (obj5) {
20872 ecode6 = SWIG_AsVal_long(obj5, &val6);
20873 if (!SWIG_IsOK(ecode6)) {
20874 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20875 }
20876 arg6 = static_cast< long >(val6);
20877 }
20878 if (obj6) {
d55e5bfc 20879 {
554f62e9
RD
20880 arg7 = wxString_in_helper(obj6);
20881 if (arg7 == NULL) SWIG_fail;
20882 temp7 = true;
d55e5bfc 20883 }
554f62e9
RD
20884 }
20885 {
20886 PyThreadState* __tstate = wxPyBeginAllowThreads();
20887 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20888 wxPyEndAllowThreads(__tstate);
20889 if (PyErr_Occurred()) SWIG_fail;
20890 }
20891 {
20892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20893 }
20894 {
20895 if (temp7)
20896 delete arg7;
20897 }
20898 return resultobj;
20899fail:
20900 {
20901 if (temp7)
20902 delete arg7;
20903 }
20904 return NULL;
f20a2e1f
RD
20905}
20906
20907
554f62e9
RD
20908SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20909 PyObject *resultobj = 0;
20910 wxNotebook *arg1 = (wxNotebook *) 0 ;
20911 int result;
20912 void *argp1 = 0 ;
20913 int res1 = 0 ;
20914 PyObject *swig_obj[1] ;
20915
20916 if (!args) SWIG_fail;
20917 swig_obj[0] = args;
20918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20919 if (!SWIG_IsOK(res1)) {
20920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20921 }
20922 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20923 {
20924 PyThreadState* __tstate = wxPyBeginAllowThreads();
20925 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20926 wxPyEndAllowThreads(__tstate);
20927 if (PyErr_Occurred()) SWIG_fail;
20928 }
20929 resultobj = SWIG_From_int(static_cast< int >(result));
20930 return resultobj;
20931fail:
20932 return NULL;
20933}
20934
20935
20936SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20937 PyObject *resultobj = 0;
20938 wxNotebook *arg1 = (wxNotebook *) 0 ;
20939 wxSize *arg2 = 0 ;
20940 void *argp1 = 0 ;
20941 int res1 = 0 ;
20942 wxSize temp2 ;
20943 PyObject * obj0 = 0 ;
20944 PyObject * obj1 = 0 ;
20945 char * kwnames[] = {
20946 (char *) "self",(char *) "padding", NULL
20947 };
20948
20949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20951 if (!SWIG_IsOK(res1)) {
20952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20953 }
20954 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20955 {
20956 arg2 = &temp2;
20957 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20958 }
20959 {
20960 PyThreadState* __tstate = wxPyBeginAllowThreads();
20961 (arg1)->SetPadding((wxSize const &)*arg2);
20962 wxPyEndAllowThreads(__tstate);
20963 if (PyErr_Occurred()) SWIG_fail;
20964 }
20965 resultobj = SWIG_Py_Void();
20966 return resultobj;
20967fail:
20968 return NULL;
20969}
20970
20971
20972SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20973 PyObject *resultobj = 0;
20974 wxNotebook *arg1 = (wxNotebook *) 0 ;
20975 wxSize *arg2 = 0 ;
20976 void *argp1 = 0 ;
20977 int res1 = 0 ;
20978 wxSize temp2 ;
20979 PyObject * obj0 = 0 ;
20980 PyObject * obj1 = 0 ;
20981 char * kwnames[] = {
20982 (char *) "self",(char *) "sz", NULL
20983 };
20984
20985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20987 if (!SWIG_IsOK(res1)) {
20988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20989 }
20990 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20991 {
20992 arg2 = &temp2;
20993 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20994 }
20995 {
20996 PyThreadState* __tstate = wxPyBeginAllowThreads();
20997 (arg1)->SetTabSize((wxSize const &)*arg2);
20998 wxPyEndAllowThreads(__tstate);
20999 if (PyErr_Occurred()) SWIG_fail;
21000 }
21001 resultobj = SWIG_Py_Void();
21002 return resultobj;
21003fail:
21004 return NULL;
21005}
21006
21007
554f62e9
RD
21008SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21009 PyObject *resultobj = 0;
21010 wxNotebook *arg1 = (wxNotebook *) 0 ;
21011 wxColour result;
21012 void *argp1 = 0 ;
21013 int res1 = 0 ;
21014 PyObject *swig_obj[1] ;
21015
21016 if (!args) SWIG_fail;
21017 swig_obj[0] = args;
21018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21019 if (!SWIG_IsOK(res1)) {
21020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
21021 }
21022 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21023 {
21024 PyThreadState* __tstate = wxPyBeginAllowThreads();
21025 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
21026 wxPyEndAllowThreads(__tstate);
21027 if (PyErr_Occurred()) SWIG_fail;
21028 }
21029 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
21030 return resultobj;
21031fail:
21032 return NULL;
21033}
21034
21035
21036SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21037 PyObject *resultobj = 0;
21038 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
21039 SwigValueWrapper<wxVisualAttributes > result;
21040 int val1 ;
21041 int ecode1 = 0 ;
21042 PyObject * obj0 = 0 ;
21043 char * kwnames[] = {
21044 (char *) "variant", NULL
21045 };
21046
21047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
21048 if (obj0) {
21049 ecode1 = SWIG_AsVal_int(obj0, &val1);
21050 if (!SWIG_IsOK(ecode1)) {
21051 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
21052 }
21053 arg1 = static_cast< wxWindowVariant >(val1);
21054 }
21055 {
21056 if (!wxPyCheckForApp()) SWIG_fail;
21057 PyThreadState* __tstate = wxPyBeginAllowThreads();
21058 result = wxNotebook::GetClassDefaultAttributes(arg1);
21059 wxPyEndAllowThreads(__tstate);
21060 if (PyErr_Occurred()) SWIG_fail;
21061 }
21062 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
21063 return resultobj;
21064fail:
21065 return NULL;
21066}
21067
21068
b39fe951
RD
21069SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21070 PyObject *resultobj = 0;
21071 wxNotebook *arg1 = (wxNotebook *) 0 ;
21072 int arg2 ;
21073 bool result;
21074 void *argp1 = 0 ;
21075 int res1 = 0 ;
21076 int val2 ;
21077 int ecode2 = 0 ;
21078 PyObject * obj0 = 0 ;
21079 PyObject * obj1 = 0 ;
21080 char * kwnames[] = {
21081 (char *) "self",(char *) "nPage", NULL
21082 };
21083
21084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21086 if (!SWIG_IsOK(res1)) {
21087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21088 }
21089 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21090 ecode2 = SWIG_AsVal_int(obj1, &val2);
21091 if (!SWIG_IsOK(ecode2)) {
21092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21093 }
21094 arg2 = static_cast< int >(val2);
21095 {
21096 PyThreadState* __tstate = wxPyBeginAllowThreads();
21097 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21098 wxPyEndAllowThreads(__tstate);
21099 if (PyErr_Occurred()) SWIG_fail;
21100 }
21101 {
21102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21103 }
21104 return resultobj;
21105fail:
21106 return NULL;
21107}
21108
21109
21110SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21111 PyObject *resultobj = 0;
21112 wxNotebook *arg1 = (wxNotebook *) 0 ;
21113 int arg2 ;
21114 int arg3 = (int) -1 ;
21115 void *argp1 = 0 ;
21116 int res1 = 0 ;
21117 int val2 ;
21118 int ecode2 = 0 ;
21119 int val3 ;
21120 int ecode3 = 0 ;
21121 PyObject * obj0 = 0 ;
21122 PyObject * obj1 = 0 ;
21123 PyObject * obj2 = 0 ;
21124 char * kwnames[] = {
21125 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21126 };
21127
21128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21130 if (!SWIG_IsOK(res1)) {
21131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21132 }
21133 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21134 ecode2 = SWIG_AsVal_int(obj1, &val2);
21135 if (!SWIG_IsOK(ecode2)) {
21136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21137 }
21138 arg2 = static_cast< int >(val2);
21139 if (obj2) {
21140 ecode3 = SWIG_AsVal_int(obj2, &val3);
21141 if (!SWIG_IsOK(ecode3)) {
21142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21143 }
21144 arg3 = static_cast< int >(val3);
21145 }
21146 {
21147 PyThreadState* __tstate = wxPyBeginAllowThreads();
21148 (arg1)->SendPageChangedEvent(arg2,arg3);
21149 wxPyEndAllowThreads(__tstate);
21150 if (PyErr_Occurred()) SWIG_fail;
21151 }
21152 resultobj = SWIG_Py_Void();
21153 return resultobj;
21154fail:
21155 return NULL;
21156}
21157
21158
554f62e9
RD
21159SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21160 PyObject *obj;
21161 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21162 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21163 return SWIG_Py_Void();
21164}
21165
21166SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21167 return SWIG_Python_InitShadowInstance(args);
21168}
21169
21170SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21171 PyObject *resultobj = 0;
21172 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21173 int arg2 = (int) 0 ;
21174 int arg3 = (int) -1 ;
21175 int arg4 = (int) -1 ;
21176 wxNotebookEvent *result = 0 ;
21177 int val1 ;
21178 int ecode1 = 0 ;
21179 int val2 ;
21180 int ecode2 = 0 ;
21181 int val3 ;
21182 int ecode3 = 0 ;
21183 int val4 ;
21184 int ecode4 = 0 ;
21185 PyObject * obj0 = 0 ;
21186 PyObject * obj1 = 0 ;
21187 PyObject * obj2 = 0 ;
21188 PyObject * obj3 = 0 ;
21189 char * kwnames[] = {
21190 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21191 };
21192
21193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21194 if (obj0) {
21195 ecode1 = SWIG_AsVal_int(obj0, &val1);
21196 if (!SWIG_IsOK(ecode1)) {
21197 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21198 }
21199 arg1 = static_cast< wxEventType >(val1);
21200 }
21201 if (obj1) {
21202 ecode2 = SWIG_AsVal_int(obj1, &val2);
21203 if (!SWIG_IsOK(ecode2)) {
21204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21205 }
21206 arg2 = static_cast< int >(val2);
21207 }
21208 if (obj2) {
21209 ecode3 = SWIG_AsVal_int(obj2, &val3);
21210 if (!SWIG_IsOK(ecode3)) {
21211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21212 }
21213 arg3 = static_cast< int >(val3);
21214 }
21215 if (obj3) {
21216 ecode4 = SWIG_AsVal_int(obj3, &val4);
21217 if (!SWIG_IsOK(ecode4)) {
21218 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21219 }
21220 arg4 = static_cast< int >(val4);
21221 }
21222 {
21223 PyThreadState* __tstate = wxPyBeginAllowThreads();
21224 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21225 wxPyEndAllowThreads(__tstate);
21226 if (PyErr_Occurred()) SWIG_fail;
21227 }
21228 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21229 return resultobj;
21230fail:
21231 return NULL;
21232}
21233
21234
21235SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21236 PyObject *obj;
21237 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21238 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21239 return SWIG_Py_Void();
21240}
21241
21242SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21243 return SWIG_Python_InitShadowInstance(args);
21244}
21245
21246SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21247 PyObject *resultobj = 0;
21248 wxWindow *arg1 = (wxWindow *) 0 ;
21249 int arg2 = (int) -1 ;
21250 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21251 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21252 wxSize const &arg4_defvalue = wxDefaultSize ;
21253 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21254 long arg5 = (long) 0 ;
21255 wxString const &arg6_defvalue = wxPyEmptyString ;
21256 wxString *arg6 = (wxString *) &arg6_defvalue ;
21257 wxListbook *result = 0 ;
21258 void *argp1 = 0 ;
21259 int res1 = 0 ;
21260 int val2 ;
21261 int ecode2 = 0 ;
21262 wxPoint temp3 ;
21263 wxSize temp4 ;
21264 long val5 ;
21265 int ecode5 = 0 ;
21266 bool temp6 = false ;
21267 PyObject * obj0 = 0 ;
21268 PyObject * obj1 = 0 ;
21269 PyObject * obj2 = 0 ;
21270 PyObject * obj3 = 0 ;
21271 PyObject * obj4 = 0 ;
21272 PyObject * obj5 = 0 ;
21273 char * kwnames[] = {
21274 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21275 };
21276
21277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21279 if (!SWIG_IsOK(res1)) {
21280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21281 }
21282 arg1 = reinterpret_cast< wxWindow * >(argp1);
21283 if (obj1) {
21284 ecode2 = SWIG_AsVal_int(obj1, &val2);
21285 if (!SWIG_IsOK(ecode2)) {
21286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21287 }
21288 arg2 = static_cast< int >(val2);
21289 }
21290 if (obj2) {
21291 {
21292 arg3 = &temp3;
21293 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
f20a2e1f 21294 }
554f62e9
RD
21295 }
21296 if (obj3) {
d55e5bfc 21297 {
554f62e9
RD
21298 arg4 = &temp4;
21299 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21300 }
554f62e9
RD
21301 }
21302 if (obj4) {
21303 ecode5 = SWIG_AsVal_long(obj4, &val5);
21304 if (!SWIG_IsOK(ecode5)) {
21305 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21306 }
21307 arg5 = static_cast< long >(val5);
21308 }
21309 if (obj5) {
d55e5bfc 21310 {
554f62e9
RD
21311 arg6 = wxString_in_helper(obj5);
21312 if (arg6 == NULL) SWIG_fail;
21313 temp6 = true;
d55e5bfc 21314 }
554f62e9
RD
21315 }
21316 {
21317 if (!wxPyCheckForApp()) SWIG_fail;
21318 PyThreadState* __tstate = wxPyBeginAllowThreads();
21319 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21320 wxPyEndAllowThreads(__tstate);
21321 if (PyErr_Occurred()) SWIG_fail;
21322 }
21323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21324 {
21325 if (temp6)
21326 delete arg6;
21327 }
21328 return resultobj;
21329fail:
21330 {
21331 if (temp6)
21332 delete arg6;
21333 }
21334 return NULL;
d55e5bfc
RD
21335}
21336
21337
554f62e9
RD
21338SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21339 PyObject *resultobj = 0;
21340 wxListbook *result = 0 ;
21341
21342 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21343 {
21344 if (!wxPyCheckForApp()) SWIG_fail;
21345 PyThreadState* __tstate = wxPyBeginAllowThreads();
21346 result = (wxListbook *)new wxListbook();
21347 wxPyEndAllowThreads(__tstate);
21348 if (PyErr_Occurred()) SWIG_fail;
21349 }
21350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21351 return resultobj;
21352fail:
21353 return NULL;
21354}
21355
21356
21357SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21358 PyObject *resultobj = 0;
21359 wxListbook *arg1 = (wxListbook *) 0 ;
21360 wxWindow *arg2 = (wxWindow *) 0 ;
21361 int arg3 = (int) -1 ;
21362 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21363 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21364 wxSize const &arg5_defvalue = wxDefaultSize ;
21365 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21366 long arg6 = (long) 0 ;
21367 wxString const &arg7_defvalue = wxPyEmptyString ;
21368 wxString *arg7 = (wxString *) &arg7_defvalue ;
21369 bool result;
21370 void *argp1 = 0 ;
21371 int res1 = 0 ;
21372 void *argp2 = 0 ;
21373 int res2 = 0 ;
21374 int val3 ;
21375 int ecode3 = 0 ;
21376 wxPoint temp4 ;
21377 wxSize temp5 ;
21378 long val6 ;
21379 int ecode6 = 0 ;
21380 bool temp7 = false ;
21381 PyObject * obj0 = 0 ;
21382 PyObject * obj1 = 0 ;
21383 PyObject * obj2 = 0 ;
21384 PyObject * obj3 = 0 ;
21385 PyObject * obj4 = 0 ;
21386 PyObject * obj5 = 0 ;
21387 PyObject * obj6 = 0 ;
21388 char * kwnames[] = {
21389 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21390 };
21391
21392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21394 if (!SWIG_IsOK(res1)) {
21395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21396 }
21397 arg1 = reinterpret_cast< wxListbook * >(argp1);
21398 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21399 if (!SWIG_IsOK(res2)) {
21400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21401 }
21402 arg2 = reinterpret_cast< wxWindow * >(argp2);
21403 if (obj2) {
21404 ecode3 = SWIG_AsVal_int(obj2, &val3);
21405 if (!SWIG_IsOK(ecode3)) {
21406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21407 }
21408 arg3 = static_cast< int >(val3);
21409 }
21410 if (obj3) {
d55e5bfc 21411 {
554f62e9
RD
21412 arg4 = &temp4;
21413 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21414 }
554f62e9
RD
21415 }
21416 if (obj4) {
d55e5bfc 21417 {
554f62e9
RD
21418 arg5 = &temp5;
21419 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21420 }
554f62e9
RD
21421 }
21422 if (obj5) {
21423 ecode6 = SWIG_AsVal_long(obj5, &val6);
21424 if (!SWIG_IsOK(ecode6)) {
21425 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21426 }
21427 arg6 = static_cast< long >(val6);
21428 }
21429 if (obj6) {
d55e5bfc 21430 {
554f62e9
RD
21431 arg7 = wxString_in_helper(obj6);
21432 if (arg7 == NULL) SWIG_fail;
21433 temp7 = true;
d55e5bfc 21434 }
554f62e9
RD
21435 }
21436 {
21437 PyThreadState* __tstate = wxPyBeginAllowThreads();
21438 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21439 wxPyEndAllowThreads(__tstate);
21440 if (PyErr_Occurred()) SWIG_fail;
21441 }
21442 {
21443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21444 }
21445 {
21446 if (temp7)
21447 delete arg7;
21448 }
21449 return resultobj;
21450fail:
21451 {
21452 if (temp7)
21453 delete arg7;
21454 }
21455 return NULL;
d55e5bfc
RD
21456}
21457
21458
554f62e9
RD
21459SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21460 PyObject *resultobj = 0;
21461 wxListbook *arg1 = (wxListbook *) 0 ;
21462 wxListView *result = 0 ;
21463 void *argp1 = 0 ;
21464 int res1 = 0 ;
21465 PyObject *swig_obj[1] ;
21466
21467 if (!args) SWIG_fail;
21468 swig_obj[0] = args;
21469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21470 if (!SWIG_IsOK(res1)) {
21471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21472 }
21473 arg1 = reinterpret_cast< wxListbook * >(argp1);
21474 {
21475 PyThreadState* __tstate = wxPyBeginAllowThreads();
21476 result = (wxListView *)(arg1)->GetListView();
21477 wxPyEndAllowThreads(__tstate);
21478 if (PyErr_Occurred()) SWIG_fail;
21479 }
21480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21481 return resultobj;
21482fail:
21483 return NULL;
21484}
21485
21486
21487SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21488 PyObject *obj;
21489 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21490 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21491 return SWIG_Py_Void();
21492}
21493
21494SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21495 return SWIG_Python_InitShadowInstance(args);
21496}
21497
21498SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21499 PyObject *resultobj = 0;
21500 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21501 int arg2 = (int) 0 ;
21502 int arg3 = (int) -1 ;
21503 int arg4 = (int) -1 ;
21504 wxListbookEvent *result = 0 ;
21505 int val1 ;
21506 int ecode1 = 0 ;
21507 int val2 ;
21508 int ecode2 = 0 ;
21509 int val3 ;
21510 int ecode3 = 0 ;
21511 int val4 ;
21512 int ecode4 = 0 ;
21513 PyObject * obj0 = 0 ;
21514 PyObject * obj1 = 0 ;
21515 PyObject * obj2 = 0 ;
21516 PyObject * obj3 = 0 ;
21517 char * kwnames[] = {
21518 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21519 };
21520
21521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21522 if (obj0) {
21523 ecode1 = SWIG_AsVal_int(obj0, &val1);
21524 if (!SWIG_IsOK(ecode1)) {
21525 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21526 }
21527 arg1 = static_cast< wxEventType >(val1);
21528 }
21529 if (obj1) {
21530 ecode2 = SWIG_AsVal_int(obj1, &val2);
21531 if (!SWIG_IsOK(ecode2)) {
21532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21533 }
21534 arg2 = static_cast< int >(val2);
21535 }
21536 if (obj2) {
21537 ecode3 = SWIG_AsVal_int(obj2, &val3);
21538 if (!SWIG_IsOK(ecode3)) {
21539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21540 }
21541 arg3 = static_cast< int >(val3);
21542 }
21543 if (obj3) {
21544 ecode4 = SWIG_AsVal_int(obj3, &val4);
21545 if (!SWIG_IsOK(ecode4)) {
21546 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21547 }
21548 arg4 = static_cast< int >(val4);
21549 }
21550 {
21551 PyThreadState* __tstate = wxPyBeginAllowThreads();
21552 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21553 wxPyEndAllowThreads(__tstate);
21554 if (PyErr_Occurred()) SWIG_fail;
21555 }
21556 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21557 return resultobj;
21558fail:
21559 return NULL;
21560}
21561
21562
21563SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21564 PyObject *obj;
21565 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21566 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21567 return SWIG_Py_Void();
21568}
21569
21570SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21571 return SWIG_Python_InitShadowInstance(args);
21572}
21573
21574SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21575 PyObject *resultobj = 0;
21576 wxWindow *arg1 = (wxWindow *) 0 ;
21577 int arg2 ;
21578 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21579 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21580 wxSize const &arg4_defvalue = wxDefaultSize ;
21581 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21582 long arg5 = (long) 0 ;
21583 wxString const &arg6_defvalue = wxPyEmptyString ;
21584 wxString *arg6 = (wxString *) &arg6_defvalue ;
21585 wxChoicebook *result = 0 ;
21586 void *argp1 = 0 ;
21587 int res1 = 0 ;
21588 int val2 ;
21589 int ecode2 = 0 ;
21590 wxPoint temp3 ;
21591 wxSize temp4 ;
21592 long val5 ;
21593 int ecode5 = 0 ;
21594 bool temp6 = false ;
21595 PyObject * obj0 = 0 ;
21596 PyObject * obj1 = 0 ;
21597 PyObject * obj2 = 0 ;
21598 PyObject * obj3 = 0 ;
21599 PyObject * obj4 = 0 ;
21600 PyObject * obj5 = 0 ;
21601 char * kwnames[] = {
21602 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21603 };
21604
21605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21607 if (!SWIG_IsOK(res1)) {
21608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21609 }
21610 arg1 = reinterpret_cast< wxWindow * >(argp1);
21611 ecode2 = SWIG_AsVal_int(obj1, &val2);
21612 if (!SWIG_IsOK(ecode2)) {
21613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21614 }
21615 arg2 = static_cast< int >(val2);
21616 if (obj2) {
d55e5bfc 21617 {
554f62e9
RD
21618 arg3 = &temp3;
21619 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 21620 }
554f62e9
RD
21621 }
21622 if (obj3) {
d55e5bfc 21623 {
554f62e9
RD
21624 arg4 = &temp4;
21625 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21626 }
554f62e9
RD
21627 }
21628 if (obj4) {
21629 ecode5 = SWIG_AsVal_long(obj4, &val5);
21630 if (!SWIG_IsOK(ecode5)) {
21631 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21632 }
21633 arg5 = static_cast< long >(val5);
21634 }
21635 if (obj5) {
d55e5bfc 21636 {
554f62e9
RD
21637 arg6 = wxString_in_helper(obj5);
21638 if (arg6 == NULL) SWIG_fail;
21639 temp6 = true;
d55e5bfc 21640 }
554f62e9
RD
21641 }
21642 {
21643 if (!wxPyCheckForApp()) SWIG_fail;
21644 PyThreadState* __tstate = wxPyBeginAllowThreads();
21645 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21646 wxPyEndAllowThreads(__tstate);
21647 if (PyErr_Occurred()) SWIG_fail;
21648 }
21649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21650 {
21651 if (temp6)
21652 delete arg6;
21653 }
21654 return resultobj;
21655fail:
21656 {
21657 if (temp6)
21658 delete arg6;
21659 }
21660 return NULL;
d55e5bfc
RD
21661}
21662
21663
554f62e9
RD
21664SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21665 PyObject *resultobj = 0;
21666 wxChoicebook *result = 0 ;
21667
21668 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21669 {
21670 if (!wxPyCheckForApp()) SWIG_fail;
21671 PyThreadState* __tstate = wxPyBeginAllowThreads();
21672 result = (wxChoicebook *)new wxChoicebook();
21673 wxPyEndAllowThreads(__tstate);
21674 if (PyErr_Occurred()) SWIG_fail;
21675 }
21676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21677 return resultobj;
21678fail:
21679 return NULL;
21680}
21681
21682
21683SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21684 PyObject *resultobj = 0;
21685 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21686 wxWindow *arg2 = (wxWindow *) 0 ;
21687 int arg3 ;
21688 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21689 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21690 wxSize const &arg5_defvalue = wxDefaultSize ;
21691 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21692 long arg6 = (long) 0 ;
21693 wxString const &arg7_defvalue = wxPyEmptyString ;
21694 wxString *arg7 = (wxString *) &arg7_defvalue ;
21695 bool result;
21696 void *argp1 = 0 ;
21697 int res1 = 0 ;
21698 void *argp2 = 0 ;
21699 int res2 = 0 ;
21700 int val3 ;
21701 int ecode3 = 0 ;
21702 wxPoint temp4 ;
21703 wxSize temp5 ;
21704 long val6 ;
21705 int ecode6 = 0 ;
21706 bool temp7 = false ;
21707 PyObject * obj0 = 0 ;
21708 PyObject * obj1 = 0 ;
21709 PyObject * obj2 = 0 ;
21710 PyObject * obj3 = 0 ;
21711 PyObject * obj4 = 0 ;
21712 PyObject * obj5 = 0 ;
21713 PyObject * obj6 = 0 ;
21714 char * kwnames[] = {
21715 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21716 };
21717
21718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21720 if (!SWIG_IsOK(res1)) {
21721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21722 }
21723 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21724 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21725 if (!SWIG_IsOK(res2)) {
21726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21727 }
21728 arg2 = reinterpret_cast< wxWindow * >(argp2);
21729 ecode3 = SWIG_AsVal_int(obj2, &val3);
21730 if (!SWIG_IsOK(ecode3)) {
21731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21732 }
21733 arg3 = static_cast< int >(val3);
21734 if (obj3) {
093d3ff1 21735 {
554f62e9
RD
21736 arg4 = &temp4;
21737 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 21738 }
554f62e9
RD
21739 }
21740 if (obj4) {
093d3ff1 21741 {
554f62e9
RD
21742 arg5 = &temp5;
21743 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 21744 }
554f62e9
RD
21745 }
21746 if (obj5) {
21747 ecode6 = SWIG_AsVal_long(obj5, &val6);
21748 if (!SWIG_IsOK(ecode6)) {
21749 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21750 }
21751 arg6 = static_cast< long >(val6);
21752 }
21753 if (obj6) {
d55e5bfc 21754 {
554f62e9
RD
21755 arg7 = wxString_in_helper(obj6);
21756 if (arg7 == NULL) SWIG_fail;
21757 temp7 = true;
d55e5bfc 21758 }
554f62e9
RD
21759 }
21760 {
21761 PyThreadState* __tstate = wxPyBeginAllowThreads();
21762 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21763 wxPyEndAllowThreads(__tstate);
21764 if (PyErr_Occurred()) SWIG_fail;
21765 }
21766 {
21767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21768 }
21769 {
21770 if (temp7)
21771 delete arg7;
21772 }
21773 return resultobj;
21774fail:
21775 {
21776 if (temp7)
21777 delete arg7;
21778 }
21779 return NULL;
d55e5bfc
RD
21780}
21781
21782
554f62e9
RD
21783SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21784 PyObject *resultobj = 0;
21785 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21786 wxChoice *result = 0 ;
21787 void *argp1 = 0 ;
21788 int res1 = 0 ;
21789 PyObject *swig_obj[1] ;
21790
21791 if (!args) SWIG_fail;
21792 swig_obj[0] = args;
21793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21794 if (!SWIG_IsOK(res1)) {
21795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21796 }
21797 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21798 {
21799 PyThreadState* __tstate = wxPyBeginAllowThreads();
21800 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21801 wxPyEndAllowThreads(__tstate);
21802 if (PyErr_Occurred()) SWIG_fail;
21803 }
21804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21805 return resultobj;
21806fail:
21807 return NULL;
21808}
21809
21810
21811SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21812 PyObject *obj;
21813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21814 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21815 return SWIG_Py_Void();
21816}
21817
21818SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21819 return SWIG_Python_InitShadowInstance(args);
21820}
21821
21822SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21823 PyObject *resultobj = 0;
21824 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21825 int arg2 = (int) 0 ;
21826 int arg3 = (int) -1 ;
21827 int arg4 = (int) -1 ;
21828 wxChoicebookEvent *result = 0 ;
21829 int val1 ;
21830 int ecode1 = 0 ;
21831 int val2 ;
21832 int ecode2 = 0 ;
21833 int val3 ;
21834 int ecode3 = 0 ;
21835 int val4 ;
21836 int ecode4 = 0 ;
21837 PyObject * obj0 = 0 ;
21838 PyObject * obj1 = 0 ;
21839 PyObject * obj2 = 0 ;
21840 PyObject * obj3 = 0 ;
21841 char * kwnames[] = {
21842 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21843 };
21844
21845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21846 if (obj0) {
21847 ecode1 = SWIG_AsVal_int(obj0, &val1);
21848 if (!SWIG_IsOK(ecode1)) {
21849 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21850 }
21851 arg1 = static_cast< wxEventType >(val1);
21852 }
21853 if (obj1) {
21854 ecode2 = SWIG_AsVal_int(obj1, &val2);
21855 if (!SWIG_IsOK(ecode2)) {
21856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21857 }
21858 arg2 = static_cast< int >(val2);
21859 }
21860 if (obj2) {
21861 ecode3 = SWIG_AsVal_int(obj2, &val3);
21862 if (!SWIG_IsOK(ecode3)) {
21863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21864 }
21865 arg3 = static_cast< int >(val3);
21866 }
21867 if (obj3) {
21868 ecode4 = SWIG_AsVal_int(obj3, &val4);
21869 if (!SWIG_IsOK(ecode4)) {
21870 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21871 }
21872 arg4 = static_cast< int >(val4);
21873 }
21874 {
21875 PyThreadState* __tstate = wxPyBeginAllowThreads();
21876 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21877 wxPyEndAllowThreads(__tstate);
21878 if (PyErr_Occurred()) SWIG_fail;
21879 }
21880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21881 return resultobj;
21882fail:
21883 return NULL;
21884}
21885
21886
21887SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21888 PyObject *obj;
21889 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21890 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21891 return SWIG_Py_Void();
21892}
21893
21894SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21895 return SWIG_Python_InitShadowInstance(args);
21896}
21897
21898SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21899 PyObject *resultobj = 0;
21900 wxWindow *arg1 = (wxWindow *) 0 ;
21901 int arg2 ;
21902 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21903 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21904 wxSize const &arg4_defvalue = wxDefaultSize ;
21905 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21906 long arg5 = (long) wxBK_DEFAULT ;
21907 wxString const &arg6_defvalue = wxPyEmptyString ;
21908 wxString *arg6 = (wxString *) &arg6_defvalue ;
21909 wxTreebook *result = 0 ;
21910 void *argp1 = 0 ;
21911 int res1 = 0 ;
21912 int val2 ;
21913 int ecode2 = 0 ;
21914 wxPoint temp3 ;
21915 wxSize temp4 ;
21916 long val5 ;
21917 int ecode5 = 0 ;
21918 bool temp6 = false ;
21919 PyObject * obj0 = 0 ;
21920 PyObject * obj1 = 0 ;
21921 PyObject * obj2 = 0 ;
21922 PyObject * obj3 = 0 ;
21923 PyObject * obj4 = 0 ;
21924 PyObject * obj5 = 0 ;
21925 char * kwnames[] = {
21926 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21927 };
21928
21929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21931 if (!SWIG_IsOK(res1)) {
21932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21933 }
21934 arg1 = reinterpret_cast< wxWindow * >(argp1);
21935 ecode2 = SWIG_AsVal_int(obj1, &val2);
21936 if (!SWIG_IsOK(ecode2)) {
21937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21938 }
21939 arg2 = static_cast< int >(val2);
21940 if (obj2) {
d55e5bfc 21941 {
554f62e9
RD
21942 arg3 = &temp3;
21943 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 21944 }
554f62e9
RD
21945 }
21946 if (obj3) {
d55e5bfc 21947 {
554f62e9
RD
21948 arg4 = &temp4;
21949 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21950 }
554f62e9
RD
21951 }
21952 if (obj4) {
21953 ecode5 = SWIG_AsVal_long(obj4, &val5);
21954 if (!SWIG_IsOK(ecode5)) {
21955 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21956 }
21957 arg5 = static_cast< long >(val5);
21958 }
21959 if (obj5) {
d55e5bfc 21960 {
554f62e9
RD
21961 arg6 = wxString_in_helper(obj5);
21962 if (arg6 == NULL) SWIG_fail;
21963 temp6 = true;
d55e5bfc 21964 }
554f62e9
RD
21965 }
21966 {
21967 if (!wxPyCheckForApp()) SWIG_fail;
21968 PyThreadState* __tstate = wxPyBeginAllowThreads();
21969 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21970 wxPyEndAllowThreads(__tstate);
21971 if (PyErr_Occurred()) SWIG_fail;
21972 }
21973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21974 {
21975 if (temp6)
21976 delete arg6;
21977 }
21978 return resultobj;
21979fail:
21980 {
21981 if (temp6)
21982 delete arg6;
21983 }
21984 return NULL;
d55e5bfc
RD
21985}
21986
21987
554f62e9
RD
21988SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21989 PyObject *resultobj = 0;
21990 wxTreebook *result = 0 ;
21991
21992 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21993 {
21994 if (!wxPyCheckForApp()) SWIG_fail;
21995 PyThreadState* __tstate = wxPyBeginAllowThreads();
21996 result = (wxTreebook *)new wxTreebook();
21997 wxPyEndAllowThreads(__tstate);
21998 if (PyErr_Occurred()) SWIG_fail;
21999 }
22000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
22001 return resultobj;
22002fail:
22003 return NULL;
22004}
22005
22006
22007SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22008 PyObject *resultobj = 0;
22009 wxTreebook *arg1 = (wxTreebook *) 0 ;
22010 wxWindow *arg2 = (wxWindow *) 0 ;
22011 int arg3 ;
22012 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22013 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22014 wxSize const &arg5_defvalue = wxDefaultSize ;
22015 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22016 long arg6 = (long) wxBK_DEFAULT ;
22017 wxString const &arg7_defvalue = wxPyEmptyString ;
22018 wxString *arg7 = (wxString *) &arg7_defvalue ;
22019 bool result;
22020 void *argp1 = 0 ;
22021 int res1 = 0 ;
22022 void *argp2 = 0 ;
22023 int res2 = 0 ;
22024 int val3 ;
22025 int ecode3 = 0 ;
22026 wxPoint temp4 ;
22027 wxSize temp5 ;
22028 long val6 ;
22029 int ecode6 = 0 ;
22030 bool temp7 = false ;
22031 PyObject * obj0 = 0 ;
22032 PyObject * obj1 = 0 ;
22033 PyObject * obj2 = 0 ;
22034 PyObject * obj3 = 0 ;
22035 PyObject * obj4 = 0 ;
22036 PyObject * obj5 = 0 ;
22037 PyObject * obj6 = 0 ;
22038 char * kwnames[] = {
22039 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22040 };
22041
22042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22044 if (!SWIG_IsOK(res1)) {
22045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
22046 }
22047 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22048 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22049 if (!SWIG_IsOK(res2)) {
22050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22051 }
22052 arg2 = reinterpret_cast< wxWindow * >(argp2);
22053 ecode3 = SWIG_AsVal_int(obj2, &val3);
22054 if (!SWIG_IsOK(ecode3)) {
22055 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
22056 }
22057 arg3 = static_cast< int >(val3);
22058 if (obj3) {
093d3ff1 22059 {
554f62e9
RD
22060 arg4 = &temp4;
22061 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22062 }
554f62e9
RD
22063 }
22064 if (obj4) {
093d3ff1 22065 {
554f62e9
RD
22066 arg5 = &temp5;
22067 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22068 }
554f62e9
RD
22069 }
22070 if (obj5) {
22071 ecode6 = SWIG_AsVal_long(obj5, &val6);
22072 if (!SWIG_IsOK(ecode6)) {
22073 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
22074 }
22075 arg6 = static_cast< long >(val6);
22076 }
22077 if (obj6) {
d55e5bfc 22078 {
554f62e9
RD
22079 arg7 = wxString_in_helper(obj6);
22080 if (arg7 == NULL) SWIG_fail;
22081 temp7 = true;
d55e5bfc 22082 }
554f62e9
RD
22083 }
22084 {
22085 PyThreadState* __tstate = wxPyBeginAllowThreads();
22086 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22087 wxPyEndAllowThreads(__tstate);
22088 if (PyErr_Occurred()) SWIG_fail;
22089 }
22090 {
22091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22092 }
22093 {
22094 if (temp7)
22095 delete arg7;
22096 }
22097 return resultobj;
22098fail:
22099 {
22100 if (temp7)
22101 delete arg7;
22102 }
22103 return NULL;
22104}
22105
22106
22107SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22108 PyObject *resultobj = 0;
22109 wxTreebook *arg1 = (wxTreebook *) 0 ;
22110 size_t arg2 ;
22111 wxWindow *arg3 = (wxWindow *) 0 ;
22112 wxString *arg4 = 0 ;
22113 bool arg5 = (bool) false ;
22114 int arg6 = (int) wxNOT_FOUND ;
22115 bool result;
22116 void *argp1 = 0 ;
22117 int res1 = 0 ;
22118 size_t val2 ;
22119 int ecode2 = 0 ;
22120 void *argp3 = 0 ;
22121 int res3 = 0 ;
22122 bool temp4 = false ;
22123 bool val5 ;
22124 int ecode5 = 0 ;
22125 int val6 ;
22126 int ecode6 = 0 ;
22127 PyObject * obj0 = 0 ;
22128 PyObject * obj1 = 0 ;
22129 PyObject * obj2 = 0 ;
22130 PyObject * obj3 = 0 ;
22131 PyObject * obj4 = 0 ;
22132 PyObject * obj5 = 0 ;
22133 char * kwnames[] = {
22134 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22135 };
22136
22137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22139 if (!SWIG_IsOK(res1)) {
22140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22141 }
22142 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22143 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22144 if (!SWIG_IsOK(ecode2)) {
22145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22146 }
22147 arg2 = static_cast< size_t >(val2);
22148 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22149 if (!SWIG_IsOK(res3)) {
22150 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22151 }
22152 arg3 = reinterpret_cast< wxWindow * >(argp3);
22153 {
22154 arg4 = wxString_in_helper(obj3);
22155 if (arg4 == NULL) SWIG_fail;
22156 temp4 = true;
22157 }
22158 if (obj4) {
22159 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22160 if (!SWIG_IsOK(ecode5)) {
22161 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22162 }
22163 arg5 = static_cast< bool >(val5);
22164 }
22165 if (obj5) {
22166 ecode6 = SWIG_AsVal_int(obj5, &val6);
22167 if (!SWIG_IsOK(ecode6)) {
22168 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22169 }
22170 arg6 = static_cast< int >(val6);
22171 }
22172 {
22173 PyThreadState* __tstate = wxPyBeginAllowThreads();
22174 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22175 wxPyEndAllowThreads(__tstate);
22176 if (PyErr_Occurred()) SWIG_fail;
22177 }
22178 {
22179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22180 }
22181 {
22182 if (temp4)
22183 delete arg4;
22184 }
22185 return resultobj;
22186fail:
22187 {
22188 if (temp4)
22189 delete arg4;
22190 }
22191 return NULL;
22192}
22193
22194
22195SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22196 PyObject *resultobj = 0;
22197 wxTreebook *arg1 = (wxTreebook *) 0 ;
22198 wxWindow *arg2 = (wxWindow *) 0 ;
22199 wxString *arg3 = 0 ;
22200 bool arg4 = (bool) false ;
22201 int arg5 = (int) wxNOT_FOUND ;
22202 bool result;
22203 void *argp1 = 0 ;
22204 int res1 = 0 ;
22205 void *argp2 = 0 ;
22206 int res2 = 0 ;
22207 bool temp3 = false ;
22208 bool val4 ;
22209 int ecode4 = 0 ;
22210 int val5 ;
22211 int ecode5 = 0 ;
22212 PyObject * obj0 = 0 ;
22213 PyObject * obj1 = 0 ;
22214 PyObject * obj2 = 0 ;
22215 PyObject * obj3 = 0 ;
22216 PyObject * obj4 = 0 ;
22217 char * kwnames[] = {
22218 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22219 };
22220
22221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22223 if (!SWIG_IsOK(res1)) {
22224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22225 }
22226 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22227 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22228 if (!SWIG_IsOK(res2)) {
22229 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22230 }
22231 arg2 = reinterpret_cast< wxWindow * >(argp2);
22232 {
22233 arg3 = wxString_in_helper(obj2);
22234 if (arg3 == NULL) SWIG_fail;
22235 temp3 = true;
22236 }
22237 if (obj3) {
22238 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22239 if (!SWIG_IsOK(ecode4)) {
22240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22241 }
22242 arg4 = static_cast< bool >(val4);
22243 }
22244 if (obj4) {
22245 ecode5 = SWIG_AsVal_int(obj4, &val5);
22246 if (!SWIG_IsOK(ecode5)) {
22247 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22248 }
22249 arg5 = static_cast< int >(val5);
22250 }
22251 {
22252 PyThreadState* __tstate = wxPyBeginAllowThreads();
22253 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22254 wxPyEndAllowThreads(__tstate);
22255 if (PyErr_Occurred()) SWIG_fail;
22256 }
22257 {
22258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22259 }
22260 {
22261 if (temp3)
22262 delete arg3;
22263 }
22264 return resultobj;
22265fail:
22266 {
22267 if (temp3)
22268 delete arg3;
22269 }
22270 return NULL;
22271}
22272
22273
22274SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22275 PyObject *resultobj = 0;
22276 wxTreebook *arg1 = (wxTreebook *) 0 ;
22277 size_t arg2 ;
22278 bool result;
22279 void *argp1 = 0 ;
22280 int res1 = 0 ;
22281 size_t val2 ;
22282 int ecode2 = 0 ;
22283 PyObject * obj0 = 0 ;
22284 PyObject * obj1 = 0 ;
22285 char * kwnames[] = {
22286 (char *) "self",(char *) "pos", NULL
22287 };
22288
22289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22291 if (!SWIG_IsOK(res1)) {
22292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22293 }
22294 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22295 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22296 if (!SWIG_IsOK(ecode2)) {
22297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22298 }
22299 arg2 = static_cast< size_t >(val2);
22300 {
22301 PyThreadState* __tstate = wxPyBeginAllowThreads();
22302 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22303 wxPyEndAllowThreads(__tstate);
22304 if (PyErr_Occurred()) SWIG_fail;
22305 }
22306 {
22307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22308 }
22309 return resultobj;
22310fail:
22311 return NULL;
22312}
22313
22314
22315SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22316 PyObject *resultobj = 0;
22317 wxTreebook *arg1 = (wxTreebook *) 0 ;
22318 size_t arg2 ;
22319 bool arg3 = (bool) true ;
22320 bool result;
22321 void *argp1 = 0 ;
22322 int res1 = 0 ;
22323 size_t val2 ;
22324 int ecode2 = 0 ;
22325 bool val3 ;
22326 int ecode3 = 0 ;
22327 PyObject * obj0 = 0 ;
22328 PyObject * obj1 = 0 ;
22329 PyObject * obj2 = 0 ;
22330 char * kwnames[] = {
22331 (char *) "self",(char *) "pos",(char *) "expand", NULL
22332 };
22333
22334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22336 if (!SWIG_IsOK(res1)) {
22337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22338 }
22339 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22340 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22341 if (!SWIG_IsOK(ecode2)) {
22342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22343 }
22344 arg2 = static_cast< size_t >(val2);
22345 if (obj2) {
22346 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22347 if (!SWIG_IsOK(ecode3)) {
22348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22349 }
22350 arg3 = static_cast< bool >(val3);
22351 }
22352 {
22353 PyThreadState* __tstate = wxPyBeginAllowThreads();
22354 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22355 wxPyEndAllowThreads(__tstate);
22356 if (PyErr_Occurred()) SWIG_fail;
22357 }
22358 {
22359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22360 }
22361 return resultobj;
22362fail:
22363 return NULL;
22364}
22365
22366
22367SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22368 PyObject *resultobj = 0;
22369 wxTreebook *arg1 = (wxTreebook *) 0 ;
22370 size_t arg2 ;
22371 bool result;
22372 void *argp1 = 0 ;
22373 int res1 = 0 ;
22374 size_t val2 ;
22375 int ecode2 = 0 ;
22376 PyObject * obj0 = 0 ;
22377 PyObject * obj1 = 0 ;
22378 char * kwnames[] = {
22379 (char *) "self",(char *) "pos", NULL
22380 };
22381
22382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22384 if (!SWIG_IsOK(res1)) {
22385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22386 }
22387 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22388 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22389 if (!SWIG_IsOK(ecode2)) {
22390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22391 }
22392 arg2 = static_cast< size_t >(val2);
22393 {
22394 PyThreadState* __tstate = wxPyBeginAllowThreads();
22395 result = (bool)(arg1)->CollapseNode(arg2);
22396 wxPyEndAllowThreads(__tstate);
22397 if (PyErr_Occurred()) SWIG_fail;
22398 }
22399 {
22400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22401 }
22402 return resultobj;
22403fail:
22404 return NULL;
22405}
22406
22407
22408SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22409 PyObject *resultobj = 0;
22410 wxTreebook *arg1 = (wxTreebook *) 0 ;
22411 size_t arg2 ;
22412 int result;
22413 void *argp1 = 0 ;
22414 int res1 = 0 ;
22415 size_t val2 ;
22416 int ecode2 = 0 ;
22417 PyObject * obj0 = 0 ;
22418 PyObject * obj1 = 0 ;
22419 char * kwnames[] = {
22420 (char *) "self",(char *) "pos", NULL
22421 };
22422
22423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22425 if (!SWIG_IsOK(res1)) {
22426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22427 }
22428 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22429 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22430 if (!SWIG_IsOK(ecode2)) {
22431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22432 }
22433 arg2 = static_cast< size_t >(val2);
22434 {
22435 PyThreadState* __tstate = wxPyBeginAllowThreads();
22436 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22437 wxPyEndAllowThreads(__tstate);
22438 if (PyErr_Occurred()) SWIG_fail;
22439 }
22440 resultobj = SWIG_From_int(static_cast< int >(result));
22441 return resultobj;
22442fail:
22443 return NULL;
d55e5bfc
RD
22444}
22445
22446
554f62e9
RD
22447SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22448 PyObject *resultobj = 0;
22449 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22450 wxPyTreeCtrl *result = 0 ;
554f62e9
RD
22451 void *argp1 = 0 ;
22452 int res1 = 0 ;
22453 PyObject *swig_obj[1] ;
22454
22455 if (!args) SWIG_fail;
22456 swig_obj[0] = args;
22457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22458 if (!SWIG_IsOK(res1)) {
22459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22460 }
22461 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22462 {
22463 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22464 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
554f62e9
RD
22465 wxPyEndAllowThreads(__tstate);
22466 if (PyErr_Occurred()) SWIG_fail;
22467 }
10044bf1
RD
22468 {
22469 resultobj = wxPyMake_wxObject(result, (bool)0);
22470 }
554f62e9
RD
22471 return resultobj;
22472fail:
22473 return NULL;
22474}
22475
22476
22477SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22478 PyObject *obj;
22479 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22480 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22481 return SWIG_Py_Void();
22482}
22483
22484SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22485 return SWIG_Python_InitShadowInstance(args);
22486}
22487
22488SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22489 PyObject *resultobj = 0;
22490 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22491 int arg2 = (int) 0 ;
22492 int arg3 = (int) wxNOT_FOUND ;
22493 int arg4 = (int) wxNOT_FOUND ;
22494 wxTreebookEvent *result = 0 ;
22495 int val1 ;
22496 int ecode1 = 0 ;
22497 int val2 ;
22498 int ecode2 = 0 ;
22499 int val3 ;
22500 int ecode3 = 0 ;
22501 int val4 ;
22502 int ecode4 = 0 ;
22503 PyObject * obj0 = 0 ;
22504 PyObject * obj1 = 0 ;
22505 PyObject * obj2 = 0 ;
22506 PyObject * obj3 = 0 ;
22507 char * kwnames[] = {
22508 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22509 };
22510
22511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22512 if (obj0) {
22513 ecode1 = SWIG_AsVal_int(obj0, &val1);
22514 if (!SWIG_IsOK(ecode1)) {
22515 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22516 }
22517 arg1 = static_cast< wxEventType >(val1);
22518 }
22519 if (obj1) {
22520 ecode2 = SWIG_AsVal_int(obj1, &val2);
22521 if (!SWIG_IsOK(ecode2)) {
22522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22523 }
22524 arg2 = static_cast< int >(val2);
22525 }
22526 if (obj2) {
22527 ecode3 = SWIG_AsVal_int(obj2, &val3);
22528 if (!SWIG_IsOK(ecode3)) {
22529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22530 }
22531 arg3 = static_cast< int >(val3);
22532 }
22533 if (obj3) {
22534 ecode4 = SWIG_AsVal_int(obj3, &val4);
22535 if (!SWIG_IsOK(ecode4)) {
22536 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22537 }
22538 arg4 = static_cast< int >(val4);
22539 }
22540 {
22541 PyThreadState* __tstate = wxPyBeginAllowThreads();
22542 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22543 wxPyEndAllowThreads(__tstate);
22544 if (PyErr_Occurred()) SWIG_fail;
22545 }
22546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22547 return resultobj;
22548fail:
22549 return NULL;
22550}
22551
22552
22553SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22554 PyObject *obj;
22555 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22556 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22557 return SWIG_Py_Void();
22558}
22559
22560SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22561 return SWIG_Python_InitShadowInstance(args);
22562}
22563
22564SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22565 PyObject *resultobj = 0;
22566 wxWindow *arg1 = (wxWindow *) 0 ;
22567 int arg2 ;
22568 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22569 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22570 wxSize const &arg4_defvalue = wxDefaultSize ;
22571 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22572 long arg5 = (long) wxBK_DEFAULT ;
22573 wxString const &arg6_defvalue = wxPyEmptyString ;
22574 wxString *arg6 = (wxString *) &arg6_defvalue ;
22575 wxToolbook *result = 0 ;
22576 void *argp1 = 0 ;
22577 int res1 = 0 ;
22578 int val2 ;
22579 int ecode2 = 0 ;
22580 wxPoint temp3 ;
22581 wxSize temp4 ;
22582 long val5 ;
22583 int ecode5 = 0 ;
22584 bool temp6 = false ;
22585 PyObject * obj0 = 0 ;
22586 PyObject * obj1 = 0 ;
22587 PyObject * obj2 = 0 ;
22588 PyObject * obj3 = 0 ;
22589 PyObject * obj4 = 0 ;
22590 PyObject * obj5 = 0 ;
22591 char * kwnames[] = {
22592 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22593 };
22594
22595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22597 if (!SWIG_IsOK(res1)) {
22598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22599 }
22600 arg1 = reinterpret_cast< wxWindow * >(argp1);
22601 ecode2 = SWIG_AsVal_int(obj1, &val2);
22602 if (!SWIG_IsOK(ecode2)) {
22603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22604 }
22605 arg2 = static_cast< int >(val2);
22606 if (obj2) {
093d3ff1 22607 {
554f62e9
RD
22608 arg3 = &temp3;
22609 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 22610 }
554f62e9
RD
22611 }
22612 if (obj3) {
d55e5bfc 22613 {
554f62e9
RD
22614 arg4 = &temp4;
22615 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 22616 }
554f62e9
RD
22617 }
22618 if (obj4) {
22619 ecode5 = SWIG_AsVal_long(obj4, &val5);
22620 if (!SWIG_IsOK(ecode5)) {
22621 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22622 }
22623 arg5 = static_cast< long >(val5);
22624 }
22625 if (obj5) {
093d3ff1 22626 {
554f62e9
RD
22627 arg6 = wxString_in_helper(obj5);
22628 if (arg6 == NULL) SWIG_fail;
22629 temp6 = true;
093d3ff1 22630 }
554f62e9
RD
22631 }
22632 {
22633 PyThreadState* __tstate = wxPyBeginAllowThreads();
22634 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22635 wxPyEndAllowThreads(__tstate);
22636 if (PyErr_Occurred()) SWIG_fail;
22637 }
22638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22639 {
22640 if (temp6)
22641 delete arg6;
22642 }
22643 return resultobj;
22644fail:
22645 {
22646 if (temp6)
22647 delete arg6;
22648 }
22649 return NULL;
d55e5bfc
RD
22650}
22651
22652
554f62e9
RD
22653SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22654 PyObject *resultobj = 0;
22655 wxToolbook *result = 0 ;
22656
22657 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22658 {
22659 PyThreadState* __tstate = wxPyBeginAllowThreads();
22660 result = (wxToolbook *)new wxToolbook();
22661 wxPyEndAllowThreads(__tstate);
22662 if (PyErr_Occurred()) SWIG_fail;
22663 }
22664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22665 return resultobj;
22666fail:
22667 return NULL;
22668}
22669
22670
22671SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22672 PyObject *resultobj = 0;
22673 wxToolbook *arg1 = (wxToolbook *) 0 ;
22674 wxWindow *arg2 = (wxWindow *) 0 ;
22675 int arg3 ;
22676 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22677 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22678 wxSize const &arg5_defvalue = wxDefaultSize ;
22679 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22680 long arg6 = (long) 0 ;
22681 wxString const &arg7_defvalue = wxEmptyString ;
22682 wxString *arg7 = (wxString *) &arg7_defvalue ;
22683 bool result;
22684 void *argp1 = 0 ;
22685 int res1 = 0 ;
22686 void *argp2 = 0 ;
22687 int res2 = 0 ;
22688 int val3 ;
22689 int ecode3 = 0 ;
22690 wxPoint temp4 ;
22691 wxSize temp5 ;
22692 long val6 ;
22693 int ecode6 = 0 ;
22694 bool temp7 = false ;
22695 PyObject * obj0 = 0 ;
22696 PyObject * obj1 = 0 ;
22697 PyObject * obj2 = 0 ;
22698 PyObject * obj3 = 0 ;
22699 PyObject * obj4 = 0 ;
22700 PyObject * obj5 = 0 ;
22701 PyObject * obj6 = 0 ;
22702 char * kwnames[] = {
22703 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22704 };
22705
22706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22708 if (!SWIG_IsOK(res1)) {
22709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22710 }
22711 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22712 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22713 if (!SWIG_IsOK(res2)) {
22714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22715 }
22716 arg2 = reinterpret_cast< wxWindow * >(argp2);
22717 ecode3 = SWIG_AsVal_int(obj2, &val3);
22718 if (!SWIG_IsOK(ecode3)) {
22719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22720 }
22721 arg3 = static_cast< int >(val3);
22722 if (obj3) {
093d3ff1 22723 {
554f62e9
RD
22724 arg4 = &temp4;
22725 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22726 }
554f62e9
RD
22727 }
22728 if (obj4) {
093d3ff1 22729 {
554f62e9
RD
22730 arg5 = &temp5;
22731 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22732 }
554f62e9
RD
22733 }
22734 if (obj5) {
22735 ecode6 = SWIG_AsVal_long(obj5, &val6);
22736 if (!SWIG_IsOK(ecode6)) {
22737 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22738 }
22739 arg6 = static_cast< long >(val6);
22740 }
22741 if (obj6) {
d55e5bfc 22742 {
554f62e9
RD
22743 arg7 = wxString_in_helper(obj6);
22744 if (arg7 == NULL) SWIG_fail;
22745 temp7 = true;
d55e5bfc 22746 }
554f62e9
RD
22747 }
22748 {
22749 PyThreadState* __tstate = wxPyBeginAllowThreads();
22750 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22751 wxPyEndAllowThreads(__tstate);
22752 if (PyErr_Occurred()) SWIG_fail;
22753 }
22754 {
22755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22756 }
22757 {
22758 if (temp7)
22759 delete arg7;
22760 }
22761 return resultobj;
22762fail:
22763 {
22764 if (temp7)
22765 delete arg7;
22766 }
22767 return NULL;
d55e5bfc
RD
22768}
22769
22770
554f62e9
RD
22771SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22772 PyObject *resultobj = 0;
22773 wxToolbook *arg1 = (wxToolbook *) 0 ;
22774 wxToolBarBase *result = 0 ;
22775 void *argp1 = 0 ;
22776 int res1 = 0 ;
22777 PyObject *swig_obj[1] ;
22778
22779 if (!args) SWIG_fail;
22780 swig_obj[0] = args;
22781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22782 if (!SWIG_IsOK(res1)) {
22783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22784 }
22785 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22786 {
22787 PyThreadState* __tstate = wxPyBeginAllowThreads();
22788 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22789 wxPyEndAllowThreads(__tstate);
22790 if (PyErr_Occurred()) SWIG_fail;
22791 }
22792 {
22793 resultobj = wxPyMake_wxObject(result, (bool)0);
22794 }
22795 return resultobj;
22796fail:
22797 return NULL;
f20a2e1f
RD
22798}
22799
22800
554f62e9
RD
22801SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22802 PyObject *resultobj = 0;
22803 wxToolbook *arg1 = (wxToolbook *) 0 ;
22804 void *argp1 = 0 ;
22805 int res1 = 0 ;
22806 PyObject *swig_obj[1] ;
22807
22808 if (!args) SWIG_fail;
22809 swig_obj[0] = args;
22810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22811 if (!SWIG_IsOK(res1)) {
22812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22813 }
22814 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22815 {
22816 PyThreadState* __tstate = wxPyBeginAllowThreads();
22817 (arg1)->Realize();
22818 wxPyEndAllowThreads(__tstate);
22819 if (PyErr_Occurred()) SWIG_fail;
22820 }
22821 resultobj = SWIG_Py_Void();
22822 return resultobj;
22823fail:
22824 return NULL;
22825}
22826
22827
22828SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22829 PyObject *obj;
22830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22831 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22832 return SWIG_Py_Void();
22833}
22834
22835SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22836 return SWIG_Python_InitShadowInstance(args);
22837}
22838
22839SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22840 PyObject *resultobj = 0;
22841 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22842 int arg2 = (int) 0 ;
22843 int arg3 = (int) wxNOT_FOUND ;
22844 int arg4 = (int) wxNOT_FOUND ;
22845 wxToolbookEvent *result = 0 ;
22846 int val1 ;
22847 int ecode1 = 0 ;
22848 int val2 ;
22849 int ecode2 = 0 ;
22850 int val3 ;
22851 int ecode3 = 0 ;
22852 int val4 ;
22853 int ecode4 = 0 ;
22854 PyObject * obj0 = 0 ;
22855 PyObject * obj1 = 0 ;
22856 PyObject * obj2 = 0 ;
22857 PyObject * obj3 = 0 ;
22858 char * kwnames[] = {
22859 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22860 };
22861
22862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22863 if (obj0) {
22864 ecode1 = SWIG_AsVal_int(obj0, &val1);
22865 if (!SWIG_IsOK(ecode1)) {
22866 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22867 }
22868 arg1 = static_cast< wxEventType >(val1);
22869 }
22870 if (obj1) {
22871 ecode2 = SWIG_AsVal_int(obj1, &val2);
22872 if (!SWIG_IsOK(ecode2)) {
22873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22874 }
22875 arg2 = static_cast< int >(val2);
22876 }
22877 if (obj2) {
22878 ecode3 = SWIG_AsVal_int(obj2, &val3);
22879 if (!SWIG_IsOK(ecode3)) {
22880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22881 }
22882 arg3 = static_cast< int >(val3);
22883 }
22884 if (obj3) {
22885 ecode4 = SWIG_AsVal_int(obj3, &val4);
22886 if (!SWIG_IsOK(ecode4)) {
22887 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22888 }
22889 arg4 = static_cast< int >(val4);
22890 }
22891 {
22892 PyThreadState* __tstate = wxPyBeginAllowThreads();
22893 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22894 wxPyEndAllowThreads(__tstate);
22895 if (PyErr_Occurred()) SWIG_fail;
22896 }
22897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22898 return resultobj;
22899fail:
22900 return NULL;
d55e5bfc
RD
22901}
22902
22903
554f62e9
RD
22904SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22905 PyObject *obj;
22906 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22907 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22908 return SWIG_Py_Void();
d55e5bfc
RD
22909}
22910
554f62e9
RD
22911SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22912 return SWIG_Python_InitShadowInstance(args);
22913}
d55e5bfc 22914
554f62e9
RD
22915SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22916 PyObject *resultobj = 0;
22917 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22918 int result;
22919 void *argp1 = 0 ;
22920 int res1 = 0 ;
22921 PyObject *swig_obj[1] ;
22922
22923 if (!args) SWIG_fail;
22924 swig_obj[0] = args;
22925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22926 if (!SWIG_IsOK(res1)) {
22927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22928 }
22929 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22930 {
22931 PyThreadState* __tstate = wxPyBeginAllowThreads();
22932 result = (int)(arg1)->GetId();
22933 wxPyEndAllowThreads(__tstate);
22934 if (PyErr_Occurred()) SWIG_fail;
22935 }
22936 resultobj = SWIG_From_int(static_cast< int >(result));
22937 return resultobj;
22938fail:
22939 return NULL;
d55e5bfc
RD
22940}
22941
22942
554f62e9
RD
22943SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22944 PyObject *resultobj = 0;
22945 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22946 wxControl *result = 0 ;
22947 void *argp1 = 0 ;
22948 int res1 = 0 ;
22949 PyObject *swig_obj[1] ;
22950
22951 if (!args) SWIG_fail;
22952 swig_obj[0] = args;
22953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22954 if (!SWIG_IsOK(res1)) {
22955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22956 }
22957 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22958 {
22959 PyThreadState* __tstate = wxPyBeginAllowThreads();
22960 result = (wxControl *)(arg1)->GetControl();
22961 wxPyEndAllowThreads(__tstate);
22962 if (PyErr_Occurred()) SWIG_fail;
22963 }
22964 {
22965 resultobj = wxPyMake_wxObject(result, 0);
22966 }
22967 return resultobj;
22968fail:
22969 return NULL;
d55e5bfc
RD
22970}
22971
22972
554f62e9
RD
22973SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22974 PyObject *resultobj = 0;
22975 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22976 wxToolBarBase *result = 0 ;
22977 void *argp1 = 0 ;
22978 int res1 = 0 ;
22979 PyObject *swig_obj[1] ;
22980
22981 if (!args) SWIG_fail;
22982 swig_obj[0] = args;
22983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22984 if (!SWIG_IsOK(res1)) {
22985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22986 }
22987 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22988 {
22989 PyThreadState* __tstate = wxPyBeginAllowThreads();
22990 result = (wxToolBarBase *)(arg1)->GetToolBar();
22991 wxPyEndAllowThreads(__tstate);
22992 if (PyErr_Occurred()) SWIG_fail;
22993 }
22994 {
22995 resultobj = wxPyMake_wxObject(result, (bool)0);
22996 }
22997 return resultobj;
22998fail:
22999 return NULL;
d55e5bfc
RD
23000}
23001
23002
554f62e9
RD
23003SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23004 PyObject *resultobj = 0;
23005 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23006 int result;
23007 void *argp1 = 0 ;
23008 int res1 = 0 ;
23009 PyObject *swig_obj[1] ;
23010
23011 if (!args) SWIG_fail;
23012 swig_obj[0] = args;
23013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23014 if (!SWIG_IsOK(res1)) {
23015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23016 }
23017 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23018 {
23019 PyThreadState* __tstate = wxPyBeginAllowThreads();
23020 result = (int)(arg1)->IsButton();
23021 wxPyEndAllowThreads(__tstate);
23022 if (PyErr_Occurred()) SWIG_fail;
23023 }
23024 resultobj = SWIG_From_int(static_cast< int >(result));
23025 return resultobj;
23026fail:
23027 return NULL;
d55e5bfc
RD
23028}
23029
23030
554f62e9
RD
23031SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23032 PyObject *resultobj = 0;
23033 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23034 int result;
23035 void *argp1 = 0 ;
23036 int res1 = 0 ;
23037 PyObject *swig_obj[1] ;
23038
23039 if (!args) SWIG_fail;
23040 swig_obj[0] = args;
23041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23042 if (!SWIG_IsOK(res1)) {
23043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23044 }
23045 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23046 {
23047 PyThreadState* __tstate = wxPyBeginAllowThreads();
23048 result = (int)(arg1)->IsControl();
23049 wxPyEndAllowThreads(__tstate);
23050 if (PyErr_Occurred()) SWIG_fail;
23051 }
23052 resultobj = SWIG_From_int(static_cast< int >(result));
23053 return resultobj;
23054fail:
23055 return NULL;
d55e5bfc
RD
23056}
23057
23058
554f62e9
RD
23059SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23060 PyObject *resultobj = 0;
23061 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23062 int result;
23063 void *argp1 = 0 ;
23064 int res1 = 0 ;
23065 PyObject *swig_obj[1] ;
23066
23067 if (!args) SWIG_fail;
23068 swig_obj[0] = args;
23069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23070 if (!SWIG_IsOK(res1)) {
23071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23072 }
23073 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23074 {
23075 PyThreadState* __tstate = wxPyBeginAllowThreads();
23076 result = (int)(arg1)->IsSeparator();
23077 wxPyEndAllowThreads(__tstate);
23078 if (PyErr_Occurred()) SWIG_fail;
23079 }
23080 resultobj = SWIG_From_int(static_cast< int >(result));
23081 return resultobj;
23082fail:
23083 return NULL;
d55e5bfc
RD
23084}
23085
23086
554f62e9
RD
23087SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23088 PyObject *resultobj = 0;
23089 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23090 int result;
23091 void *argp1 = 0 ;
23092 int res1 = 0 ;
23093 PyObject *swig_obj[1] ;
23094
23095 if (!args) SWIG_fail;
23096 swig_obj[0] = args;
23097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23098 if (!SWIG_IsOK(res1)) {
23099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23100 }
23101 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23102 {
23103 PyThreadState* __tstate = wxPyBeginAllowThreads();
23104 result = (int)(arg1)->GetStyle();
23105 wxPyEndAllowThreads(__tstate);
23106 if (PyErr_Occurred()) SWIG_fail;
23107 }
23108 resultobj = SWIG_From_int(static_cast< int >(result));
23109 return resultobj;
23110fail:
23111 return NULL;
d55e5bfc
RD
23112}
23113
23114
554f62e9
RD
23115SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23116 PyObject *resultobj = 0;
23117 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23118 wxItemKind result;
23119 void *argp1 = 0 ;
23120 int res1 = 0 ;
23121 PyObject *swig_obj[1] ;
23122
23123 if (!args) SWIG_fail;
23124 swig_obj[0] = args;
23125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23126 if (!SWIG_IsOK(res1)) {
23127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23128 }
23129 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23130 {
23131 PyThreadState* __tstate = wxPyBeginAllowThreads();
23132 result = (wxItemKind)(arg1)->GetKind();
23133 wxPyEndAllowThreads(__tstate);
23134 if (PyErr_Occurred()) SWIG_fail;
23135 }
23136 resultobj = SWIG_From_int(static_cast< int >(result));
23137 return resultobj;
23138fail:
23139 return NULL;
d55e5bfc
RD
23140}
23141
23142
554f62e9
RD
23143SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23144 PyObject *resultobj = 0;
23145 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23146 bool result;
23147 void *argp1 = 0 ;
23148 int res1 = 0 ;
23149 PyObject *swig_obj[1] ;
23150
23151 if (!args) SWIG_fail;
23152 swig_obj[0] = args;
23153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23154 if (!SWIG_IsOK(res1)) {
23155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23156 }
23157 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23158 {
23159 PyThreadState* __tstate = wxPyBeginAllowThreads();
23160 result = (bool)(arg1)->IsEnabled();
23161 wxPyEndAllowThreads(__tstate);
23162 if (PyErr_Occurred()) SWIG_fail;
23163 }
23164 {
23165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23166 }
23167 return resultobj;
23168fail:
23169 return NULL;
d55e5bfc
RD
23170}
23171
23172
554f62e9
RD
23173SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23174 PyObject *resultobj = 0;
23175 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23176 bool result;
23177 void *argp1 = 0 ;
23178 int res1 = 0 ;
23179 PyObject *swig_obj[1] ;
23180
23181 if (!args) SWIG_fail;
23182 swig_obj[0] = args;
23183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23184 if (!SWIG_IsOK(res1)) {
23185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23186 }
23187 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23188 {
23189 PyThreadState* __tstate = wxPyBeginAllowThreads();
23190 result = (bool)(arg1)->IsToggled();
23191 wxPyEndAllowThreads(__tstate);
23192 if (PyErr_Occurred()) SWIG_fail;
23193 }
23194 {
23195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23196 }
23197 return resultobj;
23198fail:
23199 return NULL;
d55e5bfc
RD
23200}
23201
23202
554f62e9
RD
23203SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23204 PyObject *resultobj = 0;
23205 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23206 bool result;
23207 void *argp1 = 0 ;
23208 int res1 = 0 ;
23209 PyObject *swig_obj[1] ;
23210
23211 if (!args) SWIG_fail;
23212 swig_obj[0] = args;
23213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23214 if (!SWIG_IsOK(res1)) {
23215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23216 }
23217 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23218 {
23219 PyThreadState* __tstate = wxPyBeginAllowThreads();
23220 result = (bool)(arg1)->CanBeToggled();
23221 wxPyEndAllowThreads(__tstate);
23222 if (PyErr_Occurred()) SWIG_fail;
23223 }
23224 {
23225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23226 }
23227 return resultobj;
23228fail:
23229 return NULL;
d55e5bfc
RD
23230}
23231
23232
554f62e9
RD
23233SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23234 PyObject *resultobj = 0;
23235 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23236 wxBitmap *result = 0 ;
23237 void *argp1 = 0 ;
23238 int res1 = 0 ;
23239 PyObject *swig_obj[1] ;
23240
23241 if (!args) SWIG_fail;
23242 swig_obj[0] = args;
23243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23244 if (!SWIG_IsOK(res1)) {
23245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23246 }
23247 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23248 {
23249 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 23250 {
554f62e9
RD
23251 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23252 result = (wxBitmap *) &_result_ref;
093d3ff1 23253 }
554f62e9
RD
23254 wxPyEndAllowThreads(__tstate);
23255 if (PyErr_Occurred()) SWIG_fail;
23256 }
23257 {
23258 wxBitmap* resultptr = new wxBitmap(*result);
23259 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23260 }
23261 return resultobj;
23262fail:
23263 return NULL;
d55e5bfc
RD
23264}
23265
23266
554f62e9
RD
23267SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23268 PyObject *resultobj = 0;
23269 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23270 wxBitmap *result = 0 ;
23271 void *argp1 = 0 ;
23272 int res1 = 0 ;
23273 PyObject *swig_obj[1] ;
23274
23275 if (!args) SWIG_fail;
23276 swig_obj[0] = args;
23277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23278 if (!SWIG_IsOK(res1)) {
23279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23280 }
23281 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23282 {
23283 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 23284 {
554f62e9
RD
23285 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23286 result = (wxBitmap *) &_result_ref;
d55e5bfc 23287 }
554f62e9
RD
23288 wxPyEndAllowThreads(__tstate);
23289 if (PyErr_Occurred()) SWIG_fail;
23290 }
23291 {
23292 wxBitmap* resultptr = new wxBitmap(*result);
23293 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23294 }
23295 return resultobj;
23296fail:
23297 return NULL;
d55e5bfc
RD
23298}
23299
23300
554f62e9
RD
23301SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23302 PyObject *resultobj = 0;
23303 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23304 wxBitmap result;
23305 void *argp1 = 0 ;
23306 int res1 = 0 ;
23307 PyObject *swig_obj[1] ;
23308
23309 if (!args) SWIG_fail;
23310 swig_obj[0] = args;
23311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23312 if (!SWIG_IsOK(res1)) {
23313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23314 }
23315 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23316 {
23317 PyThreadState* __tstate = wxPyBeginAllowThreads();
23318 result = (arg1)->GetBitmap();
23319 wxPyEndAllowThreads(__tstate);
23320 if (PyErr_Occurred()) SWIG_fail;
23321 }
23322 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23323 return resultobj;
23324fail:
23325 return NULL;
23326}
23327
23328
23329SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23330 PyObject *resultobj = 0;
23331 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23332 wxString result;
23333 void *argp1 = 0 ;
23334 int res1 = 0 ;
23335 PyObject *swig_obj[1] ;
23336
23337 if (!args) SWIG_fail;
23338 swig_obj[0] = args;
23339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23340 if (!SWIG_IsOK(res1)) {
23341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23342 }
23343 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23344 {
23345 PyThreadState* __tstate = wxPyBeginAllowThreads();
23346 result = (arg1)->GetLabel();
23347 wxPyEndAllowThreads(__tstate);
23348 if (PyErr_Occurred()) SWIG_fail;
23349 }
23350 {
d55e5bfc 23351#if wxUSE_UNICODE
554f62e9 23352 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 23353#else
554f62e9 23354 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 23355#endif
554f62e9
RD
23356 }
23357 return resultobj;
23358fail:
23359 return NULL;
d55e5bfc
RD
23360}
23361
23362
554f62e9
RD
23363SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23364 PyObject *resultobj = 0;
23365 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23366 wxString result;
23367 void *argp1 = 0 ;
23368 int res1 = 0 ;
23369 PyObject *swig_obj[1] ;
23370
23371 if (!args) SWIG_fail;
23372 swig_obj[0] = args;
23373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23374 if (!SWIG_IsOK(res1)) {
23375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23376 }
23377 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23378 {
23379 PyThreadState* __tstate = wxPyBeginAllowThreads();
23380 result = (arg1)->GetShortHelp();
23381 wxPyEndAllowThreads(__tstate);
23382 if (PyErr_Occurred()) SWIG_fail;
23383 }
23384 {
23385#if wxUSE_UNICODE
23386 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23387#else
23388 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23389#endif
23390 }
23391 return resultobj;
23392fail:
23393 return NULL;
d55e5bfc
RD
23394}
23395
23396
554f62e9
RD
23397SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23398 PyObject *resultobj = 0;
23399 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23400 wxString result;
23401 void *argp1 = 0 ;
23402 int res1 = 0 ;
23403 PyObject *swig_obj[1] ;
23404
23405 if (!args) SWIG_fail;
23406 swig_obj[0] = args;
23407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23408 if (!SWIG_IsOK(res1)) {
23409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23410 }
23411 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23412 {
23413 PyThreadState* __tstate = wxPyBeginAllowThreads();
23414 result = (arg1)->GetLongHelp();
23415 wxPyEndAllowThreads(__tstate);
23416 if (PyErr_Occurred()) SWIG_fail;
23417 }
23418 {
23419#if wxUSE_UNICODE
23420 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23421#else
23422 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23423#endif
23424 }
23425 return resultobj;
23426fail:
23427 return NULL;
23428}
23429
23430
23431SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23432 PyObject *resultobj = 0;
23433 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23434 bool arg2 ;
23435 bool result;
23436 void *argp1 = 0 ;
23437 int res1 = 0 ;
23438 bool val2 ;
23439 int ecode2 = 0 ;
23440 PyObject * obj0 = 0 ;
23441 PyObject * obj1 = 0 ;
23442 char * kwnames[] = {
23443 (char *) "self",(char *) "enable", NULL
23444 };
23445
23446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23448 if (!SWIG_IsOK(res1)) {
23449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23450 }
23451 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23452 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23453 if (!SWIG_IsOK(ecode2)) {
23454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23455 }
23456 arg2 = static_cast< bool >(val2);
23457 {
23458 PyThreadState* __tstate = wxPyBeginAllowThreads();
23459 result = (bool)(arg1)->Enable(arg2);
23460 wxPyEndAllowThreads(__tstate);
23461 if (PyErr_Occurred()) SWIG_fail;
23462 }
23463 {
23464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23465 }
23466 return resultobj;
23467fail:
23468 return NULL;
d55e5bfc
RD
23469}
23470
23471
554f62e9
RD
23472SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23473 PyObject *resultobj = 0;
23474 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23475 void *argp1 = 0 ;
23476 int res1 = 0 ;
23477 PyObject *swig_obj[1] ;
23478
23479 if (!args) SWIG_fail;
23480 swig_obj[0] = args;
23481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23482 if (!SWIG_IsOK(res1)) {
23483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23484 }
23485 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23486 {
23487 PyThreadState* __tstate = wxPyBeginAllowThreads();
23488 (arg1)->Toggle();
23489 wxPyEndAllowThreads(__tstate);
23490 if (PyErr_Occurred()) SWIG_fail;
23491 }
23492 resultobj = SWIG_Py_Void();
23493 return resultobj;
23494fail:
23495 return NULL;
23496}
23497
23498
23499SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23500 PyObject *resultobj = 0;
23501 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23502 bool arg2 ;
23503 bool result;
23504 void *argp1 = 0 ;
23505 int res1 = 0 ;
23506 bool val2 ;
23507 int ecode2 = 0 ;
23508 PyObject * obj0 = 0 ;
23509 PyObject * obj1 = 0 ;
23510 char * kwnames[] = {
23511 (char *) "self",(char *) "toggle", NULL
23512 };
23513
23514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23516 if (!SWIG_IsOK(res1)) {
23517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23518 }
23519 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23520 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23521 if (!SWIG_IsOK(ecode2)) {
23522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23523 }
23524 arg2 = static_cast< bool >(val2);
23525 {
23526 PyThreadState* __tstate = wxPyBeginAllowThreads();
23527 result = (bool)(arg1)->SetToggle(arg2);
23528 wxPyEndAllowThreads(__tstate);
23529 if (PyErr_Occurred()) SWIG_fail;
23530 }
23531 {
23532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23533 }
23534 return resultobj;
23535fail:
23536 return NULL;
23537}
23538
23539
23540SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23541 PyObject *resultobj = 0;
23542 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23543 wxString *arg2 = 0 ;
23544 bool result;
23545 void *argp1 = 0 ;
23546 int res1 = 0 ;
23547 bool temp2 = false ;
23548 PyObject * obj0 = 0 ;
23549 PyObject * obj1 = 0 ;
23550 char * kwnames[] = {
23551 (char *) "self",(char *) "help", NULL
23552 };
23553
23554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23556 if (!SWIG_IsOK(res1)) {
23557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23558 }
23559 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23560 {
23561 arg2 = wxString_in_helper(obj1);
23562 if (arg2 == NULL) SWIG_fail;
23563 temp2 = true;
23564 }
23565 {
23566 PyThreadState* __tstate = wxPyBeginAllowThreads();
23567 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23568 wxPyEndAllowThreads(__tstate);
23569 if (PyErr_Occurred()) SWIG_fail;
23570 }
23571 {
23572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23573 }
23574 {
23575 if (temp2)
23576 delete arg2;
23577 }
23578 return resultobj;
23579fail:
23580 {
23581 if (temp2)
23582 delete arg2;
23583 }
23584 return NULL;
23585}
23586
23587
23588SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23589 PyObject *resultobj = 0;
23590 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23591 wxString *arg2 = 0 ;
23592 bool result;
23593 void *argp1 = 0 ;
23594 int res1 = 0 ;
23595 bool temp2 = false ;
23596 PyObject * obj0 = 0 ;
23597 PyObject * obj1 = 0 ;
23598 char * kwnames[] = {
23599 (char *) "self",(char *) "help", NULL
23600 };
23601
23602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23604 if (!SWIG_IsOK(res1)) {
23605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23606 }
23607 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23608 {
23609 arg2 = wxString_in_helper(obj1);
23610 if (arg2 == NULL) SWIG_fail;
23611 temp2 = true;
23612 }
23613 {
23614 PyThreadState* __tstate = wxPyBeginAllowThreads();
23615 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23616 wxPyEndAllowThreads(__tstate);
23617 if (PyErr_Occurred()) SWIG_fail;
23618 }
23619 {
23620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23621 }
23622 {
23623 if (temp2)
23624 delete arg2;
23625 }
23626 return resultobj;
23627fail:
23628 {
23629 if (temp2)
23630 delete arg2;
23631 }
23632 return NULL;
23633}
23634
23635
23636SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23637 PyObject *resultobj = 0;
23638 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23639 wxBitmap *arg2 = 0 ;
23640 void *argp1 = 0 ;
23641 int res1 = 0 ;
23642 void *argp2 = 0 ;
23643 int res2 = 0 ;
23644 PyObject * obj0 = 0 ;
23645 PyObject * obj1 = 0 ;
23646 char * kwnames[] = {
23647 (char *) "self",(char *) "bmp", NULL
23648 };
23649
23650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23652 if (!SWIG_IsOK(res1)) {
23653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23654 }
23655 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23656 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23657 if (!SWIG_IsOK(res2)) {
23658 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23659 }
23660 if (!argp2) {
23661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23662 }
23663 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23664 {
23665 PyThreadState* __tstate = wxPyBeginAllowThreads();
23666 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23667 wxPyEndAllowThreads(__tstate);
23668 if (PyErr_Occurred()) SWIG_fail;
23669 }
23670 resultobj = SWIG_Py_Void();
23671 return resultobj;
23672fail:
23673 return NULL;
23674}
23675
23676
23677SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23678 PyObject *resultobj = 0;
23679 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23680 wxBitmap *arg2 = 0 ;
23681 void *argp1 = 0 ;
23682 int res1 = 0 ;
23683 void *argp2 = 0 ;
23684 int res2 = 0 ;
23685 PyObject * obj0 = 0 ;
23686 PyObject * obj1 = 0 ;
23687 char * kwnames[] = {
23688 (char *) "self",(char *) "bmp", NULL
23689 };
23690
23691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23693 if (!SWIG_IsOK(res1)) {
23694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23695 }
23696 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23697 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23698 if (!SWIG_IsOK(res2)) {
23699 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23700 }
23701 if (!argp2) {
23702 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23703 }
23704 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23705 {
23706 PyThreadState* __tstate = wxPyBeginAllowThreads();
23707 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23708 wxPyEndAllowThreads(__tstate);
23709 if (PyErr_Occurred()) SWIG_fail;
23710 }
23711 resultobj = SWIG_Py_Void();
23712 return resultobj;
23713fail:
23714 return NULL;
23715}
23716
23717
23718SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23719 PyObject *resultobj = 0;
23720 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23721 wxString *arg2 = 0 ;
23722 void *argp1 = 0 ;
23723 int res1 = 0 ;
23724 bool temp2 = false ;
23725 PyObject * obj0 = 0 ;
23726 PyObject * obj1 = 0 ;
23727 char * kwnames[] = {
23728 (char *) "self",(char *) "label", NULL
23729 };
23730
23731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23733 if (!SWIG_IsOK(res1)) {
23734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23735 }
23736 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23737 {
23738 arg2 = wxString_in_helper(obj1);
23739 if (arg2 == NULL) SWIG_fail;
23740 temp2 = true;
23741 }
23742 {
23743 PyThreadState* __tstate = wxPyBeginAllowThreads();
23744 (arg1)->SetLabel((wxString const &)*arg2);
23745 wxPyEndAllowThreads(__tstate);
23746 if (PyErr_Occurred()) SWIG_fail;
23747 }
23748 resultobj = SWIG_Py_Void();
23749 {
23750 if (temp2)
23751 delete arg2;
23752 }
23753 return resultobj;
23754fail:
23755 {
23756 if (temp2)
23757 delete arg2;
23758 }
23759 return NULL;
d55e5bfc
RD
23760}
23761
23762
554f62e9
RD
23763SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23764 PyObject *resultobj = 0;
23765 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23766 void *argp1 = 0 ;
23767 int res1 = 0 ;
23768 PyObject *swig_obj[1] ;
23769
23770 if (!args) SWIG_fail;
23771 swig_obj[0] = args;
23772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23773 if (!SWIG_IsOK(res1)) {
23774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23775 }
23776 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23777 {
23778 PyThreadState* __tstate = wxPyBeginAllowThreads();
23779 (arg1)->Detach();
23780 wxPyEndAllowThreads(__tstate);
23781 if (PyErr_Occurred()) SWIG_fail;
23782 }
23783 resultobj = SWIG_Py_Void();
23784 return resultobj;
23785fail:
23786 return NULL;
23787}
23788
23789
23790SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23791 PyObject *resultobj = 0;
23792 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23793 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23794 void *argp1 = 0 ;
23795 int res1 = 0 ;
23796 void *argp2 = 0 ;
23797 int res2 = 0 ;
23798 PyObject * obj0 = 0 ;
23799 PyObject * obj1 = 0 ;
23800 char * kwnames[] = {
23801 (char *) "self",(char *) "tbar", NULL
23802 };
23803
23804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23806 if (!SWIG_IsOK(res1)) {
23807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23808 }
23809 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23810 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23811 if (!SWIG_IsOK(res2)) {
23812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23813 }
23814 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23815 {
23816 PyThreadState* __tstate = wxPyBeginAllowThreads();
23817 (arg1)->Attach(arg2);
23818 wxPyEndAllowThreads(__tstate);
23819 if (PyErr_Occurred()) SWIG_fail;
23820 }
23821 resultobj = SWIG_Py_Void();
23822 return resultobj;
23823fail:
23824 return NULL;
d55e5bfc
RD
23825}
23826
23827
554f62e9
RD
23828SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23829 PyObject *resultobj = 0;
23830 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23831 PyObject *result = 0 ;
23832 void *argp1 = 0 ;
23833 int res1 = 0 ;
23834 PyObject *swig_obj[1] ;
23835
23836 if (!args) SWIG_fail;
23837 swig_obj[0] = args;
23838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23839 if (!SWIG_IsOK(res1)) {
23840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23841 }
23842 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23843 {
23844 PyThreadState* __tstate = wxPyBeginAllowThreads();
23845 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23846 wxPyEndAllowThreads(__tstate);
23847 if (PyErr_Occurred()) SWIG_fail;
23848 }
23849 resultobj = result;
23850 return resultobj;
23851fail:
23852 return NULL;
23853}
23854
23855
23856SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23857 PyObject *resultobj = 0;
23858 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23859 PyObject *arg2 = (PyObject *) 0 ;
23860 void *argp1 = 0 ;
23861 int res1 = 0 ;
23862 PyObject * obj0 = 0 ;
23863 PyObject * obj1 = 0 ;
23864 char * kwnames[] = {
23865 (char *) "self",(char *) "clientData", NULL
23866 };
23867
23868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23870 if (!SWIG_IsOK(res1)) {
23871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23872 }
23873 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23874 arg2 = obj1;
23875 {
23876 PyThreadState* __tstate = wxPyBeginAllowThreads();
23877 wxToolBarToolBase_SetClientData(arg1,arg2);
23878 wxPyEndAllowThreads(__tstate);
23879 if (PyErr_Occurred()) SWIG_fail;
23880 }
23881 resultobj = SWIG_Py_Void();
23882 return resultobj;
23883fail:
23884 return NULL;
23885}
23886
23887
23888SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23889 PyObject *obj;
23890 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23891 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23892 return SWIG_Py_Void();
23893}
23894
23895SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23896 PyObject *resultobj = 0;
23897 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23898 int arg2 ;
23899 wxString *arg3 = 0 ;
23900 wxBitmap *arg4 = 0 ;
23901 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23902 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23903 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23904 wxString const &arg7_defvalue = wxPyEmptyString ;
23905 wxString *arg7 = (wxString *) &arg7_defvalue ;
23906 wxString const &arg8_defvalue = wxPyEmptyString ;
23907 wxString *arg8 = (wxString *) &arg8_defvalue ;
23908 PyObject *arg9 = (PyObject *) NULL ;
23909 wxToolBarToolBase *result = 0 ;
23910 void *argp1 = 0 ;
23911 int res1 = 0 ;
23912 int val2 ;
23913 int ecode2 = 0 ;
23914 bool temp3 = false ;
23915 void *argp4 = 0 ;
23916 int res4 = 0 ;
23917 void *argp5 = 0 ;
23918 int res5 = 0 ;
23919 int val6 ;
23920 int ecode6 = 0 ;
23921 bool temp7 = false ;
23922 bool temp8 = false ;
23923 PyObject * obj0 = 0 ;
23924 PyObject * obj1 = 0 ;
23925 PyObject * obj2 = 0 ;
23926 PyObject * obj3 = 0 ;
23927 PyObject * obj4 = 0 ;
23928 PyObject * obj5 = 0 ;
23929 PyObject * obj6 = 0 ;
23930 PyObject * obj7 = 0 ;
23931 PyObject * obj8 = 0 ;
23932 char * kwnames[] = {
23933 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23934 };
23935
23936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23938 if (!SWIG_IsOK(res1)) {
23939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23940 }
23941 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23942 ecode2 = SWIG_AsVal_int(obj1, &val2);
23943 if (!SWIG_IsOK(ecode2)) {
23944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23945 }
23946 arg2 = static_cast< int >(val2);
23947 {
23948 arg3 = wxString_in_helper(obj2);
23949 if (arg3 == NULL) SWIG_fail;
23950 temp3 = true;
23951 }
23952 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23953 if (!SWIG_IsOK(res4)) {
23954 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23955 }
23956 if (!argp4) {
23957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23958 }
23959 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23960 if (obj4) {
23961 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23962 if (!SWIG_IsOK(res5)) {
23963 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23964 }
23965 if (!argp5) {
23966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23967 }
23968 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23969 }
23970 if (obj5) {
23971 ecode6 = SWIG_AsVal_int(obj5, &val6);
23972 if (!SWIG_IsOK(ecode6)) {
23973 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23974 }
23975 arg6 = static_cast< wxItemKind >(val6);
23976 }
23977 if (obj6) {
d55e5bfc 23978 {
554f62e9
RD
23979 arg7 = wxString_in_helper(obj6);
23980 if (arg7 == NULL) SWIG_fail;
23981 temp7 = true;
d55e5bfc 23982 }
554f62e9
RD
23983 }
23984 if (obj7) {
093d3ff1 23985 {
554f62e9
RD
23986 arg8 = wxString_in_helper(obj7);
23987 if (arg8 == NULL) SWIG_fail;
23988 temp8 = true;
093d3ff1 23989 }
554f62e9
RD
23990 }
23991 if (obj8) {
23992 arg9 = obj8;
23993 }
23994 {
23995 PyThreadState* __tstate = wxPyBeginAllowThreads();
23996 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23997 wxPyEndAllowThreads(__tstate);
23998 if (PyErr_Occurred()) SWIG_fail;
23999 }
24000 {
24001 resultobj = wxPyMake_wxObject(result, (bool)0);
24002 }
24003 {
24004 if (temp3)
24005 delete arg3;
24006 }
24007 {
24008 if (temp7)
24009 delete arg7;
24010 }
24011 {
24012 if (temp8)
24013 delete arg8;
24014 }
24015 return resultobj;
24016fail:
24017 {
24018 if (temp3)
24019 delete arg3;
24020 }
24021 {
24022 if (temp7)
24023 delete arg7;
24024 }
24025 {
24026 if (temp8)
24027 delete arg8;
24028 }
24029 return NULL;
24030}
24031
24032
24033SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24034 PyObject *resultobj = 0;
24035 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24036 size_t arg2 ;
24037 int arg3 ;
24038 wxString *arg4 = 0 ;
24039 wxBitmap *arg5 = 0 ;
24040 wxBitmap const &arg6_defvalue = wxNullBitmap ;
24041 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
24042 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
24043 wxString const &arg8_defvalue = wxPyEmptyString ;
24044 wxString *arg8 = (wxString *) &arg8_defvalue ;
24045 wxString const &arg9_defvalue = wxPyEmptyString ;
24046 wxString *arg9 = (wxString *) &arg9_defvalue ;
24047 PyObject *arg10 = (PyObject *) NULL ;
24048 wxToolBarToolBase *result = 0 ;
24049 void *argp1 = 0 ;
24050 int res1 = 0 ;
24051 size_t val2 ;
24052 int ecode2 = 0 ;
24053 int val3 ;
24054 int ecode3 = 0 ;
24055 bool temp4 = false ;
24056 void *argp5 = 0 ;
24057 int res5 = 0 ;
24058 void *argp6 = 0 ;
24059 int res6 = 0 ;
24060 int val7 ;
24061 int ecode7 = 0 ;
24062 bool temp8 = false ;
24063 bool temp9 = false ;
24064 PyObject * obj0 = 0 ;
24065 PyObject * obj1 = 0 ;
24066 PyObject * obj2 = 0 ;
24067 PyObject * obj3 = 0 ;
24068 PyObject * obj4 = 0 ;
24069 PyObject * obj5 = 0 ;
24070 PyObject * obj6 = 0 ;
24071 PyObject * obj7 = 0 ;
24072 PyObject * obj8 = 0 ;
24073 PyObject * obj9 = 0 ;
24074 char * kwnames[] = {
24075 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24076 };
24077
24078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24080 if (!SWIG_IsOK(res1)) {
24081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24082 }
24083 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24084 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24085 if (!SWIG_IsOK(ecode2)) {
24086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24087 }
24088 arg2 = static_cast< size_t >(val2);
24089 ecode3 = SWIG_AsVal_int(obj2, &val3);
24090 if (!SWIG_IsOK(ecode3)) {
24091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24092 }
24093 arg3 = static_cast< int >(val3);
24094 {
24095 arg4 = wxString_in_helper(obj3);
24096 if (arg4 == NULL) SWIG_fail;
24097 temp4 = true;
24098 }
24099 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24100 if (!SWIG_IsOK(res5)) {
24101 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24102 }
24103 if (!argp5) {
24104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24105 }
24106 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24107 if (obj5) {
24108 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24109 if (!SWIG_IsOK(res6)) {
24110 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 24111 }
554f62e9
RD
24112 if (!argp6) {
24113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 24114 }
554f62e9
RD
24115 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24116 }
24117 if (obj6) {
24118 ecode7 = SWIG_AsVal_int(obj6, &val7);
24119 if (!SWIG_IsOK(ecode7)) {
24120 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24121 }
24122 arg7 = static_cast< wxItemKind >(val7);
24123 }
24124 if (obj7) {
d55e5bfc 24125 {
554f62e9
RD
24126 arg8 = wxString_in_helper(obj7);
24127 if (arg8 == NULL) SWIG_fail;
24128 temp8 = true;
d55e5bfc 24129 }
554f62e9
RD
24130 }
24131 if (obj8) {
d55e5bfc 24132 {
554f62e9
RD
24133 arg9 = wxString_in_helper(obj8);
24134 if (arg9 == NULL) SWIG_fail;
24135 temp9 = true;
d55e5bfc 24136 }
554f62e9
RD
24137 }
24138 if (obj9) {
24139 arg10 = obj9;
24140 }
24141 {
24142 PyThreadState* __tstate = wxPyBeginAllowThreads();
24143 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24144 wxPyEndAllowThreads(__tstate);
24145 if (PyErr_Occurred()) SWIG_fail;
24146 }
24147 {
24148 resultobj = wxPyMake_wxObject(result, (bool)0);
24149 }
24150 {
24151 if (temp4)
24152 delete arg4;
24153 }
24154 {
24155 if (temp8)
24156 delete arg8;
24157 }
24158 {
24159 if (temp9)
24160 delete arg9;
24161 }
24162 return resultobj;
24163fail:
24164 {
24165 if (temp4)
24166 delete arg4;
24167 }
24168 {
24169 if (temp8)
24170 delete arg8;
24171 }
24172 {
24173 if (temp9)
24174 delete arg9;
24175 }
24176 return NULL;
24177}
24178
24179
24180SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24181 PyObject *resultobj = 0;
24182 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24183 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24184 wxToolBarToolBase *result = 0 ;
24185 void *argp1 = 0 ;
24186 int res1 = 0 ;
24187 void *argp2 = 0 ;
24188 int res2 = 0 ;
24189 PyObject * obj0 = 0 ;
24190 PyObject * obj1 = 0 ;
24191 char * kwnames[] = {
24192 (char *) "self",(char *) "tool", NULL
24193 };
24194
24195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24197 if (!SWIG_IsOK(res1)) {
24198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24199 }
24200 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24201 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24202 if (!SWIG_IsOK(res2)) {
24203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24204 }
24205 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24206 {
24207 PyThreadState* __tstate = wxPyBeginAllowThreads();
24208 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24209 wxPyEndAllowThreads(__tstate);
24210 if (PyErr_Occurred()) SWIG_fail;
24211 }
24212 {
24213 resultobj = wxPyMake_wxObject(result, (bool)0);
24214 }
24215 return resultobj;
24216fail:
24217 return NULL;
24218}
24219
24220
24221SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24222 PyObject *resultobj = 0;
24223 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24224 size_t arg2 ;
24225 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24226 wxToolBarToolBase *result = 0 ;
24227 void *argp1 = 0 ;
24228 int res1 = 0 ;
24229 size_t val2 ;
24230 int ecode2 = 0 ;
24231 void *argp3 = 0 ;
24232 int res3 = 0 ;
24233 PyObject * obj0 = 0 ;
24234 PyObject * obj1 = 0 ;
24235 PyObject * obj2 = 0 ;
24236 char * kwnames[] = {
24237 (char *) "self",(char *) "pos",(char *) "tool", NULL
24238 };
24239
24240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24242 if (!SWIG_IsOK(res1)) {
24243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24244 }
24245 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24246 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24247 if (!SWIG_IsOK(ecode2)) {
24248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24249 }
24250 arg2 = static_cast< size_t >(val2);
24251 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24252 if (!SWIG_IsOK(res3)) {
24253 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24254 }
24255 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24256 {
24257 PyThreadState* __tstate = wxPyBeginAllowThreads();
24258 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24259 wxPyEndAllowThreads(__tstate);
24260 if (PyErr_Occurred()) SWIG_fail;
24261 }
24262 {
24263 resultobj = wxPyMake_wxObject(result, (bool)0);
24264 }
24265 return resultobj;
24266fail:
24267 return NULL;
24268}
24269
24270
24271SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24272 PyObject *resultobj = 0;
24273 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24274 wxControl *arg2 = (wxControl *) 0 ;
24275 wxToolBarToolBase *result = 0 ;
24276 void *argp1 = 0 ;
24277 int res1 = 0 ;
24278 void *argp2 = 0 ;
24279 int res2 = 0 ;
24280 PyObject * obj0 = 0 ;
24281 PyObject * obj1 = 0 ;
24282 char * kwnames[] = {
24283 (char *) "self",(char *) "control", NULL
24284 };
24285
24286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24288 if (!SWIG_IsOK(res1)) {
24289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24290 }
24291 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24292 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24293 if (!SWIG_IsOK(res2)) {
24294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24295 }
24296 arg2 = reinterpret_cast< wxControl * >(argp2);
24297 {
24298 PyThreadState* __tstate = wxPyBeginAllowThreads();
24299 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24300 wxPyEndAllowThreads(__tstate);
24301 if (PyErr_Occurred()) SWIG_fail;
24302 }
24303 {
24304 resultobj = wxPyMake_wxObject(result, (bool)0);
24305 }
24306 return resultobj;
24307fail:
24308 return NULL;
24309}
24310
24311
24312SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24313 PyObject *resultobj = 0;
24314 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24315 size_t arg2 ;
24316 wxControl *arg3 = (wxControl *) 0 ;
24317 wxToolBarToolBase *result = 0 ;
24318 void *argp1 = 0 ;
24319 int res1 = 0 ;
24320 size_t val2 ;
24321 int ecode2 = 0 ;
24322 void *argp3 = 0 ;
24323 int res3 = 0 ;
24324 PyObject * obj0 = 0 ;
24325 PyObject * obj1 = 0 ;
24326 PyObject * obj2 = 0 ;
24327 char * kwnames[] = {
24328 (char *) "self",(char *) "pos",(char *) "control", NULL
24329 };
24330
24331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24333 if (!SWIG_IsOK(res1)) {
24334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24335 }
24336 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24337 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24338 if (!SWIG_IsOK(ecode2)) {
24339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24340 }
24341 arg2 = static_cast< size_t >(val2);
24342 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24343 if (!SWIG_IsOK(res3)) {
24344 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24345 }
24346 arg3 = reinterpret_cast< wxControl * >(argp3);
24347 {
24348 PyThreadState* __tstate = wxPyBeginAllowThreads();
24349 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24350 wxPyEndAllowThreads(__tstate);
24351 if (PyErr_Occurred()) SWIG_fail;
24352 }
24353 {
24354 resultobj = wxPyMake_wxObject(result, (bool)0);
24355 }
24356 return resultobj;
24357fail:
24358 return NULL;
24359}
24360
24361
24362SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24363 PyObject *resultobj = 0;
24364 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24365 int arg2 ;
24366 wxControl *result = 0 ;
24367 void *argp1 = 0 ;
24368 int res1 = 0 ;
24369 int val2 ;
24370 int ecode2 = 0 ;
24371 PyObject * obj0 = 0 ;
24372 PyObject * obj1 = 0 ;
24373 char * kwnames[] = {
24374 (char *) "self",(char *) "id", NULL
24375 };
24376
24377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24379 if (!SWIG_IsOK(res1)) {
24380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24381 }
24382 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24383 ecode2 = SWIG_AsVal_int(obj1, &val2);
24384 if (!SWIG_IsOK(ecode2)) {
24385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24386 }
24387 arg2 = static_cast< int >(val2);
24388 {
24389 PyThreadState* __tstate = wxPyBeginAllowThreads();
24390 result = (wxControl *)(arg1)->FindControl(arg2);
24391 wxPyEndAllowThreads(__tstate);
24392 if (PyErr_Occurred()) SWIG_fail;
24393 }
24394 {
24395 resultobj = wxPyMake_wxObject(result, 0);
24396 }
24397 return resultobj;
24398fail:
24399 return NULL;
d55e5bfc
RD
24400}
24401
24402
554f62e9
RD
24403SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24404 PyObject *resultobj = 0;
24405 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24406 wxToolBarToolBase *result = 0 ;
24407 void *argp1 = 0 ;
24408 int res1 = 0 ;
24409 PyObject *swig_obj[1] ;
24410
24411 if (!args) SWIG_fail;
24412 swig_obj[0] = args;
24413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24414 if (!SWIG_IsOK(res1)) {
24415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24416 }
24417 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24418 {
24419 PyThreadState* __tstate = wxPyBeginAllowThreads();
24420 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24421 wxPyEndAllowThreads(__tstate);
24422 if (PyErr_Occurred()) SWIG_fail;
24423 }
24424 {
24425 resultobj = wxPyMake_wxObject(result, (bool)0);
24426 }
24427 return resultobj;
24428fail:
24429 return NULL;
24430}
24431
24432
24433SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24434 PyObject *resultobj = 0;
24435 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24436 size_t arg2 ;
24437 wxToolBarToolBase *result = 0 ;
24438 void *argp1 = 0 ;
24439 int res1 = 0 ;
24440 size_t val2 ;
24441 int ecode2 = 0 ;
24442 PyObject * obj0 = 0 ;
24443 PyObject * obj1 = 0 ;
24444 char * kwnames[] = {
24445 (char *) "self",(char *) "pos", NULL
24446 };
24447
24448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24450 if (!SWIG_IsOK(res1)) {
24451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24452 }
24453 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24454 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24455 if (!SWIG_IsOK(ecode2)) {
24456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24457 }
24458 arg2 = static_cast< size_t >(val2);
24459 {
24460 PyThreadState* __tstate = wxPyBeginAllowThreads();
24461 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24462 wxPyEndAllowThreads(__tstate);
24463 if (PyErr_Occurred()) SWIG_fail;
24464 }
24465 {
24466 resultobj = wxPyMake_wxObject(result, (bool)0);
24467 }
24468 return resultobj;
24469fail:
24470 return NULL;
24471}
24472
24473
24474SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24475 PyObject *resultobj = 0;
24476 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24477 int arg2 ;
24478 wxToolBarToolBase *result = 0 ;
24479 void *argp1 = 0 ;
24480 int res1 = 0 ;
24481 int val2 ;
24482 int ecode2 = 0 ;
24483 PyObject * obj0 = 0 ;
24484 PyObject * obj1 = 0 ;
24485 char * kwnames[] = {
24486 (char *) "self",(char *) "id", NULL
24487 };
24488
24489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24491 if (!SWIG_IsOK(res1)) {
24492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24493 }
24494 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24495 ecode2 = SWIG_AsVal_int(obj1, &val2);
24496 if (!SWIG_IsOK(ecode2)) {
24497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24498 }
24499 arg2 = static_cast< int >(val2);
24500 {
24501 PyThreadState* __tstate = wxPyBeginAllowThreads();
24502 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24503 wxPyEndAllowThreads(__tstate);
24504 if (PyErr_Occurred()) SWIG_fail;
24505 }
24506 {
24507 resultobj = wxPyMake_wxObject(result, (bool)0);
24508 }
24509 return resultobj;
24510fail:
24511 return NULL;
24512}
24513
24514
24515SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24516 PyObject *resultobj = 0;
24517 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24518 size_t arg2 ;
24519 bool result;
24520 void *argp1 = 0 ;
24521 int res1 = 0 ;
24522 size_t val2 ;
24523 int ecode2 = 0 ;
24524 PyObject * obj0 = 0 ;
24525 PyObject * obj1 = 0 ;
24526 char * kwnames[] = {
24527 (char *) "self",(char *) "pos", NULL
24528 };
24529
24530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24532 if (!SWIG_IsOK(res1)) {
24533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24534 }
24535 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24536 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24537 if (!SWIG_IsOK(ecode2)) {
24538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24539 }
24540 arg2 = static_cast< size_t >(val2);
24541 {
24542 PyThreadState* __tstate = wxPyBeginAllowThreads();
24543 result = (bool)(arg1)->DeleteToolByPos(arg2);
24544 wxPyEndAllowThreads(__tstate);
24545 if (PyErr_Occurred()) SWIG_fail;
24546 }
24547 {
24548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24549 }
24550 return resultobj;
24551fail:
24552 return NULL;
24553}
24554
24555
24556SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24557 PyObject *resultobj = 0;
24558 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24559 int arg2 ;
24560 bool result;
24561 void *argp1 = 0 ;
24562 int res1 = 0 ;
24563 int val2 ;
24564 int ecode2 = 0 ;
24565 PyObject * obj0 = 0 ;
24566 PyObject * obj1 = 0 ;
24567 char * kwnames[] = {
24568 (char *) "self",(char *) "id", NULL
24569 };
24570
24571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24573 if (!SWIG_IsOK(res1)) {
24574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24575 }
24576 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24577 ecode2 = SWIG_AsVal_int(obj1, &val2);
24578 if (!SWIG_IsOK(ecode2)) {
24579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24580 }
24581 arg2 = static_cast< int >(val2);
24582 {
24583 PyThreadState* __tstate = wxPyBeginAllowThreads();
24584 result = (bool)(arg1)->DeleteTool(arg2);
24585 wxPyEndAllowThreads(__tstate);
24586 if (PyErr_Occurred()) SWIG_fail;
24587 }
24588 {
24589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24590 }
24591 return resultobj;
24592fail:
24593 return NULL;
d55e5bfc
RD
24594}
24595
24596
554f62e9
RD
24597SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24598 PyObject *resultobj = 0;
24599 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24600 void *argp1 = 0 ;
24601 int res1 = 0 ;
24602 PyObject *swig_obj[1] ;
24603
24604 if (!args) SWIG_fail;
24605 swig_obj[0] = args;
24606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24607 if (!SWIG_IsOK(res1)) {
24608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24609 }
24610 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24611 {
24612 PyThreadState* __tstate = wxPyBeginAllowThreads();
24613 (arg1)->ClearTools();
24614 wxPyEndAllowThreads(__tstate);
24615 if (PyErr_Occurred()) SWIG_fail;
24616 }
24617 resultobj = SWIG_Py_Void();
24618 return resultobj;
24619fail:
24620 return NULL;
f20a2e1f
RD
24621}
24622
24623
554f62e9
RD
24624SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24625 PyObject *resultobj = 0;
24626 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24627 bool result;
24628 void *argp1 = 0 ;
24629 int res1 = 0 ;
24630 PyObject *swig_obj[1] ;
24631
24632 if (!args) SWIG_fail;
24633 swig_obj[0] = args;
24634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24635 if (!SWIG_IsOK(res1)) {
24636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24637 }
24638 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24639 {
24640 PyThreadState* __tstate = wxPyBeginAllowThreads();
24641 result = (bool)(arg1)->Realize();
24642 wxPyEndAllowThreads(__tstate);
24643 if (PyErr_Occurred()) SWIG_fail;
24644 }
24645 {
24646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24647 }
24648 return resultobj;
24649fail:
24650 return NULL;
24651}
24652
24653
24654SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24655 PyObject *resultobj = 0;
24656 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24657 int arg2 ;
24658 bool arg3 ;
24659 void *argp1 = 0 ;
24660 int res1 = 0 ;
24661 int val2 ;
24662 int ecode2 = 0 ;
24663 bool val3 ;
24664 int ecode3 = 0 ;
24665 PyObject * obj0 = 0 ;
24666 PyObject * obj1 = 0 ;
24667 PyObject * obj2 = 0 ;
24668 char * kwnames[] = {
24669 (char *) "self",(char *) "id",(char *) "enable", NULL
24670 };
24671
24672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24674 if (!SWIG_IsOK(res1)) {
24675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24676 }
24677 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24678 ecode2 = SWIG_AsVal_int(obj1, &val2);
24679 if (!SWIG_IsOK(ecode2)) {
24680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24681 }
24682 arg2 = static_cast< int >(val2);
24683 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24684 if (!SWIG_IsOK(ecode3)) {
24685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24686 }
24687 arg3 = static_cast< bool >(val3);
24688 {
24689 PyThreadState* __tstate = wxPyBeginAllowThreads();
24690 (arg1)->EnableTool(arg2,arg3);
24691 wxPyEndAllowThreads(__tstate);
24692 if (PyErr_Occurred()) SWIG_fail;
24693 }
24694 resultobj = SWIG_Py_Void();
24695 return resultobj;
24696fail:
24697 return NULL;
24698}
24699
24700
24701SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24702 PyObject *resultobj = 0;
24703 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24704 int arg2 ;
24705 bool arg3 ;
24706 void *argp1 = 0 ;
24707 int res1 = 0 ;
24708 int val2 ;
24709 int ecode2 = 0 ;
24710 bool val3 ;
24711 int ecode3 = 0 ;
24712 PyObject * obj0 = 0 ;
24713 PyObject * obj1 = 0 ;
24714 PyObject * obj2 = 0 ;
24715 char * kwnames[] = {
24716 (char *) "self",(char *) "id",(char *) "toggle", NULL
24717 };
24718
24719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24721 if (!SWIG_IsOK(res1)) {
24722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24723 }
24724 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24725 ecode2 = SWIG_AsVal_int(obj1, &val2);
24726 if (!SWIG_IsOK(ecode2)) {
24727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24728 }
24729 arg2 = static_cast< int >(val2);
24730 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24731 if (!SWIG_IsOK(ecode3)) {
24732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24733 }
24734 arg3 = static_cast< bool >(val3);
24735 {
24736 PyThreadState* __tstate = wxPyBeginAllowThreads();
24737 (arg1)->ToggleTool(arg2,arg3);
24738 wxPyEndAllowThreads(__tstate);
24739 if (PyErr_Occurred()) SWIG_fail;
24740 }
24741 resultobj = SWIG_Py_Void();
24742 return resultobj;
24743fail:
24744 return NULL;
24745}
24746
24747
24748SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24749 PyObject *resultobj = 0;
24750 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24751 int arg2 ;
24752 bool arg3 ;
24753 void *argp1 = 0 ;
24754 int res1 = 0 ;
24755 int val2 ;
24756 int ecode2 = 0 ;
24757 bool val3 ;
24758 int ecode3 = 0 ;
24759 PyObject * obj0 = 0 ;
24760 PyObject * obj1 = 0 ;
24761 PyObject * obj2 = 0 ;
24762 char * kwnames[] = {
24763 (char *) "self",(char *) "id",(char *) "toggle", NULL
24764 };
24765
24766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24768 if (!SWIG_IsOK(res1)) {
24769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24770 }
24771 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24772 ecode2 = SWIG_AsVal_int(obj1, &val2);
24773 if (!SWIG_IsOK(ecode2)) {
24774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24775 }
24776 arg2 = static_cast< int >(val2);
24777 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24778 if (!SWIG_IsOK(ecode3)) {
24779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24780 }
24781 arg3 = static_cast< bool >(val3);
24782 {
24783 PyThreadState* __tstate = wxPyBeginAllowThreads();
24784 (arg1)->SetToggle(arg2,arg3);
24785 wxPyEndAllowThreads(__tstate);
24786 if (PyErr_Occurred()) SWIG_fail;
24787 }
24788 resultobj = SWIG_Py_Void();
24789 return resultobj;
24790fail:
24791 return NULL;
24792}
24793
24794
24795SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24796 PyObject *resultobj = 0;
24797 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24798 int arg2 ;
24799 PyObject *result = 0 ;
24800 void *argp1 = 0 ;
24801 int res1 = 0 ;
24802 int val2 ;
24803 int ecode2 = 0 ;
24804 PyObject * obj0 = 0 ;
24805 PyObject * obj1 = 0 ;
24806 char * kwnames[] = {
24807 (char *) "self",(char *) "id", NULL
24808 };
24809
24810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24812 if (!SWIG_IsOK(res1)) {
24813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24814 }
24815 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24816 ecode2 = SWIG_AsVal_int(obj1, &val2);
24817 if (!SWIG_IsOK(ecode2)) {
24818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24819 }
24820 arg2 = static_cast< int >(val2);
24821 {
24822 PyThreadState* __tstate = wxPyBeginAllowThreads();
24823 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24824 wxPyEndAllowThreads(__tstate);
24825 if (PyErr_Occurred()) SWIG_fail;
24826 }
24827 resultobj = result;
24828 return resultobj;
24829fail:
24830 return NULL;
24831}
24832
24833
24834SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24835 PyObject *resultobj = 0;
24836 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24837 int arg2 ;
24838 PyObject *arg3 = (PyObject *) 0 ;
24839 void *argp1 = 0 ;
24840 int res1 = 0 ;
24841 int val2 ;
24842 int ecode2 = 0 ;
24843 PyObject * obj0 = 0 ;
24844 PyObject * obj1 = 0 ;
24845 PyObject * obj2 = 0 ;
24846 char * kwnames[] = {
24847 (char *) "self",(char *) "id",(char *) "clientData", NULL
24848 };
24849
24850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24852 if (!SWIG_IsOK(res1)) {
24853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24854 }
24855 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24856 ecode2 = SWIG_AsVal_int(obj1, &val2);
24857 if (!SWIG_IsOK(ecode2)) {
24858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24859 }
24860 arg2 = static_cast< int >(val2);
24861 arg3 = obj2;
24862 {
24863 PyThreadState* __tstate = wxPyBeginAllowThreads();
24864 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24865 wxPyEndAllowThreads(__tstate);
24866 if (PyErr_Occurred()) SWIG_fail;
24867 }
24868 resultobj = SWIG_Py_Void();
24869 return resultobj;
24870fail:
24871 return NULL;
24872}
24873
24874
24875SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24876 PyObject *resultobj = 0;
24877 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24878 int arg2 ;
24879 int result;
24880 void *argp1 = 0 ;
24881 int res1 = 0 ;
24882 int val2 ;
24883 int ecode2 = 0 ;
24884 PyObject * obj0 = 0 ;
24885 PyObject * obj1 = 0 ;
24886 char * kwnames[] = {
24887 (char *) "self",(char *) "id", NULL
24888 };
24889
24890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24892 if (!SWIG_IsOK(res1)) {
24893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24894 }
24895 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24896 ecode2 = SWIG_AsVal_int(obj1, &val2);
24897 if (!SWIG_IsOK(ecode2)) {
24898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24899 }
24900 arg2 = static_cast< int >(val2);
24901 {
24902 PyThreadState* __tstate = wxPyBeginAllowThreads();
24903 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24904 wxPyEndAllowThreads(__tstate);
24905 if (PyErr_Occurred()) SWIG_fail;
24906 }
24907 resultobj = SWIG_From_int(static_cast< int >(result));
24908 return resultobj;
24909fail:
24910 return NULL;
24911}
24912
24913
24914SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24915 PyObject *resultobj = 0;
24916 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24917 int arg2 ;
24918 bool result;
24919 void *argp1 = 0 ;
24920 int res1 = 0 ;
24921 int val2 ;
24922 int ecode2 = 0 ;
24923 PyObject * obj0 = 0 ;
24924 PyObject * obj1 = 0 ;
24925 char * kwnames[] = {
24926 (char *) "self",(char *) "id", NULL
24927 };
24928
24929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24931 if (!SWIG_IsOK(res1)) {
24932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24933 }
24934 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24935 ecode2 = SWIG_AsVal_int(obj1, &val2);
24936 if (!SWIG_IsOK(ecode2)) {
24937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24938 }
24939 arg2 = static_cast< int >(val2);
24940 {
24941 PyThreadState* __tstate = wxPyBeginAllowThreads();
24942 result = (bool)(arg1)->GetToolState(arg2);
24943 wxPyEndAllowThreads(__tstate);
24944 if (PyErr_Occurred()) SWIG_fail;
24945 }
24946 {
24947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24948 }
24949 return resultobj;
24950fail:
24951 return NULL;
24952}
24953
24954
24955SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24956 PyObject *resultobj = 0;
24957 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24958 int arg2 ;
24959 bool result;
24960 void *argp1 = 0 ;
24961 int res1 = 0 ;
24962 int val2 ;
24963 int ecode2 = 0 ;
24964 PyObject * obj0 = 0 ;
24965 PyObject * obj1 = 0 ;
24966 char * kwnames[] = {
24967 (char *) "self",(char *) "id", NULL
24968 };
24969
24970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24972 if (!SWIG_IsOK(res1)) {
24973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24974 }
24975 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24976 ecode2 = SWIG_AsVal_int(obj1, &val2);
24977 if (!SWIG_IsOK(ecode2)) {
24978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24979 }
24980 arg2 = static_cast< int >(val2);
24981 {
24982 PyThreadState* __tstate = wxPyBeginAllowThreads();
24983 result = (bool)(arg1)->GetToolEnabled(arg2);
24984 wxPyEndAllowThreads(__tstate);
24985 if (PyErr_Occurred()) SWIG_fail;
24986 }
24987 {
24988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24989 }
24990 return resultobj;
24991fail:
24992 return NULL;
24993}
24994
24995
24996SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24997 PyObject *resultobj = 0;
24998 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24999 int arg2 ;
25000 wxString *arg3 = 0 ;
25001 void *argp1 = 0 ;
25002 int res1 = 0 ;
25003 int val2 ;
25004 int ecode2 = 0 ;
25005 bool temp3 = false ;
25006 PyObject * obj0 = 0 ;
25007 PyObject * obj1 = 0 ;
25008 PyObject * obj2 = 0 ;
25009 char * kwnames[] = {
25010 (char *) "self",(char *) "id",(char *) "helpString", NULL
25011 };
25012
25013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) 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_SetToolShortHelp" "', 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_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25022 }
25023 arg2 = static_cast< int >(val2);
25024 {
25025 arg3 = wxString_in_helper(obj2);
25026 if (arg3 == NULL) SWIG_fail;
25027 temp3 = true;
25028 }
25029 {
25030 PyThreadState* __tstate = wxPyBeginAllowThreads();
25031 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
25032 wxPyEndAllowThreads(__tstate);
25033 if (PyErr_Occurred()) SWIG_fail;
25034 }
25035 resultobj = SWIG_Py_Void();
25036 {
25037 if (temp3)
25038 delete arg3;
25039 }
25040 return resultobj;
25041fail:
25042 {
25043 if (temp3)
25044 delete arg3;
25045 }
25046 return NULL;
25047}
25048
25049
25050SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25051 PyObject *resultobj = 0;
25052 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25053 int arg2 ;
25054 wxString result;
25055 void *argp1 = 0 ;
25056 int res1 = 0 ;
25057 int val2 ;
25058 int ecode2 = 0 ;
25059 PyObject * obj0 = 0 ;
25060 PyObject * obj1 = 0 ;
25061 char * kwnames[] = {
25062 (char *) "self",(char *) "id", NULL
25063 };
25064
25065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25067 if (!SWIG_IsOK(res1)) {
25068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25069 }
25070 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25071 ecode2 = SWIG_AsVal_int(obj1, &val2);
25072 if (!SWIG_IsOK(ecode2)) {
25073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25074 }
25075 arg2 = static_cast< int >(val2);
25076 {
25077 PyThreadState* __tstate = wxPyBeginAllowThreads();
25078 result = (arg1)->GetToolShortHelp(arg2);
25079 wxPyEndAllowThreads(__tstate);
25080 if (PyErr_Occurred()) SWIG_fail;
25081 }
25082 {
d55e5bfc 25083#if wxUSE_UNICODE
554f62e9 25084 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 25085#else
554f62e9 25086 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 25087#endif
554f62e9
RD
25088 }
25089 return resultobj;
25090fail:
25091 return NULL;
25092}
25093
25094
25095SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25096 PyObject *resultobj = 0;
25097 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25098 int arg2 ;
25099 wxString *arg3 = 0 ;
25100 void *argp1 = 0 ;
25101 int res1 = 0 ;
25102 int val2 ;
25103 int ecode2 = 0 ;
25104 bool temp3 = false ;
25105 PyObject * obj0 = 0 ;
25106 PyObject * obj1 = 0 ;
25107 PyObject * obj2 = 0 ;
25108 char * kwnames[] = {
25109 (char *) "self",(char *) "id",(char *) "helpString", NULL
25110 };
25111
25112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25114 if (!SWIG_IsOK(res1)) {
25115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25116 }
25117 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25118 ecode2 = SWIG_AsVal_int(obj1, &val2);
25119 if (!SWIG_IsOK(ecode2)) {
25120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25121 }
25122 arg2 = static_cast< int >(val2);
25123 {
25124 arg3 = wxString_in_helper(obj2);
25125 if (arg3 == NULL) SWIG_fail;
25126 temp3 = true;
25127 }
25128 {
25129 PyThreadState* __tstate = wxPyBeginAllowThreads();
25130 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25131 wxPyEndAllowThreads(__tstate);
25132 if (PyErr_Occurred()) SWIG_fail;
25133 }
25134 resultobj = SWIG_Py_Void();
25135 {
25136 if (temp3)
25137 delete arg3;
25138 }
25139 return resultobj;
25140fail:
25141 {
25142 if (temp3)
25143 delete arg3;
25144 }
25145 return NULL;
25146}
25147
25148
25149SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25150 PyObject *resultobj = 0;
25151 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25152 int arg2 ;
25153 wxString result;
25154 void *argp1 = 0 ;
25155 int res1 = 0 ;
25156 int val2 ;
25157 int ecode2 = 0 ;
25158 PyObject * obj0 = 0 ;
25159 PyObject * obj1 = 0 ;
25160 char * kwnames[] = {
25161 (char *) "self",(char *) "id", NULL
25162 };
25163
25164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25166 if (!SWIG_IsOK(res1)) {
25167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25168 }
25169 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25170 ecode2 = SWIG_AsVal_int(obj1, &val2);
25171 if (!SWIG_IsOK(ecode2)) {
25172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25173 }
25174 arg2 = static_cast< int >(val2);
25175 {
25176 PyThreadState* __tstate = wxPyBeginAllowThreads();
25177 result = (arg1)->GetToolLongHelp(arg2);
25178 wxPyEndAllowThreads(__tstate);
25179 if (PyErr_Occurred()) SWIG_fail;
25180 }
25181 {
25182#if wxUSE_UNICODE
25183 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25184#else
25185 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25186#endif
25187 }
25188 return resultobj;
25189fail:
25190 return NULL;
25191}
25192
25193
25194SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25195 PyObject *resultobj = 0;
25196 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25197 int arg2 ;
25198 int arg3 ;
25199 void *argp1 = 0 ;
25200 int res1 = 0 ;
25201 int val2 ;
25202 int ecode2 = 0 ;
25203 int val3 ;
25204 int ecode3 = 0 ;
25205 PyObject * obj0 = 0 ;
25206 PyObject * obj1 = 0 ;
25207 PyObject * obj2 = 0 ;
25208 char * kwnames[] = {
25209 (char *) "self",(char *) "x",(char *) "y", NULL
25210 };
25211
25212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25214 if (!SWIG_IsOK(res1)) {
25215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25216 }
25217 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25218 ecode2 = SWIG_AsVal_int(obj1, &val2);
25219 if (!SWIG_IsOK(ecode2)) {
25220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25221 }
25222 arg2 = static_cast< int >(val2);
25223 ecode3 = SWIG_AsVal_int(obj2, &val3);
25224 if (!SWIG_IsOK(ecode3)) {
25225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25226 }
25227 arg3 = static_cast< int >(val3);
25228 {
25229 PyThreadState* __tstate = wxPyBeginAllowThreads();
25230 (arg1)->SetMargins(arg2,arg3);
25231 wxPyEndAllowThreads(__tstate);
25232 if (PyErr_Occurred()) SWIG_fail;
25233 }
25234 resultobj = SWIG_Py_Void();
25235 return resultobj;
25236fail:
25237 return NULL;
25238}
25239
25240
25241SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25242 PyObject *resultobj = 0;
25243 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25244 wxSize *arg2 = 0 ;
25245 void *argp1 = 0 ;
25246 int res1 = 0 ;
25247 wxSize temp2 ;
25248 PyObject * obj0 = 0 ;
25249 PyObject * obj1 = 0 ;
25250 char * kwnames[] = {
25251 (char *) "self",(char *) "size", NULL
25252 };
25253
25254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25256 if (!SWIG_IsOK(res1)) {
25257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25258 }
25259 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25260 {
25261 arg2 = &temp2;
25262 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25263 }
25264 {
25265 PyThreadState* __tstate = wxPyBeginAllowThreads();
25266 (arg1)->SetMargins((wxSize const &)*arg2);
25267 wxPyEndAllowThreads(__tstate);
25268 if (PyErr_Occurred()) SWIG_fail;
25269 }
25270 resultobj = SWIG_Py_Void();
25271 return resultobj;
25272fail:
25273 return NULL;
25274}
25275
25276
25277SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25278 PyObject *resultobj = 0;
25279 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25280 int arg2 ;
25281 void *argp1 = 0 ;
25282 int res1 = 0 ;
25283 int val2 ;
25284 int ecode2 = 0 ;
25285 PyObject * obj0 = 0 ;
25286 PyObject * obj1 = 0 ;
25287 char * kwnames[] = {
25288 (char *) "self",(char *) "packing", NULL
25289 };
25290
25291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25293 if (!SWIG_IsOK(res1)) {
25294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25295 }
25296 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25297 ecode2 = SWIG_AsVal_int(obj1, &val2);
25298 if (!SWIG_IsOK(ecode2)) {
25299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25300 }
25301 arg2 = static_cast< int >(val2);
25302 {
25303 PyThreadState* __tstate = wxPyBeginAllowThreads();
25304 (arg1)->SetToolPacking(arg2);
25305 wxPyEndAllowThreads(__tstate);
25306 if (PyErr_Occurred()) SWIG_fail;
25307 }
25308 resultobj = SWIG_Py_Void();
25309 return resultobj;
25310fail:
25311 return NULL;
25312}
25313
25314
25315SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25316 PyObject *resultobj = 0;
25317 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25318 int arg2 ;
25319 void *argp1 = 0 ;
25320 int res1 = 0 ;
25321 int val2 ;
25322 int ecode2 = 0 ;
25323 PyObject * obj0 = 0 ;
25324 PyObject * obj1 = 0 ;
25325 char * kwnames[] = {
25326 (char *) "self",(char *) "separation", NULL
25327 };
25328
25329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25331 if (!SWIG_IsOK(res1)) {
25332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25333 }
25334 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25335 ecode2 = SWIG_AsVal_int(obj1, &val2);
25336 if (!SWIG_IsOK(ecode2)) {
25337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25338 }
25339 arg2 = static_cast< int >(val2);
25340 {
25341 PyThreadState* __tstate = wxPyBeginAllowThreads();
25342 (arg1)->SetToolSeparation(arg2);
25343 wxPyEndAllowThreads(__tstate);
25344 if (PyErr_Occurred()) SWIG_fail;
25345 }
25346 resultobj = SWIG_Py_Void();
25347 return resultobj;
25348fail:
25349 return NULL;
d55e5bfc
RD
25350}
25351
25352
554f62e9
RD
25353SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25354 PyObject *resultobj = 0;
25355 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25356 wxSize result;
25357 void *argp1 = 0 ;
25358 int res1 = 0 ;
25359 PyObject *swig_obj[1] ;
25360
25361 if (!args) SWIG_fail;
25362 swig_obj[0] = args;
25363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25364 if (!SWIG_IsOK(res1)) {
25365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25366 }
25367 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25368 {
25369 PyThreadState* __tstate = wxPyBeginAllowThreads();
25370 result = (arg1)->GetToolMargins();
25371 wxPyEndAllowThreads(__tstate);
25372 if (PyErr_Occurred()) SWIG_fail;
25373 }
25374 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25375 return resultobj;
25376fail:
25377 return NULL;
d55e5bfc
RD
25378}
25379
25380
554f62e9
RD
25381SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25382 PyObject *resultobj = 0;
25383 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25384 wxSize result;
25385 void *argp1 = 0 ;
25386 int res1 = 0 ;
25387 PyObject *swig_obj[1] ;
25388
25389 if (!args) SWIG_fail;
25390 swig_obj[0] = args;
25391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25392 if (!SWIG_IsOK(res1)) {
25393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25394 }
25395 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25396 {
25397 PyThreadState* __tstate = wxPyBeginAllowThreads();
25398 result = (arg1)->GetMargins();
25399 wxPyEndAllowThreads(__tstate);
25400 if (PyErr_Occurred()) SWIG_fail;
25401 }
25402 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25403 return resultobj;
25404fail:
25405 return NULL;
d55e5bfc
RD
25406}
25407
25408
554f62e9
RD
25409SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25410 PyObject *resultobj = 0;
25411 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25412 int result;
25413 void *argp1 = 0 ;
25414 int res1 = 0 ;
25415 PyObject *swig_obj[1] ;
25416
25417 if (!args) SWIG_fail;
25418 swig_obj[0] = args;
25419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25420 if (!SWIG_IsOK(res1)) {
25421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25422 }
25423 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25424 {
25425 PyThreadState* __tstate = wxPyBeginAllowThreads();
25426 result = (int)(arg1)->GetToolPacking();
25427 wxPyEndAllowThreads(__tstate);
25428 if (PyErr_Occurred()) SWIG_fail;
25429 }
25430 resultobj = SWIG_From_int(static_cast< int >(result));
25431 return resultobj;
25432fail:
25433 return NULL;
d55e5bfc
RD
25434}
25435
25436
554f62e9
RD
25437SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25438 PyObject *resultobj = 0;
25439 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25440 int result;
25441 void *argp1 = 0 ;
25442 int res1 = 0 ;
25443 PyObject *swig_obj[1] ;
25444
25445 if (!args) SWIG_fail;
25446 swig_obj[0] = args;
25447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25448 if (!SWIG_IsOK(res1)) {
25449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25450 }
25451 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25452 {
25453 PyThreadState* __tstate = wxPyBeginAllowThreads();
25454 result = (int)(arg1)->GetToolSeparation();
25455 wxPyEndAllowThreads(__tstate);
25456 if (PyErr_Occurred()) SWIG_fail;
25457 }
25458 resultobj = SWIG_From_int(static_cast< int >(result));
25459 return resultobj;
25460fail:
25461 return NULL;
25462}
25463
25464
25465SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25466 PyObject *resultobj = 0;
25467 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25468 int arg2 ;
25469 void *argp1 = 0 ;
25470 int res1 = 0 ;
25471 int val2 ;
25472 int ecode2 = 0 ;
25473 PyObject * obj0 = 0 ;
25474 PyObject * obj1 = 0 ;
25475 char * kwnames[] = {
25476 (char *) "self",(char *) "nRows", NULL
25477 };
25478
25479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25481 if (!SWIG_IsOK(res1)) {
25482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25483 }
25484 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25485 ecode2 = SWIG_AsVal_int(obj1, &val2);
25486 if (!SWIG_IsOK(ecode2)) {
25487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25488 }
25489 arg2 = static_cast< int >(val2);
25490 {
25491 PyThreadState* __tstate = wxPyBeginAllowThreads();
25492 (arg1)->SetRows(arg2);
25493 wxPyEndAllowThreads(__tstate);
25494 if (PyErr_Occurred()) SWIG_fail;
25495 }
25496 resultobj = SWIG_Py_Void();
25497 return resultobj;
25498fail:
25499 return NULL;
25500}
25501
25502
25503SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25504 PyObject *resultobj = 0;
25505 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25506 int arg2 ;
25507 int arg3 ;
25508 void *argp1 = 0 ;
25509 int res1 = 0 ;
25510 int val2 ;
25511 int ecode2 = 0 ;
25512 int val3 ;
25513 int ecode3 = 0 ;
25514 PyObject * obj0 = 0 ;
25515 PyObject * obj1 = 0 ;
25516 PyObject * obj2 = 0 ;
25517 char * kwnames[] = {
25518 (char *) "self",(char *) "rows",(char *) "cols", NULL
25519 };
25520
25521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25523 if (!SWIG_IsOK(res1)) {
25524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25525 }
25526 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25527 ecode2 = SWIG_AsVal_int(obj1, &val2);
25528 if (!SWIG_IsOK(ecode2)) {
25529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25530 }
25531 arg2 = static_cast< int >(val2);
25532 ecode3 = SWIG_AsVal_int(obj2, &val3);
25533 if (!SWIG_IsOK(ecode3)) {
25534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25535 }
25536 arg3 = static_cast< int >(val3);
25537 {
25538 PyThreadState* __tstate = wxPyBeginAllowThreads();
25539 (arg1)->SetMaxRowsCols(arg2,arg3);
25540 wxPyEndAllowThreads(__tstate);
25541 if (PyErr_Occurred()) SWIG_fail;
25542 }
25543 resultobj = SWIG_Py_Void();
25544 return resultobj;
25545fail:
25546 return NULL;
d55e5bfc
RD
25547}
25548
25549
554f62e9
RD
25550SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25551 PyObject *resultobj = 0;
25552 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25553 int result;
25554 void *argp1 = 0 ;
25555 int res1 = 0 ;
25556 PyObject *swig_obj[1] ;
25557
25558 if (!args) SWIG_fail;
25559 swig_obj[0] = args;
25560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25561 if (!SWIG_IsOK(res1)) {
25562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25563 }
25564 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25565 {
25566 PyThreadState* __tstate = wxPyBeginAllowThreads();
25567 result = (int)(arg1)->GetMaxRows();
25568 wxPyEndAllowThreads(__tstate);
25569 if (PyErr_Occurred()) SWIG_fail;
25570 }
25571 resultobj = SWIG_From_int(static_cast< int >(result));
25572 return resultobj;
25573fail:
25574 return NULL;
d55e5bfc
RD
25575}
25576
25577
554f62e9
RD
25578SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25579 PyObject *resultobj = 0;
25580 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25581 int result;
25582 void *argp1 = 0 ;
25583 int res1 = 0 ;
25584 PyObject *swig_obj[1] ;
25585
25586 if (!args) SWIG_fail;
25587 swig_obj[0] = args;
25588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25589 if (!SWIG_IsOK(res1)) {
25590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25591 }
25592 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25593 {
25594 PyThreadState* __tstate = wxPyBeginAllowThreads();
25595 result = (int)(arg1)->GetMaxCols();
25596 wxPyEndAllowThreads(__tstate);
25597 if (PyErr_Occurred()) SWIG_fail;
25598 }
25599 resultobj = SWIG_From_int(static_cast< int >(result));
25600 return resultobj;
25601fail:
25602 return NULL;
25603}
25604
25605
25606SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25607 PyObject *resultobj = 0;
25608 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25609 wxSize *arg2 = 0 ;
25610 void *argp1 = 0 ;
25611 int res1 = 0 ;
25612 wxSize temp2 ;
25613 PyObject * obj0 = 0 ;
25614 PyObject * obj1 = 0 ;
25615 char * kwnames[] = {
25616 (char *) "self",(char *) "size", NULL
25617 };
25618
25619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25621 if (!SWIG_IsOK(res1)) {
25622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25623 }
25624 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25625 {
25626 arg2 = &temp2;
25627 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25628 }
25629 {
25630 PyThreadState* __tstate = wxPyBeginAllowThreads();
25631 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25632 wxPyEndAllowThreads(__tstate);
25633 if (PyErr_Occurred()) SWIG_fail;
25634 }
25635 resultobj = SWIG_Py_Void();
25636 return resultobj;
25637fail:
25638 return NULL;
d55e5bfc
RD
25639}
25640
25641
554f62e9
RD
25642SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25643 PyObject *resultobj = 0;
25644 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25645 wxSize result;
25646 void *argp1 = 0 ;
25647 int res1 = 0 ;
25648 PyObject *swig_obj[1] ;
25649
25650 if (!args) SWIG_fail;
25651 swig_obj[0] = args;
25652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25653 if (!SWIG_IsOK(res1)) {
25654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25655 }
25656 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25657 {
25658 PyThreadState* __tstate = wxPyBeginAllowThreads();
25659 result = (arg1)->GetToolBitmapSize();
25660 wxPyEndAllowThreads(__tstate);
25661 if (PyErr_Occurred()) SWIG_fail;
25662 }
25663 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25664 return resultobj;
25665fail:
25666 return NULL;
d55e5bfc
RD
25667}
25668
25669
554f62e9
RD
25670SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25671 PyObject *resultobj = 0;
25672 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25673 wxSize result;
25674 void *argp1 = 0 ;
25675 int res1 = 0 ;
25676 PyObject *swig_obj[1] ;
25677
25678 if (!args) SWIG_fail;
25679 swig_obj[0] = args;
25680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25681 if (!SWIG_IsOK(res1)) {
25682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25683 }
25684 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25685 {
25686 PyThreadState* __tstate = wxPyBeginAllowThreads();
25687 result = (arg1)->GetToolSize();
25688 wxPyEndAllowThreads(__tstate);
25689 if (PyErr_Occurred()) SWIG_fail;
25690 }
25691 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25692 return resultobj;
25693fail:
25694 return NULL;
25695}
25696
25697
25698SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25699 PyObject *resultobj = 0;
25700 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25701 int arg2 ;
25702 int arg3 ;
25703 wxToolBarToolBase *result = 0 ;
25704 void *argp1 = 0 ;
25705 int res1 = 0 ;
25706 int val2 ;
25707 int ecode2 = 0 ;
25708 int val3 ;
25709 int ecode3 = 0 ;
25710 PyObject * obj0 = 0 ;
25711 PyObject * obj1 = 0 ;
25712 PyObject * obj2 = 0 ;
25713 char * kwnames[] = {
25714 (char *) "self",(char *) "x",(char *) "y", NULL
25715 };
25716
25717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25719 if (!SWIG_IsOK(res1)) {
25720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25721 }
25722 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25723 ecode2 = SWIG_AsVal_int(obj1, &val2);
25724 if (!SWIG_IsOK(ecode2)) {
25725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25726 }
25727 arg2 = static_cast< int >(val2);
25728 ecode3 = SWIG_AsVal_int(obj2, &val3);
25729 if (!SWIG_IsOK(ecode3)) {
25730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25731 }
25732 arg3 = static_cast< int >(val3);
25733 {
25734 PyThreadState* __tstate = wxPyBeginAllowThreads();
25735 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25736 wxPyEndAllowThreads(__tstate);
25737 if (PyErr_Occurred()) SWIG_fail;
25738 }
25739 {
25740 resultobj = wxPyMake_wxObject(result, (bool)0);
25741 }
25742 return resultobj;
25743fail:
25744 return NULL;
25745}
25746
25747
25748SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25749 PyObject *resultobj = 0;
25750 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25751 int arg2 ;
25752 wxToolBarToolBase *result = 0 ;
25753 void *argp1 = 0 ;
25754 int res1 = 0 ;
25755 int val2 ;
25756 int ecode2 = 0 ;
25757 PyObject * obj0 = 0 ;
25758 PyObject * obj1 = 0 ;
25759 char * kwnames[] = {
25760 (char *) "self",(char *) "toolid", NULL
25761 };
25762
25763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25765 if (!SWIG_IsOK(res1)) {
25766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25767 }
25768 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25769 ecode2 = SWIG_AsVal_int(obj1, &val2);
25770 if (!SWIG_IsOK(ecode2)) {
25771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25772 }
25773 arg2 = static_cast< int >(val2);
25774 {
25775 PyThreadState* __tstate = wxPyBeginAllowThreads();
25776 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25777 wxPyEndAllowThreads(__tstate);
25778 if (PyErr_Occurred()) SWIG_fail;
25779 }
25780 {
25781 resultobj = wxPyMake_wxObject(result, (bool)0);
25782 }
25783 return resultobj;
25784fail:
25785 return NULL;
d55e5bfc
RD
25786}
25787
25788
554f62e9
RD
25789SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25790 PyObject *resultobj = 0;
25791 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25792 bool result;
25793 void *argp1 = 0 ;
25794 int res1 = 0 ;
25795 PyObject *swig_obj[1] ;
25796
25797 if (!args) SWIG_fail;
25798 swig_obj[0] = args;
25799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25800 if (!SWIG_IsOK(res1)) {
25801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25802 }
25803 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25804 {
25805 PyThreadState* __tstate = wxPyBeginAllowThreads();
25806 result = (bool)(arg1)->IsVertical();
25807 wxPyEndAllowThreads(__tstate);
25808 if (PyErr_Occurred()) SWIG_fail;
25809 }
25810 {
25811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25812 }
25813 return resultobj;
25814fail:
25815 return NULL;
d55e5bfc
RD
25816}
25817
25818
554f62e9
RD
25819SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25820 PyObject *resultobj = 0;
25821 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25822 size_t result;
25823 void *argp1 = 0 ;
25824 int res1 = 0 ;
25825 PyObject *swig_obj[1] ;
25826
25827 if (!args) SWIG_fail;
25828 swig_obj[0] = args;
25829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25830 if (!SWIG_IsOK(res1)) {
25831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25832 }
25833 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25834 {
25835 PyThreadState* __tstate = wxPyBeginAllowThreads();
25836 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25837 wxPyEndAllowThreads(__tstate);
25838 if (PyErr_Occurred()) SWIG_fail;
25839 }
25840 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25841 return resultobj;
25842fail:
25843 return NULL;
25844}
25845
25846
25847SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25848 PyObject *obj;
25849 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25850 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25851 return SWIG_Py_Void();
25852}
25853
25854SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25855 PyObject *resultobj = 0;
25856 wxWindow *arg1 = (wxWindow *) 0 ;
25857 int arg2 = (int) -1 ;
25858 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25859 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25860 wxSize const &arg4_defvalue = wxDefaultSize ;
25861 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25862 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25863 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25864 wxString *arg6 = (wxString *) &arg6_defvalue ;
25865 wxToolBar *result = 0 ;
25866 void *argp1 = 0 ;
25867 int res1 = 0 ;
25868 int val2 ;
25869 int ecode2 = 0 ;
25870 wxPoint temp3 ;
25871 wxSize temp4 ;
25872 long val5 ;
25873 int ecode5 = 0 ;
25874 bool temp6 = false ;
25875 PyObject * obj0 = 0 ;
25876 PyObject * obj1 = 0 ;
25877 PyObject * obj2 = 0 ;
25878 PyObject * obj3 = 0 ;
25879 PyObject * obj4 = 0 ;
25880 PyObject * obj5 = 0 ;
25881 char * kwnames[] = {
25882 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25883 };
25884
25885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25887 if (!SWIG_IsOK(res1)) {
25888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25889 }
25890 arg1 = reinterpret_cast< wxWindow * >(argp1);
25891 if (obj1) {
25892 ecode2 = SWIG_AsVal_int(obj1, &val2);
25893 if (!SWIG_IsOK(ecode2)) {
25894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25895 }
25896 arg2 = static_cast< int >(val2);
25897 }
25898 if (obj2) {
d55e5bfc 25899 {
554f62e9
RD
25900 arg3 = &temp3;
25901 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 25902 }
554f62e9
RD
25903 }
25904 if (obj3) {
093d3ff1 25905 {
554f62e9
RD
25906 arg4 = &temp4;
25907 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 25908 }
554f62e9
RD
25909 }
25910 if (obj4) {
25911 ecode5 = SWIG_AsVal_long(obj4, &val5);
25912 if (!SWIG_IsOK(ecode5)) {
25913 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25914 }
25915 arg5 = static_cast< long >(val5);
25916 }
25917 if (obj5) {
d55e5bfc 25918 {
554f62e9
RD
25919 arg6 = wxString_in_helper(obj5);
25920 if (arg6 == NULL) SWIG_fail;
25921 temp6 = true;
d55e5bfc 25922 }
554f62e9
RD
25923 }
25924 {
25925 if (!wxPyCheckForApp()) SWIG_fail;
25926 PyThreadState* __tstate = wxPyBeginAllowThreads();
25927 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25928 wxPyEndAllowThreads(__tstate);
25929 if (PyErr_Occurred()) SWIG_fail;
25930 }
25931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25932 {
25933 if (temp6)
25934 delete arg6;
25935 }
25936 return resultobj;
25937fail:
25938 {
25939 if (temp6)
25940 delete arg6;
25941 }
25942 return NULL;
d55e5bfc
RD
25943}
25944
25945
554f62e9
RD
25946SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25947 PyObject *resultobj = 0;
25948 wxToolBar *result = 0 ;
25949
25950 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25951 {
25952 if (!wxPyCheckForApp()) SWIG_fail;
25953 PyThreadState* __tstate = wxPyBeginAllowThreads();
25954 result = (wxToolBar *)new wxToolBar();
25955 wxPyEndAllowThreads(__tstate);
25956 if (PyErr_Occurred()) SWIG_fail;
25957 }
25958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25959 return resultobj;
25960fail:
25961 return NULL;
25962}
25963
25964
25965SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25966 PyObject *resultobj = 0;
25967 wxToolBar *arg1 = (wxToolBar *) 0 ;
25968 wxWindow *arg2 = (wxWindow *) 0 ;
25969 int arg3 = (int) -1 ;
25970 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25971 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25972 wxSize const &arg5_defvalue = wxDefaultSize ;
25973 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25974 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25975 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25976 wxString *arg7 = (wxString *) &arg7_defvalue ;
25977 bool result;
25978 void *argp1 = 0 ;
25979 int res1 = 0 ;
25980 void *argp2 = 0 ;
25981 int res2 = 0 ;
25982 int val3 ;
25983 int ecode3 = 0 ;
25984 wxPoint temp4 ;
25985 wxSize temp5 ;
25986 long val6 ;
25987 int ecode6 = 0 ;
25988 bool temp7 = false ;
25989 PyObject * obj0 = 0 ;
25990 PyObject * obj1 = 0 ;
25991 PyObject * obj2 = 0 ;
25992 PyObject * obj3 = 0 ;
25993 PyObject * obj4 = 0 ;
25994 PyObject * obj5 = 0 ;
25995 PyObject * obj6 = 0 ;
25996 char * kwnames[] = {
25997 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25998 };
25999
26000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26002 if (!SWIG_IsOK(res1)) {
26003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
26004 }
26005 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26006 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26007 if (!SWIG_IsOK(res2)) {
26008 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
26009 }
26010 arg2 = reinterpret_cast< wxWindow * >(argp2);
26011 if (obj2) {
26012 ecode3 = SWIG_AsVal_int(obj2, &val3);
26013 if (!SWIG_IsOK(ecode3)) {
26014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
26015 }
26016 arg3 = static_cast< int >(val3);
26017 }
26018 if (obj3) {
d55e5bfc 26019 {
554f62e9
RD
26020 arg4 = &temp4;
26021 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 26022 }
554f62e9
RD
26023 }
26024 if (obj4) {
093d3ff1 26025 {
554f62e9
RD
26026 arg5 = &temp5;
26027 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 26028 }
554f62e9
RD
26029 }
26030 if (obj5) {
26031 ecode6 = SWIG_AsVal_long(obj5, &val6);
26032 if (!SWIG_IsOK(ecode6)) {
26033 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
26034 }
26035 arg6 = static_cast< long >(val6);
26036 }
26037 if (obj6) {
26038 {
26039 arg7 = wxString_in_helper(obj6);
26040 if (arg7 == NULL) SWIG_fail;
26041 temp7 = true;
26042 }
26043 }
26044 {
26045 PyThreadState* __tstate = wxPyBeginAllowThreads();
26046 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
26047 wxPyEndAllowThreads(__tstate);
26048 if (PyErr_Occurred()) SWIG_fail;
26049 }
26050 {
26051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26052 }
26053 {
26054 if (temp7)
26055 delete arg7;
26056 }
26057 return resultobj;
26058fail:
26059 {
26060 if (temp7)
26061 delete arg7;
26062 }
26063 return NULL;
26064}
26065
26066
554f62e9
RD
26067SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26068 PyObject *resultobj = 0;
26069 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
26070 SwigValueWrapper<wxVisualAttributes > result;
26071 int val1 ;
26072 int ecode1 = 0 ;
26073 PyObject * obj0 = 0 ;
26074 char * kwnames[] = {
26075 (char *) "variant", NULL
26076 };
26077
26078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
26079 if (obj0) {
26080 ecode1 = SWIG_AsVal_int(obj0, &val1);
26081 if (!SWIG_IsOK(ecode1)) {
26082 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
26083 }
26084 arg1 = static_cast< wxWindowVariant >(val1);
26085 }
26086 {
26087 if (!wxPyCheckForApp()) SWIG_fail;
26088 PyThreadState* __tstate = wxPyBeginAllowThreads();
26089 result = wxToolBar::GetClassDefaultAttributes(arg1);
26090 wxPyEndAllowThreads(__tstate);
26091 if (PyErr_Occurred()) SWIG_fail;
26092 }
26093 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26094 return resultobj;
26095fail:
26096 return NULL;
d55e5bfc
RD
26097}
26098
26099
554f62e9
RD
26100SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26101 PyObject *obj;
26102 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26103 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26104 return SWIG_Py_Void();
d55e5bfc
RD
26105}
26106
554f62e9
RD
26107SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26108 return SWIG_Python_InitShadowInstance(args);
26109}
d55e5bfc 26110
554f62e9
RD
26111SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26112 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26113 return 1;
d55e5bfc
RD
26114}
26115
26116
554f62e9
RD
26117SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26118 PyObject *pyobj = 0;
26119
26120 {
26121#if wxUSE_UNICODE
26122 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26123#else
26124 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26125#endif
26126 }
26127 return pyobj;
26128}
26129
26130
26131SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26132 PyObject *resultobj = 0;
26133 wxColour const &arg1_defvalue = wxNullColour ;
26134 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26135 wxColour const &arg2_defvalue = wxNullColour ;
26136 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26137 wxFont const &arg3_defvalue = wxNullFont ;
26138 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26139 wxListItemAttr *result = 0 ;
26140 wxColour temp1 ;
26141 wxColour temp2 ;
26142 void *argp3 = 0 ;
26143 int res3 = 0 ;
26144 PyObject * obj0 = 0 ;
26145 PyObject * obj1 = 0 ;
26146 PyObject * obj2 = 0 ;
26147 char * kwnames[] = {
26148 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26149 };
26150
26151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26152 if (obj0) {
093d3ff1 26153 {
554f62e9
RD
26154 arg1 = &temp1;
26155 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 26156 }
554f62e9
RD
26157 }
26158 if (obj1) {
d55e5bfc 26159 {
554f62e9
RD
26160 arg2 = &temp2;
26161 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 26162 }
554f62e9
RD
26163 }
26164 if (obj2) {
26165 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26166 if (!SWIG_IsOK(res3)) {
26167 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26168 }
26169 if (!argp3) {
26170 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26171 }
26172 arg3 = reinterpret_cast< wxFont * >(argp3);
26173 }
26174 {
26175 PyThreadState* __tstate = wxPyBeginAllowThreads();
26176 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26177 wxPyEndAllowThreads(__tstate);
26178 if (PyErr_Occurred()) SWIG_fail;
26179 }
26180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26181 return resultobj;
26182fail:
26183 return NULL;
d55e5bfc
RD
26184}
26185
26186
554f62e9
RD
26187SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26188 PyObject *resultobj = 0;
26189 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26190 void *argp1 = 0 ;
26191 int res1 = 0 ;
26192 PyObject *swig_obj[1] ;
26193
26194 if (!args) SWIG_fail;
26195 swig_obj[0] = args;
26196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26197 if (!SWIG_IsOK(res1)) {
26198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26199 }
26200 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26201 {
26202 PyThreadState* __tstate = wxPyBeginAllowThreads();
26203 delete arg1;
d55e5bfc 26204
554f62e9
RD
26205 wxPyEndAllowThreads(__tstate);
26206 if (PyErr_Occurred()) SWIG_fail;
26207 }
26208 resultobj = SWIG_Py_Void();
26209 return resultobj;
26210fail:
26211 return NULL;
26212}
26213
26214
26215SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26216 PyObject *resultobj = 0;
26217 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26218 wxColour *arg2 = 0 ;
26219 void *argp1 = 0 ;
26220 int res1 = 0 ;
26221 wxColour temp2 ;
26222 PyObject * obj0 = 0 ;
26223 PyObject * obj1 = 0 ;
26224 char * kwnames[] = {
26225 (char *) "self",(char *) "colText", NULL
26226 };
26227
26228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26230 if (!SWIG_IsOK(res1)) {
26231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26232 }
26233 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26234 {
26235 arg2 = &temp2;
26236 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26237 }
26238 {
26239 PyThreadState* __tstate = wxPyBeginAllowThreads();
26240 (arg1)->SetTextColour((wxColour const &)*arg2);
26241 wxPyEndAllowThreads(__tstate);
26242 if (PyErr_Occurred()) SWIG_fail;
26243 }
26244 resultobj = SWIG_Py_Void();
26245 return resultobj;
26246fail:
26247 return NULL;
26248}
26249
26250
26251SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26252 PyObject *resultobj = 0;
26253 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26254 wxColour *arg2 = 0 ;
26255 void *argp1 = 0 ;
26256 int res1 = 0 ;
26257 wxColour temp2 ;
26258 PyObject * obj0 = 0 ;
26259 PyObject * obj1 = 0 ;
26260 char * kwnames[] = {
26261 (char *) "self",(char *) "colBack", NULL
26262 };
26263
26264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26266 if (!SWIG_IsOK(res1)) {
26267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26268 }
26269 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26270 {
26271 arg2 = &temp2;
26272 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26273 }
26274 {
26275 PyThreadState* __tstate = wxPyBeginAllowThreads();
26276 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26277 wxPyEndAllowThreads(__tstate);
26278 if (PyErr_Occurred()) SWIG_fail;
26279 }
26280 resultobj = SWIG_Py_Void();
26281 return resultobj;
26282fail:
26283 return NULL;
26284}
26285
26286
26287SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26288 PyObject *resultobj = 0;
26289 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26290 wxFont *arg2 = 0 ;
26291 void *argp1 = 0 ;
26292 int res1 = 0 ;
26293 void *argp2 = 0 ;
26294 int res2 = 0 ;
26295 PyObject * obj0 = 0 ;
26296 PyObject * obj1 = 0 ;
26297 char * kwnames[] = {
26298 (char *) "self",(char *) "font", NULL
26299 };
26300
26301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26303 if (!SWIG_IsOK(res1)) {
26304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26305 }
26306 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26307 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26308 if (!SWIG_IsOK(res2)) {
26309 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26310 }
26311 if (!argp2) {
26312 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26313 }
26314 arg2 = reinterpret_cast< wxFont * >(argp2);
26315 {
26316 PyThreadState* __tstate = wxPyBeginAllowThreads();
26317 (arg1)->SetFont((wxFont const &)*arg2);
26318 wxPyEndAllowThreads(__tstate);
26319 if (PyErr_Occurred()) SWIG_fail;
26320 }
26321 resultobj = SWIG_Py_Void();
26322 return resultobj;
26323fail:
26324 return NULL;
d55e5bfc
RD
26325}
26326
26327
554f62e9
RD
26328SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26329 PyObject *resultobj = 0;
26330 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26331 bool result;
26332 void *argp1 = 0 ;
26333 int res1 = 0 ;
26334 PyObject *swig_obj[1] ;
26335
26336 if (!args) SWIG_fail;
26337 swig_obj[0] = args;
26338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26339 if (!SWIG_IsOK(res1)) {
26340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26341 }
26342 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26343 {
26344 PyThreadState* __tstate = wxPyBeginAllowThreads();
26345 result = (bool)(arg1)->HasTextColour();
26346 wxPyEndAllowThreads(__tstate);
26347 if (PyErr_Occurred()) SWIG_fail;
26348 }
26349 {
26350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26351 }
26352 return resultobj;
26353fail:
26354 return NULL;
d55e5bfc
RD
26355}
26356
26357
554f62e9
RD
26358SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26359 PyObject *resultobj = 0;
26360 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26361 bool result;
26362 void *argp1 = 0 ;
26363 int res1 = 0 ;
26364 PyObject *swig_obj[1] ;
26365
26366 if (!args) SWIG_fail;
26367 swig_obj[0] = args;
26368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26369 if (!SWIG_IsOK(res1)) {
26370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26371 }
26372 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26373 {
26374 PyThreadState* __tstate = wxPyBeginAllowThreads();
26375 result = (bool)(arg1)->HasBackgroundColour();
26376 wxPyEndAllowThreads(__tstate);
26377 if (PyErr_Occurred()) SWIG_fail;
26378 }
26379 {
26380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26381 }
26382 return resultobj;
26383fail:
26384 return NULL;
d55e5bfc
RD
26385}
26386
26387
554f62e9
RD
26388SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26389 PyObject *resultobj = 0;
26390 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26391 bool result;
26392 void *argp1 = 0 ;
26393 int res1 = 0 ;
26394 PyObject *swig_obj[1] ;
26395
26396 if (!args) SWIG_fail;
26397 swig_obj[0] = args;
26398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26399 if (!SWIG_IsOK(res1)) {
26400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26401 }
26402 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26403 {
26404 PyThreadState* __tstate = wxPyBeginAllowThreads();
26405 result = (bool)(arg1)->HasFont();
26406 wxPyEndAllowThreads(__tstate);
26407 if (PyErr_Occurred()) SWIG_fail;
26408 }
26409 {
26410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26411 }
26412 return resultobj;
26413fail:
26414 return NULL;
d55e5bfc
RD
26415}
26416
26417
554f62e9
RD
26418SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26419 PyObject *resultobj = 0;
26420 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26421 wxColour result;
26422 void *argp1 = 0 ;
26423 int res1 = 0 ;
26424 PyObject *swig_obj[1] ;
26425
26426 if (!args) SWIG_fail;
26427 swig_obj[0] = args;
26428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26429 if (!SWIG_IsOK(res1)) {
26430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26431 }
26432 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26433 {
26434 PyThreadState* __tstate = wxPyBeginAllowThreads();
26435 result = (arg1)->GetTextColour();
26436 wxPyEndAllowThreads(__tstate);
26437 if (PyErr_Occurred()) SWIG_fail;
26438 }
26439 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26440 return resultobj;
26441fail:
26442 return NULL;
d55e5bfc
RD
26443}
26444
26445
554f62e9
RD
26446SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26447 PyObject *resultobj = 0;
26448 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26449 wxColour result;
26450 void *argp1 = 0 ;
26451 int res1 = 0 ;
26452 PyObject *swig_obj[1] ;
26453
26454 if (!args) SWIG_fail;
26455 swig_obj[0] = args;
26456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26457 if (!SWIG_IsOK(res1)) {
26458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26459 }
26460 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26461 {
26462 PyThreadState* __tstate = wxPyBeginAllowThreads();
26463 result = (arg1)->GetBackgroundColour();
26464 wxPyEndAllowThreads(__tstate);
26465 if (PyErr_Occurred()) SWIG_fail;
26466 }
26467 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26468 return resultobj;
26469fail:
26470 return NULL;
d55e5bfc
RD
26471}
26472
26473
554f62e9
RD
26474SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26475 PyObject *resultobj = 0;
26476 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26477 wxFont result;
26478 void *argp1 = 0 ;
26479 int res1 = 0 ;
26480 PyObject *swig_obj[1] ;
26481
26482 if (!args) SWIG_fail;
26483 swig_obj[0] = args;
26484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26485 if (!SWIG_IsOK(res1)) {
26486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26487 }
26488 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26489 {
26490 PyThreadState* __tstate = wxPyBeginAllowThreads();
26491 result = (arg1)->GetFont();
26492 wxPyEndAllowThreads(__tstate);
26493 if (PyErr_Occurred()) SWIG_fail;
26494 }
26495 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26496 return resultobj;
26497fail:
26498 return NULL;
26499}
26500
26501
26502SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26503 PyObject *resultobj = 0;
26504 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26505 wxListItemAttr *arg2 = 0 ;
26506 void *argp1 = 0 ;
26507 int res1 = 0 ;
26508 void *argp2 = 0 ;
26509 int res2 = 0 ;
26510 PyObject * obj0 = 0 ;
26511 PyObject * obj1 = 0 ;
26512 char * kwnames[] = {
26513 (char *) "self",(char *) "source", NULL
26514 };
26515
26516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26518 if (!SWIG_IsOK(res1)) {
26519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26520 }
26521 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26522 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26523 if (!SWIG_IsOK(res2)) {
26524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26525 }
26526 if (!argp2) {
26527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26528 }
26529 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26530 {
26531 PyThreadState* __tstate = wxPyBeginAllowThreads();
26532 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26533 wxPyEndAllowThreads(__tstate);
26534 if (PyErr_Occurred()) SWIG_fail;
26535 }
26536 resultobj = SWIG_Py_Void();
26537 return resultobj;
26538fail:
26539 return NULL;
d55e5bfc
RD
26540}
26541
26542
554f62e9
RD
26543SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26544 PyObject *resultobj = 0;
26545 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26546 void *argp1 = 0 ;
26547 int res1 = 0 ;
26548 PyObject *swig_obj[1] ;
26549
26550 if (!args) SWIG_fail;
26551 swig_obj[0] = args;
26552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26553 if (!SWIG_IsOK(res1)) {
26554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26555 }
26556 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26557 {
26558 PyThreadState* __tstate = wxPyBeginAllowThreads();
26559 wxListItemAttr_Destroy(arg1);
26560 wxPyEndAllowThreads(__tstate);
26561 if (PyErr_Occurred()) SWIG_fail;
26562 }
26563 resultobj = SWIG_Py_Void();
26564 return resultobj;
26565fail:
26566 return NULL;
f20a2e1f
RD
26567}
26568
26569
554f62e9
RD
26570SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26571 PyObject *obj;
26572 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26573 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26574 return SWIG_Py_Void();
d55e5bfc 26575}
554f62e9
RD
26576
26577SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26578 return SWIG_Python_InitShadowInstance(args);
26579}
26580
26581SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26582 PyObject *resultobj = 0;
26583 wxListItem *result = 0 ;
26584
26585 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26586 {
26587 PyThreadState* __tstate = wxPyBeginAllowThreads();
26588 result = (wxListItem *)new wxListItem();
26589 wxPyEndAllowThreads(__tstate);
26590 if (PyErr_Occurred()) SWIG_fail;
26591 }
26592 {
26593 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26594 }
26595 return resultobj;
26596fail:
26597 return NULL;
d55e5bfc
RD
26598}
26599
26600
554f62e9
RD
26601SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26602 PyObject *resultobj = 0;
26603 wxListItem *arg1 = (wxListItem *) 0 ;
26604 void *argp1 = 0 ;
26605 int res1 = 0 ;
26606 PyObject *swig_obj[1] ;
26607
26608 if (!args) SWIG_fail;
26609 swig_obj[0] = args;
26610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26611 if (!SWIG_IsOK(res1)) {
26612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26613 }
26614 arg1 = reinterpret_cast< wxListItem * >(argp1);
26615 {
26616 PyThreadState* __tstate = wxPyBeginAllowThreads();
26617 delete arg1;
d55e5bfc 26618
554f62e9
RD
26619 wxPyEndAllowThreads(__tstate);
26620 if (PyErr_Occurred()) SWIG_fail;
26621 }
26622 resultobj = SWIG_Py_Void();
26623 return resultobj;
26624fail:
26625 return NULL;
d55e5bfc
RD
26626}
26627
26628
554f62e9
RD
26629SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26630 PyObject *resultobj = 0;
26631 wxListItem *arg1 = (wxListItem *) 0 ;
26632 void *argp1 = 0 ;
26633 int res1 = 0 ;
26634 PyObject *swig_obj[1] ;
26635
26636 if (!args) SWIG_fail;
26637 swig_obj[0] = args;
26638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26639 if (!SWIG_IsOK(res1)) {
26640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26641 }
26642 arg1 = reinterpret_cast< wxListItem * >(argp1);
26643 {
26644 PyThreadState* __tstate = wxPyBeginAllowThreads();
26645 (arg1)->Clear();
26646 wxPyEndAllowThreads(__tstate);
26647 if (PyErr_Occurred()) SWIG_fail;
26648 }
26649 resultobj = SWIG_Py_Void();
26650 return resultobj;
26651fail:
26652 return NULL;
d55e5bfc
RD
26653}
26654
26655
554f62e9
RD
26656SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26657 PyObject *resultobj = 0;
26658 wxListItem *arg1 = (wxListItem *) 0 ;
26659 void *argp1 = 0 ;
26660 int res1 = 0 ;
26661 PyObject *swig_obj[1] ;
26662
26663 if (!args) SWIG_fail;
26664 swig_obj[0] = args;
26665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26666 if (!SWIG_IsOK(res1)) {
26667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26668 }
26669 arg1 = reinterpret_cast< wxListItem * >(argp1);
26670 {
26671 PyThreadState* __tstate = wxPyBeginAllowThreads();
26672 (arg1)->ClearAttributes();
26673 wxPyEndAllowThreads(__tstate);
26674 if (PyErr_Occurred()) SWIG_fail;
26675 }
26676 resultobj = SWIG_Py_Void();
26677 return resultobj;
26678fail:
26679 return NULL;
26680}
26681
26682
26683SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26684 PyObject *resultobj = 0;
26685 wxListItem *arg1 = (wxListItem *) 0 ;
26686 long arg2 ;
26687 void *argp1 = 0 ;
26688 int res1 = 0 ;
26689 long val2 ;
26690 int ecode2 = 0 ;
26691 PyObject * obj0 = 0 ;
26692 PyObject * obj1 = 0 ;
26693 char * kwnames[] = {
26694 (char *) "self",(char *) "mask", NULL
26695 };
26696
26697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26699 if (!SWIG_IsOK(res1)) {
26700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26701 }
26702 arg1 = reinterpret_cast< wxListItem * >(argp1);
26703 ecode2 = SWIG_AsVal_long(obj1, &val2);
26704 if (!SWIG_IsOK(ecode2)) {
26705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26706 }
26707 arg2 = static_cast< long >(val2);
26708 {
26709 PyThreadState* __tstate = wxPyBeginAllowThreads();
26710 (arg1)->SetMask(arg2);
26711 wxPyEndAllowThreads(__tstate);
26712 if (PyErr_Occurred()) SWIG_fail;
26713 }
26714 resultobj = SWIG_Py_Void();
26715 return resultobj;
26716fail:
26717 return NULL;
26718}
26719
26720
26721SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26722 PyObject *resultobj = 0;
26723 wxListItem *arg1 = (wxListItem *) 0 ;
26724 long arg2 ;
26725 void *argp1 = 0 ;
26726 int res1 = 0 ;
26727 long val2 ;
26728 int ecode2 = 0 ;
26729 PyObject * obj0 = 0 ;
26730 PyObject * obj1 = 0 ;
26731 char * kwnames[] = {
26732 (char *) "self",(char *) "id", NULL
26733 };
26734
26735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26737 if (!SWIG_IsOK(res1)) {
26738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26739 }
26740 arg1 = reinterpret_cast< wxListItem * >(argp1);
26741 ecode2 = SWIG_AsVal_long(obj1, &val2);
26742 if (!SWIG_IsOK(ecode2)) {
26743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26744 }
26745 arg2 = static_cast< long >(val2);
26746 {
26747 PyThreadState* __tstate = wxPyBeginAllowThreads();
26748 (arg1)->SetId(arg2);
26749 wxPyEndAllowThreads(__tstate);
26750 if (PyErr_Occurred()) SWIG_fail;
26751 }
26752 resultobj = SWIG_Py_Void();
26753 return resultobj;
26754fail:
26755 return NULL;
26756}
26757
26758
26759SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26760 PyObject *resultobj = 0;
26761 wxListItem *arg1 = (wxListItem *) 0 ;
26762 int arg2 ;
26763 void *argp1 = 0 ;
26764 int res1 = 0 ;
26765 int val2 ;
26766 int ecode2 = 0 ;
26767 PyObject * obj0 = 0 ;
26768 PyObject * obj1 = 0 ;
26769 char * kwnames[] = {
26770 (char *) "self",(char *) "col", NULL
26771 };
26772
26773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26775 if (!SWIG_IsOK(res1)) {
26776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26777 }
26778 arg1 = reinterpret_cast< wxListItem * >(argp1);
26779 ecode2 = SWIG_AsVal_int(obj1, &val2);
26780 if (!SWIG_IsOK(ecode2)) {
26781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26782 }
26783 arg2 = static_cast< int >(val2);
26784 {
26785 PyThreadState* __tstate = wxPyBeginAllowThreads();
26786 (arg1)->SetColumn(arg2);
26787 wxPyEndAllowThreads(__tstate);
26788 if (PyErr_Occurred()) SWIG_fail;
26789 }
26790 resultobj = SWIG_Py_Void();
26791 return resultobj;
26792fail:
26793 return NULL;
26794}
26795
26796
26797SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26798 PyObject *resultobj = 0;
26799 wxListItem *arg1 = (wxListItem *) 0 ;
26800 long arg2 ;
26801 void *argp1 = 0 ;
26802 int res1 = 0 ;
26803 long val2 ;
26804 int ecode2 = 0 ;
26805 PyObject * obj0 = 0 ;
26806 PyObject * obj1 = 0 ;
26807 char * kwnames[] = {
26808 (char *) "self",(char *) "state", NULL
26809 };
26810
26811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26813 if (!SWIG_IsOK(res1)) {
26814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26815 }
26816 arg1 = reinterpret_cast< wxListItem * >(argp1);
26817 ecode2 = SWIG_AsVal_long(obj1, &val2);
26818 if (!SWIG_IsOK(ecode2)) {
26819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26820 }
26821 arg2 = static_cast< long >(val2);
26822 {
26823 PyThreadState* __tstate = wxPyBeginAllowThreads();
26824 (arg1)->SetState(arg2);
26825 wxPyEndAllowThreads(__tstate);
26826 if (PyErr_Occurred()) SWIG_fail;
26827 }
26828 resultobj = SWIG_Py_Void();
26829 return resultobj;
26830fail:
26831 return NULL;
26832}
26833
26834
26835SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26836 PyObject *resultobj = 0;
26837 wxListItem *arg1 = (wxListItem *) 0 ;
26838 long arg2 ;
26839 void *argp1 = 0 ;
26840 int res1 = 0 ;
26841 long val2 ;
26842 int ecode2 = 0 ;
26843 PyObject * obj0 = 0 ;
26844 PyObject * obj1 = 0 ;
26845 char * kwnames[] = {
26846 (char *) "self",(char *) "stateMask", NULL
26847 };
26848
26849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26851 if (!SWIG_IsOK(res1)) {
26852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26853 }
26854 arg1 = reinterpret_cast< wxListItem * >(argp1);
26855 ecode2 = SWIG_AsVal_long(obj1, &val2);
26856 if (!SWIG_IsOK(ecode2)) {
26857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26858 }
26859 arg2 = static_cast< long >(val2);
26860 {
26861 PyThreadState* __tstate = wxPyBeginAllowThreads();
26862 (arg1)->SetStateMask(arg2);
26863 wxPyEndAllowThreads(__tstate);
26864 if (PyErr_Occurred()) SWIG_fail;
26865 }
26866 resultobj = SWIG_Py_Void();
26867 return resultobj;
26868fail:
26869 return NULL;
26870}
26871
26872
26873SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26874 PyObject *resultobj = 0;
26875 wxListItem *arg1 = (wxListItem *) 0 ;
26876 wxString *arg2 = 0 ;
26877 void *argp1 = 0 ;
26878 int res1 = 0 ;
26879 bool temp2 = false ;
26880 PyObject * obj0 = 0 ;
26881 PyObject * obj1 = 0 ;
26882 char * kwnames[] = {
26883 (char *) "self",(char *) "text", NULL
26884 };
26885
26886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26888 if (!SWIG_IsOK(res1)) {
26889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26890 }
26891 arg1 = reinterpret_cast< wxListItem * >(argp1);
26892 {
26893 arg2 = wxString_in_helper(obj1);
26894 if (arg2 == NULL) SWIG_fail;
26895 temp2 = true;
26896 }
26897 {
26898 PyThreadState* __tstate = wxPyBeginAllowThreads();
26899 (arg1)->SetText((wxString const &)*arg2);
26900 wxPyEndAllowThreads(__tstate);
26901 if (PyErr_Occurred()) SWIG_fail;
26902 }
26903 resultobj = SWIG_Py_Void();
26904 {
26905 if (temp2)
26906 delete arg2;
26907 }
26908 return resultobj;
26909fail:
26910 {
26911 if (temp2)
26912 delete arg2;
26913 }
26914 return NULL;
26915}
26916
26917
26918SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26919 PyObject *resultobj = 0;
26920 wxListItem *arg1 = (wxListItem *) 0 ;
26921 int arg2 ;
26922 void *argp1 = 0 ;
26923 int res1 = 0 ;
26924 int val2 ;
26925 int ecode2 = 0 ;
26926 PyObject * obj0 = 0 ;
26927 PyObject * obj1 = 0 ;
26928 char * kwnames[] = {
26929 (char *) "self",(char *) "image", NULL
26930 };
26931
26932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26934 if (!SWIG_IsOK(res1)) {
26935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26936 }
26937 arg1 = reinterpret_cast< wxListItem * >(argp1);
26938 ecode2 = SWIG_AsVal_int(obj1, &val2);
26939 if (!SWIG_IsOK(ecode2)) {
26940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26941 }
26942 arg2 = static_cast< int >(val2);
26943 {
26944 PyThreadState* __tstate = wxPyBeginAllowThreads();
26945 (arg1)->SetImage(arg2);
26946 wxPyEndAllowThreads(__tstate);
26947 if (PyErr_Occurred()) SWIG_fail;
26948 }
26949 resultobj = SWIG_Py_Void();
26950 return resultobj;
26951fail:
26952 return NULL;
26953}
26954
26955
26956SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26957 PyObject *resultobj = 0;
26958 wxListItem *arg1 = (wxListItem *) 0 ;
26959 long arg2 ;
26960 void *argp1 = 0 ;
26961 int res1 = 0 ;
26962 long val2 ;
26963 int ecode2 = 0 ;
26964 PyObject * obj0 = 0 ;
26965 PyObject * obj1 = 0 ;
26966 char * kwnames[] = {
26967 (char *) "self",(char *) "data", NULL
26968 };
26969
26970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26972 if (!SWIG_IsOK(res1)) {
26973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26974 }
26975 arg1 = reinterpret_cast< wxListItem * >(argp1);
26976 ecode2 = SWIG_AsVal_long(obj1, &val2);
26977 if (!SWIG_IsOK(ecode2)) {
26978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26979 }
26980 arg2 = static_cast< long >(val2);
26981 {
26982 PyThreadState* __tstate = wxPyBeginAllowThreads();
26983 (arg1)->SetData(arg2);
26984 wxPyEndAllowThreads(__tstate);
26985 if (PyErr_Occurred()) SWIG_fail;
26986 }
26987 resultobj = SWIG_Py_Void();
26988 return resultobj;
26989fail:
26990 return NULL;
26991}
26992
26993
26994SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26995 PyObject *resultobj = 0;
26996 wxListItem *arg1 = (wxListItem *) 0 ;
26997 int arg2 ;
26998 void *argp1 = 0 ;
26999 int res1 = 0 ;
27000 int val2 ;
27001 int ecode2 = 0 ;
27002 PyObject * obj0 = 0 ;
27003 PyObject * obj1 = 0 ;
27004 char * kwnames[] = {
27005 (char *) "self",(char *) "width", NULL
27006 };
27007
27008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
27009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27010 if (!SWIG_IsOK(res1)) {
27011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27012 }
27013 arg1 = reinterpret_cast< wxListItem * >(argp1);
27014 ecode2 = SWIG_AsVal_int(obj1, &val2);
27015 if (!SWIG_IsOK(ecode2)) {
27016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
27017 }
27018 arg2 = static_cast< int >(val2);
27019 {
27020 PyThreadState* __tstate = wxPyBeginAllowThreads();
27021 (arg1)->SetWidth(arg2);
27022 wxPyEndAllowThreads(__tstate);
27023 if (PyErr_Occurred()) SWIG_fail;
27024 }
27025 resultobj = SWIG_Py_Void();
27026 return resultobj;
27027fail:
27028 return NULL;
27029}
27030
27031
27032SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27033 PyObject *resultobj = 0;
27034 wxListItem *arg1 = (wxListItem *) 0 ;
27035 wxListColumnFormat arg2 ;
27036 void *argp1 = 0 ;
27037 int res1 = 0 ;
27038 int val2 ;
27039 int ecode2 = 0 ;
27040 PyObject * obj0 = 0 ;
27041 PyObject * obj1 = 0 ;
27042 char * kwnames[] = {
27043 (char *) "self",(char *) "align", NULL
27044 };
27045
27046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
27047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27048 if (!SWIG_IsOK(res1)) {
27049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27050 }
27051 arg1 = reinterpret_cast< wxListItem * >(argp1);
27052 ecode2 = SWIG_AsVal_int(obj1, &val2);
27053 if (!SWIG_IsOK(ecode2)) {
27054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
27055 }
27056 arg2 = static_cast< wxListColumnFormat >(val2);
27057 {
27058 PyThreadState* __tstate = wxPyBeginAllowThreads();
27059 (arg1)->SetAlign(arg2);
27060 wxPyEndAllowThreads(__tstate);
27061 if (PyErr_Occurred()) SWIG_fail;
27062 }
27063 resultobj = SWIG_Py_Void();
27064 return resultobj;
27065fail:
27066 return NULL;
27067}
27068
27069
27070SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27071 PyObject *resultobj = 0;
27072 wxListItem *arg1 = (wxListItem *) 0 ;
27073 wxColour *arg2 = 0 ;
27074 void *argp1 = 0 ;
27075 int res1 = 0 ;
27076 wxColour temp2 ;
27077 PyObject * obj0 = 0 ;
27078 PyObject * obj1 = 0 ;
27079 char * kwnames[] = {
27080 (char *) "self",(char *) "colText", NULL
27081 };
27082
27083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
27084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27085 if (!SWIG_IsOK(res1)) {
27086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27087 }
27088 arg1 = reinterpret_cast< wxListItem * >(argp1);
27089 {
27090 arg2 = &temp2;
27091 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27092 }
27093 {
27094 PyThreadState* __tstate = wxPyBeginAllowThreads();
27095 (arg1)->SetTextColour((wxColour const &)*arg2);
27096 wxPyEndAllowThreads(__tstate);
27097 if (PyErr_Occurred()) SWIG_fail;
27098 }
27099 resultobj = SWIG_Py_Void();
27100 return resultobj;
27101fail:
27102 return NULL;
27103}
27104
27105
27106SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27107 PyObject *resultobj = 0;
27108 wxListItem *arg1 = (wxListItem *) 0 ;
27109 wxColour *arg2 = 0 ;
27110 void *argp1 = 0 ;
27111 int res1 = 0 ;
27112 wxColour temp2 ;
27113 PyObject * obj0 = 0 ;
27114 PyObject * obj1 = 0 ;
27115 char * kwnames[] = {
27116 (char *) "self",(char *) "colBack", NULL
27117 };
27118
27119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27121 if (!SWIG_IsOK(res1)) {
27122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27123 }
27124 arg1 = reinterpret_cast< wxListItem * >(argp1);
27125 {
27126 arg2 = &temp2;
27127 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27128 }
27129 {
27130 PyThreadState* __tstate = wxPyBeginAllowThreads();
27131 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27132 wxPyEndAllowThreads(__tstate);
27133 if (PyErr_Occurred()) SWIG_fail;
27134 }
27135 resultobj = SWIG_Py_Void();
27136 return resultobj;
27137fail:
27138 return NULL;
27139}
27140
27141
27142SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27143 PyObject *resultobj = 0;
27144 wxListItem *arg1 = (wxListItem *) 0 ;
27145 wxFont *arg2 = 0 ;
27146 void *argp1 = 0 ;
27147 int res1 = 0 ;
27148 void *argp2 = 0 ;
27149 int res2 = 0 ;
27150 PyObject * obj0 = 0 ;
27151 PyObject * obj1 = 0 ;
27152 char * kwnames[] = {
27153 (char *) "self",(char *) "font", NULL
27154 };
27155
27156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27158 if (!SWIG_IsOK(res1)) {
27159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27160 }
27161 arg1 = reinterpret_cast< wxListItem * >(argp1);
27162 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27163 if (!SWIG_IsOK(res2)) {
27164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27165 }
27166 if (!argp2) {
27167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27168 }
27169 arg2 = reinterpret_cast< wxFont * >(argp2);
27170 {
27171 PyThreadState* __tstate = wxPyBeginAllowThreads();
27172 (arg1)->SetFont((wxFont const &)*arg2);
27173 wxPyEndAllowThreads(__tstate);
27174 if (PyErr_Occurred()) SWIG_fail;
27175 }
27176 resultobj = SWIG_Py_Void();
27177 return resultobj;
27178fail:
27179 return NULL;
d55e5bfc
RD
27180}
27181
27182
554f62e9
RD
27183SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27184 PyObject *resultobj = 0;
27185 wxListItem *arg1 = (wxListItem *) 0 ;
27186 long result;
27187 void *argp1 = 0 ;
27188 int res1 = 0 ;
27189 PyObject *swig_obj[1] ;
27190
27191 if (!args) SWIG_fail;
27192 swig_obj[0] = args;
27193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27194 if (!SWIG_IsOK(res1)) {
27195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27196 }
27197 arg1 = reinterpret_cast< wxListItem * >(argp1);
27198 {
27199 PyThreadState* __tstate = wxPyBeginAllowThreads();
27200 result = (long)(arg1)->GetMask();
27201 wxPyEndAllowThreads(__tstate);
27202 if (PyErr_Occurred()) SWIG_fail;
27203 }
27204 resultobj = SWIG_From_long(static_cast< long >(result));
27205 return resultobj;
27206fail:
27207 return NULL;
d55e5bfc
RD
27208}
27209
27210
554f62e9
RD
27211SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27212 PyObject *resultobj = 0;
27213 wxListItem *arg1 = (wxListItem *) 0 ;
27214 long result;
27215 void *argp1 = 0 ;
27216 int res1 = 0 ;
27217 PyObject *swig_obj[1] ;
27218
27219 if (!args) SWIG_fail;
27220 swig_obj[0] = args;
27221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27222 if (!SWIG_IsOK(res1)) {
27223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27224 }
27225 arg1 = reinterpret_cast< wxListItem * >(argp1);
27226 {
27227 PyThreadState* __tstate = wxPyBeginAllowThreads();
27228 result = (long)(arg1)->GetId();
27229 wxPyEndAllowThreads(__tstate);
27230 if (PyErr_Occurred()) SWIG_fail;
27231 }
27232 resultobj = SWIG_From_long(static_cast< long >(result));
27233 return resultobj;
27234fail:
27235 return NULL;
d55e5bfc
RD
27236}
27237
27238
554f62e9
RD
27239SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27240 PyObject *resultobj = 0;
27241 wxListItem *arg1 = (wxListItem *) 0 ;
27242 int result;
27243 void *argp1 = 0 ;
27244 int res1 = 0 ;
27245 PyObject *swig_obj[1] ;
27246
27247 if (!args) SWIG_fail;
27248 swig_obj[0] = args;
27249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27250 if (!SWIG_IsOK(res1)) {
27251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27252 }
27253 arg1 = reinterpret_cast< wxListItem * >(argp1);
27254 {
27255 PyThreadState* __tstate = wxPyBeginAllowThreads();
27256 result = (int)(arg1)->GetColumn();
27257 wxPyEndAllowThreads(__tstate);
27258 if (PyErr_Occurred()) SWIG_fail;
27259 }
27260 resultobj = SWIG_From_int(static_cast< int >(result));
27261 return resultobj;
27262fail:
27263 return NULL;
d55e5bfc
RD
27264}
27265
27266
554f62e9
RD
27267SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27268 PyObject *resultobj = 0;
27269 wxListItem *arg1 = (wxListItem *) 0 ;
27270 long result;
27271 void *argp1 = 0 ;
27272 int res1 = 0 ;
27273 PyObject *swig_obj[1] ;
27274
27275 if (!args) SWIG_fail;
27276 swig_obj[0] = args;
27277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27278 if (!SWIG_IsOK(res1)) {
27279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27280 }
27281 arg1 = reinterpret_cast< wxListItem * >(argp1);
27282 {
27283 PyThreadState* __tstate = wxPyBeginAllowThreads();
27284 result = (long)(arg1)->GetState();
27285 wxPyEndAllowThreads(__tstate);
27286 if (PyErr_Occurred()) SWIG_fail;
27287 }
27288 resultobj = SWIG_From_long(static_cast< long >(result));
27289 return resultobj;
27290fail:
27291 return NULL;
d55e5bfc
RD
27292}
27293
27294
554f62e9
RD
27295SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27296 PyObject *resultobj = 0;
27297 wxListItem *arg1 = (wxListItem *) 0 ;
27298 wxString *result = 0 ;
27299 void *argp1 = 0 ;
27300 int res1 = 0 ;
27301 PyObject *swig_obj[1] ;
27302
27303 if (!args) SWIG_fail;
27304 swig_obj[0] = args;
27305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27306 if (!SWIG_IsOK(res1)) {
27307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27308 }
27309 arg1 = reinterpret_cast< wxListItem * >(argp1);
27310 {
27311 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 27312 {
554f62e9
RD
27313 wxString const &_result_ref = (arg1)->GetText();
27314 result = (wxString *) &_result_ref;
27315 }
27316 wxPyEndAllowThreads(__tstate);
27317 if (PyErr_Occurred()) SWIG_fail;
27318 }
27319 {
d55e5bfc 27320#if wxUSE_UNICODE
554f62e9 27321 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d55e5bfc 27322#else
554f62e9 27323 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d55e5bfc 27324#endif
554f62e9
RD
27325 }
27326 return resultobj;
27327fail:
27328 return NULL;
d55e5bfc
RD
27329}
27330
27331
554f62e9
RD
27332SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27333 PyObject *resultobj = 0;
27334 wxListItem *arg1 = (wxListItem *) 0 ;
27335 int result;
27336 void *argp1 = 0 ;
27337 int res1 = 0 ;
27338 PyObject *swig_obj[1] ;
27339
27340 if (!args) SWIG_fail;
27341 swig_obj[0] = args;
27342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27343 if (!SWIG_IsOK(res1)) {
27344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27345 }
27346 arg1 = reinterpret_cast< wxListItem * >(argp1);
27347 {
27348 PyThreadState* __tstate = wxPyBeginAllowThreads();
27349 result = (int)(arg1)->GetImage();
27350 wxPyEndAllowThreads(__tstate);
27351 if (PyErr_Occurred()) SWIG_fail;
27352 }
27353 resultobj = SWIG_From_int(static_cast< int >(result));
27354 return resultobj;
27355fail:
27356 return NULL;
d55e5bfc
RD
27357}
27358
27359
554f62e9
RD
27360SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27361 PyObject *resultobj = 0;
27362 wxListItem *arg1 = (wxListItem *) 0 ;
27363 long result;
27364 void *argp1 = 0 ;
27365 int res1 = 0 ;
27366 PyObject *swig_obj[1] ;
27367
27368 if (!args) SWIG_fail;
27369 swig_obj[0] = args;
27370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27371 if (!SWIG_IsOK(res1)) {
27372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27373 }
27374 arg1 = reinterpret_cast< wxListItem * >(argp1);
27375 {
27376 PyThreadState* __tstate = wxPyBeginAllowThreads();
27377 result = (long)(arg1)->GetData();
27378 wxPyEndAllowThreads(__tstate);
27379 if (PyErr_Occurred()) SWIG_fail;
27380 }
27381 resultobj = SWIG_From_long(static_cast< long >(result));
27382 return resultobj;
27383fail:
27384 return NULL;
8fb0e70a
RD
27385}
27386
27387
554f62e9
RD
27388SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27389 PyObject *resultobj = 0;
27390 wxListItem *arg1 = (wxListItem *) 0 ;
27391 int result;
27392 void *argp1 = 0 ;
27393 int res1 = 0 ;
27394 PyObject *swig_obj[1] ;
27395
27396 if (!args) SWIG_fail;
27397 swig_obj[0] = args;
27398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27399 if (!SWIG_IsOK(res1)) {
27400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27401 }
27402 arg1 = reinterpret_cast< wxListItem * >(argp1);
27403 {
27404 PyThreadState* __tstate = wxPyBeginAllowThreads();
27405 result = (int)(arg1)->GetWidth();
27406 wxPyEndAllowThreads(__tstate);
27407 if (PyErr_Occurred()) SWIG_fail;
27408 }
27409 resultobj = SWIG_From_int(static_cast< int >(result));
27410 return resultobj;
27411fail:
27412 return NULL;
d55e5bfc
RD
27413}
27414
27415
554f62e9
RD
27416SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27417 PyObject *resultobj = 0;
27418 wxListItem *arg1 = (wxListItem *) 0 ;
27419 wxListColumnFormat result;
27420 void *argp1 = 0 ;
27421 int res1 = 0 ;
27422 PyObject *swig_obj[1] ;
27423
27424 if (!args) SWIG_fail;
27425 swig_obj[0] = args;
27426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27427 if (!SWIG_IsOK(res1)) {
27428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27429 }
27430 arg1 = reinterpret_cast< wxListItem * >(argp1);
27431 {
27432 PyThreadState* __tstate = wxPyBeginAllowThreads();
27433 result = (wxListColumnFormat)(arg1)->GetAlign();
27434 wxPyEndAllowThreads(__tstate);
27435 if (PyErr_Occurred()) SWIG_fail;
27436 }
27437 resultobj = SWIG_From_int(static_cast< int >(result));
27438 return resultobj;
27439fail:
27440 return NULL;
d55e5bfc
RD
27441}
27442
27443
554f62e9
RD
27444SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27445 PyObject *resultobj = 0;
27446 wxListItem *arg1 = (wxListItem *) 0 ;
27447 wxListItemAttr *result = 0 ;
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_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27457 }
27458 arg1 = reinterpret_cast< wxListItem * >(argp1);
27459 {
27460 PyThreadState* __tstate = wxPyBeginAllowThreads();
27461 result = (wxListItemAttr *)(arg1)->GetAttributes();
27462 wxPyEndAllowThreads(__tstate);
27463 if (PyErr_Occurred()) SWIG_fail;
27464 }
27465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27466 return resultobj;
27467fail:
27468 return NULL;
d55e5bfc
RD
27469}
27470
27471
554f62e9
RD
27472SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27473 PyObject *resultobj = 0;
27474 wxListItem *arg1 = (wxListItem *) 0 ;
27475 bool result;
27476 void *argp1 = 0 ;
27477 int res1 = 0 ;
27478 PyObject *swig_obj[1] ;
27479
27480 if (!args) SWIG_fail;
27481 swig_obj[0] = args;
27482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27483 if (!SWIG_IsOK(res1)) {
27484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27485 }
27486 arg1 = reinterpret_cast< wxListItem * >(argp1);
27487 {
27488 PyThreadState* __tstate = wxPyBeginAllowThreads();
27489 result = (bool)(arg1)->HasAttributes();
27490 wxPyEndAllowThreads(__tstate);
27491 if (PyErr_Occurred()) SWIG_fail;
27492 }
27493 {
27494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27495 }
27496 return resultobj;
27497fail:
27498 return NULL;
d55e5bfc
RD
27499}
27500
27501
554f62e9
RD
27502SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27503 PyObject *resultobj = 0;
27504 wxListItem *arg1 = (wxListItem *) 0 ;
27505 wxColour result;
27506 void *argp1 = 0 ;
27507 int res1 = 0 ;
27508 PyObject *swig_obj[1] ;
27509
27510 if (!args) SWIG_fail;
27511 swig_obj[0] = args;
27512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27513 if (!SWIG_IsOK(res1)) {
27514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27515 }
27516 arg1 = reinterpret_cast< wxListItem * >(argp1);
27517 {
27518 PyThreadState* __tstate = wxPyBeginAllowThreads();
27519 result = ((wxListItem const *)arg1)->GetTextColour();
27520 wxPyEndAllowThreads(__tstate);
27521 if (PyErr_Occurred()) SWIG_fail;
27522 }
27523 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27524 return resultobj;
27525fail:
27526 return NULL;
d55e5bfc
RD
27527}
27528
27529
554f62e9
RD
27530SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27531 PyObject *resultobj = 0;
27532 wxListItem *arg1 = (wxListItem *) 0 ;
27533 wxColour result;
27534 void *argp1 = 0 ;
27535 int res1 = 0 ;
27536 PyObject *swig_obj[1] ;
27537
27538 if (!args) SWIG_fail;
27539 swig_obj[0] = args;
27540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27541 if (!SWIG_IsOK(res1)) {
27542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27543 }
27544 arg1 = reinterpret_cast< wxListItem * >(argp1);
27545 {
27546 PyThreadState* __tstate = wxPyBeginAllowThreads();
27547 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27548 wxPyEndAllowThreads(__tstate);
27549 if (PyErr_Occurred()) SWIG_fail;
27550 }
27551 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27552 return resultobj;
27553fail:
27554 return NULL;
d55e5bfc
RD
27555}
27556
27557
554f62e9
RD
27558SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27559 PyObject *resultobj = 0;
27560 wxListItem *arg1 = (wxListItem *) 0 ;
27561 wxFont result;
27562 void *argp1 = 0 ;
27563 int res1 = 0 ;
27564 PyObject *swig_obj[1] ;
27565
27566 if (!args) SWIG_fail;
27567 swig_obj[0] = args;
27568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27569 if (!SWIG_IsOK(res1)) {
27570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27571 }
27572 arg1 = reinterpret_cast< wxListItem * >(argp1);
27573 {
27574 PyThreadState* __tstate = wxPyBeginAllowThreads();
27575 result = ((wxListItem const *)arg1)->GetFont();
27576 wxPyEndAllowThreads(__tstate);
27577 if (PyErr_Occurred()) SWIG_fail;
27578 }
27579 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27580 return resultobj;
27581fail:
27582 return NULL;
27583}
27584
27585
27586SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27587 PyObject *resultobj = 0;
27588 wxListItem *arg1 = (wxListItem *) 0 ;
27589 long arg2 ;
27590 void *argp1 = 0 ;
27591 int res1 = 0 ;
27592 long val2 ;
27593 int ecode2 = 0 ;
27594 PyObject *swig_obj[2] ;
27595
27596 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27598 if (!SWIG_IsOK(res1)) {
27599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27600 }
27601 arg1 = reinterpret_cast< wxListItem * >(argp1);
27602 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27603 if (!SWIG_IsOK(ecode2)) {
27604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27605 }
27606 arg2 = static_cast< long >(val2);
27607 if (arg1) (arg1)->m_mask = arg2;
27608
27609 resultobj = SWIG_Py_Void();
27610 return resultobj;
27611fail:
27612 return NULL;
d55e5bfc
RD
27613}
27614
27615
554f62e9
RD
27616SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27617 PyObject *resultobj = 0;
27618 wxListItem *arg1 = (wxListItem *) 0 ;
27619 long result;
27620 void *argp1 = 0 ;
27621 int res1 = 0 ;
27622 PyObject *swig_obj[1] ;
27623
27624 if (!args) SWIG_fail;
27625 swig_obj[0] = args;
27626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27627 if (!SWIG_IsOK(res1)) {
27628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27629 }
27630 arg1 = reinterpret_cast< wxListItem * >(argp1);
27631 result = (long) ((arg1)->m_mask);
27632 resultobj = SWIG_From_long(static_cast< long >(result));
27633 return resultobj;
27634fail:
27635 return NULL;
27636}
27637
27638
27639SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27640 PyObject *resultobj = 0;
27641 wxListItem *arg1 = (wxListItem *) 0 ;
27642 long arg2 ;
27643 void *argp1 = 0 ;
27644 int res1 = 0 ;
27645 long val2 ;
27646 int ecode2 = 0 ;
27647 PyObject *swig_obj[2] ;
27648
27649 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_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_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27653 }
27654 arg1 = reinterpret_cast< wxListItem * >(argp1);
27655 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27656 if (!SWIG_IsOK(ecode2)) {
27657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27658 }
27659 arg2 = static_cast< long >(val2);
27660 if (arg1) (arg1)->m_itemId = arg2;
27661
27662 resultobj = SWIG_Py_Void();
27663 return resultobj;
27664fail:
27665 return NULL;
d55e5bfc
RD
27666}
27667
27668
554f62e9
RD
27669SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27670 PyObject *resultobj = 0;
27671 wxListItem *arg1 = (wxListItem *) 0 ;
27672 long 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_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27682 }
27683 arg1 = reinterpret_cast< wxListItem * >(argp1);
27684 result = (long) ((arg1)->m_itemId);
27685 resultobj = SWIG_From_long(static_cast< long >(result));
27686 return resultobj;
27687fail:
27688 return NULL;
27689}
27690
27691
27692SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27693 PyObject *resultobj = 0;
27694 wxListItem *arg1 = (wxListItem *) 0 ;
27695 int arg2 ;
27696 void *argp1 = 0 ;
27697 int res1 = 0 ;
27698 int val2 ;
27699 int ecode2 = 0 ;
27700 PyObject *swig_obj[2] ;
27701
27702 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_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_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27706 }
27707 arg1 = reinterpret_cast< wxListItem * >(argp1);
27708 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27709 if (!SWIG_IsOK(ecode2)) {
27710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27711 }
27712 arg2 = static_cast< int >(val2);
27713 if (arg1) (arg1)->m_col = arg2;
27714
27715 resultobj = SWIG_Py_Void();
27716 return resultobj;
27717fail:
27718 return NULL;
d55e5bfc
RD
27719}
27720
27721
554f62e9
RD
27722SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27723 PyObject *resultobj = 0;
27724 wxListItem *arg1 = (wxListItem *) 0 ;
27725 int 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_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27735 }
27736 arg1 = reinterpret_cast< wxListItem * >(argp1);
27737 result = (int) ((arg1)->m_col);
27738 resultobj = SWIG_From_int(static_cast< int >(result));
27739 return resultobj;
27740fail:
27741 return NULL;
27742}
27743
27744
27745SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27746 PyObject *resultobj = 0;
27747 wxListItem *arg1 = (wxListItem *) 0 ;
27748 long arg2 ;
27749 void *argp1 = 0 ;
27750 int res1 = 0 ;
27751 long val2 ;
27752 int ecode2 = 0 ;
27753 PyObject *swig_obj[2] ;
27754
27755 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_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_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27759 }
27760 arg1 = reinterpret_cast< wxListItem * >(argp1);
27761 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27762 if (!SWIG_IsOK(ecode2)) {
27763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27764 }
27765 arg2 = static_cast< long >(val2);
27766 if (arg1) (arg1)->m_state = 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_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27776 PyObject *resultobj = 0;
27777 wxListItem *arg1 = (wxListItem *) 0 ;
27778 long 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_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27788 }
27789 arg1 = reinterpret_cast< wxListItem * >(argp1);
27790 result = (long) ((arg1)->m_state);
27791 resultobj = SWIG_From_long(static_cast< long >(result));
27792 return resultobj;
27793fail:
27794 return NULL;
27795}
27796
27797
27798SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27799 PyObject *resultobj = 0;
27800 wxListItem *arg1 = (wxListItem *) 0 ;
27801 long arg2 ;
27802 void *argp1 = 0 ;
27803 int res1 = 0 ;
27804 long val2 ;
27805 int ecode2 = 0 ;
27806 PyObject *swig_obj[2] ;
27807
27808 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_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_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27812 }
27813 arg1 = reinterpret_cast< wxListItem * >(argp1);
27814 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27815 if (!SWIG_IsOK(ecode2)) {
27816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27817 }
27818 arg2 = static_cast< long >(val2);
27819 if (arg1) (arg1)->m_stateMask = arg2;
27820
27821 resultobj = SWIG_Py_Void();
27822 return resultobj;
27823fail:
27824 return NULL;
7e08d4ef
RD
27825}
27826
27827
554f62e9
RD
27828SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27829 PyObject *resultobj = 0;
27830 wxListItem *arg1 = (wxListItem *) 0 ;
27831 long 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_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27841 }
27842 arg1 = reinterpret_cast< wxListItem * >(argp1);
27843 result = (long) ((arg1)->m_stateMask);
27844 resultobj = SWIG_From_long(static_cast< long >(result));
27845 return resultobj;
27846fail:
27847 return NULL;
27848}
27849
27850
27851SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27852 PyObject *resultobj = 0;
27853 wxListItem *arg1 = (wxListItem *) 0 ;
27854 wxString *arg2 = (wxString *) 0 ;
27855 void *argp1 = 0 ;
27856 int res1 = 0 ;
27857 bool temp2 = false ;
27858 PyObject *swig_obj[2] ;
27859
27860 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27862 if (!SWIG_IsOK(res1)) {
27863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27864 }
27865 arg1 = reinterpret_cast< wxListItem * >(argp1);
27866 {
27867 arg2 = wxString_in_helper(swig_obj[1]);
27868 if (arg2 == NULL) SWIG_fail;
27869 temp2 = true;
27870 }
27871 if (arg1) (arg1)->m_text = *arg2;
27872
27873 resultobj = SWIG_Py_Void();
27874 {
27875 if (temp2)
27876 delete arg2;
27877 }
27878 return resultobj;
27879fail:
27880 {
27881 if (temp2)
27882 delete arg2;
27883 }
27884 return NULL;
7e08d4ef
RD
27885}
27886
27887
554f62e9
RD
27888SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27889 PyObject *resultobj = 0;
27890 wxListItem *arg1 = (wxListItem *) 0 ;
27891 wxString *result = 0 ;
27892 void *argp1 = 0 ;
27893 int res1 = 0 ;
27894 PyObject *swig_obj[1] ;
27895
27896 if (!args) SWIG_fail;
27897 swig_obj[0] = args;
27898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27899 if (!SWIG_IsOK(res1)) {
27900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27901 }
27902 arg1 = reinterpret_cast< wxListItem * >(argp1);
27903 result = (wxString *)& ((arg1)->m_text);
27904 {
27905#if wxUSE_UNICODE
27906 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27907#else
27908 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27909#endif
27910 }
27911 return resultobj;
27912fail:
27913 return NULL;
7e08d4ef
RD
27914}
27915
27916
554f62e9
RD
27917SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27918 PyObject *resultobj = 0;
27919 wxListItem *arg1 = (wxListItem *) 0 ;
27920 int arg2 ;
27921 void *argp1 = 0 ;
27922 int res1 = 0 ;
27923 int val2 ;
27924 int ecode2 = 0 ;
27925 PyObject *swig_obj[2] ;
27926
27927 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27929 if (!SWIG_IsOK(res1)) {
27930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27931 }
27932 arg1 = reinterpret_cast< wxListItem * >(argp1);
27933 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27934 if (!SWIG_IsOK(ecode2)) {
27935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27936 }
27937 arg2 = static_cast< int >(val2);
27938 if (arg1) (arg1)->m_image = arg2;
27939
27940 resultobj = SWIG_Py_Void();
27941 return resultobj;
27942fail:
27943 return NULL;
7e08d4ef
RD
27944}
27945
27946
554f62e9
RD
27947SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27948 PyObject *resultobj = 0;
27949 wxListItem *arg1 = (wxListItem *) 0 ;
27950 int result;
27951 void *argp1 = 0 ;
27952 int res1 = 0 ;
27953 PyObject *swig_obj[1] ;
27954
27955 if (!args) SWIG_fail;
27956 swig_obj[0] = args;
27957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27958 if (!SWIG_IsOK(res1)) {
27959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27960 }
27961 arg1 = reinterpret_cast< wxListItem * >(argp1);
27962 result = (int) ((arg1)->m_image);
27963 resultobj = SWIG_From_int(static_cast< int >(result));
27964 return resultobj;
27965fail:
27966 return NULL;
27967}
27968
27969
27970SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27971 PyObject *resultobj = 0;
27972 wxListItem *arg1 = (wxListItem *) 0 ;
27973 long arg2 ;
27974 void *argp1 = 0 ;
27975 int res1 = 0 ;
27976 long val2 ;
27977 int ecode2 = 0 ;
27978 PyObject *swig_obj[2] ;
27979
27980 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27982 if (!SWIG_IsOK(res1)) {
27983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27984 }
27985 arg1 = reinterpret_cast< wxListItem * >(argp1);
27986 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27987 if (!SWIG_IsOK(ecode2)) {
27988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27989 }
27990 arg2 = static_cast< long >(val2);
27991 if (arg1) (arg1)->m_data = arg2;
27992
27993 resultobj = SWIG_Py_Void();
27994 return resultobj;
27995fail:
27996 return NULL;
7e08d4ef
RD
27997}
27998
27999
554f62e9
RD
28000SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28001 PyObject *resultobj = 0;
28002 wxListItem *arg1 = (wxListItem *) 0 ;
28003 long result;
28004 void *argp1 = 0 ;
28005 int res1 = 0 ;
28006 PyObject *swig_obj[1] ;
28007
28008 if (!args) SWIG_fail;
28009 swig_obj[0] = args;
28010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28011 if (!SWIG_IsOK(res1)) {
28012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28013 }
28014 arg1 = reinterpret_cast< wxListItem * >(argp1);
28015 result = (long) ((arg1)->m_data);
28016 resultobj = SWIG_From_long(static_cast< long >(result));
28017 return resultobj;
28018fail:
28019 return NULL;
28020}
28021
28022
28023SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28024 PyObject *resultobj = 0;
28025 wxListItem *arg1 = (wxListItem *) 0 ;
28026 int arg2 ;
28027 void *argp1 = 0 ;
28028 int res1 = 0 ;
28029 int val2 ;
28030 int ecode2 = 0 ;
28031 PyObject *swig_obj[2] ;
28032
28033 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
28034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28035 if (!SWIG_IsOK(res1)) {
28036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28037 }
28038 arg1 = reinterpret_cast< wxListItem * >(argp1);
28039 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28040 if (!SWIG_IsOK(ecode2)) {
28041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
28042 }
28043 arg2 = static_cast< int >(val2);
28044 if (arg1) (arg1)->m_format = arg2;
28045
28046 resultobj = SWIG_Py_Void();
28047 return resultobj;
28048fail:
28049 return NULL;
d55e5bfc
RD
28050}
28051
28052
554f62e9
RD
28053SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28054 PyObject *resultobj = 0;
28055 wxListItem *arg1 = (wxListItem *) 0 ;
28056 int result;
28057 void *argp1 = 0 ;
28058 int res1 = 0 ;
28059 PyObject *swig_obj[1] ;
28060
28061 if (!args) SWIG_fail;
28062 swig_obj[0] = args;
28063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28064 if (!SWIG_IsOK(res1)) {
28065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28066 }
28067 arg1 = reinterpret_cast< wxListItem * >(argp1);
28068 result = (int) ((arg1)->m_format);
28069 resultobj = SWIG_From_int(static_cast< int >(result));
28070 return resultobj;
28071fail:
28072 return NULL;
28073}
28074
28075
28076SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28077 PyObject *resultobj = 0;
28078 wxListItem *arg1 = (wxListItem *) 0 ;
28079 int arg2 ;
28080 void *argp1 = 0 ;
28081 int res1 = 0 ;
28082 int val2 ;
28083 int ecode2 = 0 ;
28084 PyObject *swig_obj[2] ;
28085
28086 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
28087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28088 if (!SWIG_IsOK(res1)) {
28089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28090 }
28091 arg1 = reinterpret_cast< wxListItem * >(argp1);
28092 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28093 if (!SWIG_IsOK(ecode2)) {
28094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28095 }
28096 arg2 = static_cast< int >(val2);
28097 if (arg1) (arg1)->m_width = arg2;
28098
28099 resultobj = SWIG_Py_Void();
28100 return resultobj;
28101fail:
28102 return NULL;
d55e5bfc
RD
28103}
28104
28105
554f62e9
RD
28106SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28107 PyObject *resultobj = 0;
28108 wxListItem *arg1 = (wxListItem *) 0 ;
28109 int result;
28110 void *argp1 = 0 ;
28111 int res1 = 0 ;
28112 PyObject *swig_obj[1] ;
28113
28114 if (!args) SWIG_fail;
28115 swig_obj[0] = args;
28116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28117 if (!SWIG_IsOK(res1)) {
28118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28119 }
28120 arg1 = reinterpret_cast< wxListItem * >(argp1);
28121 result = (int) ((arg1)->m_width);
28122 resultobj = SWIG_From_int(static_cast< int >(result));
28123 return resultobj;
28124fail:
28125 return NULL;
28126}
28127
28128
28129SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28130 PyObject *obj;
28131 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28132 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28133 return SWIG_Py_Void();
28134}
28135
28136SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28137 return SWIG_Python_InitShadowInstance(args);
28138}
28139
28140SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28141 PyObject *resultobj = 0;
28142 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28143 int arg2 = (int) 0 ;
28144 wxListEvent *result = 0 ;
28145 int val1 ;
28146 int ecode1 = 0 ;
28147 int val2 ;
28148 int ecode2 = 0 ;
28149 PyObject * obj0 = 0 ;
28150 PyObject * obj1 = 0 ;
28151 char * kwnames[] = {
28152 (char *) "commandType",(char *) "id", NULL
28153 };
28154
28155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28156 if (obj0) {
28157 ecode1 = SWIG_AsVal_int(obj0, &val1);
28158 if (!SWIG_IsOK(ecode1)) {
28159 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28160 }
28161 arg1 = static_cast< wxEventType >(val1);
28162 }
28163 if (obj1) {
28164 ecode2 = SWIG_AsVal_int(obj1, &val2);
28165 if (!SWIG_IsOK(ecode2)) {
28166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28167 }
28168 arg2 = static_cast< int >(val2);
28169 }
28170 {
28171 PyThreadState* __tstate = wxPyBeginAllowThreads();
28172 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28173 wxPyEndAllowThreads(__tstate);
28174 if (PyErr_Occurred()) SWIG_fail;
28175 }
28176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28177 return resultobj;
28178fail:
28179 return NULL;
28180}
28181
28182
28183SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28184 PyObject *resultobj = 0;
28185 wxListEvent *arg1 = (wxListEvent *) 0 ;
28186 int arg2 ;
28187 void *argp1 = 0 ;
28188 int res1 = 0 ;
28189 int val2 ;
28190 int ecode2 = 0 ;
28191 PyObject *swig_obj[2] ;
28192
28193 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28195 if (!SWIG_IsOK(res1)) {
28196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28197 }
28198 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28199 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28200 if (!SWIG_IsOK(ecode2)) {
28201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28202 }
28203 arg2 = static_cast< int >(val2);
28204 if (arg1) (arg1)->m_code = arg2;
28205
28206 resultobj = SWIG_Py_Void();
28207 return resultobj;
28208fail:
28209 return NULL;
d55e5bfc
RD
28210}
28211
28212
554f62e9
RD
28213SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28214 PyObject *resultobj = 0;
28215 wxListEvent *arg1 = (wxListEvent *) 0 ;
28216 int result;
28217 void *argp1 = 0 ;
28218 int res1 = 0 ;
28219 PyObject *swig_obj[1] ;
28220
28221 if (!args) SWIG_fail;
28222 swig_obj[0] = args;
28223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28224 if (!SWIG_IsOK(res1)) {
28225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28226 }
28227 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28228 result = (int) ((arg1)->m_code);
28229 resultobj = SWIG_From_int(static_cast< int >(result));
28230 return resultobj;
28231fail:
28232 return NULL;
28233}
28234
28235
28236SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28237 PyObject *resultobj = 0;
28238 wxListEvent *arg1 = (wxListEvent *) 0 ;
28239 long arg2 ;
28240 void *argp1 = 0 ;
28241 int res1 = 0 ;
28242 long val2 ;
28243 int ecode2 = 0 ;
28244 PyObject *swig_obj[2] ;
28245
28246 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28248 if (!SWIG_IsOK(res1)) {
28249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28250 }
28251 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28252 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28253 if (!SWIG_IsOK(ecode2)) {
28254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28255 }
28256 arg2 = static_cast< long >(val2);
28257 if (arg1) (arg1)->m_oldItemIndex = arg2;
28258
28259 resultobj = SWIG_Py_Void();
28260 return resultobj;
28261fail:
28262 return NULL;
d55e5bfc
RD
28263}
28264
28265
554f62e9
RD
28266SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28267 PyObject *resultobj = 0;
28268 wxListEvent *arg1 = (wxListEvent *) 0 ;
28269 long result;
28270 void *argp1 = 0 ;
28271 int res1 = 0 ;
28272 PyObject *swig_obj[1] ;
28273
28274 if (!args) SWIG_fail;
28275 swig_obj[0] = args;
28276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28277 if (!SWIG_IsOK(res1)) {
28278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28279 }
28280 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28281 result = (long) ((arg1)->m_oldItemIndex);
28282 resultobj = SWIG_From_long(static_cast< long >(result));
28283 return resultobj;
28284fail:
28285 return NULL;
28286}
28287
28288
28289SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28290 PyObject *resultobj = 0;
28291 wxListEvent *arg1 = (wxListEvent *) 0 ;
28292 long arg2 ;
28293 void *argp1 = 0 ;
28294 int res1 = 0 ;
28295 long val2 ;
28296 int ecode2 = 0 ;
28297 PyObject *swig_obj[2] ;
28298
28299 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28301 if (!SWIG_IsOK(res1)) {
28302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28303 }
28304 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28305 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28306 if (!SWIG_IsOK(ecode2)) {
28307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28308 }
28309 arg2 = static_cast< long >(val2);
28310 if (arg1) (arg1)->m_itemIndex = arg2;
28311
28312 resultobj = SWIG_Py_Void();
28313 return resultobj;
28314fail:
28315 return NULL;
d55e5bfc
RD
28316}
28317
28318
554f62e9
RD
28319SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28320 PyObject *resultobj = 0;
28321 wxListEvent *arg1 = (wxListEvent *) 0 ;
28322 long result;
28323 void *argp1 = 0 ;
28324 int res1 = 0 ;
28325 PyObject *swig_obj[1] ;
28326
28327 if (!args) SWIG_fail;
28328 swig_obj[0] = args;
28329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28330 if (!SWIG_IsOK(res1)) {
28331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28332 }
28333 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28334 result = (long) ((arg1)->m_itemIndex);
28335 resultobj = SWIG_From_long(static_cast< long >(result));
28336 return resultobj;
28337fail:
28338 return NULL;
28339}
28340
28341
28342SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28343 PyObject *resultobj = 0;
28344 wxListEvent *arg1 = (wxListEvent *) 0 ;
28345 int arg2 ;
28346 void *argp1 = 0 ;
28347 int res1 = 0 ;
28348 int val2 ;
28349 int ecode2 = 0 ;
28350 PyObject *swig_obj[2] ;
28351
28352 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28354 if (!SWIG_IsOK(res1)) {
28355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28356 }
28357 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28358 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28359 if (!SWIG_IsOK(ecode2)) {
28360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28361 }
28362 arg2 = static_cast< int >(val2);
28363 if (arg1) (arg1)->m_col = arg2;
28364
28365 resultobj = SWIG_Py_Void();
28366 return resultobj;
28367fail:
28368 return NULL;
d55e5bfc
RD
28369}
28370
28371
554f62e9
RD
28372SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28373 PyObject *resultobj = 0;
28374 wxListEvent *arg1 = (wxListEvent *) 0 ;
28375 int result;
28376 void *argp1 = 0 ;
28377 int res1 = 0 ;
28378 PyObject *swig_obj[1] ;
28379
28380 if (!args) SWIG_fail;
28381 swig_obj[0] = args;
28382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28383 if (!SWIG_IsOK(res1)) {
28384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28385 }
28386 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28387 result = (int) ((arg1)->m_col);
28388 resultobj = SWIG_From_int(static_cast< int >(result));
28389 return resultobj;
28390fail:
28391 return NULL;
28392}
28393
28394
28395SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28396 PyObject *resultobj = 0;
28397 wxListEvent *arg1 = (wxListEvent *) 0 ;
28398 wxPoint *arg2 = (wxPoint *) 0 ;
28399 void *argp1 = 0 ;
28400 int res1 = 0 ;
28401 void *argp2 = 0 ;
28402 int res2 = 0 ;
28403 PyObject *swig_obj[2] ;
28404
28405 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28407 if (!SWIG_IsOK(res1)) {
28408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28409 }
28410 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28411 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28412 if (!SWIG_IsOK(res2)) {
28413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28414 }
28415 arg2 = reinterpret_cast< wxPoint * >(argp2);
28416 if (arg1) (arg1)->m_pointDrag = *arg2;
28417
28418 resultobj = SWIG_Py_Void();
28419 return resultobj;
28420fail:
28421 return NULL;
d55e5bfc
RD
28422}
28423
28424
554f62e9
RD
28425SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28426 PyObject *resultobj = 0;
28427 wxListEvent *arg1 = (wxListEvent *) 0 ;
28428 wxPoint *result = 0 ;
28429 void *argp1 = 0 ;
28430 int res1 = 0 ;
28431 PyObject *swig_obj[1] ;
28432
28433 if (!args) SWIG_fail;
28434 swig_obj[0] = args;
28435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28436 if (!SWIG_IsOK(res1)) {
28437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28438 }
28439 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28440 result = (wxPoint *)& ((arg1)->m_pointDrag);
28441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28442 return resultobj;
28443fail:
28444 return NULL;
28445}
28446
28447
28448SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28449 PyObject *resultobj = 0;
28450 wxListEvent *arg1 = (wxListEvent *) 0 ;
28451 wxListItem *result = 0 ;
28452 void *argp1 = 0 ;
28453 int res1 = 0 ;
28454 PyObject *swig_obj[1] ;
28455
28456 if (!args) SWIG_fail;
28457 swig_obj[0] = args;
28458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28459 if (!SWIG_IsOK(res1)) {
28460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28461 }
28462 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28463 result = (wxListItem *)& ((arg1)->m_item);
28464 {
28465 resultobj = wxPyMake_wxObject(result, (bool)0);
28466 }
28467 return resultobj;
28468fail:
28469 return NULL;
f20a2e1f
RD
28470}
28471
28472
554f62e9
RD
28473SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28474 PyObject *resultobj = 0;
28475 wxListEvent *arg1 = (wxListEvent *) 0 ;
28476 int result;
28477 void *argp1 = 0 ;
28478 int res1 = 0 ;
28479 PyObject *swig_obj[1] ;
28480
28481 if (!args) SWIG_fail;
28482 swig_obj[0] = args;
28483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28484 if (!SWIG_IsOK(res1)) {
28485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28486 }
28487 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28488 {
28489 PyThreadState* __tstate = wxPyBeginAllowThreads();
28490 result = (int)(arg1)->GetKeyCode();
28491 wxPyEndAllowThreads(__tstate);
28492 if (PyErr_Occurred()) SWIG_fail;
28493 }
28494 resultobj = SWIG_From_int(static_cast< int >(result));
28495 return resultobj;
28496fail:
28497 return NULL;
d55e5bfc
RD
28498}
28499
28500
554f62e9
RD
28501SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28502 PyObject *resultobj = 0;
28503 wxListEvent *arg1 = (wxListEvent *) 0 ;
28504 long result;
28505 void *argp1 = 0 ;
28506 int res1 = 0 ;
28507 PyObject *swig_obj[1] ;
28508
28509 if (!args) SWIG_fail;
28510 swig_obj[0] = args;
28511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28512 if (!SWIG_IsOK(res1)) {
28513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28514 }
28515 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28516 {
28517 PyThreadState* __tstate = wxPyBeginAllowThreads();
28518 result = (long)(arg1)->GetIndex();
28519 wxPyEndAllowThreads(__tstate);
28520 if (PyErr_Occurred()) SWIG_fail;
28521 }
28522 resultobj = SWIG_From_long(static_cast< long >(result));
28523 return resultobj;
28524fail:
28525 return NULL;
d55e5bfc
RD
28526}
28527
28528
554f62e9
RD
28529SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28530 PyObject *resultobj = 0;
28531 wxListEvent *arg1 = (wxListEvent *) 0 ;
28532 int result;
28533 void *argp1 = 0 ;
28534 int res1 = 0 ;
28535 PyObject *swig_obj[1] ;
28536
28537 if (!args) SWIG_fail;
28538 swig_obj[0] = args;
28539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28540 if (!SWIG_IsOK(res1)) {
28541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28542 }
28543 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28544 {
28545 PyThreadState* __tstate = wxPyBeginAllowThreads();
28546 result = (int)(arg1)->GetColumn();
28547 wxPyEndAllowThreads(__tstate);
28548 if (PyErr_Occurred()) SWIG_fail;
28549 }
28550 resultobj = SWIG_From_int(static_cast< int >(result));
28551 return resultobj;
28552fail:
28553 return NULL;
d55e5bfc
RD
28554}
28555
28556
554f62e9
RD
28557SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28558 PyObject *resultobj = 0;
28559 wxListEvent *arg1 = (wxListEvent *) 0 ;
28560 wxPoint result;
28561 void *argp1 = 0 ;
28562 int res1 = 0 ;
28563 PyObject *swig_obj[1] ;
28564
28565 if (!args) SWIG_fail;
28566 swig_obj[0] = args;
28567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28568 if (!SWIG_IsOK(res1)) {
28569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28570 }
28571 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28572 {
28573 PyThreadState* __tstate = wxPyBeginAllowThreads();
28574 result = (arg1)->GetPoint();
28575 wxPyEndAllowThreads(__tstate);
28576 if (PyErr_Occurred()) SWIG_fail;
28577 }
28578 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28579 return resultobj;
28580fail:
28581 return NULL;
d55e5bfc
RD
28582}
28583
28584
554f62e9
RD
28585SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28586 PyObject *resultobj = 0;
28587 wxListEvent *arg1 = (wxListEvent *) 0 ;
28588 wxString *result = 0 ;
28589 void *argp1 = 0 ;
28590 int res1 = 0 ;
28591 PyObject *swig_obj[1] ;
28592
28593 if (!args) SWIG_fail;
28594 swig_obj[0] = args;
28595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28596 if (!SWIG_IsOK(res1)) {
28597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28598 }
28599 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28600 {
28601 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28602 {
554f62e9
RD
28603 wxString const &_result_ref = (arg1)->GetLabel();
28604 result = (wxString *) &_result_ref;
d55e5bfc 28605 }
554f62e9
RD
28606 wxPyEndAllowThreads(__tstate);
28607 if (PyErr_Occurred()) SWIG_fail;
28608 }
28609 {
28610#if wxUSE_UNICODE
28611 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28612#else
28613 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28614#endif
28615 }
28616 return resultobj;
28617fail:
28618 return NULL;
d55e5bfc
RD
28619}
28620
28621
554f62e9
RD
28622SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28623 PyObject *resultobj = 0;
28624 wxListEvent *arg1 = (wxListEvent *) 0 ;
28625 wxString *result = 0 ;
28626 void *argp1 = 0 ;
28627 int res1 = 0 ;
28628 PyObject *swig_obj[1] ;
28629
28630 if (!args) SWIG_fail;
28631 swig_obj[0] = args;
28632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28633 if (!SWIG_IsOK(res1)) {
28634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28635 }
28636 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28637 {
28638 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28639 {
554f62e9
RD
28640 wxString const &_result_ref = (arg1)->GetText();
28641 result = (wxString *) &_result_ref;
d55e5bfc 28642 }
554f62e9
RD
28643 wxPyEndAllowThreads(__tstate);
28644 if (PyErr_Occurred()) SWIG_fail;
28645 }
28646 {
28647#if wxUSE_UNICODE
28648 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28649#else
28650 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28651#endif
28652 }
28653 return resultobj;
28654fail:
28655 return NULL;
d55e5bfc
RD
28656}
28657
28658
554f62e9
RD
28659SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28660 PyObject *resultobj = 0;
28661 wxListEvent *arg1 = (wxListEvent *) 0 ;
28662 int result;
28663 void *argp1 = 0 ;
28664 int res1 = 0 ;
28665 PyObject *swig_obj[1] ;
28666
28667 if (!args) SWIG_fail;
28668 swig_obj[0] = args;
28669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28670 if (!SWIG_IsOK(res1)) {
28671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28672 }
28673 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28674 {
28675 PyThreadState* __tstate = wxPyBeginAllowThreads();
28676 result = (int)(arg1)->GetImage();
28677 wxPyEndAllowThreads(__tstate);
28678 if (PyErr_Occurred()) SWIG_fail;
28679 }
28680 resultobj = SWIG_From_int(static_cast< int >(result));
28681 return resultobj;
28682fail:
28683 return NULL;
d55e5bfc
RD
28684}
28685
28686
554f62e9
RD
28687SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28688 PyObject *resultobj = 0;
28689 wxListEvent *arg1 = (wxListEvent *) 0 ;
28690 long result;
28691 void *argp1 = 0 ;
28692 int res1 = 0 ;
28693 PyObject *swig_obj[1] ;
28694
28695 if (!args) SWIG_fail;
28696 swig_obj[0] = args;
28697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28698 if (!SWIG_IsOK(res1)) {
28699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28700 }
28701 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28702 {
28703 PyThreadState* __tstate = wxPyBeginAllowThreads();
28704 result = (long)(arg1)->GetData();
28705 wxPyEndAllowThreads(__tstate);
28706 if (PyErr_Occurred()) SWIG_fail;
28707 }
28708 resultobj = SWIG_From_long(static_cast< long >(result));
28709 return resultobj;
28710fail:
28711 return NULL;
d55e5bfc
RD
28712}
28713
28714
554f62e9
RD
28715SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28716 PyObject *resultobj = 0;
28717 wxListEvent *arg1 = (wxListEvent *) 0 ;
28718 long result;
28719 void *argp1 = 0 ;
28720 int res1 = 0 ;
28721 PyObject *swig_obj[1] ;
28722
28723 if (!args) SWIG_fail;
28724 swig_obj[0] = args;
28725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28726 if (!SWIG_IsOK(res1)) {
28727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28728 }
28729 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28730 {
28731 PyThreadState* __tstate = wxPyBeginAllowThreads();
28732 result = (long)(arg1)->GetMask();
28733 wxPyEndAllowThreads(__tstate);
28734 if (PyErr_Occurred()) SWIG_fail;
28735 }
28736 resultobj = SWIG_From_long(static_cast< long >(result));
28737 return resultobj;
28738fail:
28739 return NULL;
d55e5bfc
RD
28740}
28741
28742
554f62e9
RD
28743SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28744 PyObject *resultobj = 0;
28745 wxListEvent *arg1 = (wxListEvent *) 0 ;
28746 wxListItem *result = 0 ;
28747 void *argp1 = 0 ;
28748 int res1 = 0 ;
28749 PyObject *swig_obj[1] ;
28750
28751 if (!args) SWIG_fail;
28752 swig_obj[0] = args;
28753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28754 if (!SWIG_IsOK(res1)) {
28755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28756 }
28757 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28758 {
28759 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 28760 {
554f62e9
RD
28761 wxListItem const &_result_ref = (arg1)->GetItem();
28762 result = (wxListItem *) &_result_ref;
093d3ff1 28763 }
554f62e9
RD
28764 wxPyEndAllowThreads(__tstate);
28765 if (PyErr_Occurred()) SWIG_fail;
28766 }
28767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28768 return resultobj;
28769fail:
28770 return NULL;
d55e5bfc
RD
28771}
28772
28773
554f62e9
RD
28774SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28775 PyObject *resultobj = 0;
28776 wxListEvent *arg1 = (wxListEvent *) 0 ;
28777 long result;
28778 void *argp1 = 0 ;
28779 int res1 = 0 ;
28780 PyObject *swig_obj[1] ;
28781
28782 if (!args) SWIG_fail;
28783 swig_obj[0] = args;
28784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28785 if (!SWIG_IsOK(res1)) {
28786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28787 }
28788 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28789 {
28790 PyThreadState* __tstate = wxPyBeginAllowThreads();
28791 result = (long)(arg1)->GetCacheFrom();
28792 wxPyEndAllowThreads(__tstate);
28793 if (PyErr_Occurred()) SWIG_fail;
28794 }
28795 resultobj = SWIG_From_long(static_cast< long >(result));
28796 return resultobj;
28797fail:
28798 return NULL;
d55e5bfc
RD
28799}
28800
28801
554f62e9
RD
28802SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28803 PyObject *resultobj = 0;
28804 wxListEvent *arg1 = (wxListEvent *) 0 ;
28805 long result;
28806 void *argp1 = 0 ;
28807 int res1 = 0 ;
28808 PyObject *swig_obj[1] ;
28809
28810 if (!args) SWIG_fail;
28811 swig_obj[0] = args;
28812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28813 if (!SWIG_IsOK(res1)) {
28814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28815 }
28816 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28817 {
28818 PyThreadState* __tstate = wxPyBeginAllowThreads();
28819 result = (long)(arg1)->GetCacheTo();
28820 wxPyEndAllowThreads(__tstate);
28821 if (PyErr_Occurred()) SWIG_fail;
28822 }
28823 resultobj = SWIG_From_long(static_cast< long >(result));
28824 return resultobj;
28825fail:
28826 return NULL;
091fdbfa
RD
28827}
28828
28829
554f62e9
RD
28830SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28831 PyObject *resultobj = 0;
28832 wxListEvent *arg1 = (wxListEvent *) 0 ;
28833 bool result;
28834 void *argp1 = 0 ;
28835 int res1 = 0 ;
28836 PyObject *swig_obj[1] ;
28837
28838 if (!args) SWIG_fail;
28839 swig_obj[0] = args;
28840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28841 if (!SWIG_IsOK(res1)) {
28842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28843 }
28844 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28845 {
28846 PyThreadState* __tstate = wxPyBeginAllowThreads();
28847 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28848 wxPyEndAllowThreads(__tstate);
28849 if (PyErr_Occurred()) SWIG_fail;
28850 }
28851 {
28852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28853 }
28854 return resultobj;
28855fail:
28856 return NULL;
28857}
28858
28859
28860SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28861 PyObject *resultobj = 0;
28862 wxListEvent *arg1 = (wxListEvent *) 0 ;
28863 bool arg2 ;
28864 void *argp1 = 0 ;
28865 int res1 = 0 ;
28866 bool val2 ;
28867 int ecode2 = 0 ;
28868 PyObject * obj0 = 0 ;
28869 PyObject * obj1 = 0 ;
28870 char * kwnames[] = {
28871 (char *) "self",(char *) "editCancelled", NULL
28872 };
28873
28874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28876 if (!SWIG_IsOK(res1)) {
28877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28878 }
28879 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28880 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28881 if (!SWIG_IsOK(ecode2)) {
28882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28883 }
28884 arg2 = static_cast< bool >(val2);
28885 {
28886 PyThreadState* __tstate = wxPyBeginAllowThreads();
28887 (arg1)->SetEditCanceled(arg2);
28888 wxPyEndAllowThreads(__tstate);
28889 if (PyErr_Occurred()) SWIG_fail;
28890 }
28891 resultobj = SWIG_Py_Void();
28892 return resultobj;
28893fail:
28894 return NULL;
28895}
28896
28897
28898SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28899 PyObject *obj;
28900 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28901 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28902 return SWIG_Py_Void();
28903}
28904
28905SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28906 return SWIG_Python_InitShadowInstance(args);
28907}
28908
28909SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28910 PyObject *resultobj = 0;
28911 wxWindow *arg1 = (wxWindow *) 0 ;
28912 int arg2 = (int) -1 ;
28913 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28914 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28915 wxSize const &arg4_defvalue = wxDefaultSize ;
28916 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28917 long arg5 = (long) wxLC_ICON ;
28918 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28919 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28920 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28921 wxString *arg7 = (wxString *) &arg7_defvalue ;
28922 wxPyListCtrl *result = 0 ;
28923 void *argp1 = 0 ;
28924 int res1 = 0 ;
28925 int val2 ;
28926 int ecode2 = 0 ;
28927 wxPoint temp3 ;
28928 wxSize temp4 ;
28929 long val5 ;
28930 int ecode5 = 0 ;
28931 void *argp6 = 0 ;
28932 int res6 = 0 ;
28933 bool temp7 = false ;
28934 PyObject * obj0 = 0 ;
28935 PyObject * obj1 = 0 ;
28936 PyObject * obj2 = 0 ;
28937 PyObject * obj3 = 0 ;
28938 PyObject * obj4 = 0 ;
28939 PyObject * obj5 = 0 ;
28940 PyObject * obj6 = 0 ;
28941 char * kwnames[] = {
28942 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28943 };
28944
28945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28947 if (!SWIG_IsOK(res1)) {
28948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28949 }
28950 arg1 = reinterpret_cast< wxWindow * >(argp1);
28951 if (obj1) {
28952 ecode2 = SWIG_AsVal_int(obj1, &val2);
28953 if (!SWIG_IsOK(ecode2)) {
28954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28955 }
28956 arg2 = static_cast< int >(val2);
28957 }
28958 if (obj2) {
f20a2e1f 28959 {
554f62e9
RD
28960 arg3 = &temp3;
28961 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 28962 }
554f62e9
RD
28963 }
28964 if (obj3) {
d55e5bfc 28965 {
554f62e9
RD
28966 arg4 = &temp4;
28967 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 28968 }
554f62e9
RD
28969 }
28970 if (obj4) {
28971 ecode5 = SWIG_AsVal_long(obj4, &val5);
28972 if (!SWIG_IsOK(ecode5)) {
28973 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28974 }
28975 arg5 = static_cast< long >(val5);
28976 }
28977 if (obj5) {
28978 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28979 if (!SWIG_IsOK(res6)) {
28980 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 28981 }
554f62e9
RD
28982 if (!argp6) {
28983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 28984 }
554f62e9
RD
28985 arg6 = reinterpret_cast< wxValidator * >(argp6);
28986 }
28987 if (obj6) {
d55e5bfc 28988 {
554f62e9
RD
28989 arg7 = wxString_in_helper(obj6);
28990 if (arg7 == NULL) SWIG_fail;
28991 temp7 = true;
d55e5bfc 28992 }
554f62e9
RD
28993 }
28994 {
28995 if (!wxPyCheckForApp()) SWIG_fail;
28996 PyThreadState* __tstate = wxPyBeginAllowThreads();
28997 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28998 wxPyEndAllowThreads(__tstate);
28999 if (PyErr_Occurred()) SWIG_fail;
29000 }
29001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
29002 {
29003 if (temp7)
29004 delete arg7;
29005 }
29006 return resultobj;
29007fail:
29008 {
29009 if (temp7)
29010 delete arg7;
29011 }
29012 return NULL;
d55e5bfc
RD
29013}
29014
29015
554f62e9
RD
29016SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29017 PyObject *resultobj = 0;
29018 wxPyListCtrl *result = 0 ;
29019
29020 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
29021 {
29022 if (!wxPyCheckForApp()) SWIG_fail;
29023 PyThreadState* __tstate = wxPyBeginAllowThreads();
29024 result = (wxPyListCtrl *)new wxPyListCtrl();
29025 wxPyEndAllowThreads(__tstate);
29026 if (PyErr_Occurred()) SWIG_fail;
29027 }
29028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
29029 return resultobj;
29030fail:
29031 return NULL;
29032}
29033
29034
29035SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29036 PyObject *resultobj = 0;
29037 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29038 wxWindow *arg2 = (wxWindow *) 0 ;
29039 int arg3 = (int) -1 ;
29040 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29041 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29042 wxSize const &arg5_defvalue = wxDefaultSize ;
29043 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29044 long arg6 = (long) wxLC_ICON ;
29045 wxValidator const &arg7_defvalue = wxDefaultValidator ;
29046 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
29047 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
29048 wxString *arg8 = (wxString *) &arg8_defvalue ;
29049 bool result;
29050 void *argp1 = 0 ;
29051 int res1 = 0 ;
29052 void *argp2 = 0 ;
29053 int res2 = 0 ;
29054 int val3 ;
29055 int ecode3 = 0 ;
29056 wxPoint temp4 ;
29057 wxSize temp5 ;
29058 long val6 ;
29059 int ecode6 = 0 ;
29060 void *argp7 = 0 ;
29061 int res7 = 0 ;
29062 bool temp8 = false ;
29063 PyObject * obj0 = 0 ;
29064 PyObject * obj1 = 0 ;
29065 PyObject * obj2 = 0 ;
29066 PyObject * obj3 = 0 ;
29067 PyObject * obj4 = 0 ;
29068 PyObject * obj5 = 0 ;
29069 PyObject * obj6 = 0 ;
29070 PyObject * obj7 = 0 ;
29071 char * kwnames[] = {
29072 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29073 };
29074
29075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29077 if (!SWIG_IsOK(res1)) {
29078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29079 }
29080 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29081 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29082 if (!SWIG_IsOK(res2)) {
29083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
29084 }
29085 arg2 = reinterpret_cast< wxWindow * >(argp2);
29086 if (obj2) {
29087 ecode3 = SWIG_AsVal_int(obj2, &val3);
29088 if (!SWIG_IsOK(ecode3)) {
29089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29090 }
29091 arg3 = static_cast< int >(val3);
29092 }
29093 if (obj3) {
d55e5bfc 29094 {
554f62e9
RD
29095 arg4 = &temp4;
29096 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 29097 }
554f62e9
RD
29098 }
29099 if (obj4) {
d55e5bfc 29100 {
554f62e9
RD
29101 arg5 = &temp5;
29102 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 29103 }
554f62e9
RD
29104 }
29105 if (obj5) {
29106 ecode6 = SWIG_AsVal_long(obj5, &val6);
29107 if (!SWIG_IsOK(ecode6)) {
29108 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29109 }
29110 arg6 = static_cast< long >(val6);
29111 }
29112 if (obj6) {
29113 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29114 if (!SWIG_IsOK(res7)) {
29115 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 29116 }
554f62e9
RD
29117 if (!argp7) {
29118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 29119 }
554f62e9
RD
29120 arg7 = reinterpret_cast< wxValidator * >(argp7);
29121 }
29122 if (obj7) {
d55e5bfc 29123 {
554f62e9
RD
29124 arg8 = wxString_in_helper(obj7);
29125 if (arg8 == NULL) SWIG_fail;
29126 temp8 = true;
d55e5bfc 29127 }
554f62e9
RD
29128 }
29129 {
29130 PyThreadState* __tstate = wxPyBeginAllowThreads();
29131 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29132 wxPyEndAllowThreads(__tstate);
29133 if (PyErr_Occurred()) SWIG_fail;
29134 }
29135 {
29136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29137 }
29138 {
29139 if (temp8)
29140 delete arg8;
29141 }
29142 return resultobj;
29143fail:
29144 {
29145 if (temp8)
29146 delete arg8;
29147 }
29148 return NULL;
29149}
29150
29151
29152SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29153 PyObject *resultobj = 0;
29154 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29155 PyObject *arg2 = (PyObject *) 0 ;
29156 PyObject *arg3 = (PyObject *) 0 ;
29157 void *argp1 = 0 ;
29158 int res1 = 0 ;
29159 PyObject * obj0 = 0 ;
29160 PyObject * obj1 = 0 ;
29161 PyObject * obj2 = 0 ;
29162 char * kwnames[] = {
29163 (char *) "self",(char *) "self",(char *) "_class", NULL
29164 };
29165
29166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29168 if (!SWIG_IsOK(res1)) {
29169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29170 }
29171 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29172 arg2 = obj1;
29173 arg3 = obj2;
29174 {
29175 PyThreadState* __tstate = wxPyBeginAllowThreads();
29176 (arg1)->_setCallbackInfo(arg2,arg3);
29177 wxPyEndAllowThreads(__tstate);
29178 if (PyErr_Occurred()) SWIG_fail;
29179 }
29180 resultobj = SWIG_Py_Void();
29181 return resultobj;
29182fail:
29183 return NULL;
29184}
29185
29186
29187SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29188 PyObject *resultobj = 0;
29189 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29190 int arg2 ;
29191 wxListItem *result = 0 ;
29192 void *argp1 = 0 ;
29193 int res1 = 0 ;
29194 int val2 ;
29195 int ecode2 = 0 ;
29196 PyObject * obj0 = 0 ;
29197 PyObject * obj1 = 0 ;
29198 char * kwnames[] = {
29199 (char *) "self",(char *) "col", NULL
29200 };
29201
29202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29204 if (!SWIG_IsOK(res1)) {
29205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29206 }
29207 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29208 ecode2 = SWIG_AsVal_int(obj1, &val2);
29209 if (!SWIG_IsOK(ecode2)) {
29210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29211 }
29212 arg2 = static_cast< int >(val2);
29213 {
29214 PyThreadState* __tstate = wxPyBeginAllowThreads();
29215 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29216 wxPyEndAllowThreads(__tstate);
29217 if (PyErr_Occurred()) SWIG_fail;
29218 }
29219 {
29220 resultobj = wxPyMake_wxObject(result, (bool)0);
29221 }
29222 return resultobj;
29223fail:
29224 return NULL;
29225}
29226
29227
29228SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29229 PyObject *resultobj = 0;
29230 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29231 int arg2 ;
29232 wxListItem *arg3 = 0 ;
29233 bool result;
29234 void *argp1 = 0 ;
29235 int res1 = 0 ;
29236 int val2 ;
29237 int ecode2 = 0 ;
29238 void *argp3 = 0 ;
29239 int res3 = 0 ;
29240 PyObject * obj0 = 0 ;
29241 PyObject * obj1 = 0 ;
29242 PyObject * obj2 = 0 ;
29243 char * kwnames[] = {
29244 (char *) "self",(char *) "col",(char *) "item", NULL
29245 };
29246
29247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29249 if (!SWIG_IsOK(res1)) {
29250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29251 }
29252 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29253 ecode2 = SWIG_AsVal_int(obj1, &val2);
29254 if (!SWIG_IsOK(ecode2)) {
29255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29256 }
29257 arg2 = static_cast< int >(val2);
29258 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29259 if (!SWIG_IsOK(res3)) {
29260 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29261 }
29262 if (!argp3) {
29263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29264 }
29265 arg3 = reinterpret_cast< wxListItem * >(argp3);
29266 {
29267 PyThreadState* __tstate = wxPyBeginAllowThreads();
29268 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29269 wxPyEndAllowThreads(__tstate);
29270 if (PyErr_Occurred()) SWIG_fail;
29271 }
29272 {
29273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29274 }
29275 return resultobj;
29276fail:
29277 return NULL;
29278}
29279
29280
29281SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29282 PyObject *resultobj = 0;
29283 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29284 int arg2 ;
29285 int result;
29286 void *argp1 = 0 ;
29287 int res1 = 0 ;
29288 int val2 ;
29289 int ecode2 = 0 ;
29290 PyObject * obj0 = 0 ;
29291 PyObject * obj1 = 0 ;
29292 char * kwnames[] = {
29293 (char *) "self",(char *) "col", NULL
29294 };
29295
29296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29298 if (!SWIG_IsOK(res1)) {
29299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29300 }
29301 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29302 ecode2 = SWIG_AsVal_int(obj1, &val2);
29303 if (!SWIG_IsOK(ecode2)) {
29304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29305 }
29306 arg2 = static_cast< int >(val2);
29307 {
29308 PyThreadState* __tstate = wxPyBeginAllowThreads();
29309 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29310 wxPyEndAllowThreads(__tstate);
29311 if (PyErr_Occurred()) SWIG_fail;
29312 }
29313 resultobj = SWIG_From_int(static_cast< int >(result));
29314 return resultobj;
29315fail:
29316 return NULL;
29317}
29318
29319
29320SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29321 PyObject *resultobj = 0;
29322 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29323 int arg2 ;
29324 int arg3 ;
29325 bool result;
29326 void *argp1 = 0 ;
29327 int res1 = 0 ;
29328 int val2 ;
29329 int ecode2 = 0 ;
29330 int val3 ;
29331 int ecode3 = 0 ;
29332 PyObject * obj0 = 0 ;
29333 PyObject * obj1 = 0 ;
29334 PyObject * obj2 = 0 ;
29335 char * kwnames[] = {
29336 (char *) "self",(char *) "col",(char *) "width", NULL
29337 };
29338
29339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29341 if (!SWIG_IsOK(res1)) {
29342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29343 }
29344 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29345 ecode2 = SWIG_AsVal_int(obj1, &val2);
29346 if (!SWIG_IsOK(ecode2)) {
29347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29348 }
29349 arg2 = static_cast< int >(val2);
29350 ecode3 = SWIG_AsVal_int(obj2, &val3);
29351 if (!SWIG_IsOK(ecode3)) {
29352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29353 }
29354 arg3 = static_cast< int >(val3);
29355 {
29356 PyThreadState* __tstate = wxPyBeginAllowThreads();
29357 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29358 wxPyEndAllowThreads(__tstate);
29359 if (PyErr_Occurred()) SWIG_fail;
29360 }
29361 {
29362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29363 }
29364 return resultobj;
29365fail:
29366 return NULL;
d55e5bfc
RD
29367}
29368
29369
554f62e9
RD
29370SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29371 PyObject *resultobj = 0;
29372 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29373 int result;
29374 void *argp1 = 0 ;
29375 int res1 = 0 ;
29376 PyObject *swig_obj[1] ;
29377
29378 if (!args) SWIG_fail;
29379 swig_obj[0] = args;
29380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29381 if (!SWIG_IsOK(res1)) {
29382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29383 }
29384 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29385 {
29386 PyThreadState* __tstate = wxPyBeginAllowThreads();
29387 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29388 wxPyEndAllowThreads(__tstate);
29389 if (PyErr_Occurred()) SWIG_fail;
29390 }
29391 resultobj = SWIG_From_int(static_cast< int >(result));
29392 return resultobj;
29393fail:
29394 return NULL;
7e08d4ef
RD
29395}
29396
29397
554f62e9
RD
29398SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29399 PyObject *resultobj = 0;
29400 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29401 wxRect result;
29402 void *argp1 = 0 ;
29403 int res1 = 0 ;
29404 PyObject *swig_obj[1] ;
29405
29406 if (!args) SWIG_fail;
29407 swig_obj[0] = args;
29408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29409 if (!SWIG_IsOK(res1)) {
29410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29411 }
29412 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29413 {
29414 PyThreadState* __tstate = wxPyBeginAllowThreads();
29415 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29416 wxPyEndAllowThreads(__tstate);
29417 if (PyErr_Occurred()) SWIG_fail;
29418 }
29419 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29420 return resultobj;
29421fail:
29422 return NULL;
7e08d4ef
RD
29423}
29424
29425
554f62e9
RD
29426SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29427 PyObject *resultobj = 0;
29428 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29429 wxTextCtrl *result = 0 ;
29430 void *argp1 = 0 ;
29431 int res1 = 0 ;
29432 PyObject *swig_obj[1] ;
29433
29434 if (!args) SWIG_fail;
29435 swig_obj[0] = args;
29436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29437 if (!SWIG_IsOK(res1)) {
29438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29439 }
29440 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29441 {
29442 PyThreadState* __tstate = wxPyBeginAllowThreads();
29443 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29444 wxPyEndAllowThreads(__tstate);
29445 if (PyErr_Occurred()) SWIG_fail;
29446 }
29447 {
29448 resultobj = wxPyMake_wxObject(result, 0);
29449 }
29450 return resultobj;
29451fail:
29452 return NULL;
29453}
29454
29455
29456SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29457 PyObject *resultobj = 0;
29458 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29459 long arg2 ;
29460 int arg3 = (int) 0 ;
29461 wxListItem *result = 0 ;
29462 void *argp1 = 0 ;
29463 int res1 = 0 ;
29464 long val2 ;
29465 int ecode2 = 0 ;
29466 int val3 ;
29467 int ecode3 = 0 ;
29468 PyObject * obj0 = 0 ;
29469 PyObject * obj1 = 0 ;
29470 PyObject * obj2 = 0 ;
29471 char * kwnames[] = {
29472 (char *) "self",(char *) "itemId",(char *) "col", NULL
29473 };
29474
29475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29477 if (!SWIG_IsOK(res1)) {
29478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29479 }
29480 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29481 ecode2 = SWIG_AsVal_long(obj1, &val2);
29482 if (!SWIG_IsOK(ecode2)) {
29483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29484 }
29485 arg2 = static_cast< long >(val2);
29486 if (obj2) {
29487 ecode3 = SWIG_AsVal_int(obj2, &val3);
29488 if (!SWIG_IsOK(ecode3)) {
29489 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29490 }
29491 arg3 = static_cast< int >(val3);
29492 }
29493 {
29494 PyThreadState* __tstate = wxPyBeginAllowThreads();
29495 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29496 wxPyEndAllowThreads(__tstate);
29497 if (PyErr_Occurred()) SWIG_fail;
29498 }
29499 {
29500 resultobj = wxPyMake_wxObject(result, (bool)0);
29501 }
29502 return resultobj;
29503fail:
29504 return NULL;
29505}
29506
29507
29508SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29509 PyObject *resultobj = 0;
29510 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29511 wxListItem *arg2 = 0 ;
29512 bool result;
29513 void *argp1 = 0 ;
29514 int res1 = 0 ;
29515 void *argp2 = 0 ;
29516 int res2 = 0 ;
29517 PyObject * obj0 = 0 ;
29518 PyObject * obj1 = 0 ;
29519 char * kwnames[] = {
29520 (char *) "self",(char *) "info", NULL
29521 };
29522
29523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29525 if (!SWIG_IsOK(res1)) {
29526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29527 }
29528 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29529 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29530 if (!SWIG_IsOK(res2)) {
29531 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29532 }
29533 if (!argp2) {
29534 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29535 }
29536 arg2 = reinterpret_cast< wxListItem * >(argp2);
29537 {
29538 PyThreadState* __tstate = wxPyBeginAllowThreads();
29539 result = (bool)(arg1)->SetItem(*arg2);
29540 wxPyEndAllowThreads(__tstate);
29541 if (PyErr_Occurred()) SWIG_fail;
29542 }
29543 {
29544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29545 }
29546 return resultobj;
29547fail:
29548 return NULL;
29549}
29550
29551
29552SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29553 PyObject *resultobj = 0;
29554 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29555 long arg2 ;
29556 int arg3 ;
29557 wxString *arg4 = 0 ;
29558 int arg5 = (int) -1 ;
29559 long result;
29560 void *argp1 = 0 ;
29561 int res1 = 0 ;
29562 long val2 ;
29563 int ecode2 = 0 ;
29564 int val3 ;
29565 int ecode3 = 0 ;
29566 bool temp4 = false ;
29567 int val5 ;
29568 int ecode5 = 0 ;
29569 PyObject * obj0 = 0 ;
29570 PyObject * obj1 = 0 ;
29571 PyObject * obj2 = 0 ;
29572 PyObject * obj3 = 0 ;
29573 PyObject * obj4 = 0 ;
29574 char * kwnames[] = {
29575 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29576 };
29577
29578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29580 if (!SWIG_IsOK(res1)) {
29581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29582 }
29583 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29584 ecode2 = SWIG_AsVal_long(obj1, &val2);
29585 if (!SWIG_IsOK(ecode2)) {
29586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29587 }
29588 arg2 = static_cast< long >(val2);
29589 ecode3 = SWIG_AsVal_int(obj2, &val3);
29590 if (!SWIG_IsOK(ecode3)) {
29591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29592 }
29593 arg3 = static_cast< int >(val3);
29594 {
29595 arg4 = wxString_in_helper(obj3);
29596 if (arg4 == NULL) SWIG_fail;
29597 temp4 = true;
29598 }
29599 if (obj4) {
29600 ecode5 = SWIG_AsVal_int(obj4, &val5);
29601 if (!SWIG_IsOK(ecode5)) {
29602 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29603 }
29604 arg5 = static_cast< int >(val5);
29605 }
29606 {
29607 PyThreadState* __tstate = wxPyBeginAllowThreads();
29608 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29609 wxPyEndAllowThreads(__tstate);
29610 if (PyErr_Occurred()) SWIG_fail;
29611 }
29612 resultobj = SWIG_From_long(static_cast< long >(result));
29613 {
29614 if (temp4)
29615 delete arg4;
29616 }
29617 return resultobj;
29618fail:
29619 {
29620 if (temp4)
29621 delete arg4;
29622 }
29623 return NULL;
29624}
29625
29626
29627SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29628 PyObject *resultobj = 0;
29629 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29630 long arg2 ;
29631 long arg3 ;
29632 int result;
29633 void *argp1 = 0 ;
29634 int res1 = 0 ;
29635 long val2 ;
29636 int ecode2 = 0 ;
29637 long val3 ;
29638 int ecode3 = 0 ;
29639 PyObject * obj0 = 0 ;
29640 PyObject * obj1 = 0 ;
29641 PyObject * obj2 = 0 ;
29642 char * kwnames[] = {
29643 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29644 };
29645
29646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29648 if (!SWIG_IsOK(res1)) {
29649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29650 }
29651 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29652 ecode2 = SWIG_AsVal_long(obj1, &val2);
29653 if (!SWIG_IsOK(ecode2)) {
29654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29655 }
29656 arg2 = static_cast< long >(val2);
29657 ecode3 = SWIG_AsVal_long(obj2, &val3);
29658 if (!SWIG_IsOK(ecode3)) {
29659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29660 }
29661 arg3 = static_cast< long >(val3);
29662 {
29663 PyThreadState* __tstate = wxPyBeginAllowThreads();
29664 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29665 wxPyEndAllowThreads(__tstate);
29666 if (PyErr_Occurred()) SWIG_fail;
29667 }
29668 resultobj = SWIG_From_int(static_cast< int >(result));
29669 return resultobj;
29670fail:
29671 return NULL;
29672}
29673
29674
29675SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29676 PyObject *resultobj = 0;
29677 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29678 long arg2 ;
29679 long arg3 ;
29680 long arg4 ;
29681 bool result;
29682 void *argp1 = 0 ;
29683 int res1 = 0 ;
29684 long val2 ;
29685 int ecode2 = 0 ;
29686 long val3 ;
29687 int ecode3 = 0 ;
29688 long val4 ;
29689 int ecode4 = 0 ;
29690 PyObject * obj0 = 0 ;
29691 PyObject * obj1 = 0 ;
29692 PyObject * obj2 = 0 ;
29693 PyObject * obj3 = 0 ;
29694 char * kwnames[] = {
29695 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29696 };
29697
29698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29700 if (!SWIG_IsOK(res1)) {
29701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29702 }
29703 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29704 ecode2 = SWIG_AsVal_long(obj1, &val2);
29705 if (!SWIG_IsOK(ecode2)) {
29706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29707 }
29708 arg2 = static_cast< long >(val2);
29709 ecode3 = SWIG_AsVal_long(obj2, &val3);
29710 if (!SWIG_IsOK(ecode3)) {
29711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29712 }
29713 arg3 = static_cast< long >(val3);
29714 ecode4 = SWIG_AsVal_long(obj3, &val4);
29715 if (!SWIG_IsOK(ecode4)) {
29716 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29717 }
29718 arg4 = static_cast< long >(val4);
29719 {
29720 PyThreadState* __tstate = wxPyBeginAllowThreads();
29721 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29722 wxPyEndAllowThreads(__tstate);
29723 if (PyErr_Occurred()) SWIG_fail;
29724 }
29725 {
29726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29727 }
29728 return resultobj;
29729fail:
29730 return NULL;
29731}
29732
29733
29734SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29735 PyObject *resultobj = 0;
29736 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29737 long arg2 ;
29738 int arg3 ;
29739 int arg4 = (int) -1 ;
29740 bool result;
29741 void *argp1 = 0 ;
29742 int res1 = 0 ;
29743 long val2 ;
29744 int ecode2 = 0 ;
29745 int val3 ;
29746 int ecode3 = 0 ;
29747 int val4 ;
29748 int ecode4 = 0 ;
29749 PyObject * obj0 = 0 ;
29750 PyObject * obj1 = 0 ;
29751 PyObject * obj2 = 0 ;
29752 PyObject * obj3 = 0 ;
29753 char * kwnames[] = {
29754 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29755 };
29756
29757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29759 if (!SWIG_IsOK(res1)) {
29760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29761 }
29762 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29763 ecode2 = SWIG_AsVal_long(obj1, &val2);
29764 if (!SWIG_IsOK(ecode2)) {
29765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29766 }
29767 arg2 = static_cast< long >(val2);
29768 ecode3 = SWIG_AsVal_int(obj2, &val3);
29769 if (!SWIG_IsOK(ecode3)) {
29770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29771 }
29772 arg3 = static_cast< int >(val3);
29773 if (obj3) {
29774 ecode4 = SWIG_AsVal_int(obj3, &val4);
29775 if (!SWIG_IsOK(ecode4)) {
29776 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29777 }
29778 arg4 = static_cast< int >(val4);
29779 }
29780 {
29781 PyThreadState* __tstate = wxPyBeginAllowThreads();
29782 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29783 wxPyEndAllowThreads(__tstate);
29784 if (PyErr_Occurred()) SWIG_fail;
29785 }
29786 {
29787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29788 }
29789 return resultobj;
29790fail:
29791 return NULL;
29792}
29793
29794
29795SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29796 PyObject *resultobj = 0;
29797 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29798 long arg2 ;
29799 long arg3 ;
29800 int arg4 ;
29801 bool result;
29802 void *argp1 = 0 ;
29803 int res1 = 0 ;
29804 long val2 ;
29805 int ecode2 = 0 ;
29806 long val3 ;
29807 int ecode3 = 0 ;
29808 int val4 ;
29809 int ecode4 = 0 ;
29810 PyObject * obj0 = 0 ;
29811 PyObject * obj1 = 0 ;
29812 PyObject * obj2 = 0 ;
29813 PyObject * obj3 = 0 ;
29814 char * kwnames[] = {
29815 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29816 };
29817
29818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29820 if (!SWIG_IsOK(res1)) {
29821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29822 }
29823 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29824 ecode2 = SWIG_AsVal_long(obj1, &val2);
29825 if (!SWIG_IsOK(ecode2)) {
29826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29827 }
29828 arg2 = static_cast< long >(val2);
29829 ecode3 = SWIG_AsVal_long(obj2, &val3);
29830 if (!SWIG_IsOK(ecode3)) {
29831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29832 }
29833 arg3 = static_cast< long >(val3);
29834 ecode4 = SWIG_AsVal_int(obj3, &val4);
29835 if (!SWIG_IsOK(ecode4)) {
29836 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29837 }
29838 arg4 = static_cast< int >(val4);
29839 {
29840 PyThreadState* __tstate = wxPyBeginAllowThreads();
29841 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29842 wxPyEndAllowThreads(__tstate);
29843 if (PyErr_Occurred()) SWIG_fail;
29844 }
29845 {
29846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29847 }
29848 return resultobj;
29849fail:
29850 return NULL;
29851}
29852
29853
29854SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29855 PyObject *resultobj = 0;
29856 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29857 long arg2 ;
29858 wxString result;
29859 void *argp1 = 0 ;
29860 int res1 = 0 ;
29861 long val2 ;
29862 int ecode2 = 0 ;
29863 PyObject * obj0 = 0 ;
29864 PyObject * obj1 = 0 ;
29865 char * kwnames[] = {
29866 (char *) "self",(char *) "item", NULL
29867 };
29868
29869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29871 if (!SWIG_IsOK(res1)) {
29872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29873 }
29874 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29875 ecode2 = SWIG_AsVal_long(obj1, &val2);
29876 if (!SWIG_IsOK(ecode2)) {
29877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29878 }
29879 arg2 = static_cast< long >(val2);
29880 {
29881 PyThreadState* __tstate = wxPyBeginAllowThreads();
29882 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29883 wxPyEndAllowThreads(__tstate);
29884 if (PyErr_Occurred()) SWIG_fail;
29885 }
29886 {
29887#if wxUSE_UNICODE
29888 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29889#else
29890 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29891#endif
29892 }
29893 return resultobj;
29894fail:
29895 return NULL;
29896}
29897
29898
29899SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29900 PyObject *resultobj = 0;
29901 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29902 long arg2 ;
29903 wxString *arg3 = 0 ;
29904 void *argp1 = 0 ;
29905 int res1 = 0 ;
29906 long val2 ;
29907 int ecode2 = 0 ;
29908 bool temp3 = false ;
29909 PyObject * obj0 = 0 ;
29910 PyObject * obj1 = 0 ;
29911 PyObject * obj2 = 0 ;
29912 char * kwnames[] = {
29913 (char *) "self",(char *) "item",(char *) "str", NULL
29914 };
29915
29916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29918 if (!SWIG_IsOK(res1)) {
29919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29920 }
29921 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29922 ecode2 = SWIG_AsVal_long(obj1, &val2);
29923 if (!SWIG_IsOK(ecode2)) {
29924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29925 }
29926 arg2 = static_cast< long >(val2);
29927 {
29928 arg3 = wxString_in_helper(obj2);
29929 if (arg3 == NULL) SWIG_fail;
29930 temp3 = true;
29931 }
29932 {
29933 PyThreadState* __tstate = wxPyBeginAllowThreads();
29934 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29935 wxPyEndAllowThreads(__tstate);
29936 if (PyErr_Occurred()) SWIG_fail;
29937 }
29938 resultobj = SWIG_Py_Void();
29939 {
29940 if (temp3)
29941 delete arg3;
29942 }
29943 return resultobj;
29944fail:
29945 {
29946 if (temp3)
29947 delete arg3;
29948 }
29949 return NULL;
29950}
29951
29952
29953SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29954 PyObject *resultobj = 0;
29955 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29956 long arg2 ;
29957 long result;
29958 void *argp1 = 0 ;
29959 int res1 = 0 ;
29960 long val2 ;
29961 int ecode2 = 0 ;
29962 PyObject * obj0 = 0 ;
29963 PyObject * obj1 = 0 ;
29964 char * kwnames[] = {
29965 (char *) "self",(char *) "item", NULL
29966 };
29967
29968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29970 if (!SWIG_IsOK(res1)) {
29971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29972 }
29973 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29974 ecode2 = SWIG_AsVal_long(obj1, &val2);
29975 if (!SWIG_IsOK(ecode2)) {
29976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29977 }
29978 arg2 = static_cast< long >(val2);
29979 {
29980 PyThreadState* __tstate = wxPyBeginAllowThreads();
29981 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29982 wxPyEndAllowThreads(__tstate);
29983 if (PyErr_Occurred()) SWIG_fail;
29984 }
29985 resultobj = SWIG_From_long(static_cast< long >(result));
29986 return resultobj;
29987fail:
29988 return NULL;
29989}
29990
29991
29992SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29993 PyObject *resultobj = 0;
29994 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29995 long arg2 ;
29996 long arg3 ;
29997 bool result;
29998 void *argp1 = 0 ;
29999 int res1 = 0 ;
30000 long val2 ;
30001 int ecode2 = 0 ;
30002 long val3 ;
30003 int ecode3 = 0 ;
30004 PyObject * obj0 = 0 ;
30005 PyObject * obj1 = 0 ;
30006 PyObject * obj2 = 0 ;
30007 char * kwnames[] = {
30008 (char *) "self",(char *) "item",(char *) "data", NULL
30009 };
30010
30011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30013 if (!SWIG_IsOK(res1)) {
30014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30015 }
30016 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30017 ecode2 = SWIG_AsVal_long(obj1, &val2);
30018 if (!SWIG_IsOK(ecode2)) {
30019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
30020 }
30021 arg2 = static_cast< long >(val2);
30022 ecode3 = SWIG_AsVal_long(obj2, &val3);
30023 if (!SWIG_IsOK(ecode3)) {
30024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
30025 }
30026 arg3 = static_cast< long >(val3);
30027 {
30028 PyThreadState* __tstate = wxPyBeginAllowThreads();
30029 result = (bool)(arg1)->SetItemData(arg2,arg3);
30030 wxPyEndAllowThreads(__tstate);
30031 if (PyErr_Occurred()) SWIG_fail;
30032 }
30033 {
30034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30035 }
30036 return resultobj;
30037fail:
30038 return NULL;
30039}
30040
30041
30042SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30043 PyObject *resultobj = 0;
30044 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30045 long arg2 ;
30046 wxPoint result;
30047 void *argp1 = 0 ;
30048 int res1 = 0 ;
30049 long val2 ;
30050 int ecode2 = 0 ;
30051 PyObject * obj0 = 0 ;
30052 PyObject * obj1 = 0 ;
30053 char * kwnames[] = {
30054 (char *) "self",(char *) "item", NULL
30055 };
30056
30057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
30058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30059 if (!SWIG_IsOK(res1)) {
30060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30061 }
30062 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30063 ecode2 = SWIG_AsVal_long(obj1, &val2);
30064 if (!SWIG_IsOK(ecode2)) {
30065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
30066 }
30067 arg2 = static_cast< long >(val2);
30068 {
30069 PyThreadState* __tstate = wxPyBeginAllowThreads();
30070 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
30071 wxPyEndAllowThreads(__tstate);
30072 if (PyErr_Occurred()) SWIG_fail;
30073 }
30074 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
30075 return resultobj;
30076fail:
30077 return NULL;
30078}
30079
30080
30081SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30082 PyObject *resultobj = 0;
30083 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30084 long arg2 ;
30085 int arg3 = (int) wxLIST_RECT_BOUNDS ;
30086 wxRect result;
30087 void *argp1 = 0 ;
30088 int res1 = 0 ;
30089 long val2 ;
30090 int ecode2 = 0 ;
30091 int val3 ;
30092 int ecode3 = 0 ;
30093 PyObject * obj0 = 0 ;
30094 PyObject * obj1 = 0 ;
30095 PyObject * obj2 = 0 ;
30096 char * kwnames[] = {
30097 (char *) "self",(char *) "item",(char *) "code", NULL
30098 };
30099
30100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30102 if (!SWIG_IsOK(res1)) {
30103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30104 }
30105 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30106 ecode2 = SWIG_AsVal_long(obj1, &val2);
30107 if (!SWIG_IsOK(ecode2)) {
30108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30109 }
30110 arg2 = static_cast< long >(val2);
30111 if (obj2) {
30112 ecode3 = SWIG_AsVal_int(obj2, &val3);
30113 if (!SWIG_IsOK(ecode3)) {
30114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30115 }
30116 arg3 = static_cast< int >(val3);
30117 }
30118 {
30119 PyThreadState* __tstate = wxPyBeginAllowThreads();
30120 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30121 wxPyEndAllowThreads(__tstate);
30122 if (PyErr_Occurred()) SWIG_fail;
30123 }
30124 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30125 return resultobj;
30126fail:
30127 return NULL;
30128}
30129
30130
30131SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30132 PyObject *resultobj = 0;
30133 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30134 long arg2 ;
30135 wxPoint *arg3 = 0 ;
30136 bool result;
30137 void *argp1 = 0 ;
30138 int res1 = 0 ;
30139 long val2 ;
30140 int ecode2 = 0 ;
30141 wxPoint temp3 ;
30142 PyObject * obj0 = 0 ;
30143 PyObject * obj1 = 0 ;
30144 PyObject * obj2 = 0 ;
30145 char * kwnames[] = {
30146 (char *) "self",(char *) "item",(char *) "pos", NULL
30147 };
30148
30149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30151 if (!SWIG_IsOK(res1)) {
30152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30153 }
30154 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30155 ecode2 = SWIG_AsVal_long(obj1, &val2);
30156 if (!SWIG_IsOK(ecode2)) {
30157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30158 }
30159 arg2 = static_cast< long >(val2);
30160 {
30161 arg3 = &temp3;
30162 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30163 }
30164 {
30165 PyThreadState* __tstate = wxPyBeginAllowThreads();
30166 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30167 wxPyEndAllowThreads(__tstate);
30168 if (PyErr_Occurred()) SWIG_fail;
30169 }
30170 {
30171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30172 }
30173 return resultobj;
30174fail:
30175 return NULL;
7e08d4ef
RD
30176}
30177
30178
554f62e9
RD
30179SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30180 PyObject *resultobj = 0;
30181 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30182 int result;
30183 void *argp1 = 0 ;
30184 int res1 = 0 ;
30185 PyObject *swig_obj[1] ;
30186
30187 if (!args) SWIG_fail;
30188 swig_obj[0] = args;
30189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30190 if (!SWIG_IsOK(res1)) {
30191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30192 }
30193 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30194 {
30195 PyThreadState* __tstate = wxPyBeginAllowThreads();
30196 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30197 wxPyEndAllowThreads(__tstate);
30198 if (PyErr_Occurred()) SWIG_fail;
30199 }
30200 resultobj = SWIG_From_int(static_cast< int >(result));
30201 return resultobj;
30202fail:
30203 return NULL;
7e08d4ef
RD
30204}
30205
30206
554f62e9
RD
30207SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30208 PyObject *resultobj = 0;
30209 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30210 int result;
30211 void *argp1 = 0 ;
30212 int res1 = 0 ;
30213 PyObject *swig_obj[1] ;
30214
30215 if (!args) SWIG_fail;
30216 swig_obj[0] = args;
30217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30218 if (!SWIG_IsOK(res1)) {
30219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30220 }
30221 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30222 {
30223 PyThreadState* __tstate = wxPyBeginAllowThreads();
30224 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30225 wxPyEndAllowThreads(__tstate);
30226 if (PyErr_Occurred()) SWIG_fail;
30227 }
30228 resultobj = SWIG_From_int(static_cast< int >(result));
30229 return resultobj;
30230fail:
30231 return NULL;
7e08d4ef
RD
30232}
30233
30234
554f62e9
RD
30235SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30236 PyObject *resultobj = 0;
30237 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30238 wxSize result;
30239 void *argp1 = 0 ;
30240 int res1 = 0 ;
30241 PyObject *swig_obj[1] ;
30242
30243 if (!args) SWIG_fail;
30244 swig_obj[0] = args;
30245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30246 if (!SWIG_IsOK(res1)) {
30247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30248 }
30249 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30250 {
30251 PyThreadState* __tstate = wxPyBeginAllowThreads();
30252 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30253 wxPyEndAllowThreads(__tstate);
30254 if (PyErr_Occurred()) SWIG_fail;
30255 }
30256 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30257 return resultobj;
30258fail:
30259 return NULL;
7e08d4ef
RD
30260}
30261
30262
554f62e9
RD
30263SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30264 PyObject *resultobj = 0;
30265 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30266 int result;
30267 void *argp1 = 0 ;
30268 int res1 = 0 ;
30269 PyObject *swig_obj[1] ;
30270
30271 if (!args) SWIG_fail;
30272 swig_obj[0] = args;
30273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30274 if (!SWIG_IsOK(res1)) {
30275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30276 }
30277 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30278 {
30279 PyThreadState* __tstate = wxPyBeginAllowThreads();
30280 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30281 wxPyEndAllowThreads(__tstate);
30282 if (PyErr_Occurred()) SWIG_fail;
30283 }
30284 resultobj = SWIG_From_int(static_cast< int >(result));
30285 return resultobj;
30286fail:
30287 return NULL;
7e08d4ef
RD
30288}
30289
30290
554f62e9
RD
30291SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30292 PyObject *resultobj = 0;
30293 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30294 wxColour result;
30295 void *argp1 = 0 ;
30296 int res1 = 0 ;
30297 PyObject *swig_obj[1] ;
30298
30299 if (!args) SWIG_fail;
30300 swig_obj[0] = args;
30301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30302 if (!SWIG_IsOK(res1)) {
30303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30304 }
30305 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30306 {
30307 PyThreadState* __tstate = wxPyBeginAllowThreads();
30308 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30309 wxPyEndAllowThreads(__tstate);
30310 if (PyErr_Occurred()) SWIG_fail;
30311 }
30312 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30313 return resultobj;
30314fail:
30315 return NULL;
30316}
30317
30318
30319SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30320 PyObject *resultobj = 0;
30321 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30322 wxColour *arg2 = 0 ;
30323 void *argp1 = 0 ;
30324 int res1 = 0 ;
30325 wxColour temp2 ;
30326 PyObject * obj0 = 0 ;
30327 PyObject * obj1 = 0 ;
30328 char * kwnames[] = {
30329 (char *) "self",(char *) "col", NULL
30330 };
30331
30332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30334 if (!SWIG_IsOK(res1)) {
30335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30336 }
30337 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30338 {
30339 arg2 = &temp2;
30340 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30341 }
30342 {
30343 PyThreadState* __tstate = wxPyBeginAllowThreads();
30344 (arg1)->SetTextColour((wxColour const &)*arg2);
30345 wxPyEndAllowThreads(__tstate);
30346 if (PyErr_Occurred()) SWIG_fail;
30347 }
30348 resultobj = SWIG_Py_Void();
30349 return resultobj;
30350fail:
30351 return NULL;
7e08d4ef
RD
30352}
30353
30354
554f62e9
RD
30355SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30356 PyObject *resultobj = 0;
30357 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30358 long result;
30359 void *argp1 = 0 ;
30360 int res1 = 0 ;
30361 PyObject *swig_obj[1] ;
30362
30363 if (!args) SWIG_fail;
30364 swig_obj[0] = args;
30365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30366 if (!SWIG_IsOK(res1)) {
30367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30368 }
30369 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30370 {
30371 PyThreadState* __tstate = wxPyBeginAllowThreads();
30372 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30373 wxPyEndAllowThreads(__tstate);
30374 if (PyErr_Occurred()) SWIG_fail;
30375 }
30376 resultobj = SWIG_From_long(static_cast< long >(result));
30377 return resultobj;
30378fail:
30379 return NULL;
30380}
30381
30382
30383SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30384 PyObject *resultobj = 0;
30385 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30386 long arg2 ;
30387 bool arg3 = (bool) true ;
30388 void *argp1 = 0 ;
30389 int res1 = 0 ;
30390 long val2 ;
30391 int ecode2 = 0 ;
30392 bool val3 ;
30393 int ecode3 = 0 ;
30394 PyObject * obj0 = 0 ;
30395 PyObject * obj1 = 0 ;
30396 PyObject * obj2 = 0 ;
30397 char * kwnames[] = {
30398 (char *) "self",(char *) "style",(char *) "add", NULL
30399 };
30400
30401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30403 if (!SWIG_IsOK(res1)) {
30404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30405 }
30406 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30407 ecode2 = SWIG_AsVal_long(obj1, &val2);
30408 if (!SWIG_IsOK(ecode2)) {
30409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30410 }
30411 arg2 = static_cast< long >(val2);
30412 if (obj2) {
30413 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30414 if (!SWIG_IsOK(ecode3)) {
30415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30416 }
30417 arg3 = static_cast< bool >(val3);
30418 }
30419 {
30420 PyThreadState* __tstate = wxPyBeginAllowThreads();
30421 (arg1)->SetSingleStyle(arg2,arg3);
30422 wxPyEndAllowThreads(__tstate);
30423 if (PyErr_Occurred()) SWIG_fail;
30424 }
30425 resultobj = SWIG_Py_Void();
30426 return resultobj;
30427fail:
30428 return NULL;
30429}
30430
30431
30432SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30433 PyObject *resultobj = 0;
30434 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30435 long arg2 ;
30436 int arg3 = (int) wxLIST_NEXT_ALL ;
30437 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30438 long result;
30439 void *argp1 = 0 ;
30440 int res1 = 0 ;
30441 long val2 ;
30442 int ecode2 = 0 ;
30443 int val3 ;
30444 int ecode3 = 0 ;
30445 int val4 ;
30446 int ecode4 = 0 ;
30447 PyObject * obj0 = 0 ;
30448 PyObject * obj1 = 0 ;
30449 PyObject * obj2 = 0 ;
30450 PyObject * obj3 = 0 ;
30451 char * kwnames[] = {
30452 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30453 };
30454
30455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30457 if (!SWIG_IsOK(res1)) {
30458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30459 }
30460 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30461 ecode2 = SWIG_AsVal_long(obj1, &val2);
30462 if (!SWIG_IsOK(ecode2)) {
30463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30464 }
30465 arg2 = static_cast< long >(val2);
30466 if (obj2) {
30467 ecode3 = SWIG_AsVal_int(obj2, &val3);
30468 if (!SWIG_IsOK(ecode3)) {
30469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30470 }
30471 arg3 = static_cast< int >(val3);
30472 }
30473 if (obj3) {
30474 ecode4 = SWIG_AsVal_int(obj3, &val4);
30475 if (!SWIG_IsOK(ecode4)) {
30476 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30477 }
30478 arg4 = static_cast< int >(val4);
30479 }
30480 {
30481 PyThreadState* __tstate = wxPyBeginAllowThreads();
30482 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30483 wxPyEndAllowThreads(__tstate);
30484 if (PyErr_Occurred()) SWIG_fail;
30485 }
30486 resultobj = SWIG_From_long(static_cast< long >(result));
30487 return resultobj;
30488fail:
30489 return NULL;
30490}
30491
30492
30493SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30494 PyObject *resultobj = 0;
30495 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30496 int arg2 ;
30497 wxImageList *result = 0 ;
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 *) "which", NULL
30506 };
30507
30508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",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_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30512 }
30513 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30514 ecode2 = SWIG_AsVal_int(obj1, &val2);
30515 if (!SWIG_IsOK(ecode2)) {
30516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30517 }
30518 arg2 = static_cast< int >(val2);
30519 {
30520 PyThreadState* __tstate = wxPyBeginAllowThreads();
30521 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30522 wxPyEndAllowThreads(__tstate);
30523 if (PyErr_Occurred()) SWIG_fail;
30524 }
e02c0a13 30525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, 0 | 0 );
554f62e9
RD
30526 return resultobj;
30527fail:
30528 return NULL;
30529}
30530
30531
30532SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30533 PyObject *resultobj = 0;
30534 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30535 wxImageList *arg2 = (wxImageList *) 0 ;
30536 int arg3 ;
30537 void *argp1 = 0 ;
30538 int res1 = 0 ;
30539 void *argp2 = 0 ;
30540 int res2 = 0 ;
30541 int val3 ;
30542 int ecode3 = 0 ;
30543 PyObject * obj0 = 0 ;
30544 PyObject * obj1 = 0 ;
30545 PyObject * obj2 = 0 ;
30546 char * kwnames[] = {
30547 (char *) "self",(char *) "imageList",(char *) "which", NULL
30548 };
30549
30550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30552 if (!SWIG_IsOK(res1)) {
30553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30554 }
30555 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30556 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30557 if (!SWIG_IsOK(res2)) {
30558 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30559 }
30560 arg2 = reinterpret_cast< wxImageList * >(argp2);
30561 ecode3 = SWIG_AsVal_int(obj2, &val3);
30562 if (!SWIG_IsOK(ecode3)) {
30563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30564 }
30565 arg3 = static_cast< int >(val3);
30566 {
30567 PyThreadState* __tstate = wxPyBeginAllowThreads();
30568 (arg1)->SetImageList(arg2,arg3);
30569 wxPyEndAllowThreads(__tstate);
30570 if (PyErr_Occurred()) SWIG_fail;
30571 }
30572 resultobj = SWIG_Py_Void();
30573 return resultobj;
30574fail:
30575 return NULL;
30576}
30577
30578
30579SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30580 PyObject *resultobj = 0;
30581 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30582 wxImageList *arg2 = (wxImageList *) 0 ;
30583 int arg3 ;
30584 void *argp1 = 0 ;
30585 int res1 = 0 ;
30586 int res2 = 0 ;
30587 int val3 ;
30588 int ecode3 = 0 ;
30589 PyObject * obj0 = 0 ;
30590 PyObject * obj1 = 0 ;
30591 PyObject * obj2 = 0 ;
30592 char * kwnames[] = {
30593 (char *) "self",(char *) "imageList",(char *) "which", NULL
30594 };
30595
30596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30598 if (!SWIG_IsOK(res1)) {
30599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30600 }
30601 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30602 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30603 if (!SWIG_IsOK(res2)) {
30604 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30605 }
30606 ecode3 = SWIG_AsVal_int(obj2, &val3);
30607 if (!SWIG_IsOK(ecode3)) {
30608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30609 }
30610 arg3 = static_cast< int >(val3);
30611 {
30612 PyThreadState* __tstate = wxPyBeginAllowThreads();
30613 (arg1)->AssignImageList(arg2,arg3);
30614 wxPyEndAllowThreads(__tstate);
30615 if (PyErr_Occurred()) SWIG_fail;
30616 }
30617 resultobj = SWIG_Py_Void();
30618 return resultobj;
30619fail:
30620 return NULL;
7e08d4ef
RD
30621}
30622
30623
554f62e9
RD
30624SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30625 PyObject *resultobj = 0;
30626 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30627 bool result;
30628 void *argp1 = 0 ;
30629 int res1 = 0 ;
30630 PyObject *swig_obj[1] ;
30631
30632 if (!args) SWIG_fail;
30633 swig_obj[0] = args;
30634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30635 if (!SWIG_IsOK(res1)) {
30636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30637 }
30638 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30639 {
30640 PyThreadState* __tstate = wxPyBeginAllowThreads();
30641 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30642 wxPyEndAllowThreads(__tstate);
30643 if (PyErr_Occurred()) SWIG_fail;
30644 }
30645 {
30646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30647 }
30648 return resultobj;
30649fail:
30650 return NULL;
7e08d4ef
RD
30651}
30652
30653
554f62e9
RD
30654SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30655 PyObject *resultobj = 0;
30656 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30657 bool result;
30658 void *argp1 = 0 ;
30659 int res1 = 0 ;
30660 PyObject *swig_obj[1] ;
30661
30662 if (!args) SWIG_fail;
30663 swig_obj[0] = args;
30664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30665 if (!SWIG_IsOK(res1)) {
30666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30667 }
30668 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30669 {
30670 PyThreadState* __tstate = wxPyBeginAllowThreads();
30671 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30672 wxPyEndAllowThreads(__tstate);
30673 if (PyErr_Occurred()) SWIG_fail;
30674 }
30675 {
30676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30677 }
30678 return resultobj;
30679fail:
30680 return NULL;
30681}
30682
30683
30684SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30685 PyObject *resultobj = 0;
30686 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30687 long arg2 ;
30688 void *argp1 = 0 ;
30689 int res1 = 0 ;
30690 long val2 ;
30691 int ecode2 = 0 ;
30692 PyObject * obj0 = 0 ;
30693 PyObject * obj1 = 0 ;
30694 char * kwnames[] = {
30695 (char *) "self",(char *) "item", NULL
30696 };
30697
30698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30700 if (!SWIG_IsOK(res1)) {
30701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30702 }
30703 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30704 ecode2 = SWIG_AsVal_long(obj1, &val2);
30705 if (!SWIG_IsOK(ecode2)) {
30706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30707 }
30708 arg2 = static_cast< long >(val2);
30709 {
30710 PyThreadState* __tstate = wxPyBeginAllowThreads();
30711 (arg1)->RefreshItem(arg2);
30712 wxPyEndAllowThreads(__tstate);
30713 if (PyErr_Occurred()) SWIG_fail;
30714 }
30715 resultobj = SWIG_Py_Void();
30716 return resultobj;
30717fail:
30718 return NULL;
30719}
30720
30721
30722SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30723 PyObject *resultobj = 0;
30724 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30725 long arg2 ;
30726 long arg3 ;
30727 void *argp1 = 0 ;
30728 int res1 = 0 ;
30729 long val2 ;
30730 int ecode2 = 0 ;
30731 long val3 ;
30732 int ecode3 = 0 ;
30733 PyObject * obj0 = 0 ;
30734 PyObject * obj1 = 0 ;
30735 PyObject * obj2 = 0 ;
30736 char * kwnames[] = {
30737 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30738 };
30739
30740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30742 if (!SWIG_IsOK(res1)) {
30743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30744 }
30745 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30746 ecode2 = SWIG_AsVal_long(obj1, &val2);
30747 if (!SWIG_IsOK(ecode2)) {
30748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30749 }
30750 arg2 = static_cast< long >(val2);
30751 ecode3 = SWIG_AsVal_long(obj2, &val3);
30752 if (!SWIG_IsOK(ecode3)) {
30753 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30754 }
30755 arg3 = static_cast< long >(val3);
30756 {
30757 PyThreadState* __tstate = wxPyBeginAllowThreads();
30758 (arg1)->RefreshItems(arg2,arg3);
30759 wxPyEndAllowThreads(__tstate);
30760 if (PyErr_Occurred()) SWIG_fail;
30761 }
30762 resultobj = SWIG_Py_Void();
30763 return resultobj;
30764fail:
30765 return NULL;
30766}
30767
30768
30769SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30770 PyObject *resultobj = 0;
30771 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30772 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30773 bool result;
30774 void *argp1 = 0 ;
30775 int res1 = 0 ;
30776 int val2 ;
30777 int ecode2 = 0 ;
30778 PyObject * obj0 = 0 ;
30779 PyObject * obj1 = 0 ;
30780 char * kwnames[] = {
30781 (char *) "self",(char *) "flag", NULL
30782 };
30783
30784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30786 if (!SWIG_IsOK(res1)) {
30787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30788 }
30789 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30790 if (obj1) {
30791 ecode2 = SWIG_AsVal_int(obj1, &val2);
30792 if (!SWIG_IsOK(ecode2)) {
30793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30794 }
30795 arg2 = static_cast< int >(val2);
30796 }
30797 {
30798 PyThreadState* __tstate = wxPyBeginAllowThreads();
30799 result = (bool)(arg1)->Arrange(arg2);
30800 wxPyEndAllowThreads(__tstate);
30801 if (PyErr_Occurred()) SWIG_fail;
30802 }
30803 {
30804 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30805 }
30806 return resultobj;
30807fail:
30808 return NULL;
30809}
30810
30811
30812SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30813 PyObject *resultobj = 0;
30814 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30815 long arg2 ;
30816 bool result;
30817 void *argp1 = 0 ;
30818 int res1 = 0 ;
30819 long val2 ;
30820 int ecode2 = 0 ;
30821 PyObject * obj0 = 0 ;
30822 PyObject * obj1 = 0 ;
30823 char * kwnames[] = {
30824 (char *) "self",(char *) "item", NULL
30825 };
30826
30827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30829 if (!SWIG_IsOK(res1)) {
30830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30831 }
30832 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30833 ecode2 = SWIG_AsVal_long(obj1, &val2);
30834 if (!SWIG_IsOK(ecode2)) {
30835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30836 }
30837 arg2 = static_cast< long >(val2);
30838 {
30839 PyThreadState* __tstate = wxPyBeginAllowThreads();
30840 result = (bool)(arg1)->DeleteItem(arg2);
30841 wxPyEndAllowThreads(__tstate);
30842 if (PyErr_Occurred()) SWIG_fail;
30843 }
30844 {
30845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30846 }
30847 return resultobj;
30848fail:
30849 return NULL;
7e08d4ef
RD
30850}
30851
30852
554f62e9
RD
30853SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30854 PyObject *resultobj = 0;
30855 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30856 bool result;
30857 void *argp1 = 0 ;
30858 int res1 = 0 ;
30859 PyObject *swig_obj[1] ;
30860
30861 if (!args) SWIG_fail;
30862 swig_obj[0] = args;
30863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30864 if (!SWIG_IsOK(res1)) {
30865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30866 }
30867 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30868 {
30869 PyThreadState* __tstate = wxPyBeginAllowThreads();
30870 result = (bool)(arg1)->DeleteAllItems();
30871 wxPyEndAllowThreads(__tstate);
30872 if (PyErr_Occurred()) SWIG_fail;
30873 }
30874 {
30875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30876 }
30877 return resultobj;
30878fail:
30879 return NULL;
30880}
30881
30882
30883SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30884 PyObject *resultobj = 0;
30885 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30886 int arg2 ;
30887 bool result;
30888 void *argp1 = 0 ;
30889 int res1 = 0 ;
30890 int val2 ;
30891 int ecode2 = 0 ;
30892 PyObject * obj0 = 0 ;
30893 PyObject * obj1 = 0 ;
30894 char * kwnames[] = {
30895 (char *) "self",(char *) "col", NULL
30896 };
30897
30898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30900 if (!SWIG_IsOK(res1)) {
30901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30902 }
30903 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30904 ecode2 = SWIG_AsVal_int(obj1, &val2);
30905 if (!SWIG_IsOK(ecode2)) {
30906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30907 }
30908 arg2 = static_cast< int >(val2);
30909 {
30910 PyThreadState* __tstate = wxPyBeginAllowThreads();
30911 result = (bool)(arg1)->DeleteColumn(arg2);
30912 wxPyEndAllowThreads(__tstate);
30913 if (PyErr_Occurred()) SWIG_fail;
30914 }
30915 {
30916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30917 }
30918 return resultobj;
30919fail:
30920 return NULL;
7e08d4ef
RD
30921}
30922
30923
554f62e9
RD
30924SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30925 PyObject *resultobj = 0;
30926 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30927 bool result;
30928 void *argp1 = 0 ;
30929 int res1 = 0 ;
30930 PyObject *swig_obj[1] ;
30931
30932 if (!args) SWIG_fail;
30933 swig_obj[0] = args;
30934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30935 if (!SWIG_IsOK(res1)) {
30936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30937 }
30938 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30939 {
30940 PyThreadState* __tstate = wxPyBeginAllowThreads();
30941 result = (bool)(arg1)->DeleteAllColumns();
30942 wxPyEndAllowThreads(__tstate);
30943 if (PyErr_Occurred()) SWIG_fail;
30944 }
30945 {
30946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30947 }
30948 return resultobj;
30949fail:
30950 return NULL;
7e08d4ef
RD
30951}
30952
30953
554f62e9
RD
30954SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30955 PyObject *resultobj = 0;
30956 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30957 void *argp1 = 0 ;
30958 int res1 = 0 ;
30959 PyObject *swig_obj[1] ;
30960
30961 if (!args) SWIG_fail;
30962 swig_obj[0] = args;
30963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30964 if (!SWIG_IsOK(res1)) {
30965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30966 }
30967 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30968 {
30969 PyThreadState* __tstate = wxPyBeginAllowThreads();
30970 (arg1)->ClearAll();
30971 wxPyEndAllowThreads(__tstate);
30972 if (PyErr_Occurred()) SWIG_fail;
30973 }
30974 resultobj = SWIG_Py_Void();
30975 return resultobj;
30976fail:
30977 return NULL;
30978}
30979
30980
30981SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30982 PyObject *resultobj = 0;
30983 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30984 long arg2 ;
30985 wxTextCtrl *result = 0 ;
30986 void *argp1 = 0 ;
30987 int res1 = 0 ;
30988 long val2 ;
30989 int ecode2 = 0 ;
30990 PyObject * obj0 = 0 ;
30991 PyObject * obj1 = 0 ;
30992 char * kwnames[] = {
30993 (char *) "self",(char *) "item", NULL
30994 };
30995
30996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30998 if (!SWIG_IsOK(res1)) {
30999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31000 }
31001 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31002 ecode2 = SWIG_AsVal_long(obj1, &val2);
31003 if (!SWIG_IsOK(ecode2)) {
31004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
31005 }
31006 arg2 = static_cast< long >(val2);
31007 {
31008 PyThreadState* __tstate = wxPyBeginAllowThreads();
31009 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
31010 wxPyEndAllowThreads(__tstate);
31011 if (PyErr_Occurred()) SWIG_fail;
31012 }
31013 {
31014 resultobj = wxPyMake_wxObject(result, 0);
31015 }
31016 return resultobj;
31017fail:
31018 return NULL;
31019}
31020
31021
31022SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31023 PyObject *resultobj = 0;
31024 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31025 bool arg2 ;
31026 bool result;
31027 void *argp1 = 0 ;
31028 int res1 = 0 ;
31029 bool val2 ;
31030 int ecode2 = 0 ;
31031 PyObject * obj0 = 0 ;
31032 PyObject * obj1 = 0 ;
31033 char * kwnames[] = {
31034 (char *) "self",(char *) "cancel", NULL
31035 };
31036
31037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31039 if (!SWIG_IsOK(res1)) {
31040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31041 }
31042 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31043 ecode2 = SWIG_AsVal_bool(obj1, &val2);
31044 if (!SWIG_IsOK(ecode2)) {
31045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
31046 }
31047 arg2 = static_cast< bool >(val2);
31048 {
31049 PyThreadState* __tstate = wxPyBeginAllowThreads();
31050 result = (bool)(arg1)->EndEditLabel(arg2);
31051 wxPyEndAllowThreads(__tstate);
31052 if (PyErr_Occurred()) SWIG_fail;
31053 }
31054 {
31055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31056 }
31057 return resultobj;
31058fail:
31059 return NULL;
31060}
31061
31062
31063SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31064 PyObject *resultobj = 0;
31065 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31066 long arg2 ;
31067 bool result;
31068 void *argp1 = 0 ;
31069 int res1 = 0 ;
31070 long val2 ;
31071 int ecode2 = 0 ;
31072 PyObject * obj0 = 0 ;
31073 PyObject * obj1 = 0 ;
31074 char * kwnames[] = {
31075 (char *) "self",(char *) "item", NULL
31076 };
31077
31078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
31079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31080 if (!SWIG_IsOK(res1)) {
31081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31082 }
31083 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31084 ecode2 = SWIG_AsVal_long(obj1, &val2);
31085 if (!SWIG_IsOK(ecode2)) {
31086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31087 }
31088 arg2 = static_cast< long >(val2);
31089 {
31090 PyThreadState* __tstate = wxPyBeginAllowThreads();
31091 result = (bool)(arg1)->EnsureVisible(arg2);
31092 wxPyEndAllowThreads(__tstate);
31093 if (PyErr_Occurred()) SWIG_fail;
31094 }
31095 {
31096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31097 }
31098 return resultobj;
31099fail:
31100 return NULL;
31101}
31102
31103
31104SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31105 PyObject *resultobj = 0;
31106 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31107 long arg2 ;
31108 wxString *arg3 = 0 ;
31109 bool arg4 = (bool) false ;
31110 long result;
31111 void *argp1 = 0 ;
31112 int res1 = 0 ;
31113 long val2 ;
31114 int ecode2 = 0 ;
31115 bool temp3 = false ;
31116 bool val4 ;
31117 int ecode4 = 0 ;
31118 PyObject * obj0 = 0 ;
31119 PyObject * obj1 = 0 ;
31120 PyObject * obj2 = 0 ;
31121 PyObject * obj3 = 0 ;
31122 char * kwnames[] = {
31123 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31124 };
31125
31126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31128 if (!SWIG_IsOK(res1)) {
31129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31130 }
31131 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31132 ecode2 = SWIG_AsVal_long(obj1, &val2);
31133 if (!SWIG_IsOK(ecode2)) {
31134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31135 }
31136 arg2 = static_cast< long >(val2);
31137 {
31138 arg3 = wxString_in_helper(obj2);
31139 if (arg3 == NULL) SWIG_fail;
31140 temp3 = true;
31141 }
31142 if (obj3) {
31143 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31144 if (!SWIG_IsOK(ecode4)) {
31145 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31146 }
31147 arg4 = static_cast< bool >(val4);
31148 }
31149 {
31150 PyThreadState* __tstate = wxPyBeginAllowThreads();
31151 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31152 wxPyEndAllowThreads(__tstate);
31153 if (PyErr_Occurred()) SWIG_fail;
31154 }
31155 resultobj = SWIG_From_long(static_cast< long >(result));
31156 {
31157 if (temp3)
31158 delete arg3;
31159 }
31160 return resultobj;
31161fail:
31162 {
31163 if (temp3)
31164 delete arg3;
31165 }
31166 return NULL;
31167}
31168
31169
31170SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31171 PyObject *resultobj = 0;
31172 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31173 long arg2 ;
31174 long arg3 ;
31175 long result;
31176 void *argp1 = 0 ;
31177 int res1 = 0 ;
31178 long val2 ;
31179 int ecode2 = 0 ;
31180 long val3 ;
31181 int ecode3 = 0 ;
31182 PyObject * obj0 = 0 ;
31183 PyObject * obj1 = 0 ;
31184 PyObject * obj2 = 0 ;
31185 char * kwnames[] = {
31186 (char *) "self",(char *) "start",(char *) "data", NULL
31187 };
31188
31189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31191 if (!SWIG_IsOK(res1)) {
31192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31193 }
31194 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31195 ecode2 = SWIG_AsVal_long(obj1, &val2);
31196 if (!SWIG_IsOK(ecode2)) {
31197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31198 }
31199 arg2 = static_cast< long >(val2);
31200 ecode3 = SWIG_AsVal_long(obj2, &val3);
31201 if (!SWIG_IsOK(ecode3)) {
31202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31203 }
31204 arg3 = static_cast< long >(val3);
31205 {
31206 PyThreadState* __tstate = wxPyBeginAllowThreads();
31207 result = (long)(arg1)->FindItem(arg2,arg3);
31208 wxPyEndAllowThreads(__tstate);
31209 if (PyErr_Occurred()) SWIG_fail;
31210 }
31211 resultobj = SWIG_From_long(static_cast< long >(result));
31212 return resultobj;
31213fail:
31214 return NULL;
31215}
31216
31217
31218SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31219 PyObject *resultobj = 0;
31220 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31221 long arg2 ;
31222 wxPoint *arg3 = 0 ;
31223 int arg4 ;
31224 long result;
31225 void *argp1 = 0 ;
31226 int res1 = 0 ;
31227 long val2 ;
31228 int ecode2 = 0 ;
31229 wxPoint temp3 ;
31230 int val4 ;
31231 int ecode4 = 0 ;
31232 PyObject * obj0 = 0 ;
31233 PyObject * obj1 = 0 ;
31234 PyObject * obj2 = 0 ;
31235 PyObject * obj3 = 0 ;
31236 char * kwnames[] = {
31237 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31238 };
31239
31240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31242 if (!SWIG_IsOK(res1)) {
31243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31244 }
31245 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31246 ecode2 = SWIG_AsVal_long(obj1, &val2);
31247 if (!SWIG_IsOK(ecode2)) {
31248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31249 }
31250 arg2 = static_cast< long >(val2);
31251 {
31252 arg3 = &temp3;
31253 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31254 }
31255 ecode4 = SWIG_AsVal_int(obj3, &val4);
31256 if (!SWIG_IsOK(ecode4)) {
31257 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31258 }
31259 arg4 = static_cast< int >(val4);
31260 {
31261 PyThreadState* __tstate = wxPyBeginAllowThreads();
31262 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31263 wxPyEndAllowThreads(__tstate);
31264 if (PyErr_Occurred()) SWIG_fail;
31265 }
31266 resultobj = SWIG_From_long(static_cast< long >(result));
31267 return resultobj;
31268fail:
31269 return NULL;
31270}
31271
31272
31273SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31274 PyObject *resultobj = 0;
31275 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31276 wxPoint *arg2 = 0 ;
31277 int *arg3 = 0 ;
31278 long result;
31279 void *argp1 = 0 ;
31280 int res1 = 0 ;
31281 wxPoint temp2 ;
31282 int temp3 ;
31283 int res3 = SWIG_TMPOBJ ;
31284 PyObject * obj0 = 0 ;
31285 PyObject * obj1 = 0 ;
31286 char * kwnames[] = {
31287 (char *) "self",(char *) "point", NULL
31288 };
31289
31290 arg3 = &temp3;
31291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31293 if (!SWIG_IsOK(res1)) {
31294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31295 }
31296 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31297 {
31298 arg2 = &temp2;
31299 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31300 }
31301 {
31302 PyThreadState* __tstate = wxPyBeginAllowThreads();
31303 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31304 wxPyEndAllowThreads(__tstate);
31305 if (PyErr_Occurred()) SWIG_fail;
31306 }
31307 resultobj = SWIG_From_long(static_cast< long >(result));
31308 if (SWIG_IsTmpObj(res3)) {
31309 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31310 } else {
31311 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31313 }
31314 return resultobj;
31315fail:
31316 return NULL;
31317}
31318
31319
704eda0c
RD
31320SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31321 PyObject *resultobj = 0;
31322 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31323 wxPoint *arg2 = 0 ;
31324 int *arg3 = 0 ;
31325 long *arg4 = (long *) 0 ;
31326 long result;
31327 void *argp1 = 0 ;
31328 int res1 = 0 ;
31329 wxPoint temp2 ;
31330 int temp3 ;
31331 int res3 = SWIG_TMPOBJ ;
31332 long temp4 ;
31333 int res4 = SWIG_TMPOBJ ;
31334 PyObject * obj0 = 0 ;
31335 PyObject * obj1 = 0 ;
31336 char * kwnames[] = {
31337 (char *) "self",(char *) "point", NULL
31338 };
31339
31340 arg3 = &temp3;
31341 arg4 = &temp4;
31342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31344 if (!SWIG_IsOK(res1)) {
31345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31346 }
31347 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31348 {
31349 arg2 = &temp2;
31350 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31351 }
31352 {
31353 PyThreadState* __tstate = wxPyBeginAllowThreads();
31354 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31355 wxPyEndAllowThreads(__tstate);
31356 if (PyErr_Occurred()) SWIG_fail;
31357 }
31358 resultobj = SWIG_From_long(static_cast< long >(result));
31359 if (SWIG_IsTmpObj(res3)) {
31360 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31361 } else {
31362 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31363 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31364 }
31365 if (SWIG_IsTmpObj(res4)) {
31366 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31367 } else {
31368 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31369 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31370 }
31371 return resultobj;
31372fail:
31373 return NULL;
31374}
31375
31376
554f62e9
RD
31377SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31378 PyObject *resultobj = 0;
31379 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31380 wxListItem *arg2 = 0 ;
31381 long result;
31382 void *argp1 = 0 ;
31383 int res1 = 0 ;
31384 void *argp2 = 0 ;
31385 int res2 = 0 ;
31386 PyObject * obj0 = 0 ;
31387 PyObject * obj1 = 0 ;
31388 char * kwnames[] = {
31389 (char *) "self",(char *) "info", NULL
31390 };
31391
31392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31394 if (!SWIG_IsOK(res1)) {
31395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31396 }
31397 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31398 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31399 if (!SWIG_IsOK(res2)) {
31400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31401 }
31402 if (!argp2) {
31403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31404 }
31405 arg2 = reinterpret_cast< wxListItem * >(argp2);
31406 {
31407 PyThreadState* __tstate = wxPyBeginAllowThreads();
31408 result = (long)(arg1)->InsertItem(*arg2);
31409 wxPyEndAllowThreads(__tstate);
31410 if (PyErr_Occurred()) SWIG_fail;
31411 }
31412 resultobj = SWIG_From_long(static_cast< long >(result));
31413 return resultobj;
31414fail:
31415 return NULL;
31416}
31417
31418
31419SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31420 PyObject *resultobj = 0;
31421 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31422 long arg2 ;
31423 wxString *arg3 = 0 ;
31424 int arg4 = (int) -1 ;
31425 long result;
31426 void *argp1 = 0 ;
31427 int res1 = 0 ;
31428 long val2 ;
31429 int ecode2 = 0 ;
31430 bool temp3 = false ;
31431 int val4 ;
31432 int ecode4 = 0 ;
31433 PyObject * obj0 = 0 ;
31434 PyObject * obj1 = 0 ;
31435 PyObject * obj2 = 0 ;
31436 PyObject * obj3 = 0 ;
31437 char * kwnames[] = {
31438 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31439 };
31440
31441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31443 if (!SWIG_IsOK(res1)) {
31444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31445 }
31446 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31447 ecode2 = SWIG_AsVal_long(obj1, &val2);
31448 if (!SWIG_IsOK(ecode2)) {
31449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31450 }
31451 arg2 = static_cast< long >(val2);
31452 {
31453 arg3 = wxString_in_helper(obj2);
31454 if (arg3 == NULL) SWIG_fail;
31455 temp3 = true;
31456 }
31457 if (obj3) {
31458 ecode4 = SWIG_AsVal_int(obj3, &val4);
31459 if (!SWIG_IsOK(ecode4)) {
31460 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31461 }
31462 arg4 = static_cast< int >(val4);
31463 }
31464 {
31465 PyThreadState* __tstate = wxPyBeginAllowThreads();
31466 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31467 wxPyEndAllowThreads(__tstate);
31468 if (PyErr_Occurred()) SWIG_fail;
31469 }
31470 resultobj = SWIG_From_long(static_cast< long >(result));
31471 {
31472 if (temp3)
31473 delete arg3;
31474 }
31475 return resultobj;
31476fail:
31477 {
31478 if (temp3)
31479 delete arg3;
31480 }
31481 return NULL;
31482}
31483
31484
31485SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31486 PyObject *resultobj = 0;
31487 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31488 long arg2 ;
31489 int arg3 ;
31490 long result;
31491 void *argp1 = 0 ;
31492 int res1 = 0 ;
31493 long val2 ;
31494 int ecode2 = 0 ;
31495 int val3 ;
31496 int ecode3 = 0 ;
31497 PyObject * obj0 = 0 ;
31498 PyObject * obj1 = 0 ;
31499 PyObject * obj2 = 0 ;
31500 char * kwnames[] = {
31501 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31502 };
31503
31504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31506 if (!SWIG_IsOK(res1)) {
31507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31508 }
31509 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31510 ecode2 = SWIG_AsVal_long(obj1, &val2);
31511 if (!SWIG_IsOK(ecode2)) {
31512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31513 }
31514 arg2 = static_cast< long >(val2);
31515 ecode3 = SWIG_AsVal_int(obj2, &val3);
31516 if (!SWIG_IsOK(ecode3)) {
31517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31518 }
31519 arg3 = static_cast< int >(val3);
31520 {
31521 PyThreadState* __tstate = wxPyBeginAllowThreads();
31522 result = (long)(arg1)->InsertItem(arg2,arg3);
31523 wxPyEndAllowThreads(__tstate);
31524 if (PyErr_Occurred()) SWIG_fail;
31525 }
31526 resultobj = SWIG_From_long(static_cast< long >(result));
31527 return resultobj;
31528fail:
31529 return NULL;
31530}
31531
31532
31533SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31534 PyObject *resultobj = 0;
31535 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31536 long arg2 ;
31537 wxString *arg3 = 0 ;
31538 int arg4 ;
31539 long result;
31540 void *argp1 = 0 ;
31541 int res1 = 0 ;
31542 long val2 ;
31543 int ecode2 = 0 ;
31544 bool temp3 = false ;
31545 int val4 ;
31546 int ecode4 = 0 ;
31547 PyObject * obj0 = 0 ;
31548 PyObject * obj1 = 0 ;
31549 PyObject * obj2 = 0 ;
31550 PyObject * obj3 = 0 ;
31551 char * kwnames[] = {
31552 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31553 };
31554
31555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31557 if (!SWIG_IsOK(res1)) {
31558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31559 }
31560 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31561 ecode2 = SWIG_AsVal_long(obj1, &val2);
31562 if (!SWIG_IsOK(ecode2)) {
31563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31564 }
31565 arg2 = static_cast< long >(val2);
31566 {
31567 arg3 = wxString_in_helper(obj2);
31568 if (arg3 == NULL) SWIG_fail;
31569 temp3 = true;
31570 }
31571 ecode4 = SWIG_AsVal_int(obj3, &val4);
31572 if (!SWIG_IsOK(ecode4)) {
31573 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31574 }
31575 arg4 = static_cast< int >(val4);
31576 {
31577 PyThreadState* __tstate = wxPyBeginAllowThreads();
31578 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31579 wxPyEndAllowThreads(__tstate);
31580 if (PyErr_Occurred()) SWIG_fail;
31581 }
31582 resultobj = SWIG_From_long(static_cast< long >(result));
31583 {
31584 if (temp3)
31585 delete arg3;
31586 }
31587 return resultobj;
31588fail:
31589 {
31590 if (temp3)
31591 delete arg3;
31592 }
31593 return NULL;
31594}
31595
31596
31597SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31598 PyObject *resultobj = 0;
31599 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31600 long arg2 ;
31601 wxListItem *arg3 = 0 ;
31602 long result;
31603 void *argp1 = 0 ;
31604 int res1 = 0 ;
31605 long val2 ;
31606 int ecode2 = 0 ;
31607 void *argp3 = 0 ;
31608 int res3 = 0 ;
31609 PyObject * obj0 = 0 ;
31610 PyObject * obj1 = 0 ;
31611 PyObject * obj2 = 0 ;
31612 char * kwnames[] = {
31613 (char *) "self",(char *) "col",(char *) "info", NULL
31614 };
31615
31616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31618 if (!SWIG_IsOK(res1)) {
31619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31620 }
31621 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31622 ecode2 = SWIG_AsVal_long(obj1, &val2);
31623 if (!SWIG_IsOK(ecode2)) {
31624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31625 }
31626 arg2 = static_cast< long >(val2);
31627 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31628 if (!SWIG_IsOK(res3)) {
31629 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31630 }
31631 if (!argp3) {
31632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31633 }
31634 arg3 = reinterpret_cast< wxListItem * >(argp3);
31635 {
31636 PyThreadState* __tstate = wxPyBeginAllowThreads();
31637 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31638 wxPyEndAllowThreads(__tstate);
31639 if (PyErr_Occurred()) SWIG_fail;
31640 }
31641 resultobj = SWIG_From_long(static_cast< long >(result));
31642 return resultobj;
31643fail:
31644 return NULL;
31645}
31646
31647
31648SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31649 PyObject *resultobj = 0;
31650 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31651 long arg2 ;
31652 wxString *arg3 = 0 ;
31653 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31654 int arg5 = (int) -1 ;
31655 long result;
31656 void *argp1 = 0 ;
31657 int res1 = 0 ;
31658 long val2 ;
31659 int ecode2 = 0 ;
31660 bool temp3 = false ;
31661 int val4 ;
31662 int ecode4 = 0 ;
31663 int val5 ;
31664 int ecode5 = 0 ;
31665 PyObject * obj0 = 0 ;
31666 PyObject * obj1 = 0 ;
31667 PyObject * obj2 = 0 ;
31668 PyObject * obj3 = 0 ;
31669 PyObject * obj4 = 0 ;
31670 char * kwnames[] = {
31671 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31672 };
31673
31674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31676 if (!SWIG_IsOK(res1)) {
31677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31678 }
31679 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31680 ecode2 = SWIG_AsVal_long(obj1, &val2);
31681 if (!SWIG_IsOK(ecode2)) {
31682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31683 }
31684 arg2 = static_cast< long >(val2);
31685 {
31686 arg3 = wxString_in_helper(obj2);
31687 if (arg3 == NULL) SWIG_fail;
31688 temp3 = true;
31689 }
31690 if (obj3) {
31691 ecode4 = SWIG_AsVal_int(obj3, &val4);
31692 if (!SWIG_IsOK(ecode4)) {
31693 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31694 }
31695 arg4 = static_cast< int >(val4);
31696 }
31697 if (obj4) {
31698 ecode5 = SWIG_AsVal_int(obj4, &val5);
31699 if (!SWIG_IsOK(ecode5)) {
31700 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31701 }
31702 arg5 = static_cast< int >(val5);
31703 }
31704 {
31705 PyThreadState* __tstate = wxPyBeginAllowThreads();
31706 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31707 wxPyEndAllowThreads(__tstate);
31708 if (PyErr_Occurred()) SWIG_fail;
31709 }
31710 resultobj = SWIG_From_long(static_cast< long >(result));
31711 {
31712 if (temp3)
31713 delete arg3;
31714 }
31715 return resultobj;
31716fail:
31717 {
31718 if (temp3)
31719 delete arg3;
31720 }
31721 return NULL;
31722}
31723
31724
31725SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31726 PyObject *resultobj = 0;
31727 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31728 long arg2 ;
31729 void *argp1 = 0 ;
31730 int res1 = 0 ;
31731 long val2 ;
31732 int ecode2 = 0 ;
31733 PyObject * obj0 = 0 ;
31734 PyObject * obj1 = 0 ;
31735 char * kwnames[] = {
31736 (char *) "self",(char *) "count", NULL
31737 };
31738
31739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31741 if (!SWIG_IsOK(res1)) {
31742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31743 }
31744 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31745 ecode2 = SWIG_AsVal_long(obj1, &val2);
31746 if (!SWIG_IsOK(ecode2)) {
31747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31748 }
31749 arg2 = static_cast< long >(val2);
31750 {
31751 PyThreadState* __tstate = wxPyBeginAllowThreads();
31752 (arg1)->SetItemCount(arg2);
31753 wxPyEndAllowThreads(__tstate);
31754 if (PyErr_Occurred()) SWIG_fail;
31755 }
31756 resultobj = SWIG_Py_Void();
31757 return resultobj;
31758fail:
31759 return NULL;
31760}
31761
31762
31763SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31764 PyObject *resultobj = 0;
31765 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31766 int arg2 ;
31767 int arg3 ;
31768 bool result;
31769 void *argp1 = 0 ;
31770 int res1 = 0 ;
31771 int val2 ;
31772 int ecode2 = 0 ;
31773 int val3 ;
31774 int ecode3 = 0 ;
31775 PyObject * obj0 = 0 ;
31776 PyObject * obj1 = 0 ;
31777 PyObject * obj2 = 0 ;
31778 char * kwnames[] = {
31779 (char *) "self",(char *) "dx",(char *) "dy", NULL
31780 };
31781
31782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31784 if (!SWIG_IsOK(res1)) {
31785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31786 }
31787 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31788 ecode2 = SWIG_AsVal_int(obj1, &val2);
31789 if (!SWIG_IsOK(ecode2)) {
31790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31791 }
31792 arg2 = static_cast< int >(val2);
31793 ecode3 = SWIG_AsVal_int(obj2, &val3);
31794 if (!SWIG_IsOK(ecode3)) {
31795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31796 }
31797 arg3 = static_cast< int >(val3);
31798 {
31799 PyThreadState* __tstate = wxPyBeginAllowThreads();
31800 result = (bool)(arg1)->ScrollList(arg2,arg3);
31801 wxPyEndAllowThreads(__tstate);
31802 if (PyErr_Occurred()) SWIG_fail;
31803 }
31804 {
31805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31806 }
31807 return resultobj;
31808fail:
31809 return NULL;
31810}
31811
31812
31813SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31814 PyObject *resultobj = 0;
31815 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31816 long arg2 ;
31817 wxColour *arg3 = 0 ;
31818 void *argp1 = 0 ;
31819 int res1 = 0 ;
31820 long val2 ;
31821 int ecode2 = 0 ;
31822 wxColour temp3 ;
31823 PyObject * obj0 = 0 ;
31824 PyObject * obj1 = 0 ;
31825 PyObject * obj2 = 0 ;
31826 char * kwnames[] = {
31827 (char *) "self",(char *) "item",(char *) "col", NULL
31828 };
31829
31830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31832 if (!SWIG_IsOK(res1)) {
31833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31834 }
31835 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31836 ecode2 = SWIG_AsVal_long(obj1, &val2);
31837 if (!SWIG_IsOK(ecode2)) {
31838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31839 }
31840 arg2 = static_cast< long >(val2);
31841 {
31842 arg3 = &temp3;
31843 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31844 }
31845 {
31846 PyThreadState* __tstate = wxPyBeginAllowThreads();
31847 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31848 wxPyEndAllowThreads(__tstate);
31849 if (PyErr_Occurred()) SWIG_fail;
31850 }
31851 resultobj = SWIG_Py_Void();
31852 return resultobj;
31853fail:
31854 return NULL;
31855}
31856
31857
31858SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31859 PyObject *resultobj = 0;
31860 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31861 long arg2 ;
31862 wxColour result;
31863 void *argp1 = 0 ;
31864 int res1 = 0 ;
31865 long val2 ;
31866 int ecode2 = 0 ;
31867 PyObject * obj0 = 0 ;
31868 PyObject * obj1 = 0 ;
31869 char * kwnames[] = {
31870 (char *) "self",(char *) "item", NULL
31871 };
31872
31873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31875 if (!SWIG_IsOK(res1)) {
31876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31877 }
31878 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31879 ecode2 = SWIG_AsVal_long(obj1, &val2);
31880 if (!SWIG_IsOK(ecode2)) {
31881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31882 }
31883 arg2 = static_cast< long >(val2);
31884 {
31885 PyThreadState* __tstate = wxPyBeginAllowThreads();
31886 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31887 wxPyEndAllowThreads(__tstate);
31888 if (PyErr_Occurred()) SWIG_fail;
31889 }
31890 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31891 return resultobj;
31892fail:
31893 return NULL;
31894}
31895
31896
31897SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31898 PyObject *resultobj = 0;
31899 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31900 long arg2 ;
31901 wxColour *arg3 = 0 ;
31902 void *argp1 = 0 ;
31903 int res1 = 0 ;
31904 long val2 ;
31905 int ecode2 = 0 ;
31906 wxColour temp3 ;
31907 PyObject * obj0 = 0 ;
31908 PyObject * obj1 = 0 ;
31909 PyObject * obj2 = 0 ;
31910 char * kwnames[] = {
31911 (char *) "self",(char *) "item",(char *) "col", NULL
31912 };
31913
31914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31916 if (!SWIG_IsOK(res1)) {
31917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31918 }
31919 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31920 ecode2 = SWIG_AsVal_long(obj1, &val2);
31921 if (!SWIG_IsOK(ecode2)) {
31922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31923 }
31924 arg2 = static_cast< long >(val2);
31925 {
31926 arg3 = &temp3;
31927 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31928 }
31929 {
31930 PyThreadState* __tstate = wxPyBeginAllowThreads();
31931 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31932 wxPyEndAllowThreads(__tstate);
31933 if (PyErr_Occurred()) SWIG_fail;
31934 }
31935 resultobj = SWIG_Py_Void();
31936 return resultobj;
31937fail:
31938 return NULL;
31939}
31940
31941
31942SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31943 PyObject *resultobj = 0;
31944 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31945 long arg2 ;
31946 wxColour result;
31947 void *argp1 = 0 ;
31948 int res1 = 0 ;
31949 long val2 ;
31950 int ecode2 = 0 ;
31951 PyObject * obj0 = 0 ;
31952 PyObject * obj1 = 0 ;
31953 char * kwnames[] = {
31954 (char *) "self",(char *) "item", NULL
31955 };
31956
31957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31959 if (!SWIG_IsOK(res1)) {
31960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31961 }
31962 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31963 ecode2 = SWIG_AsVal_long(obj1, &val2);
31964 if (!SWIG_IsOK(ecode2)) {
31965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31966 }
31967 arg2 = static_cast< long >(val2);
31968 {
31969 PyThreadState* __tstate = wxPyBeginAllowThreads();
31970 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31971 wxPyEndAllowThreads(__tstate);
31972 if (PyErr_Occurred()) SWIG_fail;
31973 }
31974 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31975 return resultobj;
31976fail:
31977 return NULL;
31978}
31979
31980
31981SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31982 PyObject *resultobj = 0;
31983 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31984 long arg2 ;
31985 wxFont *arg3 = 0 ;
31986 void *argp1 = 0 ;
31987 int res1 = 0 ;
31988 long val2 ;
31989 int ecode2 = 0 ;
31990 void *argp3 = 0 ;
31991 int res3 = 0 ;
31992 PyObject * obj0 = 0 ;
31993 PyObject * obj1 = 0 ;
31994 PyObject * obj2 = 0 ;
31995 char * kwnames[] = {
31996 (char *) "self",(char *) "item",(char *) "f", NULL
31997 };
31998
31999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32001 if (!SWIG_IsOK(res1)) {
32002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32003 }
32004 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32005 ecode2 = SWIG_AsVal_long(obj1, &val2);
32006 if (!SWIG_IsOK(ecode2)) {
32007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
32008 }
32009 arg2 = static_cast< long >(val2);
32010 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
32011 if (!SWIG_IsOK(res3)) {
32012 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32013 }
32014 if (!argp3) {
32015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32016 }
32017 arg3 = reinterpret_cast< wxFont * >(argp3);
32018 {
32019 PyThreadState* __tstate = wxPyBeginAllowThreads();
32020 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
32021 wxPyEndAllowThreads(__tstate);
32022 if (PyErr_Occurred()) SWIG_fail;
32023 }
32024 resultobj = SWIG_Py_Void();
32025 return resultobj;
32026fail:
32027 return NULL;
32028}
32029
32030
32031SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32032 PyObject *resultobj = 0;
32033 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32034 long arg2 ;
32035 wxFont result;
32036 void *argp1 = 0 ;
32037 int res1 = 0 ;
32038 long val2 ;
32039 int ecode2 = 0 ;
32040 PyObject * obj0 = 0 ;
32041 PyObject * obj1 = 0 ;
32042 char * kwnames[] = {
32043 (char *) "self",(char *) "item", NULL
32044 };
32045
32046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
32047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32048 if (!SWIG_IsOK(res1)) {
32049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32050 }
32051 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32052 ecode2 = SWIG_AsVal_long(obj1, &val2);
32053 if (!SWIG_IsOK(ecode2)) {
32054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
32055 }
32056 arg2 = static_cast< long >(val2);
32057 {
32058 PyThreadState* __tstate = wxPyBeginAllowThreads();
32059 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
32060 wxPyEndAllowThreads(__tstate);
32061 if (PyErr_Occurred()) SWIG_fail;
32062 }
32063 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
32064 return resultobj;
32065fail:
32066 return NULL;
32067}
32068
32069
32070SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32071 PyObject *resultobj = 0;
32072 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32073 PyObject *arg2 = (PyObject *) 0 ;
32074 bool result;
32075 void *argp1 = 0 ;
32076 int res1 = 0 ;
32077 PyObject * obj0 = 0 ;
32078 PyObject * obj1 = 0 ;
32079 char * kwnames[] = {
32080 (char *) "self",(char *) "func", NULL
32081 };
32082
32083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32085 if (!SWIG_IsOK(res1)) {
32086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32087 }
32088 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32089 arg2 = obj1;
32090 {
32091 PyThreadState* __tstate = wxPyBeginAllowThreads();
32092 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32093 wxPyEndAllowThreads(__tstate);
32094 if (PyErr_Occurred()) SWIG_fail;
32095 }
32096 {
32097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32098 }
32099 return resultobj;
32100fail:
32101 return NULL;
1fbf26be
RD
32102}
32103
32104
554f62e9
RD
32105SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32106 PyObject *resultobj = 0;
32107 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32108 wxWindow *result = 0 ;
32109 void *argp1 = 0 ;
32110 int res1 = 0 ;
32111 PyObject *swig_obj[1] ;
32112
32113 if (!args) SWIG_fail;
32114 swig_obj[0] = args;
32115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32116 if (!SWIG_IsOK(res1)) {
32117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32118 }
32119 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32120 {
32121 PyThreadState* __tstate = wxPyBeginAllowThreads();
32122 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32123 wxPyEndAllowThreads(__tstate);
32124 if (PyErr_Occurred()) SWIG_fail;
32125 }
32126 {
32127 resultobj = wxPyMake_wxObject(result, 0);
32128 }
32129 return resultobj;
32130fail:
32131 return NULL;
32132}
32133
32134
32135SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32136 PyObject *resultobj = 0;
32137 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32138 SwigValueWrapper<wxVisualAttributes > result;
32139 int val1 ;
32140 int ecode1 = 0 ;
32141 PyObject * obj0 = 0 ;
32142 char * kwnames[] = {
32143 (char *) "variant", NULL
32144 };
32145
32146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32147 if (obj0) {
32148 ecode1 = SWIG_AsVal_int(obj0, &val1);
32149 if (!SWIG_IsOK(ecode1)) {
32150 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32151 }
32152 arg1 = static_cast< wxWindowVariant >(val1);
32153 }
32154 {
32155 if (!wxPyCheckForApp()) SWIG_fail;
32156 PyThreadState* __tstate = wxPyBeginAllowThreads();
32157 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32158 wxPyEndAllowThreads(__tstate);
32159 if (PyErr_Occurred()) SWIG_fail;
32160 }
32161 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32162 return resultobj;
32163fail:
32164 return NULL;
32165}
32166
32167
32168SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32169 PyObject *obj;
32170 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32171 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32172 return SWIG_Py_Void();
32173}
32174
32175SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32176 return SWIG_Python_InitShadowInstance(args);
32177}
32178
32179SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32180 PyObject *resultobj = 0;
32181 wxWindow *arg1 = (wxWindow *) 0 ;
32182 int arg2 = (int) -1 ;
32183 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32184 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32185 wxSize const &arg4_defvalue = wxDefaultSize ;
32186 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32187 long arg5 = (long) wxLC_REPORT ;
32188 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32189 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32190 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32191 wxString *arg7 = (wxString *) &arg7_defvalue ;
32192 wxListView *result = 0 ;
32193 void *argp1 = 0 ;
32194 int res1 = 0 ;
32195 int val2 ;
32196 int ecode2 = 0 ;
32197 wxPoint temp3 ;
32198 wxSize temp4 ;
32199 long val5 ;
32200 int ecode5 = 0 ;
32201 void *argp6 = 0 ;
32202 int res6 = 0 ;
32203 bool temp7 = false ;
32204 PyObject * obj0 = 0 ;
32205 PyObject * obj1 = 0 ;
32206 PyObject * obj2 = 0 ;
32207 PyObject * obj3 = 0 ;
32208 PyObject * obj4 = 0 ;
32209 PyObject * obj5 = 0 ;
32210 PyObject * obj6 = 0 ;
32211 char * kwnames[] = {
32212 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32213 };
32214
32215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32217 if (!SWIG_IsOK(res1)) {
32218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32219 }
32220 arg1 = reinterpret_cast< wxWindow * >(argp1);
32221 if (obj1) {
32222 ecode2 = SWIG_AsVal_int(obj1, &val2);
32223 if (!SWIG_IsOK(ecode2)) {
32224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32225 }
32226 arg2 = static_cast< int >(val2);
32227 }
32228 if (obj2) {
32229 {
32230 arg3 = &temp3;
32231 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 32232 }
554f62e9
RD
32233 }
32234 if (obj3) {
32235 {
32236 arg4 = &temp4;
32237 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 32238 }
554f62e9
RD
32239 }
32240 if (obj4) {
32241 ecode5 = SWIG_AsVal_long(obj4, &val5);
32242 if (!SWIG_IsOK(ecode5)) {
32243 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32244 }
32245 arg5 = static_cast< long >(val5);
32246 }
32247 if (obj5) {
32248 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32249 if (!SWIG_IsOK(res6)) {
32250 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 32251 }
554f62e9
RD
32252 if (!argp6) {
32253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 32254 }
554f62e9
RD
32255 arg6 = reinterpret_cast< wxValidator * >(argp6);
32256 }
32257 if (obj6) {
d55e5bfc 32258 {
554f62e9
RD
32259 arg7 = wxString_in_helper(obj6);
32260 if (arg7 == NULL) SWIG_fail;
32261 temp7 = true;
d55e5bfc 32262 }
554f62e9
RD
32263 }
32264 {
32265 if (!wxPyCheckForApp()) SWIG_fail;
32266 PyThreadState* __tstate = wxPyBeginAllowThreads();
32267 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32268 wxPyEndAllowThreads(__tstate);
32269 if (PyErr_Occurred()) SWIG_fail;
32270 }
32271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32272 {
32273 if (temp7)
32274 delete arg7;
32275 }
32276 return resultobj;
32277fail:
32278 {
32279 if (temp7)
32280 delete arg7;
32281 }
32282 return NULL;
d55e5bfc
RD
32283}
32284
32285
554f62e9
RD
32286SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32287 PyObject *resultobj = 0;
32288 wxListView *result = 0 ;
32289
32290 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32291 {
32292 if (!wxPyCheckForApp()) SWIG_fail;
32293 PyThreadState* __tstate = wxPyBeginAllowThreads();
32294 result = (wxListView *)new wxListView();
32295 wxPyEndAllowThreads(__tstate);
32296 if (PyErr_Occurred()) SWIG_fail;
32297 }
32298 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32299 return resultobj;
32300fail:
32301 return NULL;
32302}
32303
32304
32305SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32306 PyObject *resultobj = 0;
32307 wxListView *arg1 = (wxListView *) 0 ;
32308 wxWindow *arg2 = (wxWindow *) 0 ;
32309 int arg3 = (int) -1 ;
32310 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32311 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32312 wxSize const &arg5_defvalue = wxDefaultSize ;
32313 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32314 long arg6 = (long) wxLC_REPORT ;
32315 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32316 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32317 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32318 wxString *arg8 = (wxString *) &arg8_defvalue ;
32319 bool result;
32320 void *argp1 = 0 ;
32321 int res1 = 0 ;
32322 void *argp2 = 0 ;
32323 int res2 = 0 ;
32324 int val3 ;
32325 int ecode3 = 0 ;
32326 wxPoint temp4 ;
32327 wxSize temp5 ;
32328 long val6 ;
32329 int ecode6 = 0 ;
32330 void *argp7 = 0 ;
32331 int res7 = 0 ;
32332 bool temp8 = false ;
32333 PyObject * obj0 = 0 ;
32334 PyObject * obj1 = 0 ;
32335 PyObject * obj2 = 0 ;
32336 PyObject * obj3 = 0 ;
32337 PyObject * obj4 = 0 ;
32338 PyObject * obj5 = 0 ;
32339 PyObject * obj6 = 0 ;
32340 PyObject * obj7 = 0 ;
32341 char * kwnames[] = {
32342 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32343 };
32344
32345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32347 if (!SWIG_IsOK(res1)) {
32348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32349 }
32350 arg1 = reinterpret_cast< wxListView * >(argp1);
32351 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32352 if (!SWIG_IsOK(res2)) {
32353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32354 }
32355 arg2 = reinterpret_cast< wxWindow * >(argp2);
32356 if (obj2) {
32357 ecode3 = SWIG_AsVal_int(obj2, &val3);
32358 if (!SWIG_IsOK(ecode3)) {
32359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32360 }
32361 arg3 = static_cast< int >(val3);
32362 }
32363 if (obj3) {
093d3ff1 32364 {
554f62e9
RD
32365 arg4 = &temp4;
32366 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
ae8162c8 32367 }
554f62e9
RD
32368 }
32369 if (obj4) {
32370 {
32371 arg5 = &temp5;
32372 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
ae8162c8 32373 }
554f62e9
RD
32374 }
32375 if (obj5) {
32376 ecode6 = SWIG_AsVal_long(obj5, &val6);
32377 if (!SWIG_IsOK(ecode6)) {
32378 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32379 }
32380 arg6 = static_cast< long >(val6);
32381 }
32382 if (obj6) {
32383 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32384 if (!SWIG_IsOK(res7)) {
32385 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
ae8162c8 32386 }
554f62e9
RD
32387 if (!argp7) {
32388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
ae8162c8 32389 }
554f62e9
RD
32390 arg7 = reinterpret_cast< wxValidator * >(argp7);
32391 }
32392 if (obj7) {
ae8162c8 32393 {
554f62e9
RD
32394 arg8 = wxString_in_helper(obj7);
32395 if (arg8 == NULL) SWIG_fail;
32396 temp8 = true;
ae8162c8 32397 }
554f62e9
RD
32398 }
32399 {
32400 PyThreadState* __tstate = wxPyBeginAllowThreads();
32401 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32402 wxPyEndAllowThreads(__tstate);
32403 if (PyErr_Occurred()) SWIG_fail;
32404 }
32405 {
32406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32407 }
32408 {
32409 if (temp8)
32410 delete arg8;
32411 }
32412 return resultobj;
32413fail:
32414 {
32415 if (temp8)
32416 delete arg8;
32417 }
32418 return NULL;
32419}
32420
32421
32422SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32423 PyObject *resultobj = 0;
32424 wxListView *arg1 = (wxListView *) 0 ;
32425 long arg2 ;
32426 bool arg3 = (bool) true ;
32427 void *argp1 = 0 ;
32428 int res1 = 0 ;
32429 long val2 ;
32430 int ecode2 = 0 ;
32431 bool val3 ;
32432 int ecode3 = 0 ;
32433 PyObject * obj0 = 0 ;
32434 PyObject * obj1 = 0 ;
32435 PyObject * obj2 = 0 ;
32436 char * kwnames[] = {
32437 (char *) "self",(char *) "n",(char *) "on", NULL
32438 };
32439
32440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32442 if (!SWIG_IsOK(res1)) {
32443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32444 }
32445 arg1 = reinterpret_cast< wxListView * >(argp1);
32446 ecode2 = SWIG_AsVal_long(obj1, &val2);
32447 if (!SWIG_IsOK(ecode2)) {
32448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32449 }
32450 arg2 = static_cast< long >(val2);
32451 if (obj2) {
32452 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32453 if (!SWIG_IsOK(ecode3)) {
32454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32455 }
32456 arg3 = static_cast< bool >(val3);
32457 }
32458 {
32459 PyThreadState* __tstate = wxPyBeginAllowThreads();
32460 (arg1)->Select(arg2,arg3);
32461 wxPyEndAllowThreads(__tstate);
32462 if (PyErr_Occurred()) SWIG_fail;
32463 }
32464 resultobj = SWIG_Py_Void();
32465 return resultobj;
32466fail:
32467 return NULL;
32468}
32469
32470
32471SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32472 PyObject *resultobj = 0;
32473 wxListView *arg1 = (wxListView *) 0 ;
32474 long arg2 ;
32475 void *argp1 = 0 ;
32476 int res1 = 0 ;
32477 long val2 ;
32478 int ecode2 = 0 ;
32479 PyObject * obj0 = 0 ;
32480 PyObject * obj1 = 0 ;
32481 char * kwnames[] = {
32482 (char *) "self",(char *) "index", NULL
32483 };
32484
32485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32487 if (!SWIG_IsOK(res1)) {
32488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32489 }
32490 arg1 = reinterpret_cast< wxListView * >(argp1);
32491 ecode2 = SWIG_AsVal_long(obj1, &val2);
32492 if (!SWIG_IsOK(ecode2)) {
32493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32494 }
32495 arg2 = static_cast< long >(val2);
32496 {
32497 PyThreadState* __tstate = wxPyBeginAllowThreads();
32498 (arg1)->Focus(arg2);
32499 wxPyEndAllowThreads(__tstate);
32500 if (PyErr_Occurred()) SWIG_fail;
32501 }
32502 resultobj = SWIG_Py_Void();
32503 return resultobj;
32504fail:
32505 return NULL;
ae8162c8
RD
32506}
32507
32508
554f62e9
RD
32509SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32510 PyObject *resultobj = 0;
32511 wxListView *arg1 = (wxListView *) 0 ;
32512 long result;
32513 void *argp1 = 0 ;
32514 int res1 = 0 ;
32515 PyObject *swig_obj[1] ;
32516
32517 if (!args) SWIG_fail;
32518 swig_obj[0] = args;
32519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32520 if (!SWIG_IsOK(res1)) {
32521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32522 }
32523 arg1 = reinterpret_cast< wxListView * >(argp1);
32524 {
32525 PyThreadState* __tstate = wxPyBeginAllowThreads();
32526 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32527 wxPyEndAllowThreads(__tstate);
32528 if (PyErr_Occurred()) SWIG_fail;
32529 }
32530 resultobj = SWIG_From_long(static_cast< long >(result));
32531 return resultobj;
32532fail:
32533 return NULL;
32534}
32535
32536
32537SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32538 PyObject *resultobj = 0;
32539 wxListView *arg1 = (wxListView *) 0 ;
32540 long arg2 ;
32541 long result;
32542 void *argp1 = 0 ;
32543 int res1 = 0 ;
32544 long val2 ;
32545 int ecode2 = 0 ;
32546 PyObject * obj0 = 0 ;
32547 PyObject * obj1 = 0 ;
32548 char * kwnames[] = {
32549 (char *) "self",(char *) "item", NULL
32550 };
32551
32552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32554 if (!SWIG_IsOK(res1)) {
32555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32556 }
32557 arg1 = reinterpret_cast< wxListView * >(argp1);
32558 ecode2 = SWIG_AsVal_long(obj1, &val2);
32559 if (!SWIG_IsOK(ecode2)) {
32560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32561 }
32562 arg2 = static_cast< long >(val2);
32563 {
32564 PyThreadState* __tstate = wxPyBeginAllowThreads();
32565 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32566 wxPyEndAllowThreads(__tstate);
32567 if (PyErr_Occurred()) SWIG_fail;
32568 }
32569 resultobj = SWIG_From_long(static_cast< long >(result));
32570 return resultobj;
32571fail:
32572 return NULL;
ae8162c8
RD
32573}
32574
32575
554f62e9
RD
32576SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32577 PyObject *resultobj = 0;
32578 wxListView *arg1 = (wxListView *) 0 ;
32579 long result;
32580 void *argp1 = 0 ;
32581 int res1 = 0 ;
32582 PyObject *swig_obj[1] ;
32583
32584 if (!args) SWIG_fail;
32585 swig_obj[0] = args;
32586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32587 if (!SWIG_IsOK(res1)) {
32588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32589 }
32590 arg1 = reinterpret_cast< wxListView * >(argp1);
32591 {
32592 PyThreadState* __tstate = wxPyBeginAllowThreads();
32593 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32594 wxPyEndAllowThreads(__tstate);
32595 if (PyErr_Occurred()) SWIG_fail;
32596 }
32597 resultobj = SWIG_From_long(static_cast< long >(result));
32598 return resultobj;
32599fail:
32600 return NULL;
32601}
32602
32603
32604SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32605 PyObject *resultobj = 0;
32606 wxListView *arg1 = (wxListView *) 0 ;
32607 long arg2 ;
32608 bool result;
32609 void *argp1 = 0 ;
32610 int res1 = 0 ;
32611 long val2 ;
32612 int ecode2 = 0 ;
32613 PyObject * obj0 = 0 ;
32614 PyObject * obj1 = 0 ;
32615 char * kwnames[] = {
32616 (char *) "self",(char *) "index", NULL
32617 };
32618
32619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32621 if (!SWIG_IsOK(res1)) {
32622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32623 }
32624 arg1 = reinterpret_cast< wxListView * >(argp1);
32625 ecode2 = SWIG_AsVal_long(obj1, &val2);
32626 if (!SWIG_IsOK(ecode2)) {
32627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32628 }
32629 arg2 = static_cast< long >(val2);
32630 {
32631 PyThreadState* __tstate = wxPyBeginAllowThreads();
32632 result = (bool)(arg1)->IsSelected(arg2);
32633 wxPyEndAllowThreads(__tstate);
32634 if (PyErr_Occurred()) SWIG_fail;
32635 }
32636 {
32637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32638 }
32639 return resultobj;
32640fail:
32641 return NULL;
32642}
32643
32644
32645SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32646 PyObject *resultobj = 0;
32647 wxListView *arg1 = (wxListView *) 0 ;
32648 int arg2 ;
32649 int arg3 ;
32650 void *argp1 = 0 ;
32651 int res1 = 0 ;
32652 int val2 ;
32653 int ecode2 = 0 ;
32654 int val3 ;
32655 int ecode3 = 0 ;
32656 PyObject * obj0 = 0 ;
32657 PyObject * obj1 = 0 ;
32658 PyObject * obj2 = 0 ;
32659 char * kwnames[] = {
32660 (char *) "self",(char *) "col",(char *) "image", NULL
32661 };
32662
32663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32665 if (!SWIG_IsOK(res1)) {
32666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32667 }
32668 arg1 = reinterpret_cast< wxListView * >(argp1);
32669 ecode2 = SWIG_AsVal_int(obj1, &val2);
32670 if (!SWIG_IsOK(ecode2)) {
32671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32672 }
32673 arg2 = static_cast< int >(val2);
32674 ecode3 = SWIG_AsVal_int(obj2, &val3);
32675 if (!SWIG_IsOK(ecode3)) {
32676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32677 }
32678 arg3 = static_cast< int >(val3);
32679 {
32680 PyThreadState* __tstate = wxPyBeginAllowThreads();
32681 (arg1)->SetColumnImage(arg2,arg3);
32682 wxPyEndAllowThreads(__tstate);
32683 if (PyErr_Occurred()) SWIG_fail;
32684 }
32685 resultobj = SWIG_Py_Void();
32686 return resultobj;
32687fail:
32688 return NULL;
32689}
32690
32691
32692SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32693 PyObject *resultobj = 0;
32694 wxListView *arg1 = (wxListView *) 0 ;
32695 int arg2 ;
32696 void *argp1 = 0 ;
32697 int res1 = 0 ;
32698 int val2 ;
32699 int ecode2 = 0 ;
32700 PyObject * obj0 = 0 ;
32701 PyObject * obj1 = 0 ;
32702 char * kwnames[] = {
32703 (char *) "self",(char *) "col", NULL
32704 };
32705
32706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32708 if (!SWIG_IsOK(res1)) {
32709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32710 }
32711 arg1 = reinterpret_cast< wxListView * >(argp1);
32712 ecode2 = SWIG_AsVal_int(obj1, &val2);
32713 if (!SWIG_IsOK(ecode2)) {
32714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32715 }
32716 arg2 = static_cast< int >(val2);
32717 {
32718 PyThreadState* __tstate = wxPyBeginAllowThreads();
32719 (arg1)->ClearColumnImage(arg2);
32720 wxPyEndAllowThreads(__tstate);
32721 if (PyErr_Occurred()) SWIG_fail;
32722 }
32723 resultobj = SWIG_Py_Void();
32724 return resultobj;
32725fail:
32726 return NULL;
ae8162c8
RD
32727}
32728
32729
554f62e9
RD
32730SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32731 PyObject *obj;
32732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32733 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32734 return SWIG_Py_Void();
70b7a5fe
RD
32735}
32736
554f62e9
RD
32737SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32738 return SWIG_Python_InitShadowInstance(args);
ae8162c8
RD
32739}
32740
554f62e9
RD
32741SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32742 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32743 return 1;
ae8162c8
RD
32744}
32745
32746
554f62e9
RD
32747SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32748 PyObject *pyobj = 0;
32749
32750 {
32751#if wxUSE_UNICODE
32752 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32753#else
32754 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32755#endif
32756 }
32757 return pyobj;
d55e5bfc
RD
32758}
32759
32760
554f62e9
RD
32761SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32762 PyObject *resultobj = 0;
32763 wxTreeItemId *result = 0 ;
32764
32765 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32766 {
32767 PyThreadState* __tstate = wxPyBeginAllowThreads();
32768 result = (wxTreeItemId *)new wxTreeItemId();
32769 wxPyEndAllowThreads(__tstate);
32770 if (PyErr_Occurred()) SWIG_fail;
32771 }
32772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32773 return resultobj;
32774fail:
32775 return NULL;
d55e5bfc
RD
32776}
32777
32778
554f62e9
RD
32779SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32780 PyObject *resultobj = 0;
32781 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32782 void *argp1 = 0 ;
32783 int res1 = 0 ;
32784 PyObject *swig_obj[1] ;
32785
32786 if (!args) SWIG_fail;
32787 swig_obj[0] = args;
32788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32789 if (!SWIG_IsOK(res1)) {
32790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32791 }
32792 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32793 {
32794 PyThreadState* __tstate = wxPyBeginAllowThreads();
32795 delete arg1;
d55e5bfc 32796
554f62e9
RD
32797 wxPyEndAllowThreads(__tstate);
32798 if (PyErr_Occurred()) SWIG_fail;
32799 }
32800 resultobj = SWIG_Py_Void();
32801 return resultobj;
32802fail:
32803 return NULL;
d55e5bfc
RD
32804}
32805
32806
554f62e9
RD
32807SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32808 PyObject *resultobj = 0;
32809 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32810 bool result;
32811 void *argp1 = 0 ;
32812 int res1 = 0 ;
32813 PyObject *swig_obj[1] ;
32814
32815 if (!args) SWIG_fail;
32816 swig_obj[0] = args;
32817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32818 if (!SWIG_IsOK(res1)) {
32819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32820 }
32821 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32822 {
32823 PyThreadState* __tstate = wxPyBeginAllowThreads();
32824 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32825 wxPyEndAllowThreads(__tstate);
32826 if (PyErr_Occurred()) SWIG_fail;
32827 }
32828 {
32829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32830 }
32831 return resultobj;
32832fail:
32833 return NULL;
32834}
32835
32836
32837SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32838 PyObject *resultobj = 0;
32839 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32840 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32841 bool result;
32842 void *argp1 = 0 ;
32843 int res1 = 0 ;
32844 void *argp2 = 0 ;
32845 int res2 = 0 ;
32846 PyObject * obj0 = 0 ;
32847 PyObject * obj1 = 0 ;
32848 char * kwnames[] = {
32849 (char *) "self",(char *) "other", NULL
32850 };
32851
32852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32854 if (!SWIG_IsOK(res1)) {
32855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32856 }
32857 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32858 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32859 if (!SWIG_IsOK(res2)) {
32860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32861 }
32862 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32863 {
32864 PyThreadState* __tstate = wxPyBeginAllowThreads();
32865 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32866 wxPyEndAllowThreads(__tstate);
32867 if (PyErr_Occurred()) SWIG_fail;
32868 }
32869 {
32870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32871 }
32872 return resultobj;
32873fail:
32874 return NULL;
32875}
32876
32877
32878SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32879 PyObject *resultobj = 0;
32880 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32881 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32882 bool result;
32883 void *argp1 = 0 ;
32884 int res1 = 0 ;
32885 void *argp2 = 0 ;
32886 int res2 = 0 ;
32887 PyObject * obj0 = 0 ;
32888 PyObject * obj1 = 0 ;
32889 char * kwnames[] = {
32890 (char *) "self",(char *) "other", NULL
32891 };
32892
32893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32895 if (!SWIG_IsOK(res1)) {
32896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32897 }
32898 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32899 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32900 if (!SWIG_IsOK(res2)) {
32901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32902 }
32903 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32904 {
32905 PyThreadState* __tstate = wxPyBeginAllowThreads();
32906 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32907 wxPyEndAllowThreads(__tstate);
32908 if (PyErr_Occurred()) SWIG_fail;
32909 }
32910 {
32911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32912 }
32913 return resultobj;
32914fail:
32915 return NULL;
d55e5bfc
RD
32916}
32917
32918
554f62e9
RD
32919SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32920 PyObject *resultobj = 0;
32921 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32922 void *arg2 = (void *) 0 ;
32923 void *argp1 = 0 ;
32924 int res1 = 0 ;
32925 int res2 ;
32926 PyObject *swig_obj[2] ;
32927
32928 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32930 if (!SWIG_IsOK(res1)) {
32931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32932 }
32933 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32934 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32935 if (!SWIG_IsOK(res2)) {
32936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32937 }
32938 if (arg1) (arg1)->m_pItem = arg2;
32939
32940 resultobj = SWIG_Py_Void();
32941 return resultobj;
32942fail:
32943 return NULL;
d55e5bfc
RD
32944}
32945
32946
554f62e9
RD
32947SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32948 PyObject *resultobj = 0;
32949 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32950 void *result = 0 ;
32951 void *argp1 = 0 ;
32952 int res1 = 0 ;
32953 PyObject *swig_obj[1] ;
32954
32955 if (!args) SWIG_fail;
32956 swig_obj[0] = args;
32957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32958 if (!SWIG_IsOK(res1)) {
32959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32960 }
32961 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32962 result = (void *) ((arg1)->m_pItem);
32963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32964 return resultobj;
32965fail:
32966 return NULL;
d55e5bfc
RD
32967}
32968
32969
554f62e9
RD
32970SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32971 PyObject *obj;
32972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32973 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32974 return SWIG_Py_Void();
d55e5bfc
RD
32975}
32976
554f62e9
RD
32977SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32978 return SWIG_Python_InitShadowInstance(args);
32979}
d55e5bfc 32980
554f62e9
RD
32981SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32982 PyObject *resultobj = 0;
32983 PyObject *arg1 = (PyObject *) NULL ;
32984 wxPyTreeItemData *result = 0 ;
32985 PyObject * obj0 = 0 ;
32986 char * kwnames[] = {
32987 (char *) "obj", NULL
32988 };
32989
32990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32991 if (obj0) {
32992 arg1 = obj0;
32993 }
32994 {
32995 PyThreadState* __tstate = wxPyBeginAllowThreads();
32996 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32997 wxPyEndAllowThreads(__tstate);
32998 if (PyErr_Occurred()) SWIG_fail;
32999 }
33000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
33001 return resultobj;
33002fail:
33003 return NULL;
d55e5bfc
RD
33004}
33005
33006
554f62e9
RD
33007SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33008 PyObject *resultobj = 0;
33009 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33010 void *argp1 = 0 ;
33011 int res1 = 0 ;
33012 PyObject *swig_obj[1] ;
33013
33014 if (!args) SWIG_fail;
33015 swig_obj[0] = args;
33016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
33017 if (!SWIG_IsOK(res1)) {
33018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33019 }
33020 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33021 {
33022 PyThreadState* __tstate = wxPyBeginAllowThreads();
33023 delete arg1;
d55e5bfc 33024
554f62e9
RD
33025 wxPyEndAllowThreads(__tstate);
33026 if (PyErr_Occurred()) SWIG_fail;
33027 }
33028 resultobj = SWIG_Py_Void();
33029 return resultobj;
33030fail:
33031 return NULL;
d55e5bfc
RD
33032}
33033
33034
554f62e9
RD
33035SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33036 PyObject *resultobj = 0;
33037 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33038 PyObject *result = 0 ;
33039 void *argp1 = 0 ;
33040 int res1 = 0 ;
33041 PyObject *swig_obj[1] ;
33042
33043 if (!args) SWIG_fail;
33044 swig_obj[0] = args;
33045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33046 if (!SWIG_IsOK(res1)) {
33047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33048 }
33049 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33050 {
33051 PyThreadState* __tstate = wxPyBeginAllowThreads();
33052 result = (PyObject *)(arg1)->GetData();
33053 wxPyEndAllowThreads(__tstate);
33054 if (PyErr_Occurred()) SWIG_fail;
33055 }
33056 resultobj = result;
33057 return resultobj;
33058fail:
33059 return NULL;
33060}
33061
33062
33063SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33064 PyObject *resultobj = 0;
33065 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33066 PyObject *arg2 = (PyObject *) 0 ;
33067 void *argp1 = 0 ;
33068 int res1 = 0 ;
33069 PyObject * obj0 = 0 ;
33070 PyObject * obj1 = 0 ;
33071 char * kwnames[] = {
33072 (char *) "self",(char *) "obj", NULL
33073 };
33074
33075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33077 if (!SWIG_IsOK(res1)) {
33078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33079 }
33080 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33081 arg2 = obj1;
33082 {
33083 PyThreadState* __tstate = wxPyBeginAllowThreads();
33084 (arg1)->SetData(arg2);
33085 wxPyEndAllowThreads(__tstate);
33086 if (PyErr_Occurred()) SWIG_fail;
33087 }
33088 resultobj = SWIG_Py_Void();
33089 return resultobj;
33090fail:
33091 return NULL;
d55e5bfc
RD
33092}
33093
33094
554f62e9
RD
33095SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33096 PyObject *resultobj = 0;
33097 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33098 wxTreeItemId *result = 0 ;
33099 void *argp1 = 0 ;
33100 int res1 = 0 ;
33101 PyObject *swig_obj[1] ;
33102
33103 if (!args) SWIG_fail;
33104 swig_obj[0] = args;
33105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33106 if (!SWIG_IsOK(res1)) {
33107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33108 }
33109 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33110 {
33111 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33112 {
554f62e9
RD
33113 wxTreeItemId const &_result_ref = (arg1)->GetId();
33114 result = (wxTreeItemId *) &_result_ref;
d55e5bfc 33115 }
554f62e9
RD
33116 wxPyEndAllowThreads(__tstate);
33117 if (PyErr_Occurred()) SWIG_fail;
33118 }
33119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33120 return resultobj;
33121fail:
33122 return NULL;
33123}
33124
33125
33126SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33127 PyObject *resultobj = 0;
33128 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33129 wxTreeItemId *arg2 = 0 ;
33130 void *argp1 = 0 ;
33131 int res1 = 0 ;
33132 void *argp2 = 0 ;
33133 int res2 = 0 ;
33134 PyObject * obj0 = 0 ;
33135 PyObject * obj1 = 0 ;
33136 char * kwnames[] = {
33137 (char *) "self",(char *) "id", NULL
33138 };
33139
33140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33142 if (!SWIG_IsOK(res1)) {
33143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33144 }
33145 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33146 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33147 if (!SWIG_IsOK(res2)) {
33148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33149 }
33150 if (!argp2) {
33151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33152 }
33153 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33154 {
33155 PyThreadState* __tstate = wxPyBeginAllowThreads();
33156 (arg1)->SetId((wxTreeItemId const &)*arg2);
33157 wxPyEndAllowThreads(__tstate);
33158 if (PyErr_Occurred()) SWIG_fail;
33159 }
33160 resultobj = SWIG_Py_Void();
33161 return resultobj;
33162fail:
33163 return NULL;
d55e5bfc
RD
33164}
33165
33166
554f62e9
RD
33167SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33168 PyObject *resultobj = 0;
33169 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33170 void *argp1 = 0 ;
33171 int res1 = 0 ;
33172 PyObject *swig_obj[1] ;
33173
33174 if (!args) SWIG_fail;
33175 swig_obj[0] = args;
33176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33177 if (!SWIG_IsOK(res1)) {
33178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33179 }
33180 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33181 {
33182 PyThreadState* __tstate = wxPyBeginAllowThreads();
33183 wxPyTreeItemData_Destroy(arg1);
33184 wxPyEndAllowThreads(__tstate);
33185 if (PyErr_Occurred()) SWIG_fail;
33186 }
33187 resultobj = SWIG_Py_Void();
33188 return resultobj;
33189fail:
33190 return NULL;
d55e5bfc
RD
33191}
33192
33193
554f62e9
RD
33194SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33195 PyObject *obj;
33196 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33197 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33198 return SWIG_Py_Void();
d55e5bfc
RD
33199}
33200
554f62e9
RD
33201SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33202 return SWIG_Python_InitShadowInstance(args);
33203}
d55e5bfc 33204
b02396e8
RD
33205SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33206 {
33207 void *argp = 0;
33208 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33209 if (!SWIG_IsOK(res)) {
33210 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33211 }
33212 if (!argp) {
33213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33214 } else {
33215 wxTreeItemId * temp;
33216 temp = reinterpret_cast< wxTreeItemId * >(argp);
33217 wxNullTreeItemId = *temp;
33218 if (SWIG_IsNewObj(res)) delete temp;
33219 }
33220 }
33221 return 0;
33222fail:
33223 return 1;
33224}
33225
33226
33227SWIGINTERN PyObject *NullTreeItemId_get(void) {
33228 PyObject *pyobj = 0;
33229
33230 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33231 return pyobj;
33232}
33233
33234
33235SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9
RD
33236 PyObject *resultobj = 0;
33237 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33238 int arg2 = (int) 0 ;
33239 wxTreeEvent *result = 0 ;
33240 int val1 ;
33241 int ecode1 = 0 ;
33242 int val2 ;
33243 int ecode2 = 0 ;
554f62e9 33244
b02396e8
RD
33245 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33246 if (swig_obj[0]) {
33247 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
554f62e9
RD
33248 if (!SWIG_IsOK(ecode1)) {
33249 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33250 }
33251 arg1 = static_cast< wxEventType >(val1);
33252 }
b02396e8
RD
33253 if (swig_obj[1]) {
33254 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
554f62e9
RD
33255 if (!SWIG_IsOK(ecode2)) {
33256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33257 }
33258 arg2 = static_cast< int >(val2);
33259 }
33260 {
33261 PyThreadState* __tstate = wxPyBeginAllowThreads();
33262 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33263 wxPyEndAllowThreads(__tstate);
33264 if (PyErr_Occurred()) SWIG_fail;
33265 }
33266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33267 return resultobj;
33268fail:
33269 return NULL;
d55e5bfc
RD
33270}
33271
33272
b02396e8
RD
33273SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33274 PyObject *resultobj = 0;
33275 wxEventType arg1 ;
33276 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33277 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33278 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33279 wxTreeEvent *result = 0 ;
33280 int val1 ;
33281 int ecode1 = 0 ;
33282 void *argp2 = 0 ;
33283 int res2 = 0 ;
33284 void *argp3 = 0 ;
33285 int res3 = 0 ;
33286
33287 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33288 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33289 if (!SWIG_IsOK(ecode1)) {
33290 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33291 }
33292 arg1 = static_cast< wxEventType >(val1);
33293 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33294 if (!SWIG_IsOK(res2)) {
33295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33296 }
33297 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33298 if (swig_obj[2]) {
33299 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33300 if (!SWIG_IsOK(res3)) {
33301 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33302 }
33303 if (!argp3) {
33304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33305 }
33306 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33307 }
33308 {
33309 PyThreadState* __tstate = wxPyBeginAllowThreads();
33310 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33311 wxPyEndAllowThreads(__tstate);
33312 if (PyErr_Occurred()) SWIG_fail;
33313 }
33314 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33315 return resultobj;
33316fail:
33317 return NULL;
33318}
33319
33320
33321SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33322 int argc;
33323 PyObject *argv[4];
33324
33325 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33326 --argc;
33327 if ((argc >= 0) && (argc <= 2)) {
33328 int _v = 0;
33329 if (argc > 1) {
33330 {
33331 {
33332 int res = SWIG_AsVal_int(argv[1], NULL);
33333 _v = SWIG_CheckState(res);
33334 }
33335 }
33336 if (!_v) goto check_1;
33337 }
33338 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33339 }
33340check_1:
33341
33342 if ((argc >= 2) && (argc <= 3)) {
33343 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33344 }
33345
33346fail:
33347 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33348 return NULL;
33349}
33350
33351
554f62e9
RD
33352SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33353 PyObject *resultobj = 0;
33354 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33355 wxTreeItemId result;
33356 void *argp1 = 0 ;
33357 int res1 = 0 ;
33358 PyObject *swig_obj[1] ;
33359
33360 if (!args) SWIG_fail;
33361 swig_obj[0] = args;
33362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33363 if (!SWIG_IsOK(res1)) {
33364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33365 }
33366 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33367 {
33368 PyThreadState* __tstate = wxPyBeginAllowThreads();
33369 result = ((wxTreeEvent const *)arg1)->GetItem();
33370 wxPyEndAllowThreads(__tstate);
33371 if (PyErr_Occurred()) SWIG_fail;
33372 }
33373 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33374 return resultobj;
33375fail:
33376 return NULL;
33377}
33378
33379
33380SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33381 PyObject *resultobj = 0;
33382 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33383 wxTreeItemId *arg2 = 0 ;
33384 void *argp1 = 0 ;
33385 int res1 = 0 ;
33386 void *argp2 = 0 ;
33387 int res2 = 0 ;
33388 PyObject * obj0 = 0 ;
33389 PyObject * obj1 = 0 ;
33390 char * kwnames[] = {
33391 (char *) "self",(char *) "item", NULL
33392 };
33393
33394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33396 if (!SWIG_IsOK(res1)) {
33397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33398 }
33399 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33400 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33401 if (!SWIG_IsOK(res2)) {
33402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33403 }
33404 if (!argp2) {
33405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33406 }
33407 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33408 {
33409 PyThreadState* __tstate = wxPyBeginAllowThreads();
33410 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33411 wxPyEndAllowThreads(__tstate);
33412 if (PyErr_Occurred()) SWIG_fail;
33413 }
33414 resultobj = SWIG_Py_Void();
33415 return resultobj;
33416fail:
33417 return NULL;
d55e5bfc
RD
33418}
33419
33420
554f62e9
RD
33421SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33422 PyObject *resultobj = 0;
33423 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33424 wxTreeItemId result;
33425 void *argp1 = 0 ;
33426 int res1 = 0 ;
33427 PyObject *swig_obj[1] ;
33428
33429 if (!args) SWIG_fail;
33430 swig_obj[0] = args;
33431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33432 if (!SWIG_IsOK(res1)) {
33433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33434 }
33435 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33436 {
33437 PyThreadState* __tstate = wxPyBeginAllowThreads();
33438 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33439 wxPyEndAllowThreads(__tstate);
33440 if (PyErr_Occurred()) SWIG_fail;
33441 }
33442 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33443 return resultobj;
33444fail:
33445 return NULL;
33446}
33447
33448
33449SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33450 PyObject *resultobj = 0;
33451 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33452 wxTreeItemId *arg2 = 0 ;
33453 void *argp1 = 0 ;
33454 int res1 = 0 ;
33455 void *argp2 = 0 ;
33456 int res2 = 0 ;
33457 PyObject * obj0 = 0 ;
33458 PyObject * obj1 = 0 ;
33459 char * kwnames[] = {
33460 (char *) "self",(char *) "item", NULL
33461 };
33462
33463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33465 if (!SWIG_IsOK(res1)) {
33466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33467 }
33468 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33469 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33470 if (!SWIG_IsOK(res2)) {
33471 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33472 }
33473 if (!argp2) {
33474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33475 }
33476 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33477 {
33478 PyThreadState* __tstate = wxPyBeginAllowThreads();
33479 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33480 wxPyEndAllowThreads(__tstate);
33481 if (PyErr_Occurred()) SWIG_fail;
33482 }
33483 resultobj = SWIG_Py_Void();
33484 return resultobj;
33485fail:
33486 return NULL;
d55e5bfc
RD
33487}
33488
33489
554f62e9
RD
33490SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33491 PyObject *resultobj = 0;
33492 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33493 wxPoint result;
33494 void *argp1 = 0 ;
33495 int res1 = 0 ;
33496 PyObject *swig_obj[1] ;
33497
33498 if (!args) SWIG_fail;
33499 swig_obj[0] = args;
33500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33501 if (!SWIG_IsOK(res1)) {
33502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33503 }
33504 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33505 {
33506 PyThreadState* __tstate = wxPyBeginAllowThreads();
33507 result = ((wxTreeEvent const *)arg1)->GetPoint();
33508 wxPyEndAllowThreads(__tstate);
33509 if (PyErr_Occurred()) SWIG_fail;
33510 }
33511 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33512 return resultobj;
33513fail:
33514 return NULL;
33515}
33516
33517
33518SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33519 PyObject *resultobj = 0;
33520 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33521 wxPoint *arg2 = 0 ;
33522 void *argp1 = 0 ;
33523 int res1 = 0 ;
33524 wxPoint temp2 ;
33525 PyObject * obj0 = 0 ;
33526 PyObject * obj1 = 0 ;
33527 char * kwnames[] = {
33528 (char *) "self",(char *) "pt", NULL
33529 };
33530
33531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33533 if (!SWIG_IsOK(res1)) {
33534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33535 }
33536 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33537 {
33538 arg2 = &temp2;
33539 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33540 }
33541 {
33542 PyThreadState* __tstate = wxPyBeginAllowThreads();
33543 (arg1)->SetPoint((wxPoint const &)*arg2);
33544 wxPyEndAllowThreads(__tstate);
33545 if (PyErr_Occurred()) SWIG_fail;
33546 }
33547 resultobj = SWIG_Py_Void();
33548 return resultobj;
33549fail:
33550 return NULL;
d55e5bfc
RD
33551}
33552
33553
554f62e9
RD
33554SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33555 PyObject *resultobj = 0;
33556 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33557 wxKeyEvent *result = 0 ;
33558 void *argp1 = 0 ;
33559 int res1 = 0 ;
33560 PyObject *swig_obj[1] ;
33561
33562 if (!args) SWIG_fail;
33563 swig_obj[0] = args;
33564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33565 if (!SWIG_IsOK(res1)) {
33566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33567 }
33568 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33569 {
33570 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33571 {
554f62e9
RD
33572 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33573 result = (wxKeyEvent *) &_result_ref;
d55e5bfc 33574 }
554f62e9
RD
33575 wxPyEndAllowThreads(__tstate);
33576 if (PyErr_Occurred()) SWIG_fail;
33577 }
33578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33579 return resultobj;
33580fail:
33581 return NULL;
d55e5bfc
RD
33582}
33583
33584
554f62e9
RD
33585SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33586 PyObject *resultobj = 0;
33587 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33588 int result;
33589 void *argp1 = 0 ;
33590 int res1 = 0 ;
33591 PyObject *swig_obj[1] ;
33592
33593 if (!args) SWIG_fail;
33594 swig_obj[0] = args;
33595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33596 if (!SWIG_IsOK(res1)) {
33597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33598 }
33599 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33600 {
33601 PyThreadState* __tstate = wxPyBeginAllowThreads();
33602 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33603 wxPyEndAllowThreads(__tstate);
33604 if (PyErr_Occurred()) SWIG_fail;
33605 }
33606 resultobj = SWIG_From_int(static_cast< int >(result));
33607 return resultobj;
33608fail:
33609 return NULL;
33610}
33611
33612
33613SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33614 PyObject *resultobj = 0;
33615 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33616 wxKeyEvent *arg2 = 0 ;
33617 void *argp1 = 0 ;
33618 int res1 = 0 ;
33619 void *argp2 = 0 ;
33620 int res2 = 0 ;
33621 PyObject * obj0 = 0 ;
33622 PyObject * obj1 = 0 ;
33623 char * kwnames[] = {
33624 (char *) "self",(char *) "evt", NULL
33625 };
33626
33627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33629 if (!SWIG_IsOK(res1)) {
33630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33631 }
33632 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33634 if (!SWIG_IsOK(res2)) {
33635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33636 }
33637 if (!argp2) {
33638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33639 }
33640 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33641 {
33642 PyThreadState* __tstate = wxPyBeginAllowThreads();
33643 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33644 wxPyEndAllowThreads(__tstate);
33645 if (PyErr_Occurred()) SWIG_fail;
33646 }
33647 resultobj = SWIG_Py_Void();
33648 return resultobj;
33649fail:
33650 return NULL;
d55e5bfc
RD
33651}
33652
33653
554f62e9
RD
33654SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33655 PyObject *resultobj = 0;
33656 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33657 wxString *result = 0 ;
33658 void *argp1 = 0 ;
33659 int res1 = 0 ;
33660 PyObject *swig_obj[1] ;
33661
33662 if (!args) SWIG_fail;
33663 swig_obj[0] = args;
33664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33665 if (!SWIG_IsOK(res1)) {
33666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33667 }
33668 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33669 {
33670 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33671 {
554f62e9
RD
33672 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33673 result = (wxString *) &_result_ref;
d55e5bfc 33674 }
554f62e9
RD
33675 wxPyEndAllowThreads(__tstate);
33676 if (PyErr_Occurred()) SWIG_fail;
33677 }
33678 {
33679#if wxUSE_UNICODE
33680 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33681#else
33682 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33683#endif
33684 }
33685 return resultobj;
33686fail:
33687 return NULL;
33688}
33689
33690
33691SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33692 PyObject *resultobj = 0;
33693 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33694 wxString *arg2 = 0 ;
33695 void *argp1 = 0 ;
33696 int res1 = 0 ;
33697 bool temp2 = false ;
33698 PyObject * obj0 = 0 ;
33699 PyObject * obj1 = 0 ;
33700 char * kwnames[] = {
33701 (char *) "self",(char *) "label", NULL
33702 };
33703
33704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33706 if (!SWIG_IsOK(res1)) {
33707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33708 }
33709 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33710 {
33711 arg2 = wxString_in_helper(obj1);
33712 if (arg2 == NULL) SWIG_fail;
33713 temp2 = true;
33714 }
33715 {
33716 PyThreadState* __tstate = wxPyBeginAllowThreads();
33717 (arg1)->SetLabel((wxString const &)*arg2);
33718 wxPyEndAllowThreads(__tstate);
33719 if (PyErr_Occurred()) SWIG_fail;
33720 }
33721 resultobj = SWIG_Py_Void();
33722 {
33723 if (temp2)
33724 delete arg2;
33725 }
33726 return resultobj;
33727fail:
33728 {
33729 if (temp2)
33730 delete arg2;
33731 }
33732 return NULL;
d55e5bfc
RD
33733}
33734
33735
554f62e9
RD
33736SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33737 PyObject *resultobj = 0;
33738 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33739 bool result;
33740 void *argp1 = 0 ;
33741 int res1 = 0 ;
33742 PyObject *swig_obj[1] ;
33743
33744 if (!args) SWIG_fail;
33745 swig_obj[0] = args;
33746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33747 if (!SWIG_IsOK(res1)) {
33748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33749 }
33750 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33751 {
33752 PyThreadState* __tstate = wxPyBeginAllowThreads();
33753 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33754 wxPyEndAllowThreads(__tstate);
33755 if (PyErr_Occurred()) SWIG_fail;
33756 }
33757 {
33758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33759 }
33760 return resultobj;
33761fail:
33762 return NULL;
33763}
33764
33765
33766SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33767 PyObject *resultobj = 0;
33768 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33769 bool arg2 ;
33770 void *argp1 = 0 ;
33771 int res1 = 0 ;
33772 bool val2 ;
33773 int ecode2 = 0 ;
33774 PyObject * obj0 = 0 ;
33775 PyObject * obj1 = 0 ;
33776 char * kwnames[] = {
33777 (char *) "self",(char *) "editCancelled", NULL
33778 };
33779
33780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33782 if (!SWIG_IsOK(res1)) {
33783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33784 }
33785 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33786 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33787 if (!SWIG_IsOK(ecode2)) {
33788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33789 }
33790 arg2 = static_cast< bool >(val2);
33791 {
33792 PyThreadState* __tstate = wxPyBeginAllowThreads();
33793 (arg1)->SetEditCanceled(arg2);
33794 wxPyEndAllowThreads(__tstate);
33795 if (PyErr_Occurred()) SWIG_fail;
33796 }
33797 resultobj = SWIG_Py_Void();
33798 return resultobj;
33799fail:
33800 return NULL;
33801}
33802
33803
33804SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33805 PyObject *resultobj = 0;
33806 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33807 wxString *arg2 = 0 ;
33808 void *argp1 = 0 ;
33809 int res1 = 0 ;
33810 bool temp2 = false ;
33811 PyObject * obj0 = 0 ;
33812 PyObject * obj1 = 0 ;
33813 char * kwnames[] = {
33814 (char *) "self",(char *) "toolTip", NULL
33815 };
33816
33817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33819 if (!SWIG_IsOK(res1)) {
33820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33821 }
33822 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33823 {
33824 arg2 = wxString_in_helper(obj1);
33825 if (arg2 == NULL) SWIG_fail;
33826 temp2 = true;
33827 }
33828 {
33829 PyThreadState* __tstate = wxPyBeginAllowThreads();
33830 (arg1)->SetToolTip((wxString const &)*arg2);
33831 wxPyEndAllowThreads(__tstate);
33832 if (PyErr_Occurred()) SWIG_fail;
33833 }
33834 resultobj = SWIG_Py_Void();
33835 {
33836 if (temp2)
33837 delete arg2;
33838 }
33839 return resultobj;
33840fail:
33841 {
33842 if (temp2)
33843 delete arg2;
33844 }
33845 return NULL;
33846}
33847
33848
33849SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33850 PyObject *resultobj = 0;
33851 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33852 wxString result;
33853 void *argp1 = 0 ;
33854 int res1 = 0 ;
33855 PyObject *swig_obj[1] ;
33856
33857 if (!args) SWIG_fail;
33858 swig_obj[0] = args;
33859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33860 if (!SWIG_IsOK(res1)) {
33861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33862 }
33863 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33864 {
33865 PyThreadState* __tstate = wxPyBeginAllowThreads();
33866 result = (arg1)->GetToolTip();
33867 wxPyEndAllowThreads(__tstate);
33868 if (PyErr_Occurred()) SWIG_fail;
33869 }
33870 {
33871#if wxUSE_UNICODE
33872 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33873#else
33874 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33875#endif
33876 }
33877 return resultobj;
33878fail:
33879 return NULL;
33880}
33881
33882
33883SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33884 PyObject *obj;
33885 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33886 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33887 return SWIG_Py_Void();
33888}
33889
33890SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33891 return SWIG_Python_InitShadowInstance(args);
33892}
33893
33894SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33895 PyObject *resultobj = 0;
33896 wxWindow *arg1 = (wxWindow *) 0 ;
33897 int arg2 = (int) -1 ;
33898 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33899 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33900 wxSize const &arg4_defvalue = wxDefaultSize ;
33901 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33902 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33903 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33904 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33905 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33906 wxString *arg7 = (wxString *) &arg7_defvalue ;
33907 wxPyTreeCtrl *result = 0 ;
33908 void *argp1 = 0 ;
33909 int res1 = 0 ;
33910 int val2 ;
33911 int ecode2 = 0 ;
33912 wxPoint temp3 ;
33913 wxSize temp4 ;
33914 long val5 ;
33915 int ecode5 = 0 ;
33916 void *argp6 = 0 ;
33917 int res6 = 0 ;
33918 bool temp7 = false ;
33919 PyObject * obj0 = 0 ;
33920 PyObject * obj1 = 0 ;
33921 PyObject * obj2 = 0 ;
33922 PyObject * obj3 = 0 ;
33923 PyObject * obj4 = 0 ;
33924 PyObject * obj5 = 0 ;
33925 PyObject * obj6 = 0 ;
33926 char * kwnames[] = {
33927 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33928 };
33929
33930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33932 if (!SWIG_IsOK(res1)) {
33933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33934 }
33935 arg1 = reinterpret_cast< wxWindow * >(argp1);
33936 if (obj1) {
33937 ecode2 = SWIG_AsVal_int(obj1, &val2);
33938 if (!SWIG_IsOK(ecode2)) {
33939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33940 }
33941 arg2 = static_cast< int >(val2);
33942 }
33943 if (obj2) {
d55e5bfc 33944 {
554f62e9
RD
33945 arg3 = &temp3;
33946 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 33947 }
554f62e9
RD
33948 }
33949 if (obj3) {
d55e5bfc 33950 {
554f62e9
RD
33951 arg4 = &temp4;
33952 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33953 }
554f62e9
RD
33954 }
33955 if (obj4) {
33956 ecode5 = SWIG_AsVal_long(obj4, &val5);
33957 if (!SWIG_IsOK(ecode5)) {
33958 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33959 }
33960 arg5 = static_cast< long >(val5);
33961 }
33962 if (obj5) {
33963 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33964 if (!SWIG_IsOK(res6)) {
33965 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33966 }
554f62e9
RD
33967 if (!argp6) {
33968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33969 }
554f62e9
RD
33970 arg6 = reinterpret_cast< wxValidator * >(argp6);
33971 }
33972 if (obj6) {
d55e5bfc 33973 {
554f62e9
RD
33974 arg7 = wxString_in_helper(obj6);
33975 if (arg7 == NULL) SWIG_fail;
33976 temp7 = true;
d55e5bfc 33977 }
554f62e9
RD
33978 }
33979 {
33980 if (!wxPyCheckForApp()) SWIG_fail;
33981 PyThreadState* __tstate = wxPyBeginAllowThreads();
33982 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33983 wxPyEndAllowThreads(__tstate);
33984 if (PyErr_Occurred()) SWIG_fail;
33985 }
33986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33987 {
33988 if (temp7)
33989 delete arg7;
33990 }
33991 return resultobj;
33992fail:
33993 {
33994 if (temp7)
33995 delete arg7;
33996 }
33997 return NULL;
d55e5bfc
RD
33998}
33999
34000
554f62e9
RD
34001SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34002 PyObject *resultobj = 0;
34003 wxPyTreeCtrl *result = 0 ;
34004
34005 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
34006 {
34007 if (!wxPyCheckForApp()) SWIG_fail;
34008 PyThreadState* __tstate = wxPyBeginAllowThreads();
34009 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
34010 wxPyEndAllowThreads(__tstate);
34011 if (PyErr_Occurred()) SWIG_fail;
34012 }
34013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
34014 return resultobj;
34015fail:
34016 return NULL;
34017}
34018
34019
34020SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34021 PyObject *resultobj = 0;
34022 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34023 wxWindow *arg2 = (wxWindow *) 0 ;
34024 int arg3 = (int) -1 ;
34025 wxPoint const &arg4_defvalue = wxDefaultPosition ;
34026 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
34027 wxSize const &arg5_defvalue = wxDefaultSize ;
34028 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
34029 long arg6 = (long) wxTR_DEFAULT_STYLE ;
34030 wxValidator const &arg7_defvalue = wxDefaultValidator ;
34031 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
34032 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
34033 wxString *arg8 = (wxString *) &arg8_defvalue ;
34034 bool result;
34035 void *argp1 = 0 ;
34036 int res1 = 0 ;
34037 void *argp2 = 0 ;
34038 int res2 = 0 ;
34039 int val3 ;
34040 int ecode3 = 0 ;
34041 wxPoint temp4 ;
34042 wxSize temp5 ;
34043 long val6 ;
34044 int ecode6 = 0 ;
34045 void *argp7 = 0 ;
34046 int res7 = 0 ;
34047 bool temp8 = false ;
34048 PyObject * obj0 = 0 ;
34049 PyObject * obj1 = 0 ;
34050 PyObject * obj2 = 0 ;
34051 PyObject * obj3 = 0 ;
34052 PyObject * obj4 = 0 ;
34053 PyObject * obj5 = 0 ;
34054 PyObject * obj6 = 0 ;
34055 PyObject * obj7 = 0 ;
34056 char * kwnames[] = {
34057 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34058 };
34059
34060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
34061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34062 if (!SWIG_IsOK(res1)) {
34063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34064 }
34065 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34066 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34067 if (!SWIG_IsOK(res2)) {
34068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
34069 }
34070 arg2 = reinterpret_cast< wxWindow * >(argp2);
34071 if (obj2) {
34072 ecode3 = SWIG_AsVal_int(obj2, &val3);
34073 if (!SWIG_IsOK(ecode3)) {
34074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
34075 }
34076 arg3 = static_cast< int >(val3);
34077 }
34078 if (obj3) {
d55e5bfc 34079 {
554f62e9
RD
34080 arg4 = &temp4;
34081 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 34082 }
554f62e9
RD
34083 }
34084 if (obj4) {
d55e5bfc 34085 {
554f62e9
RD
34086 arg5 = &temp5;
34087 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 34088 }
554f62e9
RD
34089 }
34090 if (obj5) {
34091 ecode6 = SWIG_AsVal_long(obj5, &val6);
34092 if (!SWIG_IsOK(ecode6)) {
34093 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34094 }
34095 arg6 = static_cast< long >(val6);
34096 }
34097 if (obj6) {
34098 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34099 if (!SWIG_IsOK(res7)) {
34100 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 34101 }
554f62e9
RD
34102 if (!argp7) {
34103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 34104 }
554f62e9
RD
34105 arg7 = reinterpret_cast< wxValidator * >(argp7);
34106 }
34107 if (obj7) {
d55e5bfc 34108 {
554f62e9
RD
34109 arg8 = wxString_in_helper(obj7);
34110 if (arg8 == NULL) SWIG_fail;
34111 temp8 = true;
d55e5bfc 34112 }
554f62e9
RD
34113 }
34114 {
34115 PyThreadState* __tstate = wxPyBeginAllowThreads();
34116 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34117 wxPyEndAllowThreads(__tstate);
34118 if (PyErr_Occurred()) SWIG_fail;
34119 }
34120 {
34121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34122 }
34123 {
34124 if (temp8)
34125 delete arg8;
34126 }
34127 return resultobj;
34128fail:
34129 {
34130 if (temp8)
34131 delete arg8;
34132 }
34133 return NULL;
34134}
34135
34136
34137SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34138 PyObject *resultobj = 0;
34139 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34140 PyObject *arg2 = (PyObject *) 0 ;
34141 PyObject *arg3 = (PyObject *) 0 ;
34142 void *argp1 = 0 ;
34143 int res1 = 0 ;
34144 PyObject * obj0 = 0 ;
34145 PyObject * obj1 = 0 ;
34146 PyObject * obj2 = 0 ;
34147 char * kwnames[] = {
34148 (char *) "self",(char *) "self",(char *) "_class", NULL
34149 };
34150
34151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34153 if (!SWIG_IsOK(res1)) {
34154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34155 }
34156 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34157 arg2 = obj1;
34158 arg3 = obj2;
34159 {
34160 PyThreadState* __tstate = wxPyBeginAllowThreads();
34161 (arg1)->_setCallbackInfo(arg2,arg3);
34162 wxPyEndAllowThreads(__tstate);
34163 if (PyErr_Occurred()) SWIG_fail;
34164 }
34165 resultobj = SWIG_Py_Void();
34166 return resultobj;
34167fail:
34168 return NULL;
d55e5bfc
RD
34169}
34170
34171
554f62e9
RD
34172SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34173 PyObject *resultobj = 0;
34174 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 34175 unsigned int result;
554f62e9
RD
34176 void *argp1 = 0 ;
34177 int res1 = 0 ;
34178 PyObject *swig_obj[1] ;
34179
34180 if (!args) SWIG_fail;
34181 swig_obj[0] = args;
34182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34183 if (!SWIG_IsOK(res1)) {
34184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34185 }
34186 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34187 {
34188 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 34189 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
554f62e9
RD
34190 wxPyEndAllowThreads(__tstate);
34191 if (PyErr_Occurred()) SWIG_fail;
34192 }
e9d6f3a4 34193 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
34194 return resultobj;
34195fail:
34196 return NULL;
d55e5bfc
RD
34197}
34198
34199
554f62e9
RD
34200SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34201 PyObject *resultobj = 0;
34202 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34203 unsigned int result;
34204 void *argp1 = 0 ;
34205 int res1 = 0 ;
34206 PyObject *swig_obj[1] ;
34207
34208 if (!args) SWIG_fail;
34209 swig_obj[0] = args;
34210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34211 if (!SWIG_IsOK(res1)) {
34212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34213 }
34214 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34215 {
34216 PyThreadState* __tstate = wxPyBeginAllowThreads();
34217 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34218 wxPyEndAllowThreads(__tstate);
34219 if (PyErr_Occurred()) SWIG_fail;
34220 }
34221 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34222 return resultobj;
34223fail:
34224 return NULL;
34225}
34226
34227
34228SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34229 PyObject *resultobj = 0;
34230 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34231 unsigned int arg2 ;
34232 void *argp1 = 0 ;
34233 int res1 = 0 ;
34234 unsigned int val2 ;
34235 int ecode2 = 0 ;
34236 PyObject * obj0 = 0 ;
34237 PyObject * obj1 = 0 ;
34238 char * kwnames[] = {
34239 (char *) "self",(char *) "indent", NULL
34240 };
34241
34242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34244 if (!SWIG_IsOK(res1)) {
34245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34246 }
34247 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34248 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34249 if (!SWIG_IsOK(ecode2)) {
34250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34251 }
34252 arg2 = static_cast< unsigned int >(val2);
34253 {
34254 PyThreadState* __tstate = wxPyBeginAllowThreads();
34255 (arg1)->SetIndent(arg2);
34256 wxPyEndAllowThreads(__tstate);
34257 if (PyErr_Occurred()) SWIG_fail;
34258 }
34259 resultobj = SWIG_Py_Void();
34260 return resultobj;
34261fail:
34262 return NULL;
d55e5bfc
RD
34263}
34264
34265
554f62e9
RD
34266SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34267 PyObject *resultobj = 0;
34268 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34269 unsigned int result;
34270 void *argp1 = 0 ;
34271 int res1 = 0 ;
34272 PyObject *swig_obj[1] ;
34273
34274 if (!args) SWIG_fail;
34275 swig_obj[0] = args;
34276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34277 if (!SWIG_IsOK(res1)) {
34278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34279 }
34280 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34281 {
34282 PyThreadState* __tstate = wxPyBeginAllowThreads();
34283 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34284 wxPyEndAllowThreads(__tstate);
34285 if (PyErr_Occurred()) SWIG_fail;
34286 }
34287 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34288 return resultobj;
34289fail:
34290 return NULL;
34291}
34292
34293
34294SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34295 PyObject *resultobj = 0;
34296 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34297 unsigned int arg2 ;
34298 void *argp1 = 0 ;
34299 int res1 = 0 ;
34300 unsigned int val2 ;
34301 int ecode2 = 0 ;
34302 PyObject * obj0 = 0 ;
34303 PyObject * obj1 = 0 ;
34304 char * kwnames[] = {
34305 (char *) "self",(char *) "spacing", NULL
34306 };
34307
34308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34310 if (!SWIG_IsOK(res1)) {
34311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34312 }
34313 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34314 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34315 if (!SWIG_IsOK(ecode2)) {
34316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34317 }
34318 arg2 = static_cast< unsigned int >(val2);
34319 {
34320 PyThreadState* __tstate = wxPyBeginAllowThreads();
34321 (arg1)->SetSpacing(arg2);
34322 wxPyEndAllowThreads(__tstate);
34323 if (PyErr_Occurred()) SWIG_fail;
34324 }
34325 resultobj = SWIG_Py_Void();
34326 return resultobj;
34327fail:
34328 return NULL;
d55e5bfc
RD
34329}
34330
34331
554f62e9
RD
34332SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34333 PyObject *resultobj = 0;
34334 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34335 wxImageList *result = 0 ;
34336 void *argp1 = 0 ;
34337 int res1 = 0 ;
34338 PyObject *swig_obj[1] ;
34339
34340 if (!args) SWIG_fail;
34341 swig_obj[0] = args;
34342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34343 if (!SWIG_IsOK(res1)) {
34344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34345 }
34346 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34347 {
34348 PyThreadState* __tstate = wxPyBeginAllowThreads();
34349 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34350 wxPyEndAllowThreads(__tstate);
34351 if (PyErr_Occurred()) SWIG_fail;
34352 }
e02c0a13 34353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, 0 | 0 );
554f62e9
RD
34354 return resultobj;
34355fail:
34356 return NULL;
d55e5bfc
RD
34357}
34358
34359
554f62e9
RD
34360SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34361 PyObject *resultobj = 0;
34362 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34363 wxImageList *result = 0 ;
34364 void *argp1 = 0 ;
34365 int res1 = 0 ;
34366 PyObject *swig_obj[1] ;
34367
34368 if (!args) SWIG_fail;
34369 swig_obj[0] = args;
34370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34371 if (!SWIG_IsOK(res1)) {
34372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34373 }
34374 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34375 {
34376 PyThreadState* __tstate = wxPyBeginAllowThreads();
34377 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34378 wxPyEndAllowThreads(__tstate);
34379 if (PyErr_Occurred()) SWIG_fail;
34380 }
e02c0a13 34381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, 0 | 0 );
554f62e9
RD
34382 return resultobj;
34383fail:
34384 return NULL;
34385}
34386
34387
34388SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34389 PyObject *resultobj = 0;
34390 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34391 wxImageList *arg2 = (wxImageList *) 0 ;
34392 void *argp1 = 0 ;
34393 int res1 = 0 ;
34394 void *argp2 = 0 ;
34395 int res2 = 0 ;
34396 PyObject * obj0 = 0 ;
34397 PyObject * obj1 = 0 ;
34398 char * kwnames[] = {
34399 (char *) "self",(char *) "imageList", NULL
34400 };
34401
34402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34404 if (!SWIG_IsOK(res1)) {
34405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34406 }
34407 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34408 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34409 if (!SWIG_IsOK(res2)) {
34410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34411 }
34412 arg2 = reinterpret_cast< wxImageList * >(argp2);
34413 {
34414 PyThreadState* __tstate = wxPyBeginAllowThreads();
34415 (arg1)->SetImageList(arg2);
34416 wxPyEndAllowThreads(__tstate);
34417 if (PyErr_Occurred()) SWIG_fail;
34418 }
34419 resultobj = SWIG_Py_Void();
34420 return resultobj;
34421fail:
34422 return NULL;
34423}
34424
34425
34426SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34427 PyObject *resultobj = 0;
34428 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34429 wxImageList *arg2 = (wxImageList *) 0 ;
34430 void *argp1 = 0 ;
34431 int res1 = 0 ;
34432 void *argp2 = 0 ;
34433 int res2 = 0 ;
34434 PyObject * obj0 = 0 ;
34435 PyObject * obj1 = 0 ;
34436 char * kwnames[] = {
34437 (char *) "self",(char *) "imageList", NULL
34438 };
34439
34440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34442 if (!SWIG_IsOK(res1)) {
34443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34444 }
34445 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34446 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34447 if (!SWIG_IsOK(res2)) {
34448 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34449 }
34450 arg2 = reinterpret_cast< wxImageList * >(argp2);
34451 {
34452 PyThreadState* __tstate = wxPyBeginAllowThreads();
34453 (arg1)->SetStateImageList(arg2);
34454 wxPyEndAllowThreads(__tstate);
34455 if (PyErr_Occurred()) SWIG_fail;
34456 }
34457 resultobj = SWIG_Py_Void();
34458 return resultobj;
34459fail:
34460 return NULL;
34461}
34462
34463
34464SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34465 PyObject *resultobj = 0;
34466 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34467 wxImageList *arg2 = (wxImageList *) 0 ;
34468 void *argp1 = 0 ;
34469 int res1 = 0 ;
34470 int res2 = 0 ;
34471 PyObject * obj0 = 0 ;
34472 PyObject * obj1 = 0 ;
34473 char * kwnames[] = {
34474 (char *) "self",(char *) "imageList", NULL
34475 };
34476
34477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34479 if (!SWIG_IsOK(res1)) {
34480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34481 }
34482 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34483 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34484 if (!SWIG_IsOK(res2)) {
34485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34486 }
34487 {
34488 PyThreadState* __tstate = wxPyBeginAllowThreads();
34489 (arg1)->AssignImageList(arg2);
34490 wxPyEndAllowThreads(__tstate);
34491 if (PyErr_Occurred()) SWIG_fail;
34492 }
34493 resultobj = SWIG_Py_Void();
34494 return resultobj;
34495fail:
34496 return NULL;
34497}
34498
34499
34500SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34501 PyObject *resultobj = 0;
34502 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34503 wxImageList *arg2 = (wxImageList *) 0 ;
34504 void *argp1 = 0 ;
34505 int res1 = 0 ;
34506 int res2 = 0 ;
34507 PyObject * obj0 = 0 ;
34508 PyObject * obj1 = 0 ;
34509 char * kwnames[] = {
34510 (char *) "self",(char *) "imageList", NULL
34511 };
34512
34513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34515 if (!SWIG_IsOK(res1)) {
34516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34517 }
34518 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34519 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34520 if (!SWIG_IsOK(res2)) {
34521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34522 }
34523 {
34524 PyThreadState* __tstate = wxPyBeginAllowThreads();
34525 (arg1)->AssignStateImageList(arg2);
34526 wxPyEndAllowThreads(__tstate);
34527 if (PyErr_Occurred()) SWIG_fail;
34528 }
34529 resultobj = SWIG_Py_Void();
34530 return resultobj;
34531fail:
34532 return NULL;
34533}
34534
34535
34536SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34537 PyObject *resultobj = 0;
34538 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34539 wxTreeItemId *arg2 = 0 ;
34540 wxString result;
34541 void *argp1 = 0 ;
34542 int res1 = 0 ;
34543 void *argp2 = 0 ;
34544 int res2 = 0 ;
34545 PyObject * obj0 = 0 ;
34546 PyObject * obj1 = 0 ;
34547 char * kwnames[] = {
34548 (char *) "self",(char *) "item", NULL
34549 };
34550
34551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34553 if (!SWIG_IsOK(res1)) {
34554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34555 }
34556 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34557 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34558 if (!SWIG_IsOK(res2)) {
34559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34560 }
34561 if (!argp2) {
34562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34563 }
34564 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34565 {
34566 PyThreadState* __tstate = wxPyBeginAllowThreads();
34567 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34568 wxPyEndAllowThreads(__tstate);
34569 if (PyErr_Occurred()) SWIG_fail;
34570 }
34571 {
34572#if wxUSE_UNICODE
34573 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34574#else
34575 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34576#endif
34577 }
34578 return resultobj;
34579fail:
34580 return NULL;
34581}
34582
34583
34584SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34585 PyObject *resultobj = 0;
34586 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34587 wxTreeItemId *arg2 = 0 ;
34588 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34589 int result;
34590 void *argp1 = 0 ;
34591 int res1 = 0 ;
34592 void *argp2 = 0 ;
34593 int res2 = 0 ;
34594 int val3 ;
34595 int ecode3 = 0 ;
34596 PyObject * obj0 = 0 ;
34597 PyObject * obj1 = 0 ;
34598 PyObject * obj2 = 0 ;
34599 char * kwnames[] = {
34600 (char *) "self",(char *) "item",(char *) "which", NULL
34601 };
34602
34603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34605 if (!SWIG_IsOK(res1)) {
34606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34607 }
34608 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34609 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34610 if (!SWIG_IsOK(res2)) {
34611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34612 }
34613 if (!argp2) {
34614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34615 }
34616 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34617 if (obj2) {
34618 ecode3 = SWIG_AsVal_int(obj2, &val3);
34619 if (!SWIG_IsOK(ecode3)) {
34620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34621 }
34622 arg3 = static_cast< wxTreeItemIcon >(val3);
34623 }
34624 {
34625 PyThreadState* __tstate = wxPyBeginAllowThreads();
34626 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34627 wxPyEndAllowThreads(__tstate);
34628 if (PyErr_Occurred()) SWIG_fail;
34629 }
34630 resultobj = SWIG_From_int(static_cast< int >(result));
34631 return resultobj;
34632fail:
34633 return NULL;
34634}
34635
34636
34637SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34638 PyObject *resultobj = 0;
34639 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34640 wxTreeItemId *arg2 = 0 ;
34641 wxPyTreeItemData *result = 0 ;
34642 void *argp1 = 0 ;
34643 int res1 = 0 ;
34644 void *argp2 = 0 ;
34645 int res2 = 0 ;
34646 PyObject * obj0 = 0 ;
34647 PyObject * obj1 = 0 ;
34648 char * kwnames[] = {
34649 (char *) "self",(char *) "item", NULL
34650 };
34651
34652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34654 if (!SWIG_IsOK(res1)) {
34655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34656 }
34657 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34658 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34659 if (!SWIG_IsOK(res2)) {
34660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34661 }
34662 if (!argp2) {
34663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34664 }
34665 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34666 {
34667 PyThreadState* __tstate = wxPyBeginAllowThreads();
34668 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34669 wxPyEndAllowThreads(__tstate);
34670 if (PyErr_Occurred()) SWIG_fail;
34671 }
34672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34673 return resultobj;
34674fail:
34675 return NULL;
34676}
34677
34678
34679SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34680 PyObject *resultobj = 0;
34681 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34682 wxTreeItemId *arg2 = 0 ;
34683 PyObject *result = 0 ;
34684 void *argp1 = 0 ;
34685 int res1 = 0 ;
34686 void *argp2 = 0 ;
34687 int res2 = 0 ;
34688 PyObject * obj0 = 0 ;
34689 PyObject * obj1 = 0 ;
34690 char * kwnames[] = {
34691 (char *) "self",(char *) "item", NULL
34692 };
34693
34694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34696 if (!SWIG_IsOK(res1)) {
34697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34698 }
34699 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34700 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34701 if (!SWIG_IsOK(res2)) {
34702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34703 }
34704 if (!argp2) {
34705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34706 }
34707 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34708 {
34709 PyThreadState* __tstate = wxPyBeginAllowThreads();
34710 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34711 wxPyEndAllowThreads(__tstate);
34712 if (PyErr_Occurred()) SWIG_fail;
34713 }
34714 resultobj = result;
34715 return resultobj;
34716fail:
34717 return NULL;
34718}
34719
34720
34721SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34722 PyObject *resultobj = 0;
34723 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34724 wxTreeItemId *arg2 = 0 ;
34725 wxColour result;
34726 void *argp1 = 0 ;
34727 int res1 = 0 ;
34728 void *argp2 = 0 ;
34729 int res2 = 0 ;
34730 PyObject * obj0 = 0 ;
34731 PyObject * obj1 = 0 ;
34732 char * kwnames[] = {
34733 (char *) "self",(char *) "item", NULL
34734 };
34735
34736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34738 if (!SWIG_IsOK(res1)) {
34739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34740 }
34741 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34742 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34743 if (!SWIG_IsOK(res2)) {
34744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34745 }
34746 if (!argp2) {
34747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34748 }
34749 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34750 {
34751 PyThreadState* __tstate = wxPyBeginAllowThreads();
34752 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34753 wxPyEndAllowThreads(__tstate);
34754 if (PyErr_Occurred()) SWIG_fail;
34755 }
34756 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34757 return resultobj;
34758fail:
34759 return NULL;
34760}
34761
34762
34763SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34764 PyObject *resultobj = 0;
34765 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34766 wxTreeItemId *arg2 = 0 ;
34767 wxColour result;
34768 void *argp1 = 0 ;
34769 int res1 = 0 ;
34770 void *argp2 = 0 ;
34771 int res2 = 0 ;
34772 PyObject * obj0 = 0 ;
34773 PyObject * obj1 = 0 ;
34774 char * kwnames[] = {
34775 (char *) "self",(char *) "item", NULL
34776 };
34777
34778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34780 if (!SWIG_IsOK(res1)) {
34781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34782 }
34783 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34784 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34785 if (!SWIG_IsOK(res2)) {
34786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34787 }
34788 if (!argp2) {
34789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34790 }
34791 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34792 {
34793 PyThreadState* __tstate = wxPyBeginAllowThreads();
34794 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34795 wxPyEndAllowThreads(__tstate);
34796 if (PyErr_Occurred()) SWIG_fail;
34797 }
34798 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34799 return resultobj;
34800fail:
34801 return NULL;
34802}
34803
34804
34805SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34806 PyObject *resultobj = 0;
34807 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34808 wxTreeItemId *arg2 = 0 ;
34809 wxFont result;
34810 void *argp1 = 0 ;
34811 int res1 = 0 ;
34812 void *argp2 = 0 ;
34813 int res2 = 0 ;
34814 PyObject * obj0 = 0 ;
34815 PyObject * obj1 = 0 ;
34816 char * kwnames[] = {
34817 (char *) "self",(char *) "item", NULL
34818 };
34819
34820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34822 if (!SWIG_IsOK(res1)) {
34823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34824 }
34825 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34826 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34827 if (!SWIG_IsOK(res2)) {
34828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34829 }
34830 if (!argp2) {
34831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34832 }
34833 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34834 {
34835 PyThreadState* __tstate = wxPyBeginAllowThreads();
34836 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34837 wxPyEndAllowThreads(__tstate);
34838 if (PyErr_Occurred()) SWIG_fail;
34839 }
34840 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34841 return resultobj;
34842fail:
34843 return NULL;
34844}
34845
34846
34847SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34848 PyObject *resultobj = 0;
34849 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34850 wxTreeItemId *arg2 = 0 ;
34851 wxString *arg3 = 0 ;
34852 void *argp1 = 0 ;
34853 int res1 = 0 ;
34854 void *argp2 = 0 ;
34855 int res2 = 0 ;
34856 bool temp3 = false ;
34857 PyObject * obj0 = 0 ;
34858 PyObject * obj1 = 0 ;
34859 PyObject * obj2 = 0 ;
34860 char * kwnames[] = {
34861 (char *) "self",(char *) "item",(char *) "text", NULL
34862 };
34863
34864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34866 if (!SWIG_IsOK(res1)) {
34867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34868 }
34869 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34871 if (!SWIG_IsOK(res2)) {
34872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34873 }
34874 if (!argp2) {
34875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34876 }
34877 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34878 {
34879 arg3 = wxString_in_helper(obj2);
34880 if (arg3 == NULL) SWIG_fail;
34881 temp3 = true;
34882 }
34883 {
34884 PyThreadState* __tstate = wxPyBeginAllowThreads();
34885 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34886 wxPyEndAllowThreads(__tstate);
34887 if (PyErr_Occurred()) SWIG_fail;
34888 }
34889 resultobj = SWIG_Py_Void();
34890 {
34891 if (temp3)
34892 delete arg3;
34893 }
34894 return resultobj;
34895fail:
34896 {
34897 if (temp3)
34898 delete arg3;
34899 }
34900 return NULL;
34901}
34902
34903
34904SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34905 PyObject *resultobj = 0;
34906 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34907 wxTreeItemId *arg2 = 0 ;
34908 int arg3 ;
34909 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34910 void *argp1 = 0 ;
34911 int res1 = 0 ;
34912 void *argp2 = 0 ;
34913 int res2 = 0 ;
34914 int val3 ;
34915 int ecode3 = 0 ;
34916 int val4 ;
34917 int ecode4 = 0 ;
34918 PyObject * obj0 = 0 ;
34919 PyObject * obj1 = 0 ;
34920 PyObject * obj2 = 0 ;
34921 PyObject * obj3 = 0 ;
34922 char * kwnames[] = {
34923 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34924 };
34925
34926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34928 if (!SWIG_IsOK(res1)) {
34929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34930 }
34931 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34932 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34933 if (!SWIG_IsOK(res2)) {
34934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34935 }
34936 if (!argp2) {
34937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34938 }
34939 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34940 ecode3 = SWIG_AsVal_int(obj2, &val3);
34941 if (!SWIG_IsOK(ecode3)) {
34942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34943 }
34944 arg3 = static_cast< int >(val3);
34945 if (obj3) {
34946 ecode4 = SWIG_AsVal_int(obj3, &val4);
34947 if (!SWIG_IsOK(ecode4)) {
34948 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34949 }
34950 arg4 = static_cast< wxTreeItemIcon >(val4);
34951 }
34952 {
34953 PyThreadState* __tstate = wxPyBeginAllowThreads();
34954 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34955 wxPyEndAllowThreads(__tstate);
34956 if (PyErr_Occurred()) SWIG_fail;
34957 }
34958 resultobj = SWIG_Py_Void();
34959 return resultobj;
34960fail:
34961 return NULL;
34962}
34963
34964
34965SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34966 PyObject *resultobj = 0;
34967 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34968 wxTreeItemId *arg2 = 0 ;
34969 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34970 void *argp1 = 0 ;
34971 int res1 = 0 ;
34972 void *argp2 = 0 ;
34973 int res2 = 0 ;
34974 int res3 = 0 ;
34975 PyObject * obj0 = 0 ;
34976 PyObject * obj1 = 0 ;
34977 PyObject * obj2 = 0 ;
34978 char * kwnames[] = {
34979 (char *) "self",(char *) "item",(char *) "data", NULL
34980 };
34981
34982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34984 if (!SWIG_IsOK(res1)) {
34985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34986 }
34987 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34988 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34989 if (!SWIG_IsOK(res2)) {
34990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34991 }
34992 if (!argp2) {
34993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34994 }
34995 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34996 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34997 if (!SWIG_IsOK(res3)) {
34998 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34999 }
35000 {
35001 PyThreadState* __tstate = wxPyBeginAllowThreads();
35002 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
35003 wxPyEndAllowThreads(__tstate);
35004 if (PyErr_Occurred()) SWIG_fail;
35005 }
35006 resultobj = SWIG_Py_Void();
35007 return resultobj;
35008fail:
35009 return NULL;
35010}
35011
35012
35013SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35014 PyObject *resultobj = 0;
35015 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35016 wxTreeItemId *arg2 = 0 ;
35017 PyObject *arg3 = (PyObject *) 0 ;
35018 void *argp1 = 0 ;
35019 int res1 = 0 ;
35020 void *argp2 = 0 ;
35021 int res2 = 0 ;
35022 PyObject * obj0 = 0 ;
35023 PyObject * obj1 = 0 ;
35024 PyObject * obj2 = 0 ;
35025 char * kwnames[] = {
35026 (char *) "self",(char *) "item",(char *) "obj", NULL
35027 };
35028
35029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35031 if (!SWIG_IsOK(res1)) {
35032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35033 }
35034 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35035 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35036 if (!SWIG_IsOK(res2)) {
35037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35038 }
35039 if (!argp2) {
35040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35041 }
35042 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35043 arg3 = obj2;
35044 {
35045 PyThreadState* __tstate = wxPyBeginAllowThreads();
35046 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
35047 wxPyEndAllowThreads(__tstate);
35048 if (PyErr_Occurred()) SWIG_fail;
35049 }
35050 resultobj = SWIG_Py_Void();
35051 return resultobj;
35052fail:
35053 return NULL;
35054}
35055
35056
35057SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35058 PyObject *resultobj = 0;
35059 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35060 wxTreeItemId *arg2 = 0 ;
35061 bool arg3 = (bool) true ;
35062 void *argp1 = 0 ;
35063 int res1 = 0 ;
35064 void *argp2 = 0 ;
35065 int res2 = 0 ;
35066 bool val3 ;
35067 int ecode3 = 0 ;
35068 PyObject * obj0 = 0 ;
35069 PyObject * obj1 = 0 ;
35070 PyObject * obj2 = 0 ;
35071 char * kwnames[] = {
35072 (char *) "self",(char *) "item",(char *) "has", NULL
35073 };
35074
35075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35077 if (!SWIG_IsOK(res1)) {
35078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35079 }
35080 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35081 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35082 if (!SWIG_IsOK(res2)) {
35083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35084 }
35085 if (!argp2) {
35086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35087 }
35088 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35089 if (obj2) {
35090 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35091 if (!SWIG_IsOK(ecode3)) {
35092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35093 }
35094 arg3 = static_cast< bool >(val3);
35095 }
35096 {
35097 PyThreadState* __tstate = wxPyBeginAllowThreads();
35098 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35099 wxPyEndAllowThreads(__tstate);
35100 if (PyErr_Occurred()) SWIG_fail;
35101 }
35102 resultobj = SWIG_Py_Void();
35103 return resultobj;
35104fail:
35105 return NULL;
35106}
35107
35108
35109SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35110 PyObject *resultobj = 0;
35111 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35112 wxTreeItemId *arg2 = 0 ;
35113 bool arg3 = (bool) true ;
35114 void *argp1 = 0 ;
35115 int res1 = 0 ;
35116 void *argp2 = 0 ;
35117 int res2 = 0 ;
35118 bool val3 ;
35119 int ecode3 = 0 ;
35120 PyObject * obj0 = 0 ;
35121 PyObject * obj1 = 0 ;
35122 PyObject * obj2 = 0 ;
35123 char * kwnames[] = {
35124 (char *) "self",(char *) "item",(char *) "bold", NULL
35125 };
35126
35127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35129 if (!SWIG_IsOK(res1)) {
35130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35131 }
35132 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35133 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35134 if (!SWIG_IsOK(res2)) {
35135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35136 }
35137 if (!argp2) {
35138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35139 }
35140 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35141 if (obj2) {
35142 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35143 if (!SWIG_IsOK(ecode3)) {
35144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35145 }
35146 arg3 = static_cast< bool >(val3);
35147 }
35148 {
35149 PyThreadState* __tstate = wxPyBeginAllowThreads();
35150 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35151 wxPyEndAllowThreads(__tstate);
35152 if (PyErr_Occurred()) SWIG_fail;
35153 }
35154 resultobj = SWIG_Py_Void();
35155 return resultobj;
35156fail:
35157 return NULL;
35158}
35159
35160
35161SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35162 PyObject *resultobj = 0;
35163 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35164 wxTreeItemId *arg2 = 0 ;
35165 bool arg3 = (bool) true ;
35166 void *argp1 = 0 ;
35167 int res1 = 0 ;
35168 void *argp2 = 0 ;
35169 int res2 = 0 ;
35170 bool val3 ;
35171 int ecode3 = 0 ;
35172 PyObject * obj0 = 0 ;
35173 PyObject * obj1 = 0 ;
35174 PyObject * obj2 = 0 ;
35175 char * kwnames[] = {
35176 (char *) "self",(char *) "item",(char *) "highlight", NULL
35177 };
35178
35179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35181 if (!SWIG_IsOK(res1)) {
35182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35183 }
35184 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35185 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35186 if (!SWIG_IsOK(res2)) {
35187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35188 }
35189 if (!argp2) {
35190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35191 }
35192 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35193 if (obj2) {
35194 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35195 if (!SWIG_IsOK(ecode3)) {
35196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35197 }
35198 arg3 = static_cast< bool >(val3);
35199 }
35200 {
35201 PyThreadState* __tstate = wxPyBeginAllowThreads();
35202 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35203 wxPyEndAllowThreads(__tstate);
35204 if (PyErr_Occurred()) SWIG_fail;
35205 }
35206 resultobj = SWIG_Py_Void();
35207 return resultobj;
35208fail:
35209 return NULL;
35210}
35211
35212
35213SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35214 PyObject *resultobj = 0;
35215 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35216 wxTreeItemId *arg2 = 0 ;
35217 wxColour *arg3 = 0 ;
35218 void *argp1 = 0 ;
35219 int res1 = 0 ;
35220 void *argp2 = 0 ;
35221 int res2 = 0 ;
35222 wxColour temp3 ;
35223 PyObject * obj0 = 0 ;
35224 PyObject * obj1 = 0 ;
35225 PyObject * obj2 = 0 ;
35226 char * kwnames[] = {
35227 (char *) "self",(char *) "item",(char *) "col", NULL
35228 };
35229
35230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35232 if (!SWIG_IsOK(res1)) {
35233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35234 }
35235 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35236 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35237 if (!SWIG_IsOK(res2)) {
35238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35239 }
35240 if (!argp2) {
35241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35242 }
35243 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35244 {
35245 arg3 = &temp3;
35246 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35247 }
35248 {
35249 PyThreadState* __tstate = wxPyBeginAllowThreads();
35250 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35251 wxPyEndAllowThreads(__tstate);
35252 if (PyErr_Occurred()) SWIG_fail;
35253 }
35254 resultobj = SWIG_Py_Void();
35255 return resultobj;
35256fail:
35257 return NULL;
35258}
35259
35260
35261SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35262 PyObject *resultobj = 0;
35263 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35264 wxTreeItemId *arg2 = 0 ;
35265 wxColour *arg3 = 0 ;
35266 void *argp1 = 0 ;
35267 int res1 = 0 ;
35268 void *argp2 = 0 ;
35269 int res2 = 0 ;
35270 wxColour temp3 ;
35271 PyObject * obj0 = 0 ;
35272 PyObject * obj1 = 0 ;
35273 PyObject * obj2 = 0 ;
35274 char * kwnames[] = {
35275 (char *) "self",(char *) "item",(char *) "col", NULL
35276 };
35277
35278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35280 if (!SWIG_IsOK(res1)) {
35281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35282 }
35283 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35284 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35285 if (!SWIG_IsOK(res2)) {
35286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35287 }
35288 if (!argp2) {
35289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35290 }
35291 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35292 {
35293 arg3 = &temp3;
35294 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35295 }
35296 {
35297 PyThreadState* __tstate = wxPyBeginAllowThreads();
35298 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35299 wxPyEndAllowThreads(__tstate);
35300 if (PyErr_Occurred()) SWIG_fail;
35301 }
35302 resultobj = SWIG_Py_Void();
35303 return resultobj;
35304fail:
35305 return NULL;
35306}
35307
35308
35309SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35310 PyObject *resultobj = 0;
35311 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35312 wxTreeItemId *arg2 = 0 ;
35313 wxFont *arg3 = 0 ;
35314 void *argp1 = 0 ;
35315 int res1 = 0 ;
35316 void *argp2 = 0 ;
35317 int res2 = 0 ;
35318 void *argp3 = 0 ;
35319 int res3 = 0 ;
35320 PyObject * obj0 = 0 ;
35321 PyObject * obj1 = 0 ;
35322 PyObject * obj2 = 0 ;
35323 char * kwnames[] = {
35324 (char *) "self",(char *) "item",(char *) "font", NULL
35325 };
35326
35327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35329 if (!SWIG_IsOK(res1)) {
35330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35331 }
35332 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35334 if (!SWIG_IsOK(res2)) {
35335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35336 }
35337 if (!argp2) {
35338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35339 }
35340 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35341 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35342 if (!SWIG_IsOK(res3)) {
35343 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35344 }
35345 if (!argp3) {
35346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35347 }
35348 arg3 = reinterpret_cast< wxFont * >(argp3);
35349 {
35350 PyThreadState* __tstate = wxPyBeginAllowThreads();
35351 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35352 wxPyEndAllowThreads(__tstate);
35353 if (PyErr_Occurred()) SWIG_fail;
35354 }
35355 resultobj = SWIG_Py_Void();
35356 return resultobj;
35357fail:
35358 return NULL;
35359}
35360
35361
35362SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35363 PyObject *resultobj = 0;
35364 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35365 wxTreeItemId *arg2 = 0 ;
35366 bool result;
35367 void *argp1 = 0 ;
35368 int res1 = 0 ;
35369 void *argp2 = 0 ;
35370 int res2 = 0 ;
35371 PyObject * obj0 = 0 ;
35372 PyObject * obj1 = 0 ;
35373 char * kwnames[] = {
35374 (char *) "self",(char *) "item", NULL
35375 };
35376
35377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35379 if (!SWIG_IsOK(res1)) {
35380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35381 }
35382 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35383 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35384 if (!SWIG_IsOK(res2)) {
35385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35386 }
35387 if (!argp2) {
35388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35389 }
35390 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35391 {
35392 PyThreadState* __tstate = wxPyBeginAllowThreads();
35393 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35394 wxPyEndAllowThreads(__tstate);
35395 if (PyErr_Occurred()) SWIG_fail;
35396 }
35397 {
35398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35399 }
35400 return resultobj;
35401fail:
35402 return NULL;
35403}
35404
35405
35406SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35407 PyObject *resultobj = 0;
35408 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35409 wxTreeItemId *arg2 = 0 ;
35410 bool result;
35411 void *argp1 = 0 ;
35412 int res1 = 0 ;
35413 void *argp2 = 0 ;
35414 int res2 = 0 ;
35415 PyObject * obj0 = 0 ;
35416 PyObject * obj1 = 0 ;
35417 char * kwnames[] = {
35418 (char *) "self",(char *) "item", NULL
35419 };
35420
35421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35423 if (!SWIG_IsOK(res1)) {
35424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35425 }
35426 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35427 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35428 if (!SWIG_IsOK(res2)) {
35429 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35430 }
35431 if (!argp2) {
35432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35433 }
35434 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35435 {
35436 PyThreadState* __tstate = wxPyBeginAllowThreads();
35437 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35438 wxPyEndAllowThreads(__tstate);
35439 if (PyErr_Occurred()) SWIG_fail;
35440 }
35441 {
35442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35443 }
35444 return resultobj;
35445fail:
35446 return NULL;
35447}
35448
35449
35450SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35451 PyObject *resultobj = 0;
35452 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35453 wxTreeItemId *arg2 = 0 ;
35454 bool result;
35455 void *argp1 = 0 ;
35456 int res1 = 0 ;
35457 void *argp2 = 0 ;
35458 int res2 = 0 ;
35459 PyObject * obj0 = 0 ;
35460 PyObject * obj1 = 0 ;
35461 char * kwnames[] = {
35462 (char *) "self",(char *) "item", NULL
35463 };
35464
35465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35467 if (!SWIG_IsOK(res1)) {
35468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35469 }
35470 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35471 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35472 if (!SWIG_IsOK(res2)) {
35473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35474 }
35475 if (!argp2) {
35476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35477 }
35478 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35479 {
35480 PyThreadState* __tstate = wxPyBeginAllowThreads();
35481 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35482 wxPyEndAllowThreads(__tstate);
35483 if (PyErr_Occurred()) SWIG_fail;
35484 }
35485 {
35486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35487 }
35488 return resultobj;
35489fail:
35490 return NULL;
35491}
35492
35493
35494SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35495 PyObject *resultobj = 0;
35496 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35497 wxTreeItemId *arg2 = 0 ;
35498 bool result;
35499 void *argp1 = 0 ;
35500 int res1 = 0 ;
35501 void *argp2 = 0 ;
35502 int res2 = 0 ;
35503 PyObject * obj0 = 0 ;
35504 PyObject * obj1 = 0 ;
35505 char * kwnames[] = {
35506 (char *) "self",(char *) "item", NULL
35507 };
35508
35509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35511 if (!SWIG_IsOK(res1)) {
35512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35513 }
35514 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35515 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35516 if (!SWIG_IsOK(res2)) {
35517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35518 }
35519 if (!argp2) {
35520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35521 }
35522 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35523 {
35524 PyThreadState* __tstate = wxPyBeginAllowThreads();
35525 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35526 wxPyEndAllowThreads(__tstate);
35527 if (PyErr_Occurred()) SWIG_fail;
35528 }
35529 {
35530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35531 }
35532 return resultobj;
35533fail:
35534 return NULL;
35535}
35536
35537
35538SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35539 PyObject *resultobj = 0;
35540 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35541 wxTreeItemId *arg2 = 0 ;
35542 bool result;
35543 void *argp1 = 0 ;
35544 int res1 = 0 ;
35545 void *argp2 = 0 ;
35546 int res2 = 0 ;
35547 PyObject * obj0 = 0 ;
35548 PyObject * obj1 = 0 ;
35549 char * kwnames[] = {
35550 (char *) "self",(char *) "item", NULL
35551 };
35552
35553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35555 if (!SWIG_IsOK(res1)) {
35556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35557 }
35558 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35559 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35560 if (!SWIG_IsOK(res2)) {
35561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35562 }
35563 if (!argp2) {
35564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35565 }
35566 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35567 {
35568 PyThreadState* __tstate = wxPyBeginAllowThreads();
35569 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35570 wxPyEndAllowThreads(__tstate);
35571 if (PyErr_Occurred()) SWIG_fail;
35572 }
35573 {
35574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35575 }
35576 return resultobj;
35577fail:
35578 return NULL;
35579}
35580
35581
35582SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35583 PyObject *resultobj = 0;
35584 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35585 wxTreeItemId *arg2 = 0 ;
35586 bool arg3 = (bool) true ;
35587 size_t result;
35588 void *argp1 = 0 ;
35589 int res1 = 0 ;
35590 void *argp2 = 0 ;
35591 int res2 = 0 ;
35592 bool val3 ;
35593 int ecode3 = 0 ;
35594 PyObject * obj0 = 0 ;
35595 PyObject * obj1 = 0 ;
35596 PyObject * obj2 = 0 ;
35597 char * kwnames[] = {
35598 (char *) "self",(char *) "item",(char *) "recursively", NULL
35599 };
35600
35601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35603 if (!SWIG_IsOK(res1)) {
35604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35605 }
35606 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35607 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35608 if (!SWIG_IsOK(res2)) {
35609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35610 }
35611 if (!argp2) {
35612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35613 }
35614 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35615 if (obj2) {
35616 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35617 if (!SWIG_IsOK(ecode3)) {
35618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35619 }
35620 arg3 = static_cast< bool >(val3);
35621 }
35622 {
35623 PyThreadState* __tstate = wxPyBeginAllowThreads();
35624 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35625 wxPyEndAllowThreads(__tstate);
35626 if (PyErr_Occurred()) SWIG_fail;
35627 }
35628 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35629 return resultobj;
35630fail:
35631 return NULL;
d55e5bfc
RD
35632}
35633
35634
554f62e9
RD
35635SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35636 PyObject *resultobj = 0;
35637 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35638 wxTreeItemId result;
35639 void *argp1 = 0 ;
35640 int res1 = 0 ;
35641 PyObject *swig_obj[1] ;
35642
35643 if (!args) SWIG_fail;
35644 swig_obj[0] = args;
35645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35646 if (!SWIG_IsOK(res1)) {
35647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35648 }
35649 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35650 {
35651 PyThreadState* __tstate = wxPyBeginAllowThreads();
35652 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35653 wxPyEndAllowThreads(__tstate);
35654 if (PyErr_Occurred()) SWIG_fail;
35655 }
35656 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35657 return resultobj;
35658fail:
35659 return NULL;
d55e5bfc
RD
35660}
35661
35662
554f62e9
RD
35663SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35664 PyObject *resultobj = 0;
35665 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35666 wxTreeItemId result;
35667 void *argp1 = 0 ;
35668 int res1 = 0 ;
35669 PyObject *swig_obj[1] ;
35670
35671 if (!args) SWIG_fail;
35672 swig_obj[0] = args;
35673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35674 if (!SWIG_IsOK(res1)) {
35675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35676 }
35677 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35678 {
35679 PyThreadState* __tstate = wxPyBeginAllowThreads();
35680 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35681 wxPyEndAllowThreads(__tstate);
35682 if (PyErr_Occurred()) SWIG_fail;
35683 }
35684 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35685 return resultobj;
35686fail:
35687 return NULL;
d55e5bfc
RD
35688}
35689
35690
554f62e9
RD
35691SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35692 PyObject *resultobj = 0;
35693 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35694 PyObject *result = 0 ;
35695 void *argp1 = 0 ;
35696 int res1 = 0 ;
35697 PyObject *swig_obj[1] ;
35698
35699 if (!args) SWIG_fail;
35700 swig_obj[0] = args;
35701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35702 if (!SWIG_IsOK(res1)) {
35703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35704 }
35705 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35706 {
35707 PyThreadState* __tstate = wxPyBeginAllowThreads();
35708 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35709 wxPyEndAllowThreads(__tstate);
35710 if (PyErr_Occurred()) SWIG_fail;
35711 }
35712 resultobj = result;
35713 return resultobj;
35714fail:
35715 return NULL;
35716}
35717
35718
35719SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35720 PyObject *resultobj = 0;
35721 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35722 wxTreeItemId *arg2 = 0 ;
35723 wxTreeItemId result;
35724 void *argp1 = 0 ;
35725 int res1 = 0 ;
35726 void *argp2 = 0 ;
35727 int res2 = 0 ;
35728 PyObject * obj0 = 0 ;
35729 PyObject * obj1 = 0 ;
35730 char * kwnames[] = {
35731 (char *) "self",(char *) "item", NULL
35732 };
35733
35734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35736 if (!SWIG_IsOK(res1)) {
35737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35738 }
35739 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35740 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35741 if (!SWIG_IsOK(res2)) {
35742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35743 }
35744 if (!argp2) {
35745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35746 }
35747 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35748 {
35749 PyThreadState* __tstate = wxPyBeginAllowThreads();
35750 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35751 wxPyEndAllowThreads(__tstate);
35752 if (PyErr_Occurred()) SWIG_fail;
35753 }
35754 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35755 return resultobj;
35756fail:
35757 return NULL;
35758}
35759
35760
35761SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35762 PyObject *resultobj = 0;
35763 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35764 wxTreeItemId *arg2 = 0 ;
35765 PyObject *result = 0 ;
35766 void *argp1 = 0 ;
35767 int res1 = 0 ;
35768 void *argp2 = 0 ;
35769 int res2 = 0 ;
35770 PyObject * obj0 = 0 ;
35771 PyObject * obj1 = 0 ;
35772 char * kwnames[] = {
35773 (char *) "self",(char *) "item", NULL
35774 };
35775
35776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35778 if (!SWIG_IsOK(res1)) {
35779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35780 }
35781 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35783 if (!SWIG_IsOK(res2)) {
35784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35785 }
35786 if (!argp2) {
35787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35788 }
35789 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35790 {
35791 PyThreadState* __tstate = wxPyBeginAllowThreads();
35792 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35793 wxPyEndAllowThreads(__tstate);
35794 if (PyErr_Occurred()) SWIG_fail;
35795 }
35796 resultobj = result;
35797 return resultobj;
35798fail:
35799 return NULL;
35800}
35801
35802
35803SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35804 PyObject *resultobj = 0;
35805 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35806 wxTreeItemId *arg2 = 0 ;
35807 void *arg3 = (void *) 0 ;
35808 PyObject *result = 0 ;
35809 void *argp1 = 0 ;
35810 int res1 = 0 ;
35811 void *argp2 = 0 ;
35812 int res2 = 0 ;
35813 int res3 ;
35814 PyObject * obj0 = 0 ;
35815 PyObject * obj1 = 0 ;
35816 PyObject * obj2 = 0 ;
35817 char * kwnames[] = {
35818 (char *) "self",(char *) "item",(char *) "cookie", NULL
35819 };
35820
35821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35823 if (!SWIG_IsOK(res1)) {
35824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35825 }
35826 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35827 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35828 if (!SWIG_IsOK(res2)) {
35829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35830 }
35831 if (!argp2) {
35832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35833 }
35834 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35835 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35836 if (!SWIG_IsOK(res3)) {
35837 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35838 }
35839 {
35840 PyThreadState* __tstate = wxPyBeginAllowThreads();
35841 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35842 wxPyEndAllowThreads(__tstate);
35843 if (PyErr_Occurred()) SWIG_fail;
35844 }
35845 resultobj = result;
35846 return resultobj;
35847fail:
35848 return NULL;
35849}
35850
35851
35852SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35853 PyObject *resultobj = 0;
35854 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35855 wxTreeItemId *arg2 = 0 ;
35856 wxTreeItemId result;
35857 void *argp1 = 0 ;
35858 int res1 = 0 ;
35859 void *argp2 = 0 ;
35860 int res2 = 0 ;
35861 PyObject * obj0 = 0 ;
35862 PyObject * obj1 = 0 ;
35863 char * kwnames[] = {
35864 (char *) "self",(char *) "item", NULL
35865 };
35866
35867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35869 if (!SWIG_IsOK(res1)) {
35870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35871 }
35872 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35873 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35874 if (!SWIG_IsOK(res2)) {
35875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35876 }
35877 if (!argp2) {
35878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35879 }
35880 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35881 {
35882 PyThreadState* __tstate = wxPyBeginAllowThreads();
35883 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35884 wxPyEndAllowThreads(__tstate);
35885 if (PyErr_Occurred()) SWIG_fail;
35886 }
35887 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35888 return resultobj;
35889fail:
35890 return NULL;
35891}
35892
35893
35894SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35895 PyObject *resultobj = 0;
35896 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35897 wxTreeItemId *arg2 = 0 ;
35898 wxTreeItemId result;
35899 void *argp1 = 0 ;
35900 int res1 = 0 ;
35901 void *argp2 = 0 ;
35902 int res2 = 0 ;
35903 PyObject * obj0 = 0 ;
35904 PyObject * obj1 = 0 ;
35905 char * kwnames[] = {
35906 (char *) "self",(char *) "item", NULL
35907 };
35908
35909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35911 if (!SWIG_IsOK(res1)) {
35912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35913 }
35914 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35915 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35916 if (!SWIG_IsOK(res2)) {
35917 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35918 }
35919 if (!argp2) {
35920 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35921 }
35922 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35923 {
35924 PyThreadState* __tstate = wxPyBeginAllowThreads();
35925 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35926 wxPyEndAllowThreads(__tstate);
35927 if (PyErr_Occurred()) SWIG_fail;
35928 }
35929 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35930 return resultobj;
35931fail:
35932 return NULL;
35933}
35934
35935
35936SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35937 PyObject *resultobj = 0;
35938 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35939 wxTreeItemId *arg2 = 0 ;
35940 wxTreeItemId result;
35941 void *argp1 = 0 ;
35942 int res1 = 0 ;
35943 void *argp2 = 0 ;
35944 int res2 = 0 ;
35945 PyObject * obj0 = 0 ;
35946 PyObject * obj1 = 0 ;
35947 char * kwnames[] = {
35948 (char *) "self",(char *) "item", NULL
35949 };
35950
35951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35953 if (!SWIG_IsOK(res1)) {
35954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35955 }
35956 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35957 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35958 if (!SWIG_IsOK(res2)) {
35959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35960 }
35961 if (!argp2) {
35962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35963 }
35964 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35965 {
35966 PyThreadState* __tstate = wxPyBeginAllowThreads();
35967 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35968 wxPyEndAllowThreads(__tstate);
35969 if (PyErr_Occurred()) SWIG_fail;
35970 }
35971 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35972 return resultobj;
35973fail:
35974 return NULL;
d55e5bfc
RD
35975}
35976
35977
554f62e9
RD
35978SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35979 PyObject *resultobj = 0;
35980 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35981 wxTreeItemId result;
35982 void *argp1 = 0 ;
35983 int res1 = 0 ;
35984 PyObject *swig_obj[1] ;
35985
35986 if (!args) SWIG_fail;
35987 swig_obj[0] = args;
35988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35989 if (!SWIG_IsOK(res1)) {
35990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35991 }
35992 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35993 {
35994 PyThreadState* __tstate = wxPyBeginAllowThreads();
35995 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35996 wxPyEndAllowThreads(__tstate);
35997 if (PyErr_Occurred()) SWIG_fail;
35998 }
35999 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36000 return resultobj;
36001fail:
36002 return NULL;
36003}
36004
36005
36006SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36007 PyObject *resultobj = 0;
36008 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36009 wxTreeItemId *arg2 = 0 ;
36010 wxTreeItemId result;
36011 void *argp1 = 0 ;
36012 int res1 = 0 ;
36013 void *argp2 = 0 ;
36014 int res2 = 0 ;
36015 PyObject * obj0 = 0 ;
36016 PyObject * obj1 = 0 ;
36017 char * kwnames[] = {
36018 (char *) "self",(char *) "item", NULL
36019 };
36020
36021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36023 if (!SWIG_IsOK(res1)) {
36024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36025 }
36026 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36027 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36028 if (!SWIG_IsOK(res2)) {
36029 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36030 }
36031 if (!argp2) {
36032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36033 }
36034 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36035 {
36036 PyThreadState* __tstate = wxPyBeginAllowThreads();
36037 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
36038 wxPyEndAllowThreads(__tstate);
36039 if (PyErr_Occurred()) SWIG_fail;
36040 }
36041 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36042 return resultobj;
36043fail:
36044 return NULL;
36045}
36046
36047
36048SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36049 PyObject *resultobj = 0;
36050 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36051 wxTreeItemId *arg2 = 0 ;
36052 wxTreeItemId result;
36053 void *argp1 = 0 ;
36054 int res1 = 0 ;
36055 void *argp2 = 0 ;
36056 int res2 = 0 ;
36057 PyObject * obj0 = 0 ;
36058 PyObject * obj1 = 0 ;
36059 char * kwnames[] = {
36060 (char *) "self",(char *) "item", NULL
36061 };
36062
36063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36065 if (!SWIG_IsOK(res1)) {
36066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36067 }
36068 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36069 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36070 if (!SWIG_IsOK(res2)) {
36071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36072 }
36073 if (!argp2) {
36074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36075 }
36076 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36077 {
36078 PyThreadState* __tstate = wxPyBeginAllowThreads();
36079 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36080 wxPyEndAllowThreads(__tstate);
36081 if (PyErr_Occurred()) SWIG_fail;
36082 }
36083 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36084 return resultobj;
36085fail:
36086 return NULL;
36087}
36088
36089
36090SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36091 PyObject *resultobj = 0;
36092 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36093 wxString *arg2 = 0 ;
36094 int arg3 = (int) -1 ;
36095 int arg4 = (int) -1 ;
36096 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36097 wxTreeItemId result;
36098 void *argp1 = 0 ;
36099 int res1 = 0 ;
36100 bool temp2 = false ;
36101 int val3 ;
36102 int ecode3 = 0 ;
36103 int val4 ;
36104 int ecode4 = 0 ;
36105 int res5 = 0 ;
36106 PyObject * obj0 = 0 ;
36107 PyObject * obj1 = 0 ;
36108 PyObject * obj2 = 0 ;
36109 PyObject * obj3 = 0 ;
36110 PyObject * obj4 = 0 ;
36111 char * kwnames[] = {
36112 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36113 };
36114
36115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36117 if (!SWIG_IsOK(res1)) {
36118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36119 }
36120 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36121 {
36122 arg2 = wxString_in_helper(obj1);
36123 if (arg2 == NULL) SWIG_fail;
36124 temp2 = true;
36125 }
36126 if (obj2) {
36127 ecode3 = SWIG_AsVal_int(obj2, &val3);
36128 if (!SWIG_IsOK(ecode3)) {
36129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36130 }
36131 arg3 = static_cast< int >(val3);
36132 }
36133 if (obj3) {
36134 ecode4 = SWIG_AsVal_int(obj3, &val4);
36135 if (!SWIG_IsOK(ecode4)) {
36136 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36137 }
36138 arg4 = static_cast< int >(val4);
36139 }
36140 if (obj4) {
36141 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36142 if (!SWIG_IsOK(res5)) {
36143 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36144 }
554f62e9
RD
36145 }
36146 {
36147 PyThreadState* __tstate = wxPyBeginAllowThreads();
36148 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36149 wxPyEndAllowThreads(__tstate);
36150 if (PyErr_Occurred()) SWIG_fail;
36151 }
36152 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36153 {
36154 if (temp2)
36155 delete arg2;
36156 }
36157 return resultobj;
36158fail:
36159 {
36160 if (temp2)
36161 delete arg2;
36162 }
36163 return NULL;
36164}
36165
36166
36167SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36168 PyObject *resultobj = 0;
36169 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36170 wxTreeItemId *arg2 = 0 ;
36171 wxString *arg3 = 0 ;
36172 int arg4 = (int) -1 ;
36173 int arg5 = (int) -1 ;
36174 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36175 wxTreeItemId result;
36176 void *argp1 = 0 ;
36177 int res1 = 0 ;
36178 void *argp2 = 0 ;
36179 int res2 = 0 ;
36180 bool temp3 = false ;
36181 int val4 ;
36182 int ecode4 = 0 ;
36183 int val5 ;
36184 int ecode5 = 0 ;
36185 int res6 = 0 ;
36186 PyObject * obj0 = 0 ;
36187 PyObject * obj1 = 0 ;
36188 PyObject * obj2 = 0 ;
36189 PyObject * obj3 = 0 ;
36190 PyObject * obj4 = 0 ;
36191 PyObject * obj5 = 0 ;
36192 char * kwnames[] = {
36193 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36194 };
36195
36196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36198 if (!SWIG_IsOK(res1)) {
36199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36200 }
36201 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36202 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36203 if (!SWIG_IsOK(res2)) {
36204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36205 }
36206 if (!argp2) {
36207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36208 }
36209 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36210 {
36211 arg3 = wxString_in_helper(obj2);
36212 if (arg3 == NULL) SWIG_fail;
36213 temp3 = true;
36214 }
36215 if (obj3) {
36216 ecode4 = SWIG_AsVal_int(obj3, &val4);
36217 if (!SWIG_IsOK(ecode4)) {
36218 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36219 }
36220 arg4 = static_cast< int >(val4);
36221 }
36222 if (obj4) {
36223 ecode5 = SWIG_AsVal_int(obj4, &val5);
36224 if (!SWIG_IsOK(ecode5)) {
36225 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36226 }
36227 arg5 = static_cast< int >(val5);
36228 }
36229 if (obj5) {
36230 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36231 if (!SWIG_IsOK(res6)) {
36232 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
093d3ff1 36233 }
554f62e9
RD
36234 }
36235 {
36236 PyThreadState* __tstate = wxPyBeginAllowThreads();
36237 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36238 wxPyEndAllowThreads(__tstate);
36239 if (PyErr_Occurred()) SWIG_fail;
36240 }
36241 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36242 {
36243 if (temp3)
36244 delete arg3;
36245 }
36246 return resultobj;
36247fail:
36248 {
36249 if (temp3)
36250 delete arg3;
36251 }
36252 return NULL;
36253}
36254
36255
36256SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36257 PyObject *resultobj = 0;
36258 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36259 wxTreeItemId *arg2 = 0 ;
36260 wxTreeItemId *arg3 = 0 ;
36261 wxString *arg4 = 0 ;
36262 int arg5 = (int) -1 ;
36263 int arg6 = (int) -1 ;
36264 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36265 wxTreeItemId result;
36266 void *argp1 = 0 ;
36267 int res1 = 0 ;
36268 void *argp2 = 0 ;
36269 int res2 = 0 ;
36270 void *argp3 = 0 ;
36271 int res3 = 0 ;
36272 bool temp4 = false ;
36273 int val5 ;
36274 int ecode5 = 0 ;
36275 int val6 ;
36276 int ecode6 = 0 ;
36277 int res7 = 0 ;
36278 PyObject * obj0 = 0 ;
36279 PyObject * obj1 = 0 ;
36280 PyObject * obj2 = 0 ;
36281 PyObject * obj3 = 0 ;
36282 PyObject * obj4 = 0 ;
36283 PyObject * obj5 = 0 ;
36284 PyObject * obj6 = 0 ;
36285 char * kwnames[] = {
36286 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36287 };
36288
36289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36291 if (!SWIG_IsOK(res1)) {
36292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36293 }
36294 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36295 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36296 if (!SWIG_IsOK(res2)) {
36297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36298 }
36299 if (!argp2) {
36300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36301 }
36302 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36303 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36304 if (!SWIG_IsOK(res3)) {
36305 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36306 }
36307 if (!argp3) {
36308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36309 }
36310 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36311 {
36312 arg4 = wxString_in_helper(obj3);
36313 if (arg4 == NULL) SWIG_fail;
36314 temp4 = true;
36315 }
36316 if (obj4) {
36317 ecode5 = SWIG_AsVal_int(obj4, &val5);
36318 if (!SWIG_IsOK(ecode5)) {
36319 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36320 }
36321 arg5 = static_cast< int >(val5);
36322 }
36323 if (obj5) {
36324 ecode6 = SWIG_AsVal_int(obj5, &val6);
36325 if (!SWIG_IsOK(ecode6)) {
36326 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36327 }
36328 arg6 = static_cast< int >(val6);
36329 }
36330 if (obj6) {
36331 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36332 if (!SWIG_IsOK(res7)) {
36333 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36334 }
554f62e9
RD
36335 }
36336 {
36337 PyThreadState* __tstate = wxPyBeginAllowThreads();
36338 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36339 wxPyEndAllowThreads(__tstate);
36340 if (PyErr_Occurred()) SWIG_fail;
36341 }
36342 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36343 {
36344 if (temp4)
36345 delete arg4;
36346 }
36347 return resultobj;
36348fail:
36349 {
36350 if (temp4)
36351 delete arg4;
36352 }
36353 return NULL;
36354}
36355
36356
36357SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36358 PyObject *resultobj = 0;
36359 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36360 wxTreeItemId *arg2 = 0 ;
36361 size_t arg3 ;
36362 wxString *arg4 = 0 ;
36363 int arg5 = (int) -1 ;
36364 int arg6 = (int) -1 ;
36365 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36366 wxTreeItemId result;
36367 void *argp1 = 0 ;
36368 int res1 = 0 ;
36369 void *argp2 = 0 ;
36370 int res2 = 0 ;
36371 size_t val3 ;
36372 int ecode3 = 0 ;
36373 bool temp4 = false ;
36374 int val5 ;
36375 int ecode5 = 0 ;
36376 int val6 ;
36377 int ecode6 = 0 ;
36378 int res7 = 0 ;
36379 PyObject * obj0 = 0 ;
36380 PyObject * obj1 = 0 ;
36381 PyObject * obj2 = 0 ;
36382 PyObject * obj3 = 0 ;
36383 PyObject * obj4 = 0 ;
36384 PyObject * obj5 = 0 ;
36385 PyObject * obj6 = 0 ;
36386 char * kwnames[] = {
36387 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36388 };
36389
36390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36392 if (!SWIG_IsOK(res1)) {
36393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36394 }
36395 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36396 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36397 if (!SWIG_IsOK(res2)) {
36398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36399 }
36400 if (!argp2) {
36401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36402 }
36403 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36404 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36405 if (!SWIG_IsOK(ecode3)) {
36406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36407 }
36408 arg3 = static_cast< size_t >(val3);
36409 {
36410 arg4 = wxString_in_helper(obj3);
36411 if (arg4 == NULL) SWIG_fail;
36412 temp4 = true;
36413 }
36414 if (obj4) {
36415 ecode5 = SWIG_AsVal_int(obj4, &val5);
36416 if (!SWIG_IsOK(ecode5)) {
36417 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36418 }
36419 arg5 = static_cast< int >(val5);
36420 }
36421 if (obj5) {
36422 ecode6 = SWIG_AsVal_int(obj5, &val6);
36423 if (!SWIG_IsOK(ecode6)) {
36424 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36425 }
36426 arg6 = static_cast< int >(val6);
36427 }
36428 if (obj6) {
36429 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36430 if (!SWIG_IsOK(res7)) {
36431 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
093d3ff1 36432 }
554f62e9
RD
36433 }
36434 {
36435 PyThreadState* __tstate = wxPyBeginAllowThreads();
36436 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36437 wxPyEndAllowThreads(__tstate);
36438 if (PyErr_Occurred()) SWIG_fail;
36439 }
36440 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36441 {
36442 if (temp4)
36443 delete arg4;
36444 }
36445 return resultobj;
36446fail:
36447 {
36448 if (temp4)
36449 delete arg4;
36450 }
36451 return NULL;
36452}
36453
36454
36455SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36456 PyObject *resultobj = 0;
36457 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36458 wxTreeItemId *arg2 = 0 ;
36459 wxString *arg3 = 0 ;
36460 int arg4 = (int) -1 ;
36461 int arg5 = (int) -1 ;
36462 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36463 wxTreeItemId result;
36464 void *argp1 = 0 ;
36465 int res1 = 0 ;
36466 void *argp2 = 0 ;
36467 int res2 = 0 ;
36468 bool temp3 = false ;
36469 int val4 ;
36470 int ecode4 = 0 ;
36471 int val5 ;
36472 int ecode5 = 0 ;
36473 int res6 = 0 ;
36474 PyObject * obj0 = 0 ;
36475 PyObject * obj1 = 0 ;
36476 PyObject * obj2 = 0 ;
36477 PyObject * obj3 = 0 ;
36478 PyObject * obj4 = 0 ;
36479 PyObject * obj5 = 0 ;
36480 char * kwnames[] = {
36481 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36482 };
36483
36484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36486 if (!SWIG_IsOK(res1)) {
36487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36488 }
36489 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36490 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36491 if (!SWIG_IsOK(res2)) {
36492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36493 }
36494 if (!argp2) {
36495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36496 }
36497 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36498 {
36499 arg3 = wxString_in_helper(obj2);
36500 if (arg3 == NULL) SWIG_fail;
36501 temp3 = true;
36502 }
36503 if (obj3) {
36504 ecode4 = SWIG_AsVal_int(obj3, &val4);
36505 if (!SWIG_IsOK(ecode4)) {
36506 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36507 }
36508 arg4 = static_cast< int >(val4);
36509 }
36510 if (obj4) {
36511 ecode5 = SWIG_AsVal_int(obj4, &val5);
36512 if (!SWIG_IsOK(ecode5)) {
36513 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36514 }
36515 arg5 = static_cast< int >(val5);
36516 }
36517 if (obj5) {
36518 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36519 if (!SWIG_IsOK(res6)) {
36520 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36521 }
554f62e9
RD
36522 }
36523 {
36524 PyThreadState* __tstate = wxPyBeginAllowThreads();
36525 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36526 wxPyEndAllowThreads(__tstate);
36527 if (PyErr_Occurred()) SWIG_fail;
36528 }
36529 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36530 {
36531 if (temp3)
36532 delete arg3;
36533 }
36534 return resultobj;
36535fail:
36536 {
36537 if (temp3)
36538 delete arg3;
36539 }
36540 return NULL;
36541}
36542
36543
36544SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36545 PyObject *resultobj = 0;
36546 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36547 wxTreeItemId *arg2 = 0 ;
36548 void *argp1 = 0 ;
36549 int res1 = 0 ;
36550 void *argp2 = 0 ;
36551 int res2 = 0 ;
36552 PyObject * obj0 = 0 ;
36553 PyObject * obj1 = 0 ;
36554 char * kwnames[] = {
36555 (char *) "self",(char *) "item", NULL
36556 };
36557
36558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36560 if (!SWIG_IsOK(res1)) {
36561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36562 }
36563 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36564 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36565 if (!SWIG_IsOK(res2)) {
36566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36567 }
36568 if (!argp2) {
36569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36570 }
36571 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36572 {
36573 PyThreadState* __tstate = wxPyBeginAllowThreads();
36574 (arg1)->Delete((wxTreeItemId const &)*arg2);
36575 wxPyEndAllowThreads(__tstate);
36576 if (PyErr_Occurred()) SWIG_fail;
36577 }
36578 resultobj = SWIG_Py_Void();
36579 return resultobj;
36580fail:
36581 return NULL;
36582}
36583
36584
36585SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36586 PyObject *resultobj = 0;
36587 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36588 wxTreeItemId *arg2 = 0 ;
36589 void *argp1 = 0 ;
36590 int res1 = 0 ;
36591 void *argp2 = 0 ;
36592 int res2 = 0 ;
36593 PyObject * obj0 = 0 ;
36594 PyObject * obj1 = 0 ;
36595 char * kwnames[] = {
36596 (char *) "self",(char *) "item", NULL
36597 };
36598
36599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36601 if (!SWIG_IsOK(res1)) {
36602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36603 }
36604 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36606 if (!SWIG_IsOK(res2)) {
36607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36608 }
36609 if (!argp2) {
36610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36611 }
36612 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36613 {
36614 PyThreadState* __tstate = wxPyBeginAllowThreads();
36615 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36616 wxPyEndAllowThreads(__tstate);
36617 if (PyErr_Occurred()) SWIG_fail;
36618 }
36619 resultobj = SWIG_Py_Void();
36620 return resultobj;
36621fail:
36622 return NULL;
d55e5bfc
RD
36623}
36624
36625
554f62e9
RD
36626SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36627 PyObject *resultobj = 0;
36628 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36629 void *argp1 = 0 ;
36630 int res1 = 0 ;
36631 PyObject *swig_obj[1] ;
36632
36633 if (!args) SWIG_fail;
36634 swig_obj[0] = args;
36635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36636 if (!SWIG_IsOK(res1)) {
36637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36638 }
36639 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36640 {
36641 PyThreadState* __tstate = wxPyBeginAllowThreads();
36642 (arg1)->DeleteAllItems();
36643 wxPyEndAllowThreads(__tstate);
36644 if (PyErr_Occurred()) SWIG_fail;
36645 }
36646 resultobj = SWIG_Py_Void();
36647 return resultobj;
36648fail:
36649 return NULL;
36650}
36651
36652
36653SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36654 PyObject *resultobj = 0;
36655 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36656 wxTreeItemId *arg2 = 0 ;
36657 void *argp1 = 0 ;
36658 int res1 = 0 ;
36659 void *argp2 = 0 ;
36660 int res2 = 0 ;
36661 PyObject * obj0 = 0 ;
36662 PyObject * obj1 = 0 ;
36663 char * kwnames[] = {
36664 (char *) "self",(char *) "item", NULL
36665 };
36666
36667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36669 if (!SWIG_IsOK(res1)) {
36670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36671 }
36672 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36673 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36674 if (!SWIG_IsOK(res2)) {
36675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36676 }
36677 if (!argp2) {
36678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36679 }
36680 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36681 {
36682 PyThreadState* __tstate = wxPyBeginAllowThreads();
36683 (arg1)->Expand((wxTreeItemId const &)*arg2);
36684 wxPyEndAllowThreads(__tstate);
36685 if (PyErr_Occurred()) SWIG_fail;
36686 }
36687 resultobj = SWIG_Py_Void();
36688 return resultobj;
36689fail:
36690 return NULL;
36691}
36692
36693
453fb36b
RD
36694SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36695 PyObject *resultobj = 0;
36696 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36697 wxTreeItemId *arg2 = 0 ;
36698 void *argp1 = 0 ;
36699 int res1 = 0 ;
36700 void *argp2 = 0 ;
36701 int res2 = 0 ;
36702 PyObject * obj0 = 0 ;
36703 PyObject * obj1 = 0 ;
36704 char * kwnames[] = {
36705 (char *) "self",(char *) "item", NULL
36706 };
36707
36708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36710 if (!SWIG_IsOK(res1)) {
36711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36712 }
36713 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36715 if (!SWIG_IsOK(res2)) {
36716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36717 }
36718 if (!argp2) {
36719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36720 }
36721 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36722 {
36723 PyThreadState* __tstate = wxPyBeginAllowThreads();
36724 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36725 wxPyEndAllowThreads(__tstate);
36726 if (PyErr_Occurred()) SWIG_fail;
36727 }
36728 resultobj = SWIG_Py_Void();
36729 return resultobj;
36730fail:
36731 return NULL;
36732}
36733
36734
36735SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36736 PyObject *resultobj = 0;
36737 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36738 void *argp1 = 0 ;
36739 int res1 = 0 ;
36740 PyObject *swig_obj[1] ;
36741
36742 if (!args) SWIG_fail;
36743 swig_obj[0] = args;
36744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36745 if (!SWIG_IsOK(res1)) {
36746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36747 }
36748 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36749 {
36750 PyThreadState* __tstate = wxPyBeginAllowThreads();
36751 (arg1)->ExpandAll();
36752 wxPyEndAllowThreads(__tstate);
36753 if (PyErr_Occurred()) SWIG_fail;
36754 }
36755 resultobj = SWIG_Py_Void();
36756 return resultobj;
36757fail:
36758 return NULL;
36759}
36760
36761
554f62e9
RD
36762SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36763 PyObject *resultobj = 0;
36764 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36765 wxTreeItemId *arg2 = 0 ;
36766 void *argp1 = 0 ;
36767 int res1 = 0 ;
36768 void *argp2 = 0 ;
36769 int res2 = 0 ;
36770 PyObject * obj0 = 0 ;
36771 PyObject * obj1 = 0 ;
36772 char * kwnames[] = {
36773 (char *) "self",(char *) "item", NULL
36774 };
36775
36776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36778 if (!SWIG_IsOK(res1)) {
36779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36780 }
36781 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36783 if (!SWIG_IsOK(res2)) {
36784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36785 }
36786 if (!argp2) {
36787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36788 }
36789 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36790 {
36791 PyThreadState* __tstate = wxPyBeginAllowThreads();
36792 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36793 wxPyEndAllowThreads(__tstate);
36794 if (PyErr_Occurred()) SWIG_fail;
36795 }
36796 resultobj = SWIG_Py_Void();
36797 return resultobj;
36798fail:
36799 return NULL;
36800}
36801
36802
36803SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36804 PyObject *resultobj = 0;
36805 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36806 wxTreeItemId *arg2 = 0 ;
36807 void *argp1 = 0 ;
36808 int res1 = 0 ;
36809 void *argp2 = 0 ;
36810 int res2 = 0 ;
36811 PyObject * obj0 = 0 ;
36812 PyObject * obj1 = 0 ;
36813 char * kwnames[] = {
36814 (char *) "self",(char *) "item", NULL
36815 };
36816
36817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36819 if (!SWIG_IsOK(res1)) {
36820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36821 }
36822 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36824 if (!SWIG_IsOK(res2)) {
36825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36826 }
36827 if (!argp2) {
36828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36829 }
36830 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36831 {
36832 PyThreadState* __tstate = wxPyBeginAllowThreads();
36833 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36834 wxPyEndAllowThreads(__tstate);
36835 if (PyErr_Occurred()) SWIG_fail;
36836 }
36837 resultobj = SWIG_Py_Void();
36838 return resultobj;
36839fail:
36840 return NULL;
36841}
36842
36843
36844SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36845 PyObject *resultobj = 0;
36846 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36847 wxTreeItemId *arg2 = 0 ;
36848 void *argp1 = 0 ;
36849 int res1 = 0 ;
36850 void *argp2 = 0 ;
36851 int res2 = 0 ;
36852 PyObject * obj0 = 0 ;
36853 PyObject * obj1 = 0 ;
36854 char * kwnames[] = {
36855 (char *) "self",(char *) "item", NULL
36856 };
36857
36858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36860 if (!SWIG_IsOK(res1)) {
36861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36862 }
36863 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36864 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36865 if (!SWIG_IsOK(res2)) {
36866 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36867 }
36868 if (!argp2) {
36869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36870 }
36871 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36872 {
36873 PyThreadState* __tstate = wxPyBeginAllowThreads();
36874 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36875 wxPyEndAllowThreads(__tstate);
36876 if (PyErr_Occurred()) SWIG_fail;
36877 }
36878 resultobj = SWIG_Py_Void();
36879 return resultobj;
36880fail:
36881 return NULL;
d55e5bfc
RD
36882}
36883
36884
554f62e9
RD
36885SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36886 PyObject *resultobj = 0;
36887 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36888 void *argp1 = 0 ;
36889 int res1 = 0 ;
36890 PyObject *swig_obj[1] ;
36891
36892 if (!args) SWIG_fail;
36893 swig_obj[0] = args;
36894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36895 if (!SWIG_IsOK(res1)) {
36896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36897 }
36898 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36899 {
36900 PyThreadState* __tstate = wxPyBeginAllowThreads();
36901 (arg1)->Unselect();
36902 wxPyEndAllowThreads(__tstate);
36903 if (PyErr_Occurred()) SWIG_fail;
36904 }
36905 resultobj = SWIG_Py_Void();
36906 return resultobj;
36907fail:
36908 return NULL;
36909}
36910
36911
36912SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36913 PyObject *resultobj = 0;
36914 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36915 wxTreeItemId *arg2 = 0 ;
36916 void *argp1 = 0 ;
36917 int res1 = 0 ;
36918 void *argp2 = 0 ;
36919 int res2 = 0 ;
36920 PyObject * obj0 = 0 ;
36921 PyObject * obj1 = 0 ;
36922 char * kwnames[] = {
36923 (char *) "self",(char *) "item", NULL
36924 };
36925
36926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36928 if (!SWIG_IsOK(res1)) {
36929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36930 }
36931 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36932 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36933 if (!SWIG_IsOK(res2)) {
36934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36935 }
36936 if (!argp2) {
36937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36938 }
36939 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36940 {
36941 PyThreadState* __tstate = wxPyBeginAllowThreads();
36942 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36943 wxPyEndAllowThreads(__tstate);
36944 if (PyErr_Occurred()) SWIG_fail;
36945 }
36946 resultobj = SWIG_Py_Void();
36947 return resultobj;
36948fail:
36949 return NULL;
d55e5bfc
RD
36950}
36951
36952
554f62e9
RD
36953SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36954 PyObject *resultobj = 0;
36955 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36956 void *argp1 = 0 ;
36957 int res1 = 0 ;
36958 PyObject *swig_obj[1] ;
36959
36960 if (!args) SWIG_fail;
36961 swig_obj[0] = args;
36962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36963 if (!SWIG_IsOK(res1)) {
36964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36965 }
36966 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36967 {
36968 PyThreadState* __tstate = wxPyBeginAllowThreads();
36969 (arg1)->UnselectAll();
36970 wxPyEndAllowThreads(__tstate);
36971 if (PyErr_Occurred()) SWIG_fail;
36972 }
36973 resultobj = SWIG_Py_Void();
36974 return resultobj;
36975fail:
36976 return NULL;
36977}
36978
36979
36980SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36981 PyObject *resultobj = 0;
36982 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36983 wxTreeItemId *arg2 = 0 ;
36984 bool arg3 = (bool) true ;
36985 void *argp1 = 0 ;
36986 int res1 = 0 ;
36987 void *argp2 = 0 ;
36988 int res2 = 0 ;
36989 bool val3 ;
36990 int ecode3 = 0 ;
36991 PyObject * obj0 = 0 ;
36992 PyObject * obj1 = 0 ;
36993 PyObject * obj2 = 0 ;
36994 char * kwnames[] = {
36995 (char *) "self",(char *) "item",(char *) "select", NULL
36996 };
36997
36998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37000 if (!SWIG_IsOK(res1)) {
37001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37002 }
37003 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37005 if (!SWIG_IsOK(res2)) {
37006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37007 }
37008 if (!argp2) {
37009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37010 }
37011 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37012 if (obj2) {
37013 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37014 if (!SWIG_IsOK(ecode3)) {
37015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
37016 }
37017 arg3 = static_cast< bool >(val3);
37018 }
37019 {
37020 PyThreadState* __tstate = wxPyBeginAllowThreads();
37021 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
37022 wxPyEndAllowThreads(__tstate);
37023 if (PyErr_Occurred()) SWIG_fail;
37024 }
37025 resultobj = SWIG_Py_Void();
37026 return resultobj;
37027fail:
37028 return NULL;
37029}
37030
37031
37032SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37033 PyObject *resultobj = 0;
37034 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37035 wxTreeItemId *arg2 = 0 ;
37036 void *argp1 = 0 ;
37037 int res1 = 0 ;
37038 void *argp2 = 0 ;
37039 int res2 = 0 ;
37040 PyObject * obj0 = 0 ;
37041 PyObject * obj1 = 0 ;
37042 char * kwnames[] = {
37043 (char *) "self",(char *) "item", NULL
37044 };
37045
37046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
37047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37048 if (!SWIG_IsOK(res1)) {
37049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37050 }
37051 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37052 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37053 if (!SWIG_IsOK(res2)) {
37054 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37055 }
37056 if (!argp2) {
37057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37058 }
37059 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37060 {
37061 PyThreadState* __tstate = wxPyBeginAllowThreads();
37062 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
37063 wxPyEndAllowThreads(__tstate);
37064 if (PyErr_Occurred()) SWIG_fail;
37065 }
37066 resultobj = SWIG_Py_Void();
37067 return resultobj;
37068fail:
37069 return NULL;
37070}
37071
37072
37073SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37074 PyObject *resultobj = 0;
37075 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37076 wxTreeItemId *arg2 = 0 ;
37077 void *argp1 = 0 ;
37078 int res1 = 0 ;
37079 void *argp2 = 0 ;
37080 int res2 = 0 ;
37081 PyObject * obj0 = 0 ;
37082 PyObject * obj1 = 0 ;
37083 char * kwnames[] = {
37084 (char *) "self",(char *) "item", NULL
37085 };
37086
37087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37089 if (!SWIG_IsOK(res1)) {
37090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37091 }
37092 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37093 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37094 if (!SWIG_IsOK(res2)) {
37095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37096 }
37097 if (!argp2) {
37098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37099 }
37100 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37101 {
37102 PyThreadState* __tstate = wxPyBeginAllowThreads();
37103 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37104 wxPyEndAllowThreads(__tstate);
37105 if (PyErr_Occurred()) SWIG_fail;
37106 }
37107 resultobj = SWIG_Py_Void();
37108 return resultobj;
37109fail:
37110 return NULL;
37111}
37112
37113
37114SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37115 PyObject *resultobj = 0;
37116 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37117 wxTreeItemId *arg2 = 0 ;
37118 void *argp1 = 0 ;
37119 int res1 = 0 ;
37120 void *argp2 = 0 ;
37121 int res2 = 0 ;
37122 PyObject * obj0 = 0 ;
37123 PyObject * obj1 = 0 ;
37124 char * kwnames[] = {
37125 (char *) "self",(char *) "item", NULL
37126 };
37127
37128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37130 if (!SWIG_IsOK(res1)) {
37131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37132 }
37133 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37134 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37135 if (!SWIG_IsOK(res2)) {
37136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37137 }
37138 if (!argp2) {
37139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37140 }
37141 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37142 {
37143 PyThreadState* __tstate = wxPyBeginAllowThreads();
37144 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37145 wxPyEndAllowThreads(__tstate);
37146 if (PyErr_Occurred()) SWIG_fail;
37147 }
37148 resultobj = SWIG_Py_Void();
37149 return resultobj;
37150fail:
37151 return NULL;
37152}
37153
37154
37155SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37156 PyObject *resultobj = 0;
37157 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37158 wxTreeItemId *arg2 = 0 ;
37159 void *argp1 = 0 ;
37160 int res1 = 0 ;
37161 void *argp2 = 0 ;
37162 int res2 = 0 ;
37163 PyObject * obj0 = 0 ;
37164 PyObject * obj1 = 0 ;
37165 char * kwnames[] = {
37166 (char *) "self",(char *) "item", NULL
37167 };
37168
37169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37171 if (!SWIG_IsOK(res1)) {
37172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37173 }
37174 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37176 if (!SWIG_IsOK(res2)) {
37177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37178 }
37179 if (!argp2) {
37180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37181 }
37182 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37183 {
37184 PyThreadState* __tstate = wxPyBeginAllowThreads();
37185 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37186 wxPyEndAllowThreads(__tstate);
37187 if (PyErr_Occurred()) SWIG_fail;
37188 }
37189 resultobj = SWIG_Py_Void();
37190 return resultobj;
37191fail:
37192 return NULL;
d55e5bfc
RD
37193}
37194
37195
554f62e9
RD
37196SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37197 PyObject *resultobj = 0;
37198 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37199 wxTextCtrl *result = 0 ;
37200 void *argp1 = 0 ;
37201 int res1 = 0 ;
37202 PyObject *swig_obj[1] ;
37203
37204 if (!args) SWIG_fail;
37205 swig_obj[0] = args;
37206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37207 if (!SWIG_IsOK(res1)) {
37208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37209 }
37210 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37211 {
37212 PyThreadState* __tstate = wxPyBeginAllowThreads();
37213 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37214 wxPyEndAllowThreads(__tstate);
37215 if (PyErr_Occurred()) SWIG_fail;
37216 }
37217 {
37218 resultobj = wxPyMake_wxObject(result, 0);
37219 }
37220 return resultobj;
37221fail:
37222 return NULL;
37223}
37224
37225
37226SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37227 PyObject *resultobj = 0;
37228 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37229 wxTreeItemId *arg2 = 0 ;
37230 bool arg3 = (bool) false ;
37231 void *argp1 = 0 ;
37232 int res1 = 0 ;
37233 void *argp2 = 0 ;
37234 int res2 = 0 ;
37235 bool val3 ;
37236 int ecode3 = 0 ;
37237 PyObject * obj0 = 0 ;
37238 PyObject * obj1 = 0 ;
37239 PyObject * obj2 = 0 ;
37240 char * kwnames[] = {
37241 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
37242 };
37243
37244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37246 if (!SWIG_IsOK(res1)) {
37247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37248 }
37249 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37250 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37251 if (!SWIG_IsOK(res2)) {
37252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37253 }
37254 if (!argp2) {
37255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37256 }
37257 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37258 if (obj2) {
37259 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37260 if (!SWIG_IsOK(ecode3)) {
37261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
37262 }
37263 arg3 = static_cast< bool >(val3);
37264 }
37265 {
37266 PyThreadState* __tstate = wxPyBeginAllowThreads();
37267 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
37268 wxPyEndAllowThreads(__tstate);
37269 if (PyErr_Occurred()) SWIG_fail;
37270 }
37271 resultobj = SWIG_Py_Void();
37272 return resultobj;
37273fail:
37274 return NULL;
37275}
37276
37277
37278SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37279 PyObject *resultobj = 0;
37280 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37281 wxTreeItemId *arg2 = 0 ;
37282 void *argp1 = 0 ;
37283 int res1 = 0 ;
37284 void *argp2 = 0 ;
37285 int res2 = 0 ;
37286 PyObject * obj0 = 0 ;
37287 PyObject * obj1 = 0 ;
37288 char * kwnames[] = {
37289 (char *) "self",(char *) "item", NULL
37290 };
37291
37292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37294 if (!SWIG_IsOK(res1)) {
37295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37296 }
37297 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37299 if (!SWIG_IsOK(res2)) {
37300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37301 }
37302 if (!argp2) {
37303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37304 }
37305 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37306 {
37307 PyThreadState* __tstate = wxPyBeginAllowThreads();
37308 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37309 wxPyEndAllowThreads(__tstate);
37310 if (PyErr_Occurred()) SWIG_fail;
37311 }
37312 resultobj = SWIG_Py_Void();
37313 return resultobj;
37314fail:
37315 return NULL;
37316}
37317
37318
37319SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37320 PyObject *resultobj = 0;
37321 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37322 wxPoint *arg2 = 0 ;
37323 int *arg3 = 0 ;
37324 wxTreeItemId result;
37325 void *argp1 = 0 ;
37326 int res1 = 0 ;
37327 wxPoint temp2 ;
37328 int temp3 ;
37329 int res3 = SWIG_TMPOBJ ;
37330 PyObject * obj0 = 0 ;
37331 PyObject * obj1 = 0 ;
37332 char * kwnames[] = {
37333 (char *) "self",(char *) "point", NULL
37334 };
37335
37336 arg3 = &temp3;
37337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37339 if (!SWIG_IsOK(res1)) {
37340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37341 }
37342 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37343 {
37344 arg2 = &temp2;
37345 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37346 }
37347 {
37348 PyThreadState* __tstate = wxPyBeginAllowThreads();
37349 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37350 wxPyEndAllowThreads(__tstate);
37351 if (PyErr_Occurred()) SWIG_fail;
37352 }
37353 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37354 if (SWIG_IsTmpObj(res3)) {
37355 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37356 } else {
37357 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37358 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37359 }
37360 return resultobj;
37361fail:
37362 return NULL;
37363}
37364
37365
37366SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37367 PyObject *resultobj = 0;
37368 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37369 wxTreeItemId *arg2 = 0 ;
37370 bool arg3 = (bool) false ;
37371 PyObject *result = 0 ;
37372 void *argp1 = 0 ;
37373 int res1 = 0 ;
37374 void *argp2 = 0 ;
37375 int res2 = 0 ;
37376 bool val3 ;
37377 int ecode3 = 0 ;
37378 PyObject * obj0 = 0 ;
37379 PyObject * obj1 = 0 ;
37380 PyObject * obj2 = 0 ;
37381 char * kwnames[] = {
37382 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37383 };
37384
37385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37387 if (!SWIG_IsOK(res1)) {
37388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37389 }
37390 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37391 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37392 if (!SWIG_IsOK(res2)) {
37393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37394 }
37395 if (!argp2) {
37396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37397 }
37398 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37399 if (obj2) {
37400 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37401 if (!SWIG_IsOK(ecode3)) {
37402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37403 }
37404 arg3 = static_cast< bool >(val3);
37405 }
37406 {
37407 PyThreadState* __tstate = wxPyBeginAllowThreads();
37408 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37409 wxPyEndAllowThreads(__tstate);
37410 if (PyErr_Occurred()) SWIG_fail;
37411 }
37412 resultobj = result;
37413 return resultobj;
37414fail:
37415 return NULL;
37416}
37417
37418
37419SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37420 PyObject *resultobj = 0;
37421 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37422 wxTreeItemId *arg2 = 0 ;
37423 int arg3 ;
37424 void *argp1 = 0 ;
37425 int res1 = 0 ;
37426 void *argp2 = 0 ;
37427 int res2 = 0 ;
37428 int val3 ;
37429 int ecode3 = 0 ;
37430 PyObject * obj0 = 0 ;
37431 PyObject * obj1 = 0 ;
37432 PyObject * obj2 = 0 ;
37433 char * kwnames[] = {
37434 (char *) "self",(char *) "node",(char *) "state", NULL
37435 };
37436
37437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37439 if (!SWIG_IsOK(res1)) {
37440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37441 }
37442 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37443 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37444 if (!SWIG_IsOK(res2)) {
37445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37446 }
37447 if (!argp2) {
37448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37449 }
37450 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37451 ecode3 = SWIG_AsVal_int(obj2, &val3);
37452 if (!SWIG_IsOK(ecode3)) {
37453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
37454 }
37455 arg3 = static_cast< int >(val3);
37456 {
37457 PyThreadState* __tstate = wxPyBeginAllowThreads();
37458 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
37459 wxPyEndAllowThreads(__tstate);
37460 if (PyErr_Occurred()) SWIG_fail;
37461 }
37462 resultobj = SWIG_Py_Void();
37463 return resultobj;
37464fail:
37465 return NULL;
37466}
37467
37468
37469SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37470 PyObject *resultobj = 0;
37471 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37472 wxTreeItemId *arg2 = 0 ;
37473 int result;
37474 void *argp1 = 0 ;
37475 int res1 = 0 ;
37476 void *argp2 = 0 ;
37477 int res2 = 0 ;
37478 PyObject * obj0 = 0 ;
37479 PyObject * obj1 = 0 ;
37480 char * kwnames[] = {
37481 (char *) "self",(char *) "node", NULL
37482 };
37483
37484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
37485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37486 if (!SWIG_IsOK(res1)) {
37487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37488 }
37489 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37490 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37491 if (!SWIG_IsOK(res2)) {
37492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37493 }
37494 if (!argp2) {
37495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37496 }
37497 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37498 {
37499 PyThreadState* __tstate = wxPyBeginAllowThreads();
37500 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
37501 wxPyEndAllowThreads(__tstate);
37502 if (PyErr_Occurred()) SWIG_fail;
37503 }
37504 resultobj = SWIG_From_int(static_cast< int >(result));
37505 return resultobj;
37506fail:
37507 return NULL;
37508}
37509
37510
37511SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37512 PyObject *resultobj = 0;
37513 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37514 SwigValueWrapper<wxVisualAttributes > result;
37515 int val1 ;
37516 int ecode1 = 0 ;
37517 PyObject * obj0 = 0 ;
37518 char * kwnames[] = {
37519 (char *) "variant", NULL
37520 };
37521
37522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37523 if (obj0) {
37524 ecode1 = SWIG_AsVal_int(obj0, &val1);
37525 if (!SWIG_IsOK(ecode1)) {
37526 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37527 }
37528 arg1 = static_cast< wxWindowVariant >(val1);
37529 }
37530 {
37531 if (!wxPyCheckForApp()) SWIG_fail;
37532 PyThreadState* __tstate = wxPyBeginAllowThreads();
37533 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37534 wxPyEndAllowThreads(__tstate);
37535 if (PyErr_Occurred()) SWIG_fail;
37536 }
37537 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37538 return resultobj;
37539fail:
37540 return NULL;
d55e5bfc
RD
37541}
37542
37543
2131d850
RD
37544SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37545 PyObject *resultobj = 0;
37546 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37547 bool arg2 ;
37548 void *argp1 = 0 ;
37549 int res1 = 0 ;
37550 bool val2 ;
37551 int ecode2 = 0 ;
37552 PyObject * obj0 = 0 ;
37553 PyObject * obj1 = 0 ;
37554 char * kwnames[] = {
37555 (char *) "self",(char *) "q", NULL
37556 };
37557
37558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37560 if (!SWIG_IsOK(res1)) {
37561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37562 }
37563 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37564 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37565 if (!SWIG_IsOK(ecode2)) {
37566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37567 }
37568 arg2 = static_cast< bool >(val2);
37569 {
37570 PyThreadState* __tstate = wxPyBeginAllowThreads();
37571 (arg1)->SetQuickBestSize(arg2);
37572 wxPyEndAllowThreads(__tstate);
37573 if (PyErr_Occurred()) SWIG_fail;
37574 }
37575 resultobj = SWIG_Py_Void();
37576 return resultobj;
37577fail:
37578 return NULL;
37579}
37580
37581
37582SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37583 PyObject *resultobj = 0;
37584 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37585 bool result;
37586 void *argp1 = 0 ;
37587 int res1 = 0 ;
37588 PyObject *swig_obj[1] ;
37589
37590 if (!args) SWIG_fail;
37591 swig_obj[0] = args;
37592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37593 if (!SWIG_IsOK(res1)) {
37594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37595 }
37596 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37597 {
37598 PyThreadState* __tstate = wxPyBeginAllowThreads();
37599 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37600 wxPyEndAllowThreads(__tstate);
37601 if (PyErr_Occurred()) SWIG_fail;
37602 }
37603 {
37604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37605 }
37606 return resultobj;
37607fail:
37608 return NULL;
37609}
37610
37611
554f62e9
RD
37612SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37613 PyObject *obj;
37614 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37615 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37616 return SWIG_Py_Void();
d55e5bfc
RD
37617}
37618
554f62e9
RD
37619SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37620 return SWIG_Python_InitShadowInstance(args);
37621}
d55e5bfc 37622
554f62e9
RD
37623SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37624 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37625 return 1;
d55e5bfc
RD
37626}
37627
37628
554f62e9
RD
37629SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37630 PyObject *pyobj = 0;
37631
37632 {
d55e5bfc 37633#if wxUSE_UNICODE
554f62e9 37634 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
d55e5bfc 37635#else
554f62e9 37636 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
d55e5bfc 37637#endif
554f62e9
RD
37638 }
37639 return pyobj;
37640}
37641
37642
37643SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37644 PyObject *resultobj = 0;
37645 wxWindow *arg1 = (wxWindow *) 0 ;
37646 int arg2 = (int) (int)-1 ;
37647 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37648 wxString *arg3 = (wxString *) &arg3_defvalue ;
37649 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37650 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37651 wxSize const &arg5_defvalue = wxDefaultSize ;
37652 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37653 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37654 wxString const &arg7_defvalue = wxPyEmptyString ;
37655 wxString *arg7 = (wxString *) &arg7_defvalue ;
37656 int arg8 = (int) 0 ;
37657 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37658 wxString *arg9 = (wxString *) &arg9_defvalue ;
37659 wxGenericDirCtrl *result = 0 ;
37660 void *argp1 = 0 ;
37661 int res1 = 0 ;
37662 int val2 ;
37663 int ecode2 = 0 ;
37664 bool temp3 = false ;
37665 wxPoint temp4 ;
37666 wxSize temp5 ;
37667 long val6 ;
37668 int ecode6 = 0 ;
37669 bool temp7 = false ;
37670 int val8 ;
37671 int ecode8 = 0 ;
37672 bool temp9 = false ;
37673 PyObject * obj0 = 0 ;
37674 PyObject * obj1 = 0 ;
37675 PyObject * obj2 = 0 ;
37676 PyObject * obj3 = 0 ;
37677 PyObject * obj4 = 0 ;
37678 PyObject * obj5 = 0 ;
37679 PyObject * obj6 = 0 ;
37680 PyObject * obj7 = 0 ;
37681 PyObject * obj8 = 0 ;
37682 char * kwnames[] = {
37683 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37684 };
37685
37686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37688 if (!SWIG_IsOK(res1)) {
37689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37690 }
37691 arg1 = reinterpret_cast< wxWindow * >(argp1);
37692 if (obj1) {
37693 ecode2 = SWIG_AsVal_int(obj1, &val2);
37694 if (!SWIG_IsOK(ecode2)) {
37695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37696 }
37697 arg2 = static_cast< int >(val2);
37698 }
37699 if (obj2) {
093d3ff1 37700 {
554f62e9
RD
37701 arg3 = wxString_in_helper(obj2);
37702 if (arg3 == NULL) SWIG_fail;
37703 temp3 = true;
093d3ff1 37704 }
554f62e9
RD
37705 }
37706 if (obj3) {
093d3ff1 37707 {
554f62e9
RD
37708 arg4 = &temp4;
37709 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 37710 }
554f62e9
RD
37711 }
37712 if (obj4) {
d55e5bfc 37713 {
554f62e9
RD
37714 arg5 = &temp5;
37715 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 37716 }
554f62e9
RD
37717 }
37718 if (obj5) {
37719 ecode6 = SWIG_AsVal_long(obj5, &val6);
37720 if (!SWIG_IsOK(ecode6)) {
37721 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37722 }
37723 arg6 = static_cast< long >(val6);
37724 }
37725 if (obj6) {
d55e5bfc 37726 {
554f62e9
RD
37727 arg7 = wxString_in_helper(obj6);
37728 if (arg7 == NULL) SWIG_fail;
37729 temp7 = true;
d55e5bfc 37730 }
554f62e9
RD
37731 }
37732 if (obj7) {
37733 ecode8 = SWIG_AsVal_int(obj7, &val8);
37734 if (!SWIG_IsOK(ecode8)) {
37735 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37736 }
37737 arg8 = static_cast< int >(val8);
37738 }
37739 if (obj8) {
d55e5bfc 37740 {
554f62e9
RD
37741 arg9 = wxString_in_helper(obj8);
37742 if (arg9 == NULL) SWIG_fail;
37743 temp9 = true;
d55e5bfc 37744 }
554f62e9
RD
37745 }
37746 {
37747 if (!wxPyCheckForApp()) SWIG_fail;
37748 PyThreadState* __tstate = wxPyBeginAllowThreads();
37749 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37750 wxPyEndAllowThreads(__tstate);
37751 if (PyErr_Occurred()) SWIG_fail;
37752 }
37753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37754 {
37755 if (temp3)
37756 delete arg3;
37757 }
37758 {
37759 if (temp7)
37760 delete arg7;
37761 }
37762 {
37763 if (temp9)
37764 delete arg9;
37765 }
37766 return resultobj;
37767fail:
37768 {
37769 if (temp3)
37770 delete arg3;
37771 }
37772 {
37773 if (temp7)
37774 delete arg7;
37775 }
37776 {
37777 if (temp9)
37778 delete arg9;
37779 }
37780 return NULL;
d55e5bfc
RD
37781}
37782
37783
554f62e9
RD
37784SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37785 PyObject *resultobj = 0;
37786 wxGenericDirCtrl *result = 0 ;
37787
37788 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37789 {
37790 if (!wxPyCheckForApp()) SWIG_fail;
37791 PyThreadState* __tstate = wxPyBeginAllowThreads();
37792 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37793 wxPyEndAllowThreads(__tstate);
37794 if (PyErr_Occurred()) SWIG_fail;
37795 }
37796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37797 return resultobj;
37798fail:
37799 return NULL;
37800}
37801
37802
37803SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37804 PyObject *resultobj = 0;
37805 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37806 wxWindow *arg2 = (wxWindow *) 0 ;
37807 int arg3 = (int) (int)-1 ;
37808 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37809 wxString *arg4 = (wxString *) &arg4_defvalue ;
37810 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37811 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37812 wxSize const &arg6_defvalue = wxDefaultSize ;
37813 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37814 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37815 wxString const &arg8_defvalue = wxPyEmptyString ;
37816 wxString *arg8 = (wxString *) &arg8_defvalue ;
37817 int arg9 = (int) 0 ;
37818 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37819 wxString *arg10 = (wxString *) &arg10_defvalue ;
37820 bool result;
37821 void *argp1 = 0 ;
37822 int res1 = 0 ;
37823 void *argp2 = 0 ;
37824 int res2 = 0 ;
37825 int val3 ;
37826 int ecode3 = 0 ;
37827 bool temp4 = false ;
37828 wxPoint temp5 ;
37829 wxSize temp6 ;
37830 long val7 ;
37831 int ecode7 = 0 ;
37832 bool temp8 = false ;
37833 int val9 ;
37834 int ecode9 = 0 ;
37835 bool temp10 = false ;
37836 PyObject * obj0 = 0 ;
37837 PyObject * obj1 = 0 ;
37838 PyObject * obj2 = 0 ;
37839 PyObject * obj3 = 0 ;
37840 PyObject * obj4 = 0 ;
37841 PyObject * obj5 = 0 ;
37842 PyObject * obj6 = 0 ;
37843 PyObject * obj7 = 0 ;
37844 PyObject * obj8 = 0 ;
37845 PyObject * obj9 = 0 ;
37846 char * kwnames[] = {
37847 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37848 };
37849
37850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37852 if (!SWIG_IsOK(res1)) {
37853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37854 }
37855 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37856 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37857 if (!SWIG_IsOK(res2)) {
37858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37859 }
37860 arg2 = reinterpret_cast< wxWindow * >(argp2);
37861 if (obj2) {
37862 ecode3 = SWIG_AsVal_int(obj2, &val3);
37863 if (!SWIG_IsOK(ecode3)) {
37864 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37865 }
37866 arg3 = static_cast< int >(val3);
37867 }
37868 if (obj3) {
d55e5bfc 37869 {
554f62e9
RD
37870 arg4 = wxString_in_helper(obj3);
37871 if (arg4 == NULL) SWIG_fail;
37872 temp4 = true;
d55e5bfc 37873 }
554f62e9
RD
37874 }
37875 if (obj4) {
093d3ff1 37876 {
554f62e9
RD
37877 arg5 = &temp5;
37878 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37879 }
554f62e9
RD
37880 }
37881 if (obj5) {
d55e5bfc 37882 {
554f62e9
RD
37883 arg6 = &temp6;
37884 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 37885 }
554f62e9
RD
37886 }
37887 if (obj6) {
37888 ecode7 = SWIG_AsVal_long(obj6, &val7);
37889 if (!SWIG_IsOK(ecode7)) {
37890 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37891 }
37892 arg7 = static_cast< long >(val7);
37893 }
37894 if (obj7) {
d55e5bfc 37895 {
554f62e9
RD
37896 arg8 = wxString_in_helper(obj7);
37897 if (arg8 == NULL) SWIG_fail;
37898 temp8 = true;
d55e5bfc 37899 }
554f62e9
RD
37900 }
37901 if (obj8) {
37902 ecode9 = SWIG_AsVal_int(obj8, &val9);
37903 if (!SWIG_IsOK(ecode9)) {
37904 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37905 }
37906 arg9 = static_cast< int >(val9);
37907 }
37908 if (obj9) {
d55e5bfc 37909 {
554f62e9
RD
37910 arg10 = wxString_in_helper(obj9);
37911 if (arg10 == NULL) SWIG_fail;
37912 temp10 = true;
d55e5bfc 37913 }
554f62e9
RD
37914 }
37915 {
37916 PyThreadState* __tstate = wxPyBeginAllowThreads();
37917 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37918 wxPyEndAllowThreads(__tstate);
37919 if (PyErr_Occurred()) SWIG_fail;
37920 }
37921 {
37922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37923 }
37924 {
37925 if (temp4)
37926 delete arg4;
37927 }
37928 {
37929 if (temp8)
37930 delete arg8;
37931 }
37932 {
37933 if (temp10)
37934 delete arg10;
37935 }
37936 return resultobj;
37937fail:
37938 {
37939 if (temp4)
37940 delete arg4;
37941 }
37942 {
37943 if (temp8)
37944 delete arg8;
37945 }
37946 {
37947 if (temp10)
37948 delete arg10;
37949 }
37950 return NULL;
37951}
37952
37953
37954SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37955 PyObject *resultobj = 0;
37956 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37957 wxString *arg2 = 0 ;
37958 bool result;
37959 void *argp1 = 0 ;
37960 int res1 = 0 ;
37961 bool temp2 = false ;
37962 PyObject * obj0 = 0 ;
37963 PyObject * obj1 = 0 ;
37964 char * kwnames[] = {
37965 (char *) "self",(char *) "path", NULL
37966 };
37967
37968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37970 if (!SWIG_IsOK(res1)) {
37971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37972 }
37973 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37974 {
37975 arg2 = wxString_in_helper(obj1);
37976 if (arg2 == NULL) SWIG_fail;
37977 temp2 = true;
37978 }
37979 {
37980 PyThreadState* __tstate = wxPyBeginAllowThreads();
37981 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37982 wxPyEndAllowThreads(__tstate);
37983 if (PyErr_Occurred()) SWIG_fail;
37984 }
37985 {
37986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37987 }
37988 {
37989 if (temp2)
37990 delete arg2;
37991 }
37992 return resultobj;
37993fail:
37994 {
37995 if (temp2)
37996 delete arg2;
37997 }
37998 return NULL;
d55e5bfc
RD
37999}
38000
38001
704eda0c
RD
38002SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38003 PyObject *resultobj = 0;
38004 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38005 wxString *arg2 = 0 ;
38006 bool result;
38007 void *argp1 = 0 ;
38008 int res1 = 0 ;
38009 bool temp2 = false ;
38010 PyObject * obj0 = 0 ;
38011 PyObject * obj1 = 0 ;
38012 char * kwnames[] = {
38013 (char *) "self",(char *) "path", NULL
38014 };
38015
38016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
38017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38018 if (!SWIG_IsOK(res1)) {
38019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38020 }
38021 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38022 {
38023 arg2 = wxString_in_helper(obj1);
38024 if (arg2 == NULL) SWIG_fail;
38025 temp2 = true;
38026 }
38027 {
38028 PyThreadState* __tstate = wxPyBeginAllowThreads();
38029 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
38030 wxPyEndAllowThreads(__tstate);
38031 if (PyErr_Occurred()) SWIG_fail;
38032 }
38033 {
38034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38035 }
38036 {
38037 if (temp2)
38038 delete arg2;
38039 }
38040 return resultobj;
38041fail:
38042 {
38043 if (temp2)
38044 delete arg2;
38045 }
38046 return NULL;
38047}
38048
38049
554f62e9
RD
38050SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38051 PyObject *resultobj = 0;
38052 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38053 wxString result;
38054 void *argp1 = 0 ;
38055 int res1 = 0 ;
38056 PyObject *swig_obj[1] ;
38057
38058 if (!args) SWIG_fail;
38059 swig_obj[0] = args;
38060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38061 if (!SWIG_IsOK(res1)) {
38062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38063 }
38064 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38065 {
38066 PyThreadState* __tstate = wxPyBeginAllowThreads();
38067 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
38068 wxPyEndAllowThreads(__tstate);
38069 if (PyErr_Occurred()) SWIG_fail;
38070 }
38071 {
38072#if wxUSE_UNICODE
38073 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38074#else
38075 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38076#endif
38077 }
38078 return resultobj;
38079fail:
38080 return NULL;
38081}
38082
38083
38084SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38085 PyObject *resultobj = 0;
38086 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38087 wxString *arg2 = 0 ;
38088 void *argp1 = 0 ;
38089 int res1 = 0 ;
38090 bool temp2 = false ;
38091 PyObject * obj0 = 0 ;
38092 PyObject * obj1 = 0 ;
38093 char * kwnames[] = {
38094 (char *) "self",(char *) "path", NULL
38095 };
38096
38097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
38098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38099 if (!SWIG_IsOK(res1)) {
38100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38101 }
38102 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38103 {
38104 arg2 = wxString_in_helper(obj1);
38105 if (arg2 == NULL) SWIG_fail;
38106 temp2 = true;
38107 }
38108 {
38109 PyThreadState* __tstate = wxPyBeginAllowThreads();
38110 (arg1)->SetDefaultPath((wxString const &)*arg2);
38111 wxPyEndAllowThreads(__tstate);
38112 if (PyErr_Occurred()) SWIG_fail;
38113 }
38114 resultobj = SWIG_Py_Void();
38115 {
38116 if (temp2)
38117 delete arg2;
38118 }
38119 return resultobj;
38120fail:
38121 {
38122 if (temp2)
38123 delete arg2;
38124 }
38125 return NULL;
d55e5bfc
RD
38126}
38127
38128
554f62e9
RD
38129SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38130 PyObject *resultobj = 0;
38131 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38132 wxString result;
38133 void *argp1 = 0 ;
38134 int res1 = 0 ;
38135 PyObject *swig_obj[1] ;
38136
38137 if (!args) SWIG_fail;
38138 swig_obj[0] = args;
38139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38140 if (!SWIG_IsOK(res1)) {
38141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38142 }
38143 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38144 {
38145 PyThreadState* __tstate = wxPyBeginAllowThreads();
38146 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
38147 wxPyEndAllowThreads(__tstate);
38148 if (PyErr_Occurred()) SWIG_fail;
38149 }
38150 {
38151#if wxUSE_UNICODE
38152 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38153#else
38154 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38155#endif
38156 }
38157 return resultobj;
38158fail:
38159 return NULL;
d55e5bfc
RD
38160}
38161
38162
554f62e9
RD
38163SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38164 PyObject *resultobj = 0;
38165 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38166 wxString result;
38167 void *argp1 = 0 ;
38168 int res1 = 0 ;
38169 PyObject *swig_obj[1] ;
38170
38171 if (!args) SWIG_fail;
38172 swig_obj[0] = args;
38173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38174 if (!SWIG_IsOK(res1)) {
38175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38176 }
38177 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38178 {
38179 PyThreadState* __tstate = wxPyBeginAllowThreads();
38180 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
38181 wxPyEndAllowThreads(__tstate);
38182 if (PyErr_Occurred()) SWIG_fail;
38183 }
38184 {
38185#if wxUSE_UNICODE
38186 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38187#else
38188 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38189#endif
38190 }
38191 return resultobj;
38192fail:
38193 return NULL;
38194}
38195
38196
38197SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38198 PyObject *resultobj = 0;
38199 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38200 wxString *arg2 = 0 ;
38201 void *argp1 = 0 ;
38202 int res1 = 0 ;
38203 bool temp2 = false ;
38204 PyObject * obj0 = 0 ;
38205 PyObject * obj1 = 0 ;
38206 char * kwnames[] = {
38207 (char *) "self",(char *) "path", NULL
38208 };
38209
38210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
38211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38212 if (!SWIG_IsOK(res1)) {
38213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38214 }
38215 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38216 {
38217 arg2 = wxString_in_helper(obj1);
38218 if (arg2 == NULL) SWIG_fail;
38219 temp2 = true;
38220 }
38221 {
38222 PyThreadState* __tstate = wxPyBeginAllowThreads();
38223 (arg1)->SetPath((wxString const &)*arg2);
38224 wxPyEndAllowThreads(__tstate);
38225 if (PyErr_Occurred()) SWIG_fail;
38226 }
38227 resultobj = SWIG_Py_Void();
38228 {
38229 if (temp2)
38230 delete arg2;
38231 }
38232 return resultobj;
38233fail:
38234 {
38235 if (temp2)
38236 delete arg2;
38237 }
38238 return NULL;
38239}
38240
38241
38242SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38243 PyObject *resultobj = 0;
38244 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38245 bool arg2 ;
38246 void *argp1 = 0 ;
38247 int res1 = 0 ;
38248 bool val2 ;
38249 int ecode2 = 0 ;
38250 PyObject * obj0 = 0 ;
38251 PyObject * obj1 = 0 ;
38252 char * kwnames[] = {
38253 (char *) "self",(char *) "show", NULL
38254 };
38255
38256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38258 if (!SWIG_IsOK(res1)) {
38259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38260 }
38261 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38262 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38263 if (!SWIG_IsOK(ecode2)) {
38264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38265 }
38266 arg2 = static_cast< bool >(val2);
38267 {
38268 PyThreadState* __tstate = wxPyBeginAllowThreads();
38269 (arg1)->ShowHidden(arg2);
38270 wxPyEndAllowThreads(__tstate);
38271 if (PyErr_Occurred()) SWIG_fail;
38272 }
38273 resultobj = SWIG_Py_Void();
38274 return resultobj;
38275fail:
38276 return NULL;
d55e5bfc
RD
38277}
38278
38279
554f62e9
RD
38280SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38281 PyObject *resultobj = 0;
38282 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38283 bool result;
38284 void *argp1 = 0 ;
38285 int res1 = 0 ;
38286 PyObject *swig_obj[1] ;
38287
38288 if (!args) SWIG_fail;
38289 swig_obj[0] = args;
38290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38291 if (!SWIG_IsOK(res1)) {
38292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38293 }
38294 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38295 {
38296 PyThreadState* __tstate = wxPyBeginAllowThreads();
38297 result = (bool)(arg1)->GetShowHidden();
38298 wxPyEndAllowThreads(__tstate);
38299 if (PyErr_Occurred()) SWIG_fail;
38300 }
38301 {
38302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38303 }
38304 return resultobj;
38305fail:
38306 return NULL;
d55e5bfc
RD
38307}
38308
38309
554f62e9
RD
38310SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38311 PyObject *resultobj = 0;
38312 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38313 wxString result;
38314 void *argp1 = 0 ;
38315 int res1 = 0 ;
38316 PyObject *swig_obj[1] ;
38317
38318 if (!args) SWIG_fail;
38319 swig_obj[0] = args;
38320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38321 if (!SWIG_IsOK(res1)) {
38322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38323 }
38324 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38325 {
38326 PyThreadState* __tstate = wxPyBeginAllowThreads();
38327 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38328 wxPyEndAllowThreads(__tstate);
38329 if (PyErr_Occurred()) SWIG_fail;
38330 }
38331 {
38332#if wxUSE_UNICODE
38333 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38334#else
38335 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38336#endif
38337 }
38338 return resultobj;
38339fail:
38340 return NULL;
38341}
38342
38343
38344SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38345 PyObject *resultobj = 0;
38346 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38347 wxString *arg2 = 0 ;
38348 void *argp1 = 0 ;
38349 int res1 = 0 ;
38350 bool temp2 = false ;
38351 PyObject * obj0 = 0 ;
38352 PyObject * obj1 = 0 ;
38353 char * kwnames[] = {
38354 (char *) "self",(char *) "filter", NULL
38355 };
38356
38357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38359 if (!SWIG_IsOK(res1)) {
38360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38361 }
38362 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38363 {
38364 arg2 = wxString_in_helper(obj1);
38365 if (arg2 == NULL) SWIG_fail;
38366 temp2 = true;
38367 }
38368 {
38369 PyThreadState* __tstate = wxPyBeginAllowThreads();
38370 (arg1)->SetFilter((wxString const &)*arg2);
38371 wxPyEndAllowThreads(__tstate);
38372 if (PyErr_Occurred()) SWIG_fail;
38373 }
38374 resultobj = SWIG_Py_Void();
38375 {
38376 if (temp2)
38377 delete arg2;
38378 }
38379 return resultobj;
38380fail:
38381 {
38382 if (temp2)
38383 delete arg2;
38384 }
38385 return NULL;
d55e5bfc
RD
38386}
38387
38388
554f62e9
RD
38389SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38390 PyObject *resultobj = 0;
38391 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38392 int result;
38393 void *argp1 = 0 ;
38394 int res1 = 0 ;
38395 PyObject *swig_obj[1] ;
38396
38397 if (!args) SWIG_fail;
38398 swig_obj[0] = args;
38399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38400 if (!SWIG_IsOK(res1)) {
38401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38402 }
38403 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38404 {
38405 PyThreadState* __tstate = wxPyBeginAllowThreads();
38406 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38407 wxPyEndAllowThreads(__tstate);
38408 if (PyErr_Occurred()) SWIG_fail;
38409 }
38410 resultobj = SWIG_From_int(static_cast< int >(result));
38411 return resultobj;
38412fail:
38413 return NULL;
38414}
38415
38416
38417SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38418 PyObject *resultobj = 0;
38419 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38420 int arg2 ;
38421 void *argp1 = 0 ;
38422 int res1 = 0 ;
38423 int val2 ;
38424 int ecode2 = 0 ;
38425 PyObject * obj0 = 0 ;
38426 PyObject * obj1 = 0 ;
38427 char * kwnames[] = {
38428 (char *) "self",(char *) "n", NULL
38429 };
38430
38431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38433 if (!SWIG_IsOK(res1)) {
38434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38435 }
38436 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38437 ecode2 = SWIG_AsVal_int(obj1, &val2);
38438 if (!SWIG_IsOK(ecode2)) {
38439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38440 }
38441 arg2 = static_cast< int >(val2);
38442 {
38443 PyThreadState* __tstate = wxPyBeginAllowThreads();
38444 (arg1)->SetFilterIndex(arg2);
38445 wxPyEndAllowThreads(__tstate);
38446 if (PyErr_Occurred()) SWIG_fail;
38447 }
38448 resultobj = SWIG_Py_Void();
38449 return resultobj;
38450fail:
38451 return NULL;
d55e5bfc
RD
38452}
38453
38454
554f62e9
RD
38455SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38456 PyObject *resultobj = 0;
38457 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38458 wxTreeItemId result;
38459 void *argp1 = 0 ;
38460 int res1 = 0 ;
38461 PyObject *swig_obj[1] ;
38462
38463 if (!args) SWIG_fail;
38464 swig_obj[0] = args;
38465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38466 if (!SWIG_IsOK(res1)) {
38467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38468 }
38469 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38470 {
38471 PyThreadState* __tstate = wxPyBeginAllowThreads();
38472 result = (arg1)->GetRootId();
38473 wxPyEndAllowThreads(__tstate);
38474 if (PyErr_Occurred()) SWIG_fail;
38475 }
38476 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38477 return resultobj;
38478fail:
38479 return NULL;
d55e5bfc
RD
38480}
38481
38482
554f62e9
RD
38483SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38484 PyObject *resultobj = 0;
38485 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38486 wxPyTreeCtrl *result = 0 ;
38487 void *argp1 = 0 ;
38488 int res1 = 0 ;
38489 PyObject *swig_obj[1] ;
38490
38491 if (!args) SWIG_fail;
38492 swig_obj[0] = args;
38493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38494 if (!SWIG_IsOK(res1)) {
38495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38496 }
38497 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38498 {
38499 PyThreadState* __tstate = wxPyBeginAllowThreads();
38500 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38501 wxPyEndAllowThreads(__tstate);
38502 if (PyErr_Occurred()) SWIG_fail;
38503 }
38504 {
38505 resultobj = wxPyMake_wxObject(result, 0);
38506 }
38507 return resultobj;
38508fail:
38509 return NULL;
d55e5bfc
RD
38510}
38511
38512
554f62e9
RD
38513SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38514 PyObject *resultobj = 0;
38515 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38516 wxDirFilterListCtrl *result = 0 ;
38517 void *argp1 = 0 ;
38518 int res1 = 0 ;
38519 PyObject *swig_obj[1] ;
38520
38521 if (!args) SWIG_fail;
38522 swig_obj[0] = args;
38523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38524 if (!SWIG_IsOK(res1)) {
38525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38526 }
38527 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38528 {
38529 PyThreadState* __tstate = wxPyBeginAllowThreads();
38530 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38531 wxPyEndAllowThreads(__tstate);
38532 if (PyErr_Occurred()) SWIG_fail;
38533 }
38534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38535 return resultobj;
38536fail:
38537 return NULL;
38538}
38539
38540
38541SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38542 PyObject *resultobj = 0;
38543 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38544 wxTreeItemId arg2 ;
38545 wxString *arg3 = 0 ;
38546 bool *arg4 = 0 ;
38547 wxTreeItemId result;
38548 void *argp1 = 0 ;
38549 int res1 = 0 ;
38550 void *argp2 ;
38551 int res2 = 0 ;
38552 bool temp3 = false ;
38553 bool temp4 ;
38554 int res4 = SWIG_TMPOBJ ;
38555 PyObject * obj0 = 0 ;
38556 PyObject * obj1 = 0 ;
38557 PyObject * obj2 = 0 ;
38558 char * kwnames[] = {
38559 (char *) "self",(char *) "parentId",(char *) "path", NULL
38560 };
38561
38562 arg4 = &temp4;
38563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38565 if (!SWIG_IsOK(res1)) {
38566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38567 }
38568 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38569 {
38570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38571 if (!SWIG_IsOK(res2)) {
38572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38573 }
38574 if (!argp2) {
38575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38576 } else {
38577 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38578 arg2 = *temp;
38579 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 38580 }
554f62e9
RD
38581 }
38582 {
38583 arg3 = wxString_in_helper(obj2);
38584 if (arg3 == NULL) SWIG_fail;
38585 temp3 = true;
38586 }
38587 {
38588 PyThreadState* __tstate = wxPyBeginAllowThreads();
38589 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38590 wxPyEndAllowThreads(__tstate);
38591 if (PyErr_Occurred()) SWIG_fail;
38592 }
38593 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38594 if (SWIG_IsTmpObj(res4)) {
38595 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38596 } else {
38597 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38598 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38599 }
38600 {
38601 if (temp3)
38602 delete arg3;
38603 }
38604 return resultobj;
38605fail:
38606 {
38607 if (temp3)
38608 delete arg3;
38609 }
38610 return NULL;
d55e5bfc
RD
38611}
38612
38613
554f62e9
RD
38614SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38615 PyObject *resultobj = 0;
38616 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38617 void *argp1 = 0 ;
38618 int res1 = 0 ;
38619 PyObject *swig_obj[1] ;
38620
38621 if (!args) SWIG_fail;
38622 swig_obj[0] = args;
38623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38624 if (!SWIG_IsOK(res1)) {
38625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38626 }
38627 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38628 {
38629 PyThreadState* __tstate = wxPyBeginAllowThreads();
38630 (arg1)->DoResize();
38631 wxPyEndAllowThreads(__tstate);
38632 if (PyErr_Occurred()) SWIG_fail;
38633 }
38634 resultobj = SWIG_Py_Void();
38635 return resultobj;
38636fail:
38637 return NULL;
38638}
38639
38640
38641SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38642 PyObject *resultobj = 0;
38643 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38644 void *argp1 = 0 ;
38645 int res1 = 0 ;
38646 PyObject *swig_obj[1] ;
38647
38648 if (!args) SWIG_fail;
38649 swig_obj[0] = args;
38650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38651 if (!SWIG_IsOK(res1)) {
38652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38653 }
38654 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38655 {
38656 PyThreadState* __tstate = wxPyBeginAllowThreads();
38657 (arg1)->ReCreateTree();
38658 wxPyEndAllowThreads(__tstate);
38659 if (PyErr_Occurred()) SWIG_fail;
38660 }
38661 resultobj = SWIG_Py_Void();
38662 return resultobj;
38663fail:
38664 return NULL;
38665}
38666
38667
38668SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38669 PyObject *obj;
38670 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38671 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38672 return SWIG_Py_Void();
38673}
38674
38675SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38676 return SWIG_Python_InitShadowInstance(args);
38677}
38678
38679SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38680 PyObject *resultobj = 0;
38681 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38682 int arg2 = (int) (int)-1 ;
38683 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38684 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38685 wxSize const &arg4_defvalue = wxDefaultSize ;
38686 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38687 long arg5 = (long) 0 ;
38688 wxDirFilterListCtrl *result = 0 ;
38689 void *argp1 = 0 ;
38690 int res1 = 0 ;
38691 int val2 ;
38692 int ecode2 = 0 ;
38693 wxPoint temp3 ;
38694 wxSize temp4 ;
38695 long val5 ;
38696 int ecode5 = 0 ;
38697 PyObject * obj0 = 0 ;
38698 PyObject * obj1 = 0 ;
38699 PyObject * obj2 = 0 ;
38700 PyObject * obj3 = 0 ;
38701 PyObject * obj4 = 0 ;
38702 char * kwnames[] = {
38703 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38704 };
38705
38706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38708 if (!SWIG_IsOK(res1)) {
38709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38710 }
38711 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38712 if (obj1) {
38713 ecode2 = SWIG_AsVal_int(obj1, &val2);
38714 if (!SWIG_IsOK(ecode2)) {
38715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38716 }
38717 arg2 = static_cast< int >(val2);
38718 }
38719 if (obj2) {
d55e5bfc 38720 {
554f62e9
RD
38721 arg3 = &temp3;
38722 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38723 }
554f62e9
RD
38724 }
38725 if (obj3) {
d55e5bfc 38726 {
554f62e9
RD
38727 arg4 = &temp4;
38728 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38729 }
554f62e9
RD
38730 }
38731 if (obj4) {
38732 ecode5 = SWIG_AsVal_long(obj4, &val5);
38733 if (!SWIG_IsOK(ecode5)) {
38734 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38735 }
38736 arg5 = static_cast< long >(val5);
38737 }
38738 {
38739 if (!wxPyCheckForApp()) SWIG_fail;
38740 PyThreadState* __tstate = wxPyBeginAllowThreads();
38741 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38742 wxPyEndAllowThreads(__tstate);
38743 if (PyErr_Occurred()) SWIG_fail;
38744 }
38745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38746 return resultobj;
38747fail:
38748 return NULL;
d55e5bfc
RD
38749}
38750
38751
554f62e9
RD
38752SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38753 PyObject *resultobj = 0;
38754 wxDirFilterListCtrl *result = 0 ;
38755
38756 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38757 {
38758 if (!wxPyCheckForApp()) SWIG_fail;
38759 PyThreadState* __tstate = wxPyBeginAllowThreads();
38760 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38761 wxPyEndAllowThreads(__tstate);
38762 if (PyErr_Occurred()) SWIG_fail;
38763 }
38764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38765 return resultobj;
38766fail:
38767 return NULL;
38768}
38769
38770
38771SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38772 PyObject *resultobj = 0;
38773 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38774 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38775 int arg3 = (int) (int)-1 ;
38776 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38777 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38778 wxSize const &arg5_defvalue = wxDefaultSize ;
38779 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38780 long arg6 = (long) 0 ;
38781 bool result;
38782 void *argp1 = 0 ;
38783 int res1 = 0 ;
38784 void *argp2 = 0 ;
38785 int res2 = 0 ;
38786 int val3 ;
38787 int ecode3 = 0 ;
38788 wxPoint temp4 ;
38789 wxSize temp5 ;
38790 long val6 ;
38791 int ecode6 = 0 ;
38792 PyObject * obj0 = 0 ;
38793 PyObject * obj1 = 0 ;
38794 PyObject * obj2 = 0 ;
38795 PyObject * obj3 = 0 ;
38796 PyObject * obj4 = 0 ;
38797 PyObject * obj5 = 0 ;
38798 char * kwnames[] = {
38799 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38800 };
38801
38802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38804 if (!SWIG_IsOK(res1)) {
38805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38806 }
38807 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38808 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38809 if (!SWIG_IsOK(res2)) {
38810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38811 }
38812 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38813 if (obj2) {
38814 ecode3 = SWIG_AsVal_int(obj2, &val3);
38815 if (!SWIG_IsOK(ecode3)) {
38816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38817 }
38818 arg3 = static_cast< int >(val3);
38819 }
38820 if (obj3) {
093d3ff1 38821 {
554f62e9
RD
38822 arg4 = &temp4;
38823 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 38824 }
554f62e9
RD
38825 }
38826 if (obj4) {
093d3ff1 38827 {
554f62e9
RD
38828 arg5 = &temp5;
38829 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 38830 }
554f62e9
RD
38831 }
38832 if (obj5) {
38833 ecode6 = SWIG_AsVal_long(obj5, &val6);
38834 if (!SWIG_IsOK(ecode6)) {
38835 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38836 }
38837 arg6 = static_cast< long >(val6);
38838 }
38839 {
38840 PyThreadState* __tstate = wxPyBeginAllowThreads();
38841 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38842 wxPyEndAllowThreads(__tstate);
38843 if (PyErr_Occurred()) SWIG_fail;
38844 }
38845 {
38846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38847 }
38848 return resultobj;
38849fail:
38850 return NULL;
38851}
38852
38853
38854SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38855 PyObject *resultobj = 0;
38856 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38857 wxString *arg2 = 0 ;
38858 int arg3 ;
38859 void *argp1 = 0 ;
38860 int res1 = 0 ;
38861 bool temp2 = false ;
38862 int val3 ;
38863 int ecode3 = 0 ;
38864 PyObject * obj0 = 0 ;
38865 PyObject * obj1 = 0 ;
38866 PyObject * obj2 = 0 ;
38867 char * kwnames[] = {
38868 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38869 };
38870
38871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38873 if (!SWIG_IsOK(res1)) {
38874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38875 }
38876 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38877 {
38878 arg2 = wxString_in_helper(obj1);
38879 if (arg2 == NULL) SWIG_fail;
38880 temp2 = true;
38881 }
38882 ecode3 = SWIG_AsVal_int(obj2, &val3);
38883 if (!SWIG_IsOK(ecode3)) {
38884 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38885 }
38886 arg3 = static_cast< int >(val3);
38887 {
38888 PyThreadState* __tstate = wxPyBeginAllowThreads();
38889 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38890 wxPyEndAllowThreads(__tstate);
38891 if (PyErr_Occurred()) SWIG_fail;
38892 }
38893 resultobj = SWIG_Py_Void();
38894 {
38895 if (temp2)
38896 delete arg2;
38897 }
38898 return resultobj;
38899fail:
38900 {
38901 if (temp2)
38902 delete arg2;
38903 }
38904 return NULL;
38905}
38906
38907
38908SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38909 PyObject *obj;
38910 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38911 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38912 return SWIG_Py_Void();
38913}
38914
38915SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38916 return SWIG_Python_InitShadowInstance(args);
38917}
38918
38919SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38920 PyObject *resultobj = 0;
38921 wxWindow *arg1 = (wxWindow *) 0 ;
38922 int arg2 = (int) (int)-1 ;
38923 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38924 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38925 wxSize const &arg4_defvalue = wxDefaultSize ;
38926 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38927 long arg5 = (long) 0 ;
38928 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38929 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38930 wxString const &arg7_defvalue = wxPyControlNameStr ;
38931 wxString *arg7 = (wxString *) &arg7_defvalue ;
38932 wxPyControl *result = 0 ;
38933 void *argp1 = 0 ;
38934 int res1 = 0 ;
38935 int val2 ;
38936 int ecode2 = 0 ;
38937 wxPoint temp3 ;
38938 wxSize temp4 ;
38939 long val5 ;
38940 int ecode5 = 0 ;
38941 void *argp6 = 0 ;
38942 int res6 = 0 ;
38943 bool temp7 = false ;
38944 PyObject * obj0 = 0 ;
38945 PyObject * obj1 = 0 ;
38946 PyObject * obj2 = 0 ;
38947 PyObject * obj3 = 0 ;
38948 PyObject * obj4 = 0 ;
38949 PyObject * obj5 = 0 ;
38950 PyObject * obj6 = 0 ;
38951 char * kwnames[] = {
38952 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38953 };
38954
38955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38957 if (!SWIG_IsOK(res1)) {
38958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38959 }
38960 arg1 = reinterpret_cast< wxWindow * >(argp1);
38961 if (obj1) {
38962 ecode2 = SWIG_AsVal_int(obj1, &val2);
38963 if (!SWIG_IsOK(ecode2)) {
38964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38965 }
38966 arg2 = static_cast< int >(val2);
38967 }
38968 if (obj2) {
d55e5bfc 38969 {
554f62e9
RD
38970 arg3 = &temp3;
38971 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38972 }
554f62e9
RD
38973 }
38974 if (obj3) {
d55e5bfc 38975 {
554f62e9
RD
38976 arg4 = &temp4;
38977 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38978 }
554f62e9
RD
38979 }
38980 if (obj4) {
38981 ecode5 = SWIG_AsVal_long(obj4, &val5);
38982 if (!SWIG_IsOK(ecode5)) {
38983 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38984 }
38985 arg5 = static_cast< long >(val5);
38986 }
38987 if (obj5) {
38988 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38989 if (!SWIG_IsOK(res6)) {
38990 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
093d3ff1 38991 }
554f62e9
RD
38992 if (!argp6) {
38993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 38994 }
554f62e9
RD
38995 arg6 = reinterpret_cast< wxValidator * >(argp6);
38996 }
38997 if (obj6) {
d55e5bfc 38998 {
554f62e9
RD
38999 arg7 = wxString_in_helper(obj6);
39000 if (arg7 == NULL) SWIG_fail;
39001 temp7 = true;
d55e5bfc 39002 }
554f62e9
RD
39003 }
39004 {
39005 if (!wxPyCheckForApp()) SWIG_fail;
39006 PyThreadState* __tstate = wxPyBeginAllowThreads();
39007 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
39008 wxPyEndAllowThreads(__tstate);
39009 if (PyErr_Occurred()) SWIG_fail;
39010 }
39011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
39012 {
39013 if (temp7)
39014 delete arg7;
39015 }
39016 return resultobj;
39017fail:
39018 {
39019 if (temp7)
39020 delete arg7;
39021 }
39022 return NULL;
d55e5bfc
RD
39023}
39024
39025
554f62e9
RD
39026SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39027 PyObject *resultobj = 0;
39028 wxPyControl *result = 0 ;
39029
39030 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
39031 {
39032 if (!wxPyCheckForApp()) SWIG_fail;
39033 PyThreadState* __tstate = wxPyBeginAllowThreads();
39034 result = (wxPyControl *)new wxPyControl();
39035 wxPyEndAllowThreads(__tstate);
39036 if (PyErr_Occurred()) SWIG_fail;
39037 }
39038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
39039 return resultobj;
39040fail:
39041 return NULL;
39042}
39043
39044
39045SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39046 PyObject *resultobj = 0;
39047 wxPyControl *arg1 = (wxPyControl *) 0 ;
39048 PyObject *arg2 = (PyObject *) 0 ;
39049 PyObject *arg3 = (PyObject *) 0 ;
39050 void *argp1 = 0 ;
39051 int res1 = 0 ;
39052 PyObject * obj0 = 0 ;
39053 PyObject * obj1 = 0 ;
39054 PyObject * obj2 = 0 ;
39055 char * kwnames[] = {
39056 (char *) "self",(char *) "self",(char *) "_class", NULL
39057 };
39058
39059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39061 if (!SWIG_IsOK(res1)) {
39062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
39063 }
39064 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39065 arg2 = obj1;
39066 arg3 = obj2;
39067 {
39068 PyThreadState* __tstate = wxPyBeginAllowThreads();
39069 (arg1)->_setCallbackInfo(arg2,arg3);
39070 wxPyEndAllowThreads(__tstate);
39071 if (PyErr_Occurred()) SWIG_fail;
39072 }
39073 resultobj = SWIG_Py_Void();
39074 return resultobj;
39075fail:
39076 return NULL;
39077}
39078
39079
39080SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39081 PyObject *resultobj = 0;
39082 wxPyControl *arg1 = (wxPyControl *) 0 ;
39083 wxSize *arg2 = 0 ;
39084 void *argp1 = 0 ;
39085 int res1 = 0 ;
39086 wxSize temp2 ;
39087 PyObject * obj0 = 0 ;
39088 PyObject * obj1 = 0 ;
39089 char * kwnames[] = {
39090 (char *) "self",(char *) "size", NULL
39091 };
39092
39093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
39094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39095 if (!SWIG_IsOK(res1)) {
39096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39097 }
39098 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39099 {
39100 arg2 = &temp2;
39101 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
39102 }
39103 {
39104 PyThreadState* __tstate = wxPyBeginAllowThreads();
39105 (arg1)->SetBestSize((wxSize const &)*arg2);
39106 wxPyEndAllowThreads(__tstate);
39107 if (PyErr_Occurred()) SWIG_fail;
39108 }
39109 resultobj = SWIG_Py_Void();
39110 return resultobj;
39111fail:
39112 return NULL;
39113}
39114
39115
39116SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39117 PyObject *resultobj = 0;
39118 wxPyControl *arg1 = (wxPyControl *) 0 ;
39119 wxDC *arg2 = (wxDC *) 0 ;
39120 bool result;
39121 void *argp1 = 0 ;
39122 int res1 = 0 ;
39123 void *argp2 = 0 ;
39124 int res2 = 0 ;
39125 PyObject * obj0 = 0 ;
39126 PyObject * obj1 = 0 ;
39127 char * kwnames[] = {
39128 (char *) "self",(char *) "dc", NULL
39129 };
39130
39131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39133 if (!SWIG_IsOK(res1)) {
39134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
39135 }
39136 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39137 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
39138 if (!SWIG_IsOK(res2)) {
39139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
39140 }
39141 arg2 = reinterpret_cast< wxDC * >(argp2);
39142 {
39143 PyThreadState* __tstate = wxPyBeginAllowThreads();
39144 result = (bool)(arg1)->DoEraseBackground(arg2);
39145 wxPyEndAllowThreads(__tstate);
39146 if (PyErr_Occurred()) SWIG_fail;
39147 }
39148 {
39149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39150 }
39151 return resultobj;
39152fail:
39153 return NULL;
39154}
39155
39156
39157SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39158 PyObject *resultobj = 0;
39159 wxPyControl *arg1 = (wxPyControl *) 0 ;
39160 int arg2 ;
39161 int arg3 ;
39162 int arg4 ;
39163 int arg5 ;
39164 void *argp1 = 0 ;
39165 int res1 = 0 ;
39166 int val2 ;
39167 int ecode2 = 0 ;
39168 int val3 ;
39169 int ecode3 = 0 ;
39170 int val4 ;
39171 int ecode4 = 0 ;
39172 int val5 ;
39173 int ecode5 = 0 ;
39174 PyObject * obj0 = 0 ;
39175 PyObject * obj1 = 0 ;
39176 PyObject * obj2 = 0 ;
39177 PyObject * obj3 = 0 ;
39178 PyObject * obj4 = 0 ;
39179 char * kwnames[] = {
39180 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
39181 };
39182
39183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39185 if (!SWIG_IsOK(res1)) {
39186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
39187 }
39188 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39189 ecode2 = SWIG_AsVal_int(obj1, &val2);
39190 if (!SWIG_IsOK(ecode2)) {
39191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
39192 }
39193 arg2 = static_cast< int >(val2);
39194 ecode3 = SWIG_AsVal_int(obj2, &val3);
39195 if (!SWIG_IsOK(ecode3)) {
39196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
39197 }
39198 arg3 = static_cast< int >(val3);
39199 ecode4 = SWIG_AsVal_int(obj3, &val4);
39200 if (!SWIG_IsOK(ecode4)) {
39201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
39202 }
39203 arg4 = static_cast< int >(val4);
39204 ecode5 = SWIG_AsVal_int(obj4, &val5);
39205 if (!SWIG_IsOK(ecode5)) {
39206 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
39207 }
39208 arg5 = static_cast< int >(val5);
39209 {
39210 PyThreadState* __tstate = wxPyBeginAllowThreads();
39211 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
39212 wxPyEndAllowThreads(__tstate);
39213 if (PyErr_Occurred()) SWIG_fail;
39214 }
39215 resultobj = SWIG_Py_Void();
39216 return resultobj;
39217fail:
39218 return NULL;
39219}
39220
39221
39222SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39223 PyObject *resultobj = 0;
39224 wxPyControl *arg1 = (wxPyControl *) 0 ;
39225 int arg2 ;
39226 int arg3 ;
39227 int arg4 ;
39228 int arg5 ;
39229 int arg6 = (int) wxSIZE_AUTO ;
39230 void *argp1 = 0 ;
39231 int res1 = 0 ;
39232 int val2 ;
39233 int ecode2 = 0 ;
39234 int val3 ;
39235 int ecode3 = 0 ;
39236 int val4 ;
39237 int ecode4 = 0 ;
39238 int val5 ;
39239 int ecode5 = 0 ;
39240 int val6 ;
39241 int ecode6 = 0 ;
39242 PyObject * obj0 = 0 ;
39243 PyObject * obj1 = 0 ;
39244 PyObject * obj2 = 0 ;
39245 PyObject * obj3 = 0 ;
39246 PyObject * obj4 = 0 ;
39247 PyObject * obj5 = 0 ;
39248 char * kwnames[] = {
39249 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39250 };
39251
39252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39254 if (!SWIG_IsOK(res1)) {
39255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39256 }
39257 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39258 ecode2 = SWIG_AsVal_int(obj1, &val2);
39259 if (!SWIG_IsOK(ecode2)) {
39260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39261 }
39262 arg2 = static_cast< int >(val2);
39263 ecode3 = SWIG_AsVal_int(obj2, &val3);
39264 if (!SWIG_IsOK(ecode3)) {
39265 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39266 }
39267 arg3 = static_cast< int >(val3);
39268 ecode4 = SWIG_AsVal_int(obj3, &val4);
39269 if (!SWIG_IsOK(ecode4)) {
39270 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39271 }
39272 arg4 = static_cast< int >(val4);
39273 ecode5 = SWIG_AsVal_int(obj4, &val5);
39274 if (!SWIG_IsOK(ecode5)) {
39275 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39276 }
39277 arg5 = static_cast< int >(val5);
39278 if (obj5) {
39279 ecode6 = SWIG_AsVal_int(obj5, &val6);
39280 if (!SWIG_IsOK(ecode6)) {
39281 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39282 }
39283 arg6 = static_cast< int >(val6);
39284 }
39285 {
39286 PyThreadState* __tstate = wxPyBeginAllowThreads();
39287 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39288 wxPyEndAllowThreads(__tstate);
39289 if (PyErr_Occurred()) SWIG_fail;
39290 }
39291 resultobj = SWIG_Py_Void();
39292 return resultobj;
39293fail:
39294 return NULL;
39295}
39296
39297
39298SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39299 PyObject *resultobj = 0;
39300 wxPyControl *arg1 = (wxPyControl *) 0 ;
39301 int arg2 ;
39302 int arg3 ;
39303 void *argp1 = 0 ;
39304 int res1 = 0 ;
39305 int val2 ;
39306 int ecode2 = 0 ;
39307 int val3 ;
39308 int ecode3 = 0 ;
39309 PyObject * obj0 = 0 ;
39310 PyObject * obj1 = 0 ;
39311 PyObject * obj2 = 0 ;
39312 char * kwnames[] = {
39313 (char *) "self",(char *) "width",(char *) "height", NULL
39314 };
39315
39316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39318 if (!SWIG_IsOK(res1)) {
39319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39320 }
39321 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39322 ecode2 = SWIG_AsVal_int(obj1, &val2);
39323 if (!SWIG_IsOK(ecode2)) {
39324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39325 }
39326 arg2 = static_cast< int >(val2);
39327 ecode3 = SWIG_AsVal_int(obj2, &val3);
39328 if (!SWIG_IsOK(ecode3)) {
39329 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39330 }
39331 arg3 = static_cast< int >(val3);
39332 {
39333 PyThreadState* __tstate = wxPyBeginAllowThreads();
39334 (arg1)->DoSetClientSize(arg2,arg3);
39335 wxPyEndAllowThreads(__tstate);
39336 if (PyErr_Occurred()) SWIG_fail;
39337 }
39338 resultobj = SWIG_Py_Void();
39339 return resultobj;
39340fail:
39341 return NULL;
39342}
39343
39344
39345SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39346 PyObject *resultobj = 0;
39347 wxPyControl *arg1 = (wxPyControl *) 0 ;
39348 int arg2 ;
39349 int arg3 ;
39350 void *argp1 = 0 ;
39351 int res1 = 0 ;
39352 int val2 ;
39353 int ecode2 = 0 ;
39354 int val3 ;
39355 int ecode3 = 0 ;
39356 PyObject * obj0 = 0 ;
39357 PyObject * obj1 = 0 ;
39358 PyObject * obj2 = 0 ;
39359 char * kwnames[] = {
39360 (char *) "self",(char *) "x",(char *) "y", NULL
39361 };
39362
39363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39365 if (!SWIG_IsOK(res1)) {
39366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39367 }
39368 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39369 ecode2 = SWIG_AsVal_int(obj1, &val2);
39370 if (!SWIG_IsOK(ecode2)) {
39371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39372 }
39373 arg2 = static_cast< int >(val2);
39374 ecode3 = SWIG_AsVal_int(obj2, &val3);
39375 if (!SWIG_IsOK(ecode3)) {
39376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39377 }
39378 arg3 = static_cast< int >(val3);
39379 {
39380 PyThreadState* __tstate = wxPyBeginAllowThreads();
39381 (arg1)->DoSetVirtualSize(arg2,arg3);
39382 wxPyEndAllowThreads(__tstate);
39383 if (PyErr_Occurred()) SWIG_fail;
39384 }
39385 resultobj = SWIG_Py_Void();
39386 return resultobj;
39387fail:
39388 return NULL;
39389}
39390
39391
39392SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39393 PyObject *resultobj = 0;
39394 wxPyControl *arg1 = (wxPyControl *) 0 ;
39395 int *arg2 = (int *) 0 ;
39396 int *arg3 = (int *) 0 ;
39397 void *argp1 = 0 ;
39398 int res1 = 0 ;
39399 int temp2 ;
39400 int res2 = SWIG_TMPOBJ ;
39401 int temp3 ;
39402 int res3 = SWIG_TMPOBJ ;
39403 PyObject *swig_obj[1] ;
39404
39405 arg2 = &temp2;
39406 arg3 = &temp3;
39407 if (!args) SWIG_fail;
39408 swig_obj[0] = args;
39409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39410 if (!SWIG_IsOK(res1)) {
39411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39412 }
39413 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39414 {
39415 PyThreadState* __tstate = wxPyBeginAllowThreads();
39416 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39417 wxPyEndAllowThreads(__tstate);
39418 if (PyErr_Occurred()) SWIG_fail;
39419 }
39420 resultobj = SWIG_Py_Void();
39421 if (SWIG_IsTmpObj(res2)) {
39422 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39423 } else {
39424 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39425 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39426 }
39427 if (SWIG_IsTmpObj(res3)) {
39428 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39429 } else {
39430 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39431 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39432 }
39433 return resultobj;
39434fail:
39435 return NULL;
39436}
39437
39438
39439SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39440 PyObject *resultobj = 0;
39441 wxPyControl *arg1 = (wxPyControl *) 0 ;
39442 int *arg2 = (int *) 0 ;
39443 int *arg3 = (int *) 0 ;
39444 void *argp1 = 0 ;
39445 int res1 = 0 ;
39446 int temp2 ;
39447 int res2 = SWIG_TMPOBJ ;
39448 int temp3 ;
39449 int res3 = SWIG_TMPOBJ ;
39450 PyObject *swig_obj[1] ;
39451
39452 arg2 = &temp2;
39453 arg3 = &temp3;
39454 if (!args) SWIG_fail;
39455 swig_obj[0] = args;
39456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39457 if (!SWIG_IsOK(res1)) {
39458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39459 }
39460 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39461 {
39462 PyThreadState* __tstate = wxPyBeginAllowThreads();
39463 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39464 wxPyEndAllowThreads(__tstate);
39465 if (PyErr_Occurred()) SWIG_fail;
39466 }
39467 resultobj = SWIG_Py_Void();
39468 if (SWIG_IsTmpObj(res2)) {
39469 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39470 } else {
39471 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39472 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39473 }
39474 if (SWIG_IsTmpObj(res3)) {
39475 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39476 } else {
39477 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39478 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39479 }
39480 return resultobj;
39481fail:
39482 return NULL;
39483}
39484
39485
39486SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39487 PyObject *resultobj = 0;
39488 wxPyControl *arg1 = (wxPyControl *) 0 ;
39489 int *arg2 = (int *) 0 ;
39490 int *arg3 = (int *) 0 ;
39491 void *argp1 = 0 ;
39492 int res1 = 0 ;
39493 int temp2 ;
39494 int res2 = SWIG_TMPOBJ ;
39495 int temp3 ;
39496 int res3 = SWIG_TMPOBJ ;
39497 PyObject *swig_obj[1] ;
39498
39499 arg2 = &temp2;
39500 arg3 = &temp3;
39501 if (!args) SWIG_fail;
39502 swig_obj[0] = args;
39503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39504 if (!SWIG_IsOK(res1)) {
39505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39506 }
39507 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39508 {
39509 PyThreadState* __tstate = wxPyBeginAllowThreads();
39510 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39511 wxPyEndAllowThreads(__tstate);
39512 if (PyErr_Occurred()) SWIG_fail;
39513 }
39514 resultobj = SWIG_Py_Void();
39515 if (SWIG_IsTmpObj(res2)) {
39516 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39517 } else {
39518 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39519 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39520 }
39521 if (SWIG_IsTmpObj(res3)) {
39522 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39523 } else {
39524 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39525 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39526 }
39527 return resultobj;
39528fail:
39529 return NULL;
d55e5bfc
RD
39530}
39531
39532
554f62e9
RD
39533SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39534 PyObject *resultobj = 0;
39535 wxPyControl *arg1 = (wxPyControl *) 0 ;
39536 wxSize result;
39537 void *argp1 = 0 ;
39538 int res1 = 0 ;
39539 PyObject *swig_obj[1] ;
39540
39541 if (!args) SWIG_fail;
39542 swig_obj[0] = args;
39543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39544 if (!SWIG_IsOK(res1)) {
39545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39546 }
39547 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39548 {
39549 PyThreadState* __tstate = wxPyBeginAllowThreads();
39550 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39551 wxPyEndAllowThreads(__tstate);
39552 if (PyErr_Occurred()) SWIG_fail;
39553 }
39554 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39555 return resultobj;
39556fail:
39557 return NULL;
d55e5bfc
RD
39558}
39559
39560
554f62e9
RD
39561SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39562 PyObject *resultobj = 0;
39563 wxPyControl *arg1 = (wxPyControl *) 0 ;
39564 wxSize result;
39565 void *argp1 = 0 ;
39566 int res1 = 0 ;
39567 PyObject *swig_obj[1] ;
39568
39569 if (!args) SWIG_fail;
39570 swig_obj[0] = args;
39571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39572 if (!SWIG_IsOK(res1)) {
39573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39574 }
39575 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39576 {
39577 PyThreadState* __tstate = wxPyBeginAllowThreads();
39578 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39579 wxPyEndAllowThreads(__tstate);
39580 if (PyErr_Occurred()) SWIG_fail;
39581 }
39582 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39583 return resultobj;
39584fail:
39585 return NULL;
d55e5bfc
RD
39586}
39587
39588
554f62e9
RD
39589SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39590 PyObject *resultobj = 0;
39591 wxPyControl *arg1 = (wxPyControl *) 0 ;
39592 SwigValueWrapper<wxVisualAttributes > result;
39593 void *argp1 = 0 ;
39594 int res1 = 0 ;
39595 PyObject *swig_obj[1] ;
39596
39597 if (!args) SWIG_fail;
39598 swig_obj[0] = args;
39599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39600 if (!SWIG_IsOK(res1)) {
39601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39602 }
39603 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39604 {
39605 PyThreadState* __tstate = wxPyBeginAllowThreads();
39606 result = (arg1)->GetDefaultAttributes();
39607 wxPyEndAllowThreads(__tstate);
39608 if (PyErr_Occurred()) SWIG_fail;
39609 }
39610 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39611 return resultobj;
39612fail:
39613 return NULL;
d55e5bfc
RD
39614}
39615
39616
554f62e9
RD
39617SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39618 PyObject *resultobj = 0;
39619 wxPyControl *arg1 = (wxPyControl *) 0 ;
39620 void *argp1 = 0 ;
39621 int res1 = 0 ;
39622 PyObject *swig_obj[1] ;
39623
39624 if (!args) SWIG_fail;
39625 swig_obj[0] = args;
39626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39627 if (!SWIG_IsOK(res1)) {
39628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39629 }
39630 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39631 {
39632 PyThreadState* __tstate = wxPyBeginAllowThreads();
39633 (arg1)->OnInternalIdle();
39634 wxPyEndAllowThreads(__tstate);
39635 if (PyErr_Occurred()) SWIG_fail;
39636 }
39637 resultobj = SWIG_Py_Void();
39638 return resultobj;
39639fail:
39640 return NULL;
39641}
39642
39643
39644SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39645 PyObject *obj;
39646 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39647 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39648 return SWIG_Py_Void();
39649}
39650
39651SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39652 return SWIG_Python_InitShadowInstance(args);
39653}
39654
39655SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39656 PyObject *resultobj = 0;
39657 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39658 int arg2 = (int) 0 ;
39659 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39660 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39661 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
554f62e9
RD
39662 wxHelpEvent *result = 0 ;
39663 int val1 ;
39664 int ecode1 = 0 ;
39665 int val2 ;
39666 int ecode2 = 0 ;
39667 wxPoint temp3 ;
704eda0c
RD
39668 int val4 ;
39669 int ecode4 = 0 ;
554f62e9
RD
39670 PyObject * obj0 = 0 ;
39671 PyObject * obj1 = 0 ;
39672 PyObject * obj2 = 0 ;
704eda0c 39673 PyObject * obj3 = 0 ;
554f62e9 39674 char * kwnames[] = {
704eda0c 39675 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
554f62e9
RD
39676 };
39677
704eda0c 39678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
39679 if (obj0) {
39680 ecode1 = SWIG_AsVal_int(obj0, &val1);
39681 if (!SWIG_IsOK(ecode1)) {
39682 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39683 }
39684 arg1 = static_cast< wxEventType >(val1);
39685 }
39686 if (obj1) {
39687 ecode2 = SWIG_AsVal_int(obj1, &val2);
39688 if (!SWIG_IsOK(ecode2)) {
39689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39690 }
39691 arg2 = static_cast< int >(val2);
39692 }
39693 if (obj2) {
d55e5bfc 39694 {
554f62e9
RD
39695 arg3 = &temp3;
39696 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39697 }
554f62e9 39698 }
704eda0c
RD
39699 if (obj3) {
39700 ecode4 = SWIG_AsVal_int(obj3, &val4);
39701 if (!SWIG_IsOK(ecode4)) {
39702 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39703 }
39704 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39705 }
554f62e9
RD
39706 {
39707 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39708 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
554f62e9
RD
39709 wxPyEndAllowThreads(__tstate);
39710 if (PyErr_Occurred()) SWIG_fail;
39711 }
39712 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39713 return resultobj;
39714fail:
39715 return NULL;
d55e5bfc
RD
39716}
39717
39718
554f62e9
RD
39719SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39720 PyObject *resultobj = 0;
39721 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39722 wxPoint result;
39723 void *argp1 = 0 ;
39724 int res1 = 0 ;
39725 PyObject *swig_obj[1] ;
39726
39727 if (!args) SWIG_fail;
39728 swig_obj[0] = args;
39729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39730 if (!SWIG_IsOK(res1)) {
39731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39732 }
39733 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39734 {
39735 PyThreadState* __tstate = wxPyBeginAllowThreads();
39736 result = ((wxHelpEvent const *)arg1)->GetPosition();
39737 wxPyEndAllowThreads(__tstate);
39738 if (PyErr_Occurred()) SWIG_fail;
39739 }
39740 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39741 return resultobj;
39742fail:
39743 return NULL;
39744}
39745
39746
39747SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39748 PyObject *resultobj = 0;
39749 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39750 wxPoint *arg2 = 0 ;
39751 void *argp1 = 0 ;
39752 int res1 = 0 ;
39753 wxPoint temp2 ;
39754 PyObject * obj0 = 0 ;
39755 PyObject * obj1 = 0 ;
39756 char * kwnames[] = {
39757 (char *) "self",(char *) "pos", NULL
39758 };
39759
39760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39762 if (!SWIG_IsOK(res1)) {
39763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39764 }
39765 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39766 {
39767 arg2 = &temp2;
39768 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39769 }
39770 {
39771 PyThreadState* __tstate = wxPyBeginAllowThreads();
39772 (arg1)->SetPosition((wxPoint const &)*arg2);
39773 wxPyEndAllowThreads(__tstate);
39774 if (PyErr_Occurred()) SWIG_fail;
39775 }
39776 resultobj = SWIG_Py_Void();
39777 return resultobj;
39778fail:
39779 return NULL;
f20a2e1f
RD
39780}
39781
39782
554f62e9
RD
39783SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39784 PyObject *resultobj = 0;
39785 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39786 wxString *result = 0 ;
39787 void *argp1 = 0 ;
39788 int res1 = 0 ;
39789 PyObject *swig_obj[1] ;
39790
39791 if (!args) SWIG_fail;
39792 swig_obj[0] = args;
39793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39794 if (!SWIG_IsOK(res1)) {
39795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39796 }
39797 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39798 {
39799 PyThreadState* __tstate = wxPyBeginAllowThreads();
39800 {
39801 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39802 result = (wxString *) &_result_ref;
39803 }
39804 wxPyEndAllowThreads(__tstate);
39805 if (PyErr_Occurred()) SWIG_fail;
39806 }
39807 {
39808#if wxUSE_UNICODE
39809 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39810#else
39811 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39812#endif
39813 }
39814 return resultobj;
39815fail:
39816 return NULL;
39817}
39818
39819
39820SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39821 PyObject *resultobj = 0;
39822 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39823 wxString *arg2 = 0 ;
39824 void *argp1 = 0 ;
39825 int res1 = 0 ;
39826 bool temp2 = false ;
39827 PyObject * obj0 = 0 ;
39828 PyObject * obj1 = 0 ;
39829 char * kwnames[] = {
39830 (char *) "self",(char *) "link", NULL
39831 };
39832
39833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39835 if (!SWIG_IsOK(res1)) {
39836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39837 }
39838 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39839 {
39840 arg2 = wxString_in_helper(obj1);
39841 if (arg2 == NULL) SWIG_fail;
39842 temp2 = true;
39843 }
39844 {
39845 PyThreadState* __tstate = wxPyBeginAllowThreads();
39846 (arg1)->SetLink((wxString const &)*arg2);
39847 wxPyEndAllowThreads(__tstate);
39848 if (PyErr_Occurred()) SWIG_fail;
39849 }
39850 resultobj = SWIG_Py_Void();
39851 {
39852 if (temp2)
39853 delete arg2;
39854 }
39855 return resultobj;
39856fail:
39857 {
39858 if (temp2)
39859 delete arg2;
39860 }
39861 return NULL;
d55e5bfc
RD
39862}
39863
39864
554f62e9
RD
39865SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39866 PyObject *resultobj = 0;
39867 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39868 wxString *result = 0 ;
39869 void *argp1 = 0 ;
39870 int res1 = 0 ;
39871 PyObject *swig_obj[1] ;
39872
39873 if (!args) SWIG_fail;
39874 swig_obj[0] = args;
39875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39876 if (!SWIG_IsOK(res1)) {
39877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39878 }
39879 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39880 {
39881 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39882 {
554f62e9
RD
39883 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39884 result = (wxString *) &_result_ref;
39885 }
39886 wxPyEndAllowThreads(__tstate);
39887 if (PyErr_Occurred()) SWIG_fail;
39888 }
39889 {
d55e5bfc 39890#if wxUSE_UNICODE
554f62e9 39891 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d55e5bfc 39892#else
554f62e9 39893 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d55e5bfc 39894#endif
554f62e9
RD
39895 }
39896 return resultobj;
39897fail:
39898 return NULL;
39899}
39900
39901
39902SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39903 PyObject *resultobj = 0;
39904 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39905 wxString *arg2 = 0 ;
39906 void *argp1 = 0 ;
39907 int res1 = 0 ;
39908 bool temp2 = false ;
39909 PyObject * obj0 = 0 ;
39910 PyObject * obj1 = 0 ;
39911 char * kwnames[] = {
39912 (char *) "self",(char *) "target", NULL
39913 };
39914
39915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39917 if (!SWIG_IsOK(res1)) {
39918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39919 }
39920 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39921 {
39922 arg2 = wxString_in_helper(obj1);
39923 if (arg2 == NULL) SWIG_fail;
39924 temp2 = true;
39925 }
39926 {
39927 PyThreadState* __tstate = wxPyBeginAllowThreads();
39928 (arg1)->SetTarget((wxString const &)*arg2);
39929 wxPyEndAllowThreads(__tstate);
39930 if (PyErr_Occurred()) SWIG_fail;
39931 }
39932 resultobj = SWIG_Py_Void();
39933 {
39934 if (temp2)
39935 delete arg2;
39936 }
39937 return resultobj;
39938fail:
39939 {
39940 if (temp2)
39941 delete arg2;
39942 }
39943 return NULL;
d55e5bfc
RD
39944}
39945
39946
704eda0c
RD
39947SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39948 PyObject *resultobj = 0;
39949 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39950 wxHelpEvent::Origin result;
39951 void *argp1 = 0 ;
39952 int res1 = 0 ;
39953 PyObject *swig_obj[1] ;
39954
39955 if (!args) SWIG_fail;
39956 swig_obj[0] = args;
39957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39958 if (!SWIG_IsOK(res1)) {
39959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39960 }
39961 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39962 {
39963 PyThreadState* __tstate = wxPyBeginAllowThreads();
39964 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39965 wxPyEndAllowThreads(__tstate);
39966 if (PyErr_Occurred()) SWIG_fail;
39967 }
39968 resultobj = SWIG_From_int(static_cast< int >(result));
39969 return resultobj;
39970fail:
39971 return NULL;
39972}
39973
39974
39975SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39976 PyObject *resultobj = 0;
39977 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39978 wxHelpEvent::Origin arg2 ;
39979 void *argp1 = 0 ;
39980 int res1 = 0 ;
39981 int val2 ;
39982 int ecode2 = 0 ;
39983 PyObject * obj0 = 0 ;
39984 PyObject * obj1 = 0 ;
39985 char * kwnames[] = {
39986 (char *) "self",(char *) "origin", NULL
39987 };
39988
39989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39991 if (!SWIG_IsOK(res1)) {
39992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39993 }
39994 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39995 ecode2 = SWIG_AsVal_int(obj1, &val2);
39996 if (!SWIG_IsOK(ecode2)) {
39997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39998 }
39999 arg2 = static_cast< wxHelpEvent::Origin >(val2);
40000 {
40001 PyThreadState* __tstate = wxPyBeginAllowThreads();
40002 (arg1)->SetOrigin(arg2);
40003 wxPyEndAllowThreads(__tstate);
40004 if (PyErr_Occurred()) SWIG_fail;
40005 }
40006 resultobj = SWIG_Py_Void();
40007 return resultobj;
40008fail:
40009 return NULL;
40010}
40011
40012
554f62e9
RD
40013SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40014 PyObject *obj;
40015 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40016 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
40017 return SWIG_Py_Void();
7e08d4ef
RD
40018}
40019
554f62e9
RD
40020SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40021 return SWIG_Python_InitShadowInstance(args);
40022}
7e08d4ef 40023
554f62e9
RD
40024SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40025 PyObject *resultobj = 0;
40026 wxWindow *arg1 = (wxWindow *) NULL ;
40027 bool arg2 = (bool) true ;
40028 wxContextHelp *result = 0 ;
40029 void *argp1 = 0 ;
40030 int res1 = 0 ;
40031 bool val2 ;
40032 int ecode2 = 0 ;
40033 PyObject * obj0 = 0 ;
40034 PyObject * obj1 = 0 ;
40035 char * kwnames[] = {
40036 (char *) "window",(char *) "doNow", NULL
40037 };
40038
40039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40040 if (obj0) {
40041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40042 if (!SWIG_IsOK(res1)) {
40043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 40044 }
554f62e9
RD
40045 arg1 = reinterpret_cast< wxWindow * >(argp1);
40046 }
40047 if (obj1) {
40048 ecode2 = SWIG_AsVal_bool(obj1, &val2);
40049 if (!SWIG_IsOK(ecode2)) {
40050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
40051 }
40052 arg2 = static_cast< bool >(val2);
40053 }
40054 {
40055 if (!wxPyCheckForApp()) SWIG_fail;
40056 PyThreadState* __tstate = wxPyBeginAllowThreads();
40057 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
40058 wxPyEndAllowThreads(__tstate);
40059 if (PyErr_Occurred()) SWIG_fail;
40060 }
40061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
40062 return resultobj;
40063fail:
40064 return NULL;
d55e5bfc
RD
40065}
40066
40067
554f62e9
RD
40068SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40069 PyObject *resultobj = 0;
40070 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40071 void *argp1 = 0 ;
40072 int res1 = 0 ;
40073 PyObject *swig_obj[1] ;
40074
40075 if (!args) SWIG_fail;
40076 swig_obj[0] = args;
40077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
40078 if (!SWIG_IsOK(res1)) {
40079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40080 }
40081 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40082 {
40083 PyThreadState* __tstate = wxPyBeginAllowThreads();
40084 delete arg1;
d55e5bfc 40085
554f62e9
RD
40086 wxPyEndAllowThreads(__tstate);
40087 if (PyErr_Occurred()) SWIG_fail;
40088 }
40089 resultobj = SWIG_Py_Void();
40090 return resultobj;
40091fail:
40092 return NULL;
40093}
40094
40095
40096SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40097 PyObject *resultobj = 0;
40098 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40099 wxWindow *arg2 = (wxWindow *) NULL ;
40100 bool result;
40101 void *argp1 = 0 ;
40102 int res1 = 0 ;
40103 void *argp2 = 0 ;
40104 int res2 = 0 ;
40105 PyObject * obj0 = 0 ;
40106 PyObject * obj1 = 0 ;
40107 char * kwnames[] = {
40108 (char *) "self",(char *) "window", NULL
40109 };
40110
40111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40113 if (!SWIG_IsOK(res1)) {
40114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40115 }
40116 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40117 if (obj1) {
40118 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40119 if (!SWIG_IsOK(res2)) {
40120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 40121 }
554f62e9
RD
40122 arg2 = reinterpret_cast< wxWindow * >(argp2);
40123 }
40124 {
40125 PyThreadState* __tstate = wxPyBeginAllowThreads();
40126 result = (bool)(arg1)->BeginContextHelp(arg2);
40127 wxPyEndAllowThreads(__tstate);
40128 if (PyErr_Occurred()) SWIG_fail;
40129 }
40130 {
40131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40132 }
40133 return resultobj;
40134fail:
40135 return NULL;
d55e5bfc
RD
40136}
40137
40138
554f62e9
RD
40139SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40140 PyObject *resultobj = 0;
40141 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40142 bool result;
40143 void *argp1 = 0 ;
40144 int res1 = 0 ;
40145 PyObject *swig_obj[1] ;
40146
40147 if (!args) SWIG_fail;
40148 swig_obj[0] = args;
40149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40150 if (!SWIG_IsOK(res1)) {
40151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40152 }
40153 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40154 {
40155 PyThreadState* __tstate = wxPyBeginAllowThreads();
40156 result = (bool)(arg1)->EndContextHelp();
40157 wxPyEndAllowThreads(__tstate);
40158 if (PyErr_Occurred()) SWIG_fail;
40159 }
40160 {
40161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40162 }
40163 return resultobj;
40164fail:
40165 return NULL;
40166}
40167
40168
40169SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40170 PyObject *obj;
40171 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40172 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
40173 return SWIG_Py_Void();
40174}
40175
40176SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40177 return SWIG_Python_InitShadowInstance(args);
40178}
40179
40180SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40181 PyObject *resultobj = 0;
40182 wxWindow *arg1 = (wxWindow *) 0 ;
40183 int arg2 = (int) wxID_CONTEXT_HELP ;
40184 wxPoint const &arg3_defvalue = wxDefaultPosition ;
40185 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
40186 wxSize const &arg4_defvalue = wxDefaultSize ;
40187 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
40188 long arg5 = (long) wxBU_AUTODRAW ;
40189 wxContextHelpButton *result = 0 ;
40190 void *argp1 = 0 ;
40191 int res1 = 0 ;
40192 int val2 ;
40193 int ecode2 = 0 ;
40194 wxPoint temp3 ;
40195 wxSize temp4 ;
40196 long val5 ;
40197 int ecode5 = 0 ;
40198 PyObject * obj0 = 0 ;
40199 PyObject * obj1 = 0 ;
40200 PyObject * obj2 = 0 ;
40201 PyObject * obj3 = 0 ;
40202 PyObject * obj4 = 0 ;
40203 char * kwnames[] = {
40204 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
40205 };
40206
40207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40209 if (!SWIG_IsOK(res1)) {
40210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
40211 }
40212 arg1 = reinterpret_cast< wxWindow * >(argp1);
40213 if (obj1) {
40214 ecode2 = SWIG_AsVal_int(obj1, &val2);
40215 if (!SWIG_IsOK(ecode2)) {
40216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
40217 }
40218 arg2 = static_cast< int >(val2);
40219 }
40220 if (obj2) {
d55e5bfc 40221 {
554f62e9
RD
40222 arg3 = &temp3;
40223 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 40224 }
554f62e9
RD
40225 }
40226 if (obj3) {
d55e5bfc 40227 {
554f62e9
RD
40228 arg4 = &temp4;
40229 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 40230 }
554f62e9
RD
40231 }
40232 if (obj4) {
40233 ecode5 = SWIG_AsVal_long(obj4, &val5);
40234 if (!SWIG_IsOK(ecode5)) {
40235 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
40236 }
40237 arg5 = static_cast< long >(val5);
40238 }
40239 {
40240 if (!wxPyCheckForApp()) SWIG_fail;
40241 PyThreadState* __tstate = wxPyBeginAllowThreads();
40242 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40243 wxPyEndAllowThreads(__tstate);
40244 if (PyErr_Occurred()) SWIG_fail;
40245 }
40246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40247 return resultobj;
40248fail:
40249 return NULL;
d55e5bfc
RD
40250}
40251
40252
554f62e9
RD
40253SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40254 PyObject *obj;
40255 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40256 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40257 return SWIG_Py_Void();
d55e5bfc
RD
40258}
40259
554f62e9
RD
40260SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40261 return SWIG_Python_InitShadowInstance(args);
40262}
d55e5bfc 40263
f52cbe90
RD
40264SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40265 PyObject *resultobj = 0;
40266 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40267 void *argp1 = 0 ;
40268 int res1 = 0 ;
40269 PyObject *swig_obj[1] ;
40270
40271 if (!args) SWIG_fail;
40272 swig_obj[0] = args;
40273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40274 if (!SWIG_IsOK(res1)) {
40275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40276 }
40277 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40278 {
40279 PyThreadState* __tstate = wxPyBeginAllowThreads();
40280 delete arg1;
40281
40282 wxPyEndAllowThreads(__tstate);
40283 if (PyErr_Occurred()) SWIG_fail;
40284 }
40285 resultobj = SWIG_Py_Void();
40286 return resultobj;
40287fail:
40288 return NULL;
40289}
40290
40291
554f62e9
RD
40292SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40293 PyObject *resultobj = 0;
40294 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40295 wxHelpProvider *result = 0 ;
40296 int res1 = 0 ;
40297 PyObject * obj0 = 0 ;
40298 char * kwnames[] = {
40299 (char *) "helpProvider", NULL
40300 };
40301
40302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40303 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40304 if (!SWIG_IsOK(res1)) {
40305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40306 }
40307 {
40308 PyThreadState* __tstate = wxPyBeginAllowThreads();
40309 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40310 wxPyEndAllowThreads(__tstate);
40311 if (PyErr_Occurred()) SWIG_fail;
40312 }
40313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40314 return resultobj;
40315fail:
40316 return NULL;
d55e5bfc
RD
40317}
40318
40319
554f62e9
RD
40320SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40321 PyObject *resultobj = 0;
40322 wxHelpProvider *result = 0 ;
40323
40324 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40325 {
40326 PyThreadState* __tstate = wxPyBeginAllowThreads();
40327 result = (wxHelpProvider *)wxHelpProvider::Get();
40328 wxPyEndAllowThreads(__tstate);
40329 if (PyErr_Occurred()) SWIG_fail;
40330 }
40331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40332 return resultobj;
40333fail:
40334 return NULL;
40335}
40336
40337
40338SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40339 PyObject *resultobj = 0;
40340 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40341 wxWindow *arg2 = (wxWindow *) 0 ;
40342 wxString result;
40343 void *argp1 = 0 ;
40344 int res1 = 0 ;
40345 void *argp2 = 0 ;
40346 int res2 = 0 ;
40347 PyObject * obj0 = 0 ;
40348 PyObject * obj1 = 0 ;
40349 char * kwnames[] = {
40350 (char *) "self",(char *) "window", NULL
40351 };
40352
40353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40355 if (!SWIG_IsOK(res1)) {
40356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40357 }
40358 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40359 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40360 if (!SWIG_IsOK(res2)) {
40361 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40362 }
40363 arg2 = reinterpret_cast< wxWindow * >(argp2);
40364 {
40365 PyThreadState* __tstate = wxPyBeginAllowThreads();
40366 result = (arg1)->GetHelp((wxWindow const *)arg2);
40367 wxPyEndAllowThreads(__tstate);
40368 if (PyErr_Occurred()) SWIG_fail;
40369 }
40370 {
40371#if wxUSE_UNICODE
40372 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40373#else
40374 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40375#endif
40376 }
40377 return resultobj;
40378fail:
40379 return NULL;
40380}
40381
40382
40383SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40384 PyObject *resultobj = 0;
40385 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40386 wxWindow *arg2 = (wxWindow *) 0 ;
40387 bool result;
40388 void *argp1 = 0 ;
40389 int res1 = 0 ;
40390 void *argp2 = 0 ;
40391 int res2 = 0 ;
40392 PyObject * obj0 = 0 ;
40393 PyObject * obj1 = 0 ;
40394 char * kwnames[] = {
40395 (char *) "self",(char *) "window", NULL
40396 };
40397
40398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40400 if (!SWIG_IsOK(res1)) {
40401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40402 }
40403 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40404 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40405 if (!SWIG_IsOK(res2)) {
40406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40407 }
40408 arg2 = reinterpret_cast< wxWindow * >(argp2);
40409 {
40410 PyThreadState* __tstate = wxPyBeginAllowThreads();
40411 result = (bool)(arg1)->ShowHelp(arg2);
40412 wxPyEndAllowThreads(__tstate);
40413 if (PyErr_Occurred()) SWIG_fail;
40414 }
40415 {
40416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40417 }
40418 return resultobj;
40419fail:
40420 return NULL;
40421}
40422
40423
b850e7f3
RD
40424SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40425 PyObject *resultobj = 0;
40426 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40427 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40428 wxPoint *arg3 = 0 ;
40429 wxHelpEvent::Origin arg4 ;
40430 bool result;
40431 void *argp1 = 0 ;
40432 int res1 = 0 ;
40433 void *argp2 = 0 ;
40434 int res2 = 0 ;
40435 wxPoint temp3 ;
40436 int val4 ;
40437 int ecode4 = 0 ;
40438 PyObject * obj0 = 0 ;
40439 PyObject * obj1 = 0 ;
40440 PyObject * obj2 = 0 ;
40441 PyObject * obj3 = 0 ;
40442 char * kwnames[] = {
40443 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40444 };
40445
40446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40448 if (!SWIG_IsOK(res1)) {
40449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40450 }
40451 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40452 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40453 if (!SWIG_IsOK(res2)) {
40454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40455 }
40456 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40457 {
40458 arg3 = &temp3;
40459 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40460 }
40461 ecode4 = SWIG_AsVal_int(obj3, &val4);
40462 if (!SWIG_IsOK(ecode4)) {
40463 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40464 }
40465 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40466 {
40467 PyThreadState* __tstate = wxPyBeginAllowThreads();
40468 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40469 wxPyEndAllowThreads(__tstate);
40470 if (PyErr_Occurred()) SWIG_fail;
40471 }
40472 {
40473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40474 }
40475 return resultobj;
40476fail:
40477 return NULL;
40478}
40479
40480
554f62e9
RD
40481SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40482 PyObject *resultobj = 0;
40483 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40484 wxWindow *arg2 = (wxWindow *) 0 ;
40485 wxString *arg3 = 0 ;
40486 void *argp1 = 0 ;
40487 int res1 = 0 ;
40488 void *argp2 = 0 ;
40489 int res2 = 0 ;
40490 bool temp3 = false ;
40491 PyObject * obj0 = 0 ;
40492 PyObject * obj1 = 0 ;
40493 PyObject * obj2 = 0 ;
40494 char * kwnames[] = {
40495 (char *) "self",(char *) "window",(char *) "text", NULL
40496 };
40497
40498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40500 if (!SWIG_IsOK(res1)) {
40501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40502 }
40503 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40504 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40505 if (!SWIG_IsOK(res2)) {
40506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40507 }
40508 arg2 = reinterpret_cast< wxWindow * >(argp2);
40509 {
40510 arg3 = wxString_in_helper(obj2);
40511 if (arg3 == NULL) SWIG_fail;
40512 temp3 = true;
40513 }
40514 {
40515 PyThreadState* __tstate = wxPyBeginAllowThreads();
40516 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40517 wxPyEndAllowThreads(__tstate);
40518 if (PyErr_Occurred()) SWIG_fail;
40519 }
40520 resultobj = SWIG_Py_Void();
40521 {
40522 if (temp3)
40523 delete arg3;
40524 }
40525 return resultobj;
40526fail:
40527 {
40528 if (temp3)
40529 delete arg3;
40530 }
40531 return NULL;
40532}
40533
40534
40535SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40536 PyObject *resultobj = 0;
40537 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40538 int arg2 ;
40539 wxString *arg3 = 0 ;
40540 void *argp1 = 0 ;
40541 int res1 = 0 ;
40542 int val2 ;
40543 int ecode2 = 0 ;
40544 bool temp3 = false ;
40545 PyObject * obj0 = 0 ;
40546 PyObject * obj1 = 0 ;
40547 PyObject * obj2 = 0 ;
40548 char * kwnames[] = {
40549 (char *) "self",(char *) "id",(char *) "text", NULL
40550 };
40551
40552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40554 if (!SWIG_IsOK(res1)) {
40555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40556 }
40557 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40558 ecode2 = SWIG_AsVal_int(obj1, &val2);
40559 if (!SWIG_IsOK(ecode2)) {
40560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40561 }
40562 arg2 = static_cast< int >(val2);
40563 {
40564 arg3 = wxString_in_helper(obj2);
40565 if (arg3 == NULL) SWIG_fail;
40566 temp3 = true;
40567 }
40568 {
40569 PyThreadState* __tstate = wxPyBeginAllowThreads();
40570 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40571 wxPyEndAllowThreads(__tstate);
40572 if (PyErr_Occurred()) SWIG_fail;
40573 }
40574 resultobj = SWIG_Py_Void();
40575 {
40576 if (temp3)
40577 delete arg3;
40578 }
40579 return resultobj;
40580fail:
40581 {
40582 if (temp3)
40583 delete arg3;
40584 }
40585 return NULL;
40586}
40587
40588
40589SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40590 PyObject *resultobj = 0;
40591 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40592 wxWindow *arg2 = (wxWindow *) 0 ;
40593 void *argp1 = 0 ;
40594 int res1 = 0 ;
40595 void *argp2 = 0 ;
40596 int res2 = 0 ;
40597 PyObject * obj0 = 0 ;
40598 PyObject * obj1 = 0 ;
40599 char * kwnames[] = {
40600 (char *) "self",(char *) "window", NULL
40601 };
40602
40603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40605 if (!SWIG_IsOK(res1)) {
40606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40607 }
40608 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40609 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40610 if (!SWIG_IsOK(res2)) {
40611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40612 }
40613 arg2 = reinterpret_cast< wxWindow * >(argp2);
40614 {
40615 PyThreadState* __tstate = wxPyBeginAllowThreads();
40616 (arg1)->RemoveHelp(arg2);
40617 wxPyEndAllowThreads(__tstate);
40618 if (PyErr_Occurred()) SWIG_fail;
40619 }
40620 resultobj = SWIG_Py_Void();
40621 return resultobj;
40622fail:
40623 return NULL;
d55e5bfc
RD
40624}
40625
40626
554f62e9
RD
40627SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40628 PyObject *resultobj = 0;
40629 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40630 void *argp1 = 0 ;
40631 int res1 = 0 ;
40632 PyObject *swig_obj[1] ;
40633
40634 if (!args) SWIG_fail;
40635 swig_obj[0] = args;
40636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40637 if (!SWIG_IsOK(res1)) {
40638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40639 }
40640 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40641 {
40642 PyThreadState* __tstate = wxPyBeginAllowThreads();
40643 wxHelpProvider_Destroy(arg1);
40644 wxPyEndAllowThreads(__tstate);
40645 if (PyErr_Occurred()) SWIG_fail;
40646 }
40647 resultobj = SWIG_Py_Void();
40648 return resultobj;
40649fail:
40650 return NULL;
d55e5bfc
RD
40651}
40652
40653
554f62e9
RD
40654SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40655 PyObject *obj;
40656 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40657 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40658 return SWIG_Py_Void();
d55e5bfc
RD
40659}
40660
554f62e9
RD
40661SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40662 PyObject *resultobj = 0;
40663 wxSimpleHelpProvider *result = 0 ;
40664
40665 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40666 {
40667 PyThreadState* __tstate = wxPyBeginAllowThreads();
40668 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40669 wxPyEndAllowThreads(__tstate);
40670 if (PyErr_Occurred()) SWIG_fail;
40671 }
40672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40673 return resultobj;
40674fail:
40675 return NULL;
40676}
40677
40678
40679SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40680 PyObject *obj;
40681 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40682 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40683 return SWIG_Py_Void();
40684}
40685
40686SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40687 return SWIG_Python_InitShadowInstance(args);
40688}
40689
40690SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40691 PyObject *resultobj = 0;
40692 wxBitmap *arg1 = 0 ;
40693 wxCursor const &arg2_defvalue = wxNullCursor ;
40694 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40695 wxGenericDragImage *result = 0 ;
40696 void *argp1 = 0 ;
40697 int res1 = 0 ;
40698 void *argp2 = 0 ;
40699 int res2 = 0 ;
40700 PyObject * obj0 = 0 ;
40701 PyObject * obj1 = 0 ;
40702 char * kwnames[] = {
40703 (char *) "image",(char *) "cursor", NULL
40704 };
40705
40706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40707 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40708 if (!SWIG_IsOK(res1)) {
40709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40710 }
40711 if (!argp1) {
40712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40713 }
40714 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40715 if (obj1) {
40716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40717 if (!SWIG_IsOK(res2)) {
40718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 40719 }
554f62e9
RD
40720 if (!argp2) {
40721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 40722 }
554f62e9
RD
40723 arg2 = reinterpret_cast< wxCursor * >(argp2);
40724 }
40725 {
40726 if (!wxPyCheckForApp()) SWIG_fail;
40727 PyThreadState* __tstate = wxPyBeginAllowThreads();
40728 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40729 wxPyEndAllowThreads(__tstate);
40730 if (PyErr_Occurred()) SWIG_fail;
40731 }
40732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40733 return resultobj;
40734fail:
40735 return NULL;
40736}
40737
40738
40739SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40740 PyObject *resultobj = 0;
40741 wxIcon *arg1 = 0 ;
40742 wxCursor const &arg2_defvalue = wxNullCursor ;
40743 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40744 wxGenericDragImage *result = 0 ;
40745 void *argp1 = 0 ;
40746 int res1 = 0 ;
40747 void *argp2 = 0 ;
40748 int res2 = 0 ;
40749 PyObject * obj0 = 0 ;
40750 PyObject * obj1 = 0 ;
40751 char * kwnames[] = {
40752 (char *) "image",(char *) "cursor", NULL
40753 };
40754
40755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40756 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40757 if (!SWIG_IsOK(res1)) {
40758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40759 }
40760 if (!argp1) {
40761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40762 }
40763 arg1 = reinterpret_cast< wxIcon * >(argp1);
40764 if (obj1) {
40765 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40766 if (!SWIG_IsOK(res2)) {
40767 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40768 }
554f62e9
RD
40769 if (!argp2) {
40770 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40771 }
554f62e9
RD
40772 arg2 = reinterpret_cast< wxCursor * >(argp2);
40773 }
40774 {
40775 if (!wxPyCheckForApp()) SWIG_fail;
40776 PyThreadState* __tstate = wxPyBeginAllowThreads();
40777 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40778 wxPyEndAllowThreads(__tstate);
40779 if (PyErr_Occurred()) SWIG_fail;
40780 }
40781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40782 return resultobj;
40783fail:
40784 return NULL;
40785}
40786
40787
40788SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40789 PyObject *resultobj = 0;
40790 wxString *arg1 = 0 ;
40791 wxCursor const &arg2_defvalue = wxNullCursor ;
40792 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40793 wxGenericDragImage *result = 0 ;
40794 bool temp1 = false ;
40795 void *argp2 = 0 ;
40796 int res2 = 0 ;
40797 PyObject * obj0 = 0 ;
40798 PyObject * obj1 = 0 ;
40799 char * kwnames[] = {
40800 (char *) "str",(char *) "cursor", NULL
40801 };
40802
40803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40804 {
40805 arg1 = wxString_in_helper(obj0);
40806 if (arg1 == NULL) SWIG_fail;
40807 temp1 = true;
40808 }
40809 if (obj1) {
40810 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40811 if (!SWIG_IsOK(res2)) {
40812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40813 }
554f62e9
RD
40814 if (!argp2) {
40815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40816 }
554f62e9
RD
40817 arg2 = reinterpret_cast< wxCursor * >(argp2);
40818 }
40819 {
40820 if (!wxPyCheckForApp()) SWIG_fail;
40821 PyThreadState* __tstate = wxPyBeginAllowThreads();
40822 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40823 wxPyEndAllowThreads(__tstate);
40824 if (PyErr_Occurred()) SWIG_fail;
40825 }
40826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40827 {
40828 if (temp1)
40829 delete arg1;
40830 }
40831 return resultobj;
40832fail:
40833 {
40834 if (temp1)
40835 delete arg1;
40836 }
40837 return NULL;
40838}
40839
40840
40841SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40842 PyObject *resultobj = 0;
40843 wxPyTreeCtrl *arg1 = 0 ;
40844 wxTreeItemId *arg2 = 0 ;
40845 wxGenericDragImage *result = 0 ;
40846 void *argp1 = 0 ;
40847 int res1 = 0 ;
40848 void *argp2 = 0 ;
40849 int res2 = 0 ;
40850 PyObject * obj0 = 0 ;
40851 PyObject * obj1 = 0 ;
40852 char * kwnames[] = {
40853 (char *) "treeCtrl",(char *) "id", NULL
40854 };
40855
40856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40857 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40858 if (!SWIG_IsOK(res1)) {
40859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40860 }
40861 if (!argp1) {
40862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40863 }
40864 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40865 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40866 if (!SWIG_IsOK(res2)) {
40867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40868 }
40869 if (!argp2) {
40870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40871 }
40872 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40873 {
40874 if (!wxPyCheckForApp()) SWIG_fail;
40875 PyThreadState* __tstate = wxPyBeginAllowThreads();
40876 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40877 wxPyEndAllowThreads(__tstate);
40878 if (PyErr_Occurred()) SWIG_fail;
40879 }
40880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40881 return resultobj;
40882fail:
40883 return NULL;
40884}
40885
40886
40887SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40888 PyObject *resultobj = 0;
40889 wxPyListCtrl *arg1 = 0 ;
40890 long arg2 ;
40891 wxGenericDragImage *result = 0 ;
40892 void *argp1 = 0 ;
40893 int res1 = 0 ;
40894 long val2 ;
40895 int ecode2 = 0 ;
40896 PyObject * obj0 = 0 ;
40897 PyObject * obj1 = 0 ;
40898 char * kwnames[] = {
40899 (char *) "listCtrl",(char *) "id", NULL
40900 };
40901
40902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40903 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40904 if (!SWIG_IsOK(res1)) {
40905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40906 }
40907 if (!argp1) {
40908 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40909 }
40910 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40911 ecode2 = SWIG_AsVal_long(obj1, &val2);
40912 if (!SWIG_IsOK(ecode2)) {
40913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40914 }
40915 arg2 = static_cast< long >(val2);
40916 {
40917 if (!wxPyCheckForApp()) SWIG_fail;
40918 PyThreadState* __tstate = wxPyBeginAllowThreads();
40919 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40920 wxPyEndAllowThreads(__tstate);
40921 if (PyErr_Occurred()) SWIG_fail;
40922 }
40923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40924 return resultobj;
40925fail:
40926 return NULL;
d55e5bfc
RD
40927}
40928
40929
554f62e9
RD
40930SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40931 PyObject *resultobj = 0;
40932 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40933 void *argp1 = 0 ;
40934 int res1 = 0 ;
40935 PyObject *swig_obj[1] ;
40936
40937 if (!args) SWIG_fail;
40938 swig_obj[0] = args;
40939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40940 if (!SWIG_IsOK(res1)) {
40941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40942 }
40943 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40944 {
40945 PyThreadState* __tstate = wxPyBeginAllowThreads();
40946 delete arg1;
d55e5bfc 40947
554f62e9
RD
40948 wxPyEndAllowThreads(__tstate);
40949 if (PyErr_Occurred()) SWIG_fail;
40950 }
40951 resultobj = SWIG_Py_Void();
40952 return resultobj;
40953fail:
40954 return NULL;
40955}
40956
40957
40958SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40959 PyObject *resultobj = 0;
40960 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40961 wxBitmap *arg2 = (wxBitmap *) 0 ;
40962 void *argp1 = 0 ;
40963 int res1 = 0 ;
40964 void *argp2 = 0 ;
40965 int res2 = 0 ;
40966 PyObject * obj0 = 0 ;
40967 PyObject * obj1 = 0 ;
40968 char * kwnames[] = {
40969 (char *) "self",(char *) "bitmap", NULL
40970 };
40971
40972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40974 if (!SWIG_IsOK(res1)) {
40975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40976 }
40977 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40978 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40979 if (!SWIG_IsOK(res2)) {
40980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40981 }
40982 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40983 {
40984 PyThreadState* __tstate = wxPyBeginAllowThreads();
40985 (arg1)->SetBackingBitmap(arg2);
40986 wxPyEndAllowThreads(__tstate);
40987 if (PyErr_Occurred()) SWIG_fail;
40988 }
40989 resultobj = SWIG_Py_Void();
40990 return resultobj;
40991fail:
40992 return NULL;
40993}
40994
40995
40996SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40997 PyObject *resultobj = 0;
40998 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40999 wxPoint *arg2 = 0 ;
41000 wxWindow *arg3 = (wxWindow *) 0 ;
41001 bool arg4 = (bool) false ;
41002 wxRect *arg5 = (wxRect *) NULL ;
41003 bool result;
41004 void *argp1 = 0 ;
41005 int res1 = 0 ;
41006 wxPoint temp2 ;
41007 void *argp3 = 0 ;
41008 int res3 = 0 ;
41009 bool val4 ;
41010 int ecode4 = 0 ;
41011 void *argp5 = 0 ;
41012 int res5 = 0 ;
41013 PyObject * obj0 = 0 ;
41014 PyObject * obj1 = 0 ;
41015 PyObject * obj2 = 0 ;
41016 PyObject * obj3 = 0 ;
41017 PyObject * obj4 = 0 ;
41018 char * kwnames[] = {
41019 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
41020 };
41021
41022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41024 if (!SWIG_IsOK(res1)) {
41025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41026 }
41027 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41028 {
41029 arg2 = &temp2;
41030 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41031 }
41032 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41033 if (!SWIG_IsOK(res3)) {
41034 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
41035 }
41036 arg3 = reinterpret_cast< wxWindow * >(argp3);
41037 if (obj3) {
41038 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41039 if (!SWIG_IsOK(ecode4)) {
41040 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
41041 }
41042 arg4 = static_cast< bool >(val4);
41043 }
41044 if (obj4) {
41045 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
41046 if (!SWIG_IsOK(res5)) {
41047 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d55e5bfc 41048 }
554f62e9
RD
41049 arg5 = reinterpret_cast< wxRect * >(argp5);
41050 }
41051 {
41052 PyThreadState* __tstate = wxPyBeginAllowThreads();
41053 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
41054 wxPyEndAllowThreads(__tstate);
41055 if (PyErr_Occurred()) SWIG_fail;
41056 }
41057 {
41058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41059 }
41060 return resultobj;
41061fail:
41062 return NULL;
41063}
41064
41065
41066SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41067 PyObject *resultobj = 0;
41068 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41069 wxPoint *arg2 = 0 ;
41070 wxWindow *arg3 = (wxWindow *) 0 ;
41071 wxWindow *arg4 = (wxWindow *) 0 ;
41072 bool result;
41073 void *argp1 = 0 ;
41074 int res1 = 0 ;
41075 wxPoint temp2 ;
41076 void *argp3 = 0 ;
41077 int res3 = 0 ;
41078 void *argp4 = 0 ;
41079 int res4 = 0 ;
41080 PyObject * obj0 = 0 ;
41081 PyObject * obj1 = 0 ;
41082 PyObject * obj2 = 0 ;
41083 PyObject * obj3 = 0 ;
41084 char * kwnames[] = {
41085 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
41086 };
41087
41088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41090 if (!SWIG_IsOK(res1)) {
41091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41092 }
41093 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41094 {
41095 arg2 = &temp2;
41096 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41097 }
41098 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41099 if (!SWIG_IsOK(res3)) {
41100 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
41101 }
41102 arg3 = reinterpret_cast< wxWindow * >(argp3);
41103 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
41104 if (!SWIG_IsOK(res4)) {
41105 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
41106 }
41107 arg4 = reinterpret_cast< wxWindow * >(argp4);
41108 {
41109 PyThreadState* __tstate = wxPyBeginAllowThreads();
41110 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
41111 wxPyEndAllowThreads(__tstate);
41112 if (PyErr_Occurred()) SWIG_fail;
41113 }
41114 {
41115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41116 }
41117 return resultobj;
41118fail:
41119 return NULL;
d55e5bfc
RD
41120}
41121
41122
554f62e9
RD
41123SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41124 PyObject *resultobj = 0;
41125 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41126 bool result;
41127 void *argp1 = 0 ;
41128 int res1 = 0 ;
41129 PyObject *swig_obj[1] ;
41130
41131 if (!args) SWIG_fail;
41132 swig_obj[0] = args;
41133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41134 if (!SWIG_IsOK(res1)) {
41135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41136 }
41137 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41138 {
41139 PyThreadState* __tstate = wxPyBeginAllowThreads();
41140 result = (bool)(arg1)->EndDrag();
41141 wxPyEndAllowThreads(__tstate);
41142 if (PyErr_Occurred()) SWIG_fail;
41143 }
41144 {
41145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41146 }
41147 return resultobj;
41148fail:
41149 return NULL;
41150}
41151
41152
41153SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41154 PyObject *resultobj = 0;
41155 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41156 wxPoint *arg2 = 0 ;
41157 bool result;
41158 void *argp1 = 0 ;
41159 int res1 = 0 ;
41160 wxPoint temp2 ;
41161 PyObject * obj0 = 0 ;
41162 PyObject * obj1 = 0 ;
41163 char * kwnames[] = {
41164 (char *) "self",(char *) "pt", NULL
41165 };
41166
41167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
41168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41169 if (!SWIG_IsOK(res1)) {
41170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41171 }
41172 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41173 {
41174 arg2 = &temp2;
41175 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41176 }
41177 {
41178 PyThreadState* __tstate = wxPyBeginAllowThreads();
41179 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
41180 wxPyEndAllowThreads(__tstate);
41181 if (PyErr_Occurred()) SWIG_fail;
41182 }
41183 {
41184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41185 }
41186 return resultobj;
41187fail:
41188 return NULL;
d55e5bfc
RD
41189}
41190
41191
554f62e9
RD
41192SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41193 PyObject *resultobj = 0;
41194 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41195 bool result;
41196 void *argp1 = 0 ;
41197 int res1 = 0 ;
41198 PyObject *swig_obj[1] ;
41199
41200 if (!args) SWIG_fail;
41201 swig_obj[0] = args;
41202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41203 if (!SWIG_IsOK(res1)) {
41204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41205 }
41206 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41207 {
41208 PyThreadState* __tstate = wxPyBeginAllowThreads();
41209 result = (bool)(arg1)->Show();
41210 wxPyEndAllowThreads(__tstate);
41211 if (PyErr_Occurred()) SWIG_fail;
41212 }
41213 {
41214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41215 }
41216 return resultobj;
41217fail:
41218 return NULL;
d55e5bfc
RD
41219}
41220
41221
554f62e9
RD
41222SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41223 PyObject *resultobj = 0;
41224 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41225 bool result;
41226 void *argp1 = 0 ;
41227 int res1 = 0 ;
41228 PyObject *swig_obj[1] ;
41229
41230 if (!args) SWIG_fail;
41231 swig_obj[0] = args;
41232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41233 if (!SWIG_IsOK(res1)) {
41234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41235 }
41236 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41237 {
41238 PyThreadState* __tstate = wxPyBeginAllowThreads();
41239 result = (bool)(arg1)->Hide();
41240 wxPyEndAllowThreads(__tstate);
41241 if (PyErr_Occurred()) SWIG_fail;
41242 }
41243 {
41244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41245 }
41246 return resultobj;
41247fail:
41248 return NULL;
41249}
41250
41251
41252SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41253 PyObject *resultobj = 0;
41254 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41255 wxPoint *arg2 = 0 ;
41256 wxRect result;
41257 void *argp1 = 0 ;
41258 int res1 = 0 ;
41259 wxPoint temp2 ;
41260 PyObject * obj0 = 0 ;
41261 PyObject * obj1 = 0 ;
41262 char * kwnames[] = {
41263 (char *) "self",(char *) "pos", NULL
41264 };
41265
41266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41268 if (!SWIG_IsOK(res1)) {
41269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41270 }
41271 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41272 {
41273 arg2 = &temp2;
41274 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41275 }
41276 {
41277 PyThreadState* __tstate = wxPyBeginAllowThreads();
41278 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41279 wxPyEndAllowThreads(__tstate);
41280 if (PyErr_Occurred()) SWIG_fail;
41281 }
41282 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41283 return resultobj;
41284fail:
41285 return NULL;
41286}
41287
41288
41289SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41290 PyObject *resultobj = 0;
41291 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41292 wxDC *arg2 = 0 ;
41293 wxPoint *arg3 = 0 ;
41294 bool result;
41295 void *argp1 = 0 ;
41296 int res1 = 0 ;
41297 void *argp2 = 0 ;
41298 int res2 = 0 ;
41299 wxPoint temp3 ;
41300 PyObject * obj0 = 0 ;
41301 PyObject * obj1 = 0 ;
41302 PyObject * obj2 = 0 ;
41303 char * kwnames[] = {
41304 (char *) "self",(char *) "dc",(char *) "pos", NULL
41305 };
41306
41307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41309 if (!SWIG_IsOK(res1)) {
41310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41311 }
41312 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41313 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41314 if (!SWIG_IsOK(res2)) {
41315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41316 }
41317 if (!argp2) {
41318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41319 }
41320 arg2 = reinterpret_cast< wxDC * >(argp2);
41321 {
41322 arg3 = &temp3;
41323 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41324 }
41325 {
41326 PyThreadState* __tstate = wxPyBeginAllowThreads();
41327 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41328 wxPyEndAllowThreads(__tstate);
41329 if (PyErr_Occurred()) SWIG_fail;
41330 }
41331 {
41332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41333 }
41334 return resultobj;
41335fail:
41336 return NULL;
41337}
41338
41339
41340SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41341 PyObject *resultobj = 0;
41342 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41343 wxDC *arg2 = 0 ;
41344 wxMemoryDC *arg3 = 0 ;
41345 wxRect *arg4 = 0 ;
41346 wxRect *arg5 = 0 ;
41347 bool result;
41348 void *argp1 = 0 ;
41349 int res1 = 0 ;
41350 void *argp2 = 0 ;
41351 int res2 = 0 ;
41352 void *argp3 = 0 ;
41353 int res3 = 0 ;
41354 wxRect temp4 ;
41355 wxRect temp5 ;
41356 PyObject * obj0 = 0 ;
41357 PyObject * obj1 = 0 ;
41358 PyObject * obj2 = 0 ;
41359 PyObject * obj3 = 0 ;
41360 PyObject * obj4 = 0 ;
41361 char * kwnames[] = {
41362 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41363 };
41364
41365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41367 if (!SWIG_IsOK(res1)) {
41368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41369 }
41370 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41371 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41372 if (!SWIG_IsOK(res2)) {
41373 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41374 }
41375 if (!argp2) {
41376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41377 }
41378 arg2 = reinterpret_cast< wxDC * >(argp2);
41379 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41380 if (!SWIG_IsOK(res3)) {
41381 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41382 }
41383 if (!argp3) {
41384 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41385 }
41386 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41387 {
41388 arg4 = &temp4;
41389 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41390 }
41391 {
41392 arg5 = &temp5;
41393 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41394 }
41395 {
41396 PyThreadState* __tstate = wxPyBeginAllowThreads();
41397 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41398 wxPyEndAllowThreads(__tstate);
41399 if (PyErr_Occurred()) SWIG_fail;
41400 }
41401 {
41402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41403 }
41404 return resultobj;
41405fail:
41406 return NULL;
41407}
41408
41409
41410SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41411 PyObject *resultobj = 0;
41412 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41413 wxPoint *arg2 = 0 ;
41414 wxPoint *arg3 = 0 ;
41415 bool arg4 ;
41416 bool arg5 ;
41417 bool result;
41418 void *argp1 = 0 ;
41419 int res1 = 0 ;
41420 wxPoint temp2 ;
41421 wxPoint temp3 ;
41422 bool val4 ;
41423 int ecode4 = 0 ;
41424 bool val5 ;
41425 int ecode5 = 0 ;
41426 PyObject * obj0 = 0 ;
41427 PyObject * obj1 = 0 ;
41428 PyObject * obj2 = 0 ;
41429 PyObject * obj3 = 0 ;
41430 PyObject * obj4 = 0 ;
41431 char * kwnames[] = {
41432 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41433 };
41434
41435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41437 if (!SWIG_IsOK(res1)) {
41438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41439 }
41440 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41441 {
41442 arg2 = &temp2;
41443 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41444 }
41445 {
41446 arg3 = &temp3;
41447 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41448 }
41449 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41450 if (!SWIG_IsOK(ecode4)) {
41451 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41452 }
41453 arg4 = static_cast< bool >(val4);
41454 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41455 if (!SWIG_IsOK(ecode5)) {
41456 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41457 }
41458 arg5 = static_cast< bool >(val5);
41459 {
41460 PyThreadState* __tstate = wxPyBeginAllowThreads();
41461 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41462 wxPyEndAllowThreads(__tstate);
41463 if (PyErr_Occurred()) SWIG_fail;
41464 }
41465 {
41466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41467 }
41468 return resultobj;
41469fail:
41470 return NULL;
d55e5bfc
RD
41471}
41472
41473
554f62e9
RD
41474SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41475 PyObject *obj;
41476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41477 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41478 return SWIG_Py_Void();
d55e5bfc
RD
41479}
41480
554f62e9
RD
41481SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41482 return SWIG_Python_InitShadowInstance(args);
41483}
d55e5bfc 41484
554f62e9
RD
41485SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41486 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41487 return 1;
d55e5bfc
RD
41488}
41489
41490
554f62e9
RD
41491SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41492 PyObject *pyobj = 0;
41493
41494 {
41495#if wxUSE_UNICODE
41496 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41497#else
41498 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41499#endif
41500 }
41501 return pyobj;
41502}
41503
41504
41505SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41506 PyObject *resultobj = 0;
41507 wxWindow *arg1 = (wxWindow *) 0 ;
41508 int arg2 = (int) -1 ;
41509 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41510 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41511 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41512 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41513 wxSize const &arg5_defvalue = wxDefaultSize ;
41514 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41515 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41516 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41517 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41518 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41519 wxString *arg8 = (wxString *) &arg8_defvalue ;
41520 wxDatePickerCtrl *result = 0 ;
41521 void *argp1 = 0 ;
41522 int res1 = 0 ;
41523 int val2 ;
41524 int ecode2 = 0 ;
41525 void *argp3 = 0 ;
41526 int res3 = 0 ;
41527 wxPoint temp4 ;
41528 wxSize temp5 ;
41529 long val6 ;
41530 int ecode6 = 0 ;
41531 void *argp7 = 0 ;
41532 int res7 = 0 ;
41533 bool temp8 = false ;
41534 PyObject * obj0 = 0 ;
41535 PyObject * obj1 = 0 ;
41536 PyObject * obj2 = 0 ;
41537 PyObject * obj3 = 0 ;
41538 PyObject * obj4 = 0 ;
41539 PyObject * obj5 = 0 ;
41540 PyObject * obj6 = 0 ;
41541 PyObject * obj7 = 0 ;
41542 char * kwnames[] = {
41543 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41544 };
41545
41546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41548 if (!SWIG_IsOK(res1)) {
41549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41550 }
41551 arg1 = reinterpret_cast< wxWindow * >(argp1);
41552 if (obj1) {
41553 ecode2 = SWIG_AsVal_int(obj1, &val2);
41554 if (!SWIG_IsOK(ecode2)) {
41555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41556 }
41557 arg2 = static_cast< int >(val2);
41558 }
41559 if (obj2) {
41560 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41561 if (!SWIG_IsOK(res3)) {
41562 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41563 }
554f62e9
RD
41564 if (!argp3) {
41565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41566 }
554f62e9
RD
41567 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41568 }
41569 if (obj3) {
d55e5bfc 41570 {
554f62e9
RD
41571 arg4 = &temp4;
41572 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 41573 }
554f62e9
RD
41574 }
41575 if (obj4) {
093d3ff1 41576 {
554f62e9
RD
41577 arg5 = &temp5;
41578 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 41579 }
554f62e9
RD
41580 }
41581 if (obj5) {
41582 ecode6 = SWIG_AsVal_long(obj5, &val6);
41583 if (!SWIG_IsOK(ecode6)) {
41584 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41585 }
41586 arg6 = static_cast< long >(val6);
41587 }
41588 if (obj6) {
41589 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41590 if (!SWIG_IsOK(res7)) {
41591 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 41592 }
554f62e9
RD
41593 if (!argp7) {
41594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 41595 }
554f62e9
RD
41596 arg7 = reinterpret_cast< wxValidator * >(argp7);
41597 }
41598 if (obj7) {
d55e5bfc 41599 {
554f62e9
RD
41600 arg8 = wxString_in_helper(obj7);
41601 if (arg8 == NULL) SWIG_fail;
41602 temp8 = true;
d55e5bfc 41603 }
554f62e9
RD
41604 }
41605 {
41606 if (!wxPyCheckForApp()) SWIG_fail;
41607 PyThreadState* __tstate = wxPyBeginAllowThreads();
41608 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41609 wxPyEndAllowThreads(__tstate);
41610 if (PyErr_Occurred()) SWIG_fail;
41611 }
41612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41613 {
41614 if (temp8)
41615 delete arg8;
41616 }
41617 return resultobj;
41618fail:
41619 {
41620 if (temp8)
41621 delete arg8;
41622 }
41623 return NULL;
d55e5bfc
RD
41624}
41625
41626
554f62e9
RD
41627SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41628 PyObject *resultobj = 0;
41629 wxDatePickerCtrl *result = 0 ;
41630
41631 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41632 {
41633 if (!wxPyCheckForApp()) SWIG_fail;
41634 PyThreadState* __tstate = wxPyBeginAllowThreads();
41635 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41636 wxPyEndAllowThreads(__tstate);
41637 if (PyErr_Occurred()) SWIG_fail;
41638 }
41639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41640 return resultobj;
41641fail:
41642 return NULL;
41643}
41644
41645
41646SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41647 PyObject *resultobj = 0;
41648 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41649 wxWindow *arg2 = (wxWindow *) 0 ;
41650 int arg3 = (int) -1 ;
41651 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41652 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41653 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41654 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41655 wxSize const &arg6_defvalue = wxDefaultSize ;
41656 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41657 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41658 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41659 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41660 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41661 wxString *arg9 = (wxString *) &arg9_defvalue ;
41662 bool result;
41663 void *argp1 = 0 ;
41664 int res1 = 0 ;
41665 void *argp2 = 0 ;
41666 int res2 = 0 ;
41667 int val3 ;
41668 int ecode3 = 0 ;
41669 void *argp4 = 0 ;
41670 int res4 = 0 ;
41671 wxPoint temp5 ;
41672 wxSize temp6 ;
41673 long val7 ;
41674 int ecode7 = 0 ;
41675 void *argp8 = 0 ;
41676 int res8 = 0 ;
41677 bool temp9 = false ;
41678 PyObject * obj0 = 0 ;
41679 PyObject * obj1 = 0 ;
41680 PyObject * obj2 = 0 ;
41681 PyObject * obj3 = 0 ;
41682 PyObject * obj4 = 0 ;
41683 PyObject * obj5 = 0 ;
41684 PyObject * obj6 = 0 ;
41685 PyObject * obj7 = 0 ;
41686 PyObject * obj8 = 0 ;
41687 char * kwnames[] = {
41688 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41689 };
41690
41691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41693 if (!SWIG_IsOK(res1)) {
41694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41695 }
41696 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41697 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41698 if (!SWIG_IsOK(res2)) {
41699 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41700 }
41701 arg2 = reinterpret_cast< wxWindow * >(argp2);
41702 if (obj2) {
41703 ecode3 = SWIG_AsVal_int(obj2, &val3);
41704 if (!SWIG_IsOK(ecode3)) {
41705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41706 }
41707 arg3 = static_cast< int >(val3);
41708 }
41709 if (obj3) {
41710 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41711 if (!SWIG_IsOK(res4)) {
41712 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
093d3ff1 41713 }
554f62e9
RD
41714 if (!argp4) {
41715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 41716 }
554f62e9
RD
41717 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41718 }
41719 if (obj4) {
093d3ff1 41720 {
554f62e9
RD
41721 arg5 = &temp5;
41722 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 41723 }
554f62e9
RD
41724 }
41725 if (obj5) {
d55e5bfc 41726 {
554f62e9
RD
41727 arg6 = &temp6;
41728 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 41729 }
554f62e9
RD
41730 }
41731 if (obj6) {
41732 ecode7 = SWIG_AsVal_long(obj6, &val7);
41733 if (!SWIG_IsOK(ecode7)) {
41734 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41735 }
41736 arg7 = static_cast< long >(val7);
41737 }
41738 if (obj7) {
41739 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41740 if (!SWIG_IsOK(res8)) {
41741 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41742 }
41743 if (!argp8) {
41744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 41745 }
554f62e9
RD
41746 arg8 = reinterpret_cast< wxValidator * >(argp8);
41747 }
41748 if (obj8) {
d55e5bfc 41749 {
554f62e9
RD
41750 arg9 = wxString_in_helper(obj8);
41751 if (arg9 == NULL) SWIG_fail;
41752 temp9 = true;
d55e5bfc 41753 }
554f62e9
RD
41754 }
41755 {
41756 PyThreadState* __tstate = wxPyBeginAllowThreads();
41757 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41758 wxPyEndAllowThreads(__tstate);
41759 if (PyErr_Occurred()) SWIG_fail;
41760 }
41761 {
41762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41763 }
41764 {
41765 if (temp9)
41766 delete arg9;
41767 }
41768 return resultobj;
41769fail:
41770 {
41771 if (temp9)
41772 delete arg9;
41773 }
41774 return NULL;
41775}
41776
41777
41778SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41779 PyObject *resultobj = 0;
41780 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41781 wxDateTime *arg2 = 0 ;
41782 void *argp1 = 0 ;
41783 int res1 = 0 ;
41784 void *argp2 = 0 ;
41785 int res2 = 0 ;
41786 PyObject * obj0 = 0 ;
41787 PyObject * obj1 = 0 ;
41788 char * kwnames[] = {
41789 (char *) "self",(char *) "dt", NULL
41790 };
41791
41792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41794 if (!SWIG_IsOK(res1)) {
41795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41796 }
41797 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41798 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41799 if (!SWIG_IsOK(res2)) {
41800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41801 }
41802 if (!argp2) {
41803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41804 }
41805 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41806 {
41807 PyThreadState* __tstate = wxPyBeginAllowThreads();
41808 (arg1)->SetValue((wxDateTime const &)*arg2);
41809 wxPyEndAllowThreads(__tstate);
41810 if (PyErr_Occurred()) SWIG_fail;
41811 }
41812 resultobj = SWIG_Py_Void();
41813 return resultobj;
41814fail:
41815 return NULL;
d55e5bfc
RD
41816}
41817
41818
554f62e9
RD
41819SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41820 PyObject *resultobj = 0;
41821 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41822 wxDateTime result;
41823 void *argp1 = 0 ;
41824 int res1 = 0 ;
41825 PyObject *swig_obj[1] ;
41826
41827 if (!args) SWIG_fail;
41828 swig_obj[0] = args;
41829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41830 if (!SWIG_IsOK(res1)) {
41831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41832 }
41833 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41834 {
41835 PyThreadState* __tstate = wxPyBeginAllowThreads();
41836 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41837 wxPyEndAllowThreads(__tstate);
41838 if (PyErr_Occurred()) SWIG_fail;
41839 }
41840 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41841 return resultobj;
41842fail:
41843 return NULL;
41844}
41845
41846
41847SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41848 PyObject *resultobj = 0;
41849 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41850 wxDateTime *arg2 = 0 ;
41851 wxDateTime *arg3 = 0 ;
41852 void *argp1 = 0 ;
41853 int res1 = 0 ;
41854 void *argp2 = 0 ;
41855 int res2 = 0 ;
41856 void *argp3 = 0 ;
41857 int res3 = 0 ;
41858 PyObject * obj0 = 0 ;
41859 PyObject * obj1 = 0 ;
41860 PyObject * obj2 = 0 ;
41861 char * kwnames[] = {
41862 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41863 };
41864
41865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41867 if (!SWIG_IsOK(res1)) {
41868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41869 }
41870 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41871 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41872 if (!SWIG_IsOK(res2)) {
41873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41874 }
41875 if (!argp2) {
41876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41877 }
41878 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41879 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41880 if (!SWIG_IsOK(res3)) {
41881 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41882 }
41883 if (!argp3) {
41884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41885 }
41886 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41887 {
41888 PyThreadState* __tstate = wxPyBeginAllowThreads();
41889 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41890 wxPyEndAllowThreads(__tstate);
41891 if (PyErr_Occurred()) SWIG_fail;
41892 }
41893 resultobj = SWIG_Py_Void();
41894 return resultobj;
41895fail:
41896 return NULL;
d55e5bfc
RD
41897}
41898
41899
554f62e9
RD
41900SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41901 PyObject *resultobj = 0;
41902 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41903 wxDateTime result;
41904 void *argp1 = 0 ;
41905 int res1 = 0 ;
41906 PyObject *swig_obj[1] ;
41907
41908 if (!args) SWIG_fail;
41909 swig_obj[0] = args;
41910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41911 if (!SWIG_IsOK(res1)) {
41912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41913 }
41914 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41915 {
41916 PyThreadState* __tstate = wxPyBeginAllowThreads();
41917 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41918 wxPyEndAllowThreads(__tstate);
41919 if (PyErr_Occurred()) SWIG_fail;
41920 }
41921 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41922 return resultobj;
41923fail:
41924 return NULL;
d55e5bfc
RD
41925}
41926
41927
554f62e9
RD
41928SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41929 PyObject *resultobj = 0;
41930 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41931 wxDateTime result;
41932 void *argp1 = 0 ;
41933 int res1 = 0 ;
41934 PyObject *swig_obj[1] ;
41935
41936 if (!args) SWIG_fail;
41937 swig_obj[0] = args;
41938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41939 if (!SWIG_IsOK(res1)) {
41940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41941 }
41942 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41943 {
41944 PyThreadState* __tstate = wxPyBeginAllowThreads();
41945 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41946 wxPyEndAllowThreads(__tstate);
41947 if (PyErr_Occurred()) SWIG_fail;
41948 }
41949 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41950 return resultobj;
41951fail:
41952 return NULL;
d55e5bfc
RD
41953}
41954
41955
554f62e9
RD
41956SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41957 PyObject *obj;
41958 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41959 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41960 return SWIG_Py_Void();
d55e5bfc
RD
41961}
41962
554f62e9
RD
41963SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41964 return SWIG_Python_InitShadowInstance(args);
41965}
d55e5bfc 41966
704eda0c
RD
41967SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41968 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41969 return 1;
41970}
41971
41972
41973SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41974 PyObject *pyobj = 0;
41975
41976 {
41977#if wxUSE_UNICODE
41978 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41979#else
41980 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41981#endif
41982 }
41983 return pyobj;
41984}
41985
41986
41987SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41988 PyObject *resultobj = 0;
41989 wxWindow *arg1 = (wxWindow *) 0 ;
41990 int arg2 ;
41991 wxString *arg3 = 0 ;
41992 wxString *arg4 = 0 ;
41993 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41994 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41995 wxSize const &arg6_defvalue = wxDefaultSize ;
41996 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41997 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41998 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41999 wxString *arg8 = (wxString *) &arg8_defvalue ;
42000 wxHyperlinkCtrl *result = 0 ;
42001 void *argp1 = 0 ;
42002 int res1 = 0 ;
42003 int val2 ;
42004 int ecode2 = 0 ;
42005 bool temp3 = false ;
42006 bool temp4 = false ;
42007 wxPoint temp5 ;
42008 wxSize temp6 ;
42009 long val7 ;
42010 int ecode7 = 0 ;
42011 bool temp8 = false ;
42012 PyObject * obj0 = 0 ;
42013 PyObject * obj1 = 0 ;
42014 PyObject * obj2 = 0 ;
42015 PyObject * obj3 = 0 ;
42016 PyObject * obj4 = 0 ;
42017 PyObject * obj5 = 0 ;
42018 PyObject * obj6 = 0 ;
42019 PyObject * obj7 = 0 ;
42020 char * kwnames[] = {
42021 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42022 };
42023
42024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42026 if (!SWIG_IsOK(res1)) {
42027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42028 }
42029 arg1 = reinterpret_cast< wxWindow * >(argp1);
42030 ecode2 = SWIG_AsVal_int(obj1, &val2);
42031 if (!SWIG_IsOK(ecode2)) {
42032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
42033 }
42034 arg2 = static_cast< int >(val2);
42035 {
42036 arg3 = wxString_in_helper(obj2);
42037 if (arg3 == NULL) SWIG_fail;
42038 temp3 = true;
42039 }
42040 {
42041 arg4 = wxString_in_helper(obj3);
42042 if (arg4 == NULL) SWIG_fail;
42043 temp4 = true;
42044 }
42045 if (obj4) {
42046 {
42047 arg5 = &temp5;
42048 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42049 }
42050 }
42051 if (obj5) {
42052 {
42053 arg6 = &temp6;
42054 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42055 }
42056 }
42057 if (obj6) {
42058 ecode7 = SWIG_AsVal_long(obj6, &val7);
42059 if (!SWIG_IsOK(ecode7)) {
42060 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
42061 }
42062 arg7 = static_cast< long >(val7);
42063 }
42064 if (obj7) {
42065 {
42066 arg8 = wxString_in_helper(obj7);
42067 if (arg8 == NULL) SWIG_fail;
42068 temp8 = true;
42069 }
42070 }
42071 {
42072 if (!wxPyCheckForApp()) SWIG_fail;
42073 PyThreadState* __tstate = wxPyBeginAllowThreads();
42074 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
42075 wxPyEndAllowThreads(__tstate);
42076 if (PyErr_Occurred()) SWIG_fail;
42077 }
42078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
42079 {
42080 if (temp3)
42081 delete arg3;
42082 }
42083 {
42084 if (temp4)
42085 delete arg4;
42086 }
42087 {
42088 if (temp8)
42089 delete arg8;
42090 }
42091 return resultobj;
42092fail:
42093 {
42094 if (temp3)
42095 delete arg3;
42096 }
42097 {
42098 if (temp4)
42099 delete arg4;
42100 }
42101 {
42102 if (temp8)
42103 delete arg8;
42104 }
42105 return NULL;
42106}
42107
42108
42109SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42110 PyObject *resultobj = 0;
42111 wxHyperlinkCtrl *result = 0 ;
42112
42113 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
42114 {
42115 if (!wxPyCheckForApp()) SWIG_fail;
42116 PyThreadState* __tstate = wxPyBeginAllowThreads();
42117 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
42118 wxPyEndAllowThreads(__tstate);
42119 if (PyErr_Occurred()) SWIG_fail;
42120 }
42121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
42122 return resultobj;
42123fail:
42124 return NULL;
42125}
42126
42127
42128SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42129 PyObject *resultobj = 0;
42130 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42131 wxWindow *arg2 = (wxWindow *) 0 ;
42132 int arg3 ;
42133 wxString *arg4 = 0 ;
42134 wxString *arg5 = 0 ;
42135 wxPoint const &arg6_defvalue = wxDefaultPosition ;
42136 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
42137 wxSize const &arg7_defvalue = wxDefaultSize ;
42138 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
42139 long arg8 = (long) wxHL_DEFAULT_STYLE ;
42140 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
42141 wxString *arg9 = (wxString *) &arg9_defvalue ;
42142 bool result;
42143 void *argp1 = 0 ;
42144 int res1 = 0 ;
42145 void *argp2 = 0 ;
42146 int res2 = 0 ;
42147 int val3 ;
42148 int ecode3 = 0 ;
42149 bool temp4 = false ;
42150 bool temp5 = false ;
42151 wxPoint temp6 ;
42152 wxSize temp7 ;
42153 long val8 ;
42154 int ecode8 = 0 ;
42155 bool temp9 = false ;
42156 PyObject * obj0 = 0 ;
42157 PyObject * obj1 = 0 ;
42158 PyObject * obj2 = 0 ;
42159 PyObject * obj3 = 0 ;
42160 PyObject * obj4 = 0 ;
42161 PyObject * obj5 = 0 ;
42162 PyObject * obj6 = 0 ;
42163 PyObject * obj7 = 0 ;
42164 PyObject * obj8 = 0 ;
42165 char * kwnames[] = {
42166 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42167 };
42168
42169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42171 if (!SWIG_IsOK(res1)) {
42172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42173 }
42174 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42175 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42176 if (!SWIG_IsOK(res2)) {
42177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42178 }
42179 arg2 = reinterpret_cast< wxWindow * >(argp2);
42180 ecode3 = SWIG_AsVal_int(obj2, &val3);
42181 if (!SWIG_IsOK(ecode3)) {
42182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42183 }
42184 arg3 = static_cast< int >(val3);
42185 {
42186 arg4 = wxString_in_helper(obj3);
42187 if (arg4 == NULL) SWIG_fail;
42188 temp4 = true;
42189 }
42190 {
42191 arg5 = wxString_in_helper(obj4);
42192 if (arg5 == NULL) SWIG_fail;
42193 temp5 = true;
42194 }
42195 if (obj5) {
42196 {
42197 arg6 = &temp6;
42198 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
42199 }
42200 }
42201 if (obj6) {
42202 {
42203 arg7 = &temp7;
42204 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
42205 }
42206 }
42207 if (obj7) {
42208 ecode8 = SWIG_AsVal_long(obj7, &val8);
42209 if (!SWIG_IsOK(ecode8)) {
42210 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
42211 }
42212 arg8 = static_cast< long >(val8);
42213 }
42214 if (obj8) {
42215 {
42216 arg9 = wxString_in_helper(obj8);
42217 if (arg9 == NULL) SWIG_fail;
42218 temp9 = true;
42219 }
42220 }
42221 {
42222 PyThreadState* __tstate = wxPyBeginAllowThreads();
42223 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
42224 wxPyEndAllowThreads(__tstate);
42225 if (PyErr_Occurred()) SWIG_fail;
42226 }
42227 {
42228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42229 }
42230 {
42231 if (temp4)
42232 delete arg4;
42233 }
42234 {
42235 if (temp5)
42236 delete arg5;
42237 }
42238 {
42239 if (temp9)
42240 delete arg9;
42241 }
42242 return resultobj;
42243fail:
42244 {
42245 if (temp4)
42246 delete arg4;
42247 }
42248 {
42249 if (temp5)
42250 delete arg5;
42251 }
42252 {
42253 if (temp9)
42254 delete arg9;
42255 }
42256 return NULL;
42257}
42258
42259
42260SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42261 PyObject *resultobj = 0;
42262 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42263 wxColour result;
42264 void *argp1 = 0 ;
42265 int res1 = 0 ;
42266 PyObject *swig_obj[1] ;
42267
42268 if (!args) SWIG_fail;
42269 swig_obj[0] = args;
42270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42271 if (!SWIG_IsOK(res1)) {
42272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42273 }
42274 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42275 {
42276 PyThreadState* __tstate = wxPyBeginAllowThreads();
42277 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42278 wxPyEndAllowThreads(__tstate);
42279 if (PyErr_Occurred()) SWIG_fail;
42280 }
42281 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42282 return resultobj;
42283fail:
42284 return NULL;
42285}
42286
42287
42288SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42289 PyObject *resultobj = 0;
42290 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42291 wxColour *arg2 = 0 ;
42292 void *argp1 = 0 ;
42293 int res1 = 0 ;
42294 wxColour temp2 ;
42295 PyObject * obj0 = 0 ;
42296 PyObject * obj1 = 0 ;
42297 char * kwnames[] = {
42298 (char *) "self",(char *) "colour", NULL
42299 };
42300
42301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42303 if (!SWIG_IsOK(res1)) {
42304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42305 }
42306 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42307 {
42308 arg2 = &temp2;
42309 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42310 }
42311 {
42312 PyThreadState* __tstate = wxPyBeginAllowThreads();
42313 (arg1)->SetHoverColour((wxColour const &)*arg2);
42314 wxPyEndAllowThreads(__tstate);
42315 if (PyErr_Occurred()) SWIG_fail;
42316 }
42317 resultobj = SWIG_Py_Void();
42318 return resultobj;
42319fail:
42320 return NULL;
42321}
42322
42323
42324SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42325 PyObject *resultobj = 0;
42326 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42327 wxColour result;
42328 void *argp1 = 0 ;
42329 int res1 = 0 ;
42330 PyObject *swig_obj[1] ;
42331
42332 if (!args) SWIG_fail;
42333 swig_obj[0] = args;
42334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42335 if (!SWIG_IsOK(res1)) {
42336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42337 }
42338 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42339 {
42340 PyThreadState* __tstate = wxPyBeginAllowThreads();
42341 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42342 wxPyEndAllowThreads(__tstate);
42343 if (PyErr_Occurred()) SWIG_fail;
42344 }
42345 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42346 return resultobj;
42347fail:
42348 return NULL;
42349}
42350
42351
42352SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42353 PyObject *resultobj = 0;
42354 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42355 wxColour *arg2 = 0 ;
42356 void *argp1 = 0 ;
42357 int res1 = 0 ;
42358 wxColour temp2 ;
42359 PyObject * obj0 = 0 ;
42360 PyObject * obj1 = 0 ;
42361 char * kwnames[] = {
42362 (char *) "self",(char *) "colour", NULL
42363 };
42364
42365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42367 if (!SWIG_IsOK(res1)) {
42368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42369 }
42370 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42371 {
42372 arg2 = &temp2;
42373 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42374 }
42375 {
42376 PyThreadState* __tstate = wxPyBeginAllowThreads();
42377 (arg1)->SetNormalColour((wxColour const &)*arg2);
42378 wxPyEndAllowThreads(__tstate);
42379 if (PyErr_Occurred()) SWIG_fail;
42380 }
42381 resultobj = SWIG_Py_Void();
42382 return resultobj;
42383fail:
42384 return NULL;
42385}
42386
42387
42388SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42389 PyObject *resultobj = 0;
42390 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42391 wxColour result;
42392 void *argp1 = 0 ;
42393 int res1 = 0 ;
42394 PyObject *swig_obj[1] ;
42395
42396 if (!args) SWIG_fail;
42397 swig_obj[0] = args;
42398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42399 if (!SWIG_IsOK(res1)) {
42400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42401 }
42402 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42403 {
42404 PyThreadState* __tstate = wxPyBeginAllowThreads();
42405 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42406 wxPyEndAllowThreads(__tstate);
42407 if (PyErr_Occurred()) SWIG_fail;
42408 }
42409 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42410 return resultobj;
42411fail:
42412 return NULL;
42413}
42414
42415
42416SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42417 PyObject *resultobj = 0;
42418 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42419 wxColour *arg2 = 0 ;
42420 void *argp1 = 0 ;
42421 int res1 = 0 ;
42422 wxColour temp2 ;
42423 PyObject * obj0 = 0 ;
42424 PyObject * obj1 = 0 ;
42425 char * kwnames[] = {
42426 (char *) "self",(char *) "colour", NULL
42427 };
42428
42429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42431 if (!SWIG_IsOK(res1)) {
42432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42433 }
42434 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42435 {
42436 arg2 = &temp2;
42437 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42438 }
42439 {
42440 PyThreadState* __tstate = wxPyBeginAllowThreads();
42441 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42442 wxPyEndAllowThreads(__tstate);
42443 if (PyErr_Occurred()) SWIG_fail;
42444 }
42445 resultobj = SWIG_Py_Void();
42446 return resultobj;
42447fail:
42448 return NULL;
42449}
42450
42451
42452SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42453 PyObject *resultobj = 0;
42454 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42455 wxString result;
42456 void *argp1 = 0 ;
42457 int res1 = 0 ;
42458 PyObject *swig_obj[1] ;
42459
42460 if (!args) SWIG_fail;
42461 swig_obj[0] = args;
42462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42463 if (!SWIG_IsOK(res1)) {
42464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42465 }
42466 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42467 {
42468 PyThreadState* __tstate = wxPyBeginAllowThreads();
42469 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42470 wxPyEndAllowThreads(__tstate);
42471 if (PyErr_Occurred()) SWIG_fail;
42472 }
42473 {
42474#if wxUSE_UNICODE
42475 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42476#else
42477 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42478#endif
42479 }
42480 return resultobj;
42481fail:
42482 return NULL;
42483}
42484
42485
42486SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42487 PyObject *resultobj = 0;
42488 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42489 wxString *arg2 = 0 ;
42490 void *argp1 = 0 ;
42491 int res1 = 0 ;
42492 bool temp2 = false ;
42493 PyObject * obj0 = 0 ;
42494 PyObject * obj1 = 0 ;
42495 char * kwnames[] = {
42496 (char *) "self",(char *) "url", NULL
42497 };
42498
42499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42501 if (!SWIG_IsOK(res1)) {
42502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42503 }
42504 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42505 {
42506 arg2 = wxString_in_helper(obj1);
42507 if (arg2 == NULL) SWIG_fail;
42508 temp2 = true;
42509 }
42510 {
42511 PyThreadState* __tstate = wxPyBeginAllowThreads();
42512 (arg1)->SetURL((wxString const &)*arg2);
42513 wxPyEndAllowThreads(__tstate);
42514 if (PyErr_Occurred()) SWIG_fail;
42515 }
42516 resultobj = SWIG_Py_Void();
42517 {
42518 if (temp2)
42519 delete arg2;
42520 }
42521 return resultobj;
42522fail:
42523 {
42524 if (temp2)
42525 delete arg2;
42526 }
42527 return NULL;
42528}
42529
42530
42531SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42532 PyObject *resultobj = 0;
42533 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42534 bool arg2 = (bool) true ;
42535 void *argp1 = 0 ;
42536 int res1 = 0 ;
42537 bool val2 ;
42538 int ecode2 = 0 ;
42539 PyObject * obj0 = 0 ;
42540 PyObject * obj1 = 0 ;
42541 char * kwnames[] = {
42542 (char *) "self",(char *) "visited", NULL
42543 };
42544
42545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42547 if (!SWIG_IsOK(res1)) {
42548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42549 }
42550 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42551 if (obj1) {
42552 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42553 if (!SWIG_IsOK(ecode2)) {
42554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42555 }
42556 arg2 = static_cast< bool >(val2);
42557 }
42558 {
42559 PyThreadState* __tstate = wxPyBeginAllowThreads();
42560 (arg1)->SetVisited(arg2);
42561 wxPyEndAllowThreads(__tstate);
42562 if (PyErr_Occurred()) SWIG_fail;
42563 }
42564 resultobj = SWIG_Py_Void();
42565 return resultobj;
42566fail:
42567 return NULL;
42568}
42569
42570
42571SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42572 PyObject *resultobj = 0;
42573 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42574 bool result;
42575 void *argp1 = 0 ;
42576 int res1 = 0 ;
42577 PyObject *swig_obj[1] ;
42578
42579 if (!args) SWIG_fail;
42580 swig_obj[0] = args;
42581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42582 if (!SWIG_IsOK(res1)) {
42583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42584 }
42585 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42586 {
42587 PyThreadState* __tstate = wxPyBeginAllowThreads();
42588 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42589 wxPyEndAllowThreads(__tstate);
42590 if (PyErr_Occurred()) SWIG_fail;
42591 }
42592 {
42593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42594 }
42595 return resultobj;
42596fail:
42597 return NULL;
42598}
42599
42600
42601SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42602 PyObject *obj;
42603 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42604 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42605 return SWIG_Py_Void();
42606}
42607
42608SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42609 return SWIG_Python_InitShadowInstance(args);
42610}
42611
42612SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42613 PyObject *resultobj = 0;
42614 wxObject *arg1 = (wxObject *) 0 ;
42615 int arg2 ;
42616 wxString *arg3 = 0 ;
42617 wxHyperlinkEvent *result = 0 ;
42618 void *argp1 = 0 ;
42619 int res1 = 0 ;
42620 int val2 ;
42621 int ecode2 = 0 ;
42622 bool temp3 = false ;
42623 PyObject * obj0 = 0 ;
42624 PyObject * obj1 = 0 ;
42625 PyObject * obj2 = 0 ;
42626 char * kwnames[] = {
42627 (char *) "generator",(char *) "id",(char *) "url", NULL
42628 };
42629
42630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42632 if (!SWIG_IsOK(res1)) {
42633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42634 }
42635 arg1 = reinterpret_cast< wxObject * >(argp1);
42636 ecode2 = SWIG_AsVal_int(obj1, &val2);
42637 if (!SWIG_IsOK(ecode2)) {
42638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42639 }
42640 arg2 = static_cast< int >(val2);
42641 {
42642 arg3 = wxString_in_helper(obj2);
42643 if (arg3 == NULL) SWIG_fail;
42644 temp3 = true;
42645 }
42646 {
42647 PyThreadState* __tstate = wxPyBeginAllowThreads();
42648 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42649 wxPyEndAllowThreads(__tstate);
42650 if (PyErr_Occurred()) SWIG_fail;
42651 }
42652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42653 {
42654 if (temp3)
42655 delete arg3;
42656 }
42657 return resultobj;
42658fail:
42659 {
42660 if (temp3)
42661 delete arg3;
42662 }
42663 return NULL;
42664}
42665
42666
42667SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42668 PyObject *resultobj = 0;
42669 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42670 wxString result;
42671 void *argp1 = 0 ;
42672 int res1 = 0 ;
42673 PyObject *swig_obj[1] ;
42674
42675 if (!args) SWIG_fail;
42676 swig_obj[0] = args;
42677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42678 if (!SWIG_IsOK(res1)) {
42679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42680 }
42681 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42682 {
42683 PyThreadState* __tstate = wxPyBeginAllowThreads();
42684 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42685 wxPyEndAllowThreads(__tstate);
42686 if (PyErr_Occurred()) SWIG_fail;
42687 }
42688 {
42689#if wxUSE_UNICODE
42690 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42691#else
42692 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42693#endif
42694 }
42695 return resultobj;
42696fail:
42697 return NULL;
42698}
42699
42700
42701SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42702 PyObject *resultobj = 0;
42703 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42704 wxString *arg2 = 0 ;
42705 void *argp1 = 0 ;
42706 int res1 = 0 ;
42707 bool temp2 = false ;
42708 PyObject * obj0 = 0 ;
42709 PyObject * obj1 = 0 ;
42710 char * kwnames[] = {
42711 (char *) "self",(char *) "url", NULL
42712 };
42713
42714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42716 if (!SWIG_IsOK(res1)) {
42717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42718 }
42719 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42720 {
42721 arg2 = wxString_in_helper(obj1);
42722 if (arg2 == NULL) SWIG_fail;
42723 temp2 = true;
42724 }
42725 {
42726 PyThreadState* __tstate = wxPyBeginAllowThreads();
42727 (arg1)->SetURL((wxString const &)*arg2);
42728 wxPyEndAllowThreads(__tstate);
42729 if (PyErr_Occurred()) SWIG_fail;
42730 }
42731 resultobj = SWIG_Py_Void();
42732 {
42733 if (temp2)
42734 delete arg2;
42735 }
42736 return resultobj;
42737fail:
42738 {
42739 if (temp2)
42740 delete arg2;
42741 }
42742 return NULL;
42743}
42744
42745
42746SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42747 PyObject *obj;
42748 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42749 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42750 return SWIG_Py_Void();
42751}
42752
42753SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42754 return SWIG_Python_InitShadowInstance(args);
42755}
42756
b850e7f3
RD
42757SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42758 PyObject *resultobj = 0;
42759 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42760 wxWindow *arg2 = (wxWindow *) 0 ;
42761 int arg3 ;
42762 wxString const &arg4_defvalue = wxEmptyString ;
42763 wxString *arg4 = (wxString *) &arg4_defvalue ;
42764 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42765 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42766 wxSize const &arg6_defvalue = wxDefaultSize ;
42767 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42768 long arg7 = (long) 0 ;
42769 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42770 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42771 wxString const &arg9_defvalue = wxButtonNameStr ;
42772 wxString *arg9 = (wxString *) &arg9_defvalue ;
42773 bool result;
42774 void *argp1 = 0 ;
42775 int res1 = 0 ;
42776 void *argp2 = 0 ;
42777 int res2 = 0 ;
42778 int val3 ;
42779 int ecode3 = 0 ;
42780 bool temp4 = false ;
42781 wxPoint temp5 ;
42782 wxSize temp6 ;
42783 long val7 ;
42784 int ecode7 = 0 ;
42785 void *argp8 = 0 ;
42786 int res8 = 0 ;
42787 bool temp9 = false ;
42788 PyObject * obj0 = 0 ;
42789 PyObject * obj1 = 0 ;
42790 PyObject * obj2 = 0 ;
42791 PyObject * obj3 = 0 ;
42792 PyObject * obj4 = 0 ;
42793 PyObject * obj5 = 0 ;
42794 PyObject * obj6 = 0 ;
42795 PyObject * obj7 = 0 ;
42796 PyObject * obj8 = 0 ;
42797 char * kwnames[] = {
42798 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42799 };
42800
42801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42803 if (!SWIG_IsOK(res1)) {
42804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42805 }
42806 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42807 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42808 if (!SWIG_IsOK(res2)) {
42809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42810 }
42811 arg2 = reinterpret_cast< wxWindow * >(argp2);
42812 ecode3 = SWIG_AsVal_int(obj2, &val3);
42813 if (!SWIG_IsOK(ecode3)) {
42814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42815 }
42816 arg3 = static_cast< int >(val3);
42817 if (obj3) {
42818 {
42819 arg4 = wxString_in_helper(obj3);
42820 if (arg4 == NULL) SWIG_fail;
42821 temp4 = true;
42822 }
42823 }
42824 if (obj4) {
42825 {
42826 arg5 = &temp5;
42827 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42828 }
42829 }
42830 if (obj5) {
42831 {
42832 arg6 = &temp6;
42833 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42834 }
42835 }
42836 if (obj6) {
42837 ecode7 = SWIG_AsVal_long(obj6, &val7);
42838 if (!SWIG_IsOK(ecode7)) {
42839 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42840 }
42841 arg7 = static_cast< long >(val7);
42842 }
42843 if (obj7) {
42844 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42845 if (!SWIG_IsOK(res8)) {
42846 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42847 }
42848 if (!argp8) {
42849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42850 }
42851 arg8 = reinterpret_cast< wxValidator * >(argp8);
42852 }
42853 if (obj8) {
42854 {
42855 arg9 = wxString_in_helper(obj8);
42856 if (arg9 == NULL) SWIG_fail;
42857 temp9 = true;
42858 }
42859 }
42860 {
42861 PyThreadState* __tstate = wxPyBeginAllowThreads();
42862 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42863 wxPyEndAllowThreads(__tstate);
42864 if (PyErr_Occurred()) SWIG_fail;
42865 }
42866 {
42867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42868 }
42869 {
42870 if (temp4)
42871 delete arg4;
42872 }
42873 {
42874 if (temp9)
42875 delete arg9;
42876 }
42877 return resultobj;
42878fail:
42879 {
42880 if (temp4)
42881 delete arg4;
42882 }
42883 {
42884 if (temp9)
42885 delete arg9;
42886 }
42887 return NULL;
42888}
42889
42890
42891SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42892 PyObject *resultobj = 0;
42893 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42894 int arg2 ;
42895 void *argp1 = 0 ;
42896 int res1 = 0 ;
42897 int val2 ;
42898 int ecode2 = 0 ;
42899 PyObject * obj0 = 0 ;
42900 PyObject * obj1 = 0 ;
42901 char * kwnames[] = {
42902 (char *) "self",(char *) "newmargin", NULL
42903 };
42904
42905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42907 if (!SWIG_IsOK(res1)) {
42908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42909 }
42910 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42911 ecode2 = SWIG_AsVal_int(obj1, &val2);
42912 if (!SWIG_IsOK(ecode2)) {
42913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42914 }
42915 arg2 = static_cast< int >(val2);
42916 {
42917 PyThreadState* __tstate = wxPyBeginAllowThreads();
42918 (arg1)->SetInternalMargin(arg2);
42919 wxPyEndAllowThreads(__tstate);
42920 if (PyErr_Occurred()) SWIG_fail;
42921 }
42922 resultobj = SWIG_Py_Void();
42923 return resultobj;
42924fail:
42925 return NULL;
42926}
42927
42928
42929SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42930 PyObject *resultobj = 0;
42931 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42932 int result;
42933 void *argp1 = 0 ;
42934 int res1 = 0 ;
42935 PyObject *swig_obj[1] ;
42936
42937 if (!args) SWIG_fail;
42938 swig_obj[0] = args;
42939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42940 if (!SWIG_IsOK(res1)) {
42941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42942 }
42943 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42944 {
42945 PyThreadState* __tstate = wxPyBeginAllowThreads();
42946 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42947 wxPyEndAllowThreads(__tstate);
42948 if (PyErr_Occurred()) SWIG_fail;
42949 }
42950 resultobj = SWIG_From_int(static_cast< int >(result));
42951 return resultobj;
42952fail:
42953 return NULL;
42954}
42955
42956
42957SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42958 PyObject *resultobj = 0;
42959 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42960 int arg2 ;
42961 void *argp1 = 0 ;
42962 int res1 = 0 ;
42963 int val2 ;
42964 int ecode2 = 0 ;
42965 PyObject * obj0 = 0 ;
42966 PyObject * obj1 = 0 ;
42967 char * kwnames[] = {
42968 (char *) "self",(char *) "prop", NULL
42969 };
42970
42971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42973 if (!SWIG_IsOK(res1)) {
42974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42975 }
42976 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42977 ecode2 = SWIG_AsVal_int(obj1, &val2);
42978 if (!SWIG_IsOK(ecode2)) {
42979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42980 }
42981 arg2 = static_cast< int >(val2);
42982 {
42983 PyThreadState* __tstate = wxPyBeginAllowThreads();
42984 (arg1)->SetTextCtrlProportion(arg2);
42985 wxPyEndAllowThreads(__tstate);
42986 if (PyErr_Occurred()) SWIG_fail;
42987 }
42988 resultobj = SWIG_Py_Void();
42989 return resultobj;
42990fail:
42991 return NULL;
42992}
42993
42994
42995SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42996 PyObject *resultobj = 0;
42997 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42998 int result;
42999 void *argp1 = 0 ;
43000 int res1 = 0 ;
43001 PyObject *swig_obj[1] ;
43002
43003 if (!args) SWIG_fail;
43004 swig_obj[0] = args;
43005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43006 if (!SWIG_IsOK(res1)) {
43007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43008 }
43009 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43010 {
43011 PyThreadState* __tstate = wxPyBeginAllowThreads();
43012 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
43013 wxPyEndAllowThreads(__tstate);
43014 if (PyErr_Occurred()) SWIG_fail;
43015 }
43016 resultobj = SWIG_From_int(static_cast< int >(result));
43017 return resultobj;
43018fail:
43019 return NULL;
43020}
43021
43022
1eeb270e
RD
43023SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43024 PyObject *resultobj = 0;
43025 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43026 int arg2 ;
43027 void *argp1 = 0 ;
43028 int res1 = 0 ;
43029 int val2 ;
43030 int ecode2 = 0 ;
43031 PyObject * obj0 = 0 ;
43032 PyObject * obj1 = 0 ;
43033 char * kwnames[] = {
43034 (char *) "self",(char *) "prop", NULL
43035 };
43036
43037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43039 if (!SWIG_IsOK(res1)) {
43040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43041 }
43042 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43043 ecode2 = SWIG_AsVal_int(obj1, &val2);
43044 if (!SWIG_IsOK(ecode2)) {
43045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43046 }
43047 arg2 = static_cast< int >(val2);
43048 {
43049 PyThreadState* __tstate = wxPyBeginAllowThreads();
43050 (arg1)->SetPickerCtrlProportion(arg2);
43051 wxPyEndAllowThreads(__tstate);
43052 if (PyErr_Occurred()) SWIG_fail;
43053 }
43054 resultobj = SWIG_Py_Void();
43055 return resultobj;
43056fail:
43057 return NULL;
43058}
43059
43060
43061SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43062 PyObject *resultobj = 0;
43063 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43064 int result;
43065 void *argp1 = 0 ;
43066 int res1 = 0 ;
43067 PyObject *swig_obj[1] ;
43068
43069 if (!args) SWIG_fail;
43070 swig_obj[0] = args;
43071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43072 if (!SWIG_IsOK(res1)) {
43073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43074 }
43075 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43076 {
43077 PyThreadState* __tstate = wxPyBeginAllowThreads();
43078 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
43079 wxPyEndAllowThreads(__tstate);
43080 if (PyErr_Occurred()) SWIG_fail;
43081 }
43082 resultobj = SWIG_From_int(static_cast< int >(result));
43083 return resultobj;
43084fail:
43085 return NULL;
43086}
43087
43088
b02396e8
RD
43089SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43090 PyObject *resultobj = 0;
43091 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43092 bool result;
43093 void *argp1 = 0 ;
43094 int res1 = 0 ;
43095 PyObject *swig_obj[1] ;
43096
43097 if (!args) SWIG_fail;
43098 swig_obj[0] = args;
43099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43100 if (!SWIG_IsOK(res1)) {
43101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43102 }
43103 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43104 {
43105 PyThreadState* __tstate = wxPyBeginAllowThreads();
43106 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
43107 wxPyEndAllowThreads(__tstate);
43108 if (PyErr_Occurred()) SWIG_fail;
43109 }
43110 {
43111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43112 }
43113 return resultobj;
43114fail:
43115 return NULL;
43116}
43117
43118
43119SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43120 PyObject *resultobj = 0;
43121 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43122 bool arg2 = (bool) true ;
43123 void *argp1 = 0 ;
43124 int res1 = 0 ;
43125 bool val2 ;
43126 int ecode2 = 0 ;
43127 PyObject * obj0 = 0 ;
43128 PyObject * obj1 = 0 ;
43129 char * kwnames[] = {
43130 (char *) "self",(char *) "grow", NULL
43131 };
43132
43133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43135 if (!SWIG_IsOK(res1)) {
43136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43137 }
43138 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43139 if (obj1) {
43140 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43141 if (!SWIG_IsOK(ecode2)) {
43142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43143 }
43144 arg2 = static_cast< bool >(val2);
43145 }
43146 {
43147 PyThreadState* __tstate = wxPyBeginAllowThreads();
43148 (arg1)->SetTextCtrlGrowable(arg2);
43149 wxPyEndAllowThreads(__tstate);
43150 if (PyErr_Occurred()) SWIG_fail;
43151 }
43152 resultobj = SWIG_Py_Void();
43153 return resultobj;
43154fail:
43155 return NULL;
43156}
43157
43158
43159SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43160 PyObject *resultobj = 0;
43161 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43162 bool result;
43163 void *argp1 = 0 ;
43164 int res1 = 0 ;
43165 PyObject *swig_obj[1] ;
43166
43167 if (!args) SWIG_fail;
43168 swig_obj[0] = args;
43169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43170 if (!SWIG_IsOK(res1)) {
43171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43172 }
43173 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43174 {
43175 PyThreadState* __tstate = wxPyBeginAllowThreads();
43176 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
43177 wxPyEndAllowThreads(__tstate);
43178 if (PyErr_Occurred()) SWIG_fail;
43179 }
43180 {
43181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43182 }
43183 return resultobj;
43184fail:
43185 return NULL;
43186}
43187
43188
43189SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43190 PyObject *resultobj = 0;
43191 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43192 bool arg2 = (bool) true ;
43193 void *argp1 = 0 ;
43194 int res1 = 0 ;
43195 bool val2 ;
43196 int ecode2 = 0 ;
43197 PyObject * obj0 = 0 ;
43198 PyObject * obj1 = 0 ;
43199 char * kwnames[] = {
43200 (char *) "self",(char *) "grow", NULL
43201 };
43202
43203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43205 if (!SWIG_IsOK(res1)) {
43206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43207 }
43208 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43209 if (obj1) {
43210 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43211 if (!SWIG_IsOK(ecode2)) {
43212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43213 }
43214 arg2 = static_cast< bool >(val2);
43215 }
43216 {
43217 PyThreadState* __tstate = wxPyBeginAllowThreads();
43218 (arg1)->SetPickerCtrlGrowable(arg2);
43219 wxPyEndAllowThreads(__tstate);
43220 if (PyErr_Occurred()) SWIG_fail;
43221 }
43222 resultobj = SWIG_Py_Void();
43223 return resultobj;
43224fail:
43225 return NULL;
43226}
43227
43228
b850e7f3
RD
43229SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43230 PyObject *resultobj = 0;
43231 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43232 bool result;
43233 void *argp1 = 0 ;
43234 int res1 = 0 ;
43235 PyObject *swig_obj[1] ;
43236
43237 if (!args) SWIG_fail;
43238 swig_obj[0] = args;
43239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43240 if (!SWIG_IsOK(res1)) {
43241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43242 }
43243 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43244 {
43245 PyThreadState* __tstate = wxPyBeginAllowThreads();
43246 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43247 wxPyEndAllowThreads(__tstate);
43248 if (PyErr_Occurred()) SWIG_fail;
43249 }
43250 {
43251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43252 }
43253 return resultobj;
43254fail:
43255 return NULL;
43256}
43257
43258
43259SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43260 PyObject *resultobj = 0;
43261 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43262 wxTextCtrl *result = 0 ;
43263 void *argp1 = 0 ;
43264 int res1 = 0 ;
43265 PyObject *swig_obj[1] ;
43266
43267 if (!args) SWIG_fail;
43268 swig_obj[0] = args;
43269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43270 if (!SWIG_IsOK(res1)) {
43271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43272 }
43273 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43274 {
43275 PyThreadState* __tstate = wxPyBeginAllowThreads();
43276 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43277 wxPyEndAllowThreads(__tstate);
43278 if (PyErr_Occurred()) SWIG_fail;
43279 }
43280 {
43281 resultobj = wxPyMake_wxObject(result, 0);
43282 }
43283 return resultobj;
43284fail:
43285 return NULL;
43286}
43287
43288
43289SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43290 PyObject *resultobj = 0;
43291 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43292 wxControl *result = 0 ;
43293 void *argp1 = 0 ;
43294 int res1 = 0 ;
43295 PyObject *swig_obj[1] ;
43296
43297 if (!args) SWIG_fail;
43298 swig_obj[0] = args;
43299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43300 if (!SWIG_IsOK(res1)) {
43301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43302 }
43303 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43304 {
43305 PyThreadState* __tstate = wxPyBeginAllowThreads();
43306 result = (wxControl *)(arg1)->GetPickerCtrl();
43307 wxPyEndAllowThreads(__tstate);
43308 if (PyErr_Occurred()) SWIG_fail;
43309 }
43310 {
43311 resultobj = wxPyMake_wxObject(result, 0);
43312 }
43313 return resultobj;
43314fail:
43315 return NULL;
43316}
43317
43318
43319SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43320 PyObject *obj;
43321 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43322 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43323 return SWIG_Py_Void();
43324}
43325
43326SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43327 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43328 return 1;
43329}
43330
43331
43332SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43333 PyObject *pyobj = 0;
43334
43335 {
43336#if wxUSE_UNICODE
43337 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43338#else
43339 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43340#endif
43341 }
43342 return pyobj;
43343}
43344
43345
43346SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43347 PyObject *resultobj = 0;
43348 wxWindow *arg1 = (wxWindow *) 0 ;
43349 int arg2 = (int) -1 ;
43350 wxColour const &arg3_defvalue = *wxBLACK ;
43351 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43352 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43353 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43354 wxSize const &arg5_defvalue = wxDefaultSize ;
43355 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43356 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43357 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43358 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43359 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43360 wxString *arg8 = (wxString *) &arg8_defvalue ;
43361 wxColourPickerCtrl *result = 0 ;
43362 void *argp1 = 0 ;
43363 int res1 = 0 ;
43364 int val2 ;
43365 int ecode2 = 0 ;
43366 wxColour temp3 ;
43367 wxPoint temp4 ;
43368 wxSize temp5 ;
43369 long val6 ;
43370 int ecode6 = 0 ;
43371 void *argp7 = 0 ;
43372 int res7 = 0 ;
43373 bool temp8 = false ;
43374 PyObject * obj0 = 0 ;
43375 PyObject * obj1 = 0 ;
43376 PyObject * obj2 = 0 ;
43377 PyObject * obj3 = 0 ;
43378 PyObject * obj4 = 0 ;
43379 PyObject * obj5 = 0 ;
43380 PyObject * obj6 = 0 ;
43381 PyObject * obj7 = 0 ;
43382 char * kwnames[] = {
43383 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43384 };
43385
43386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43388 if (!SWIG_IsOK(res1)) {
43389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43390 }
43391 arg1 = reinterpret_cast< wxWindow * >(argp1);
43392 if (obj1) {
43393 ecode2 = SWIG_AsVal_int(obj1, &val2);
43394 if (!SWIG_IsOK(ecode2)) {
43395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43396 }
43397 arg2 = static_cast< int >(val2);
43398 }
43399 if (obj2) {
43400 {
43401 arg3 = &temp3;
43402 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43403 }
43404 }
43405 if (obj3) {
43406 {
43407 arg4 = &temp4;
43408 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43409 }
43410 }
43411 if (obj4) {
43412 {
43413 arg5 = &temp5;
43414 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43415 }
43416 }
43417 if (obj5) {
43418 ecode6 = SWIG_AsVal_long(obj5, &val6);
43419 if (!SWIG_IsOK(ecode6)) {
43420 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43421 }
43422 arg6 = static_cast< long >(val6);
43423 }
43424 if (obj6) {
43425 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43426 if (!SWIG_IsOK(res7)) {
43427 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43428 }
43429 if (!argp7) {
43430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43431 }
43432 arg7 = reinterpret_cast< wxValidator * >(argp7);
43433 }
43434 if (obj7) {
43435 {
43436 arg8 = wxString_in_helper(obj7);
43437 if (arg8 == NULL) SWIG_fail;
43438 temp8 = true;
43439 }
43440 }
43441 {
43442 if (!wxPyCheckForApp()) SWIG_fail;
43443 PyThreadState* __tstate = wxPyBeginAllowThreads();
43444 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43445 wxPyEndAllowThreads(__tstate);
43446 if (PyErr_Occurred()) SWIG_fail;
43447 }
43448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43449 {
43450 if (temp8)
43451 delete arg8;
43452 }
43453 return resultobj;
43454fail:
43455 {
43456 if (temp8)
43457 delete arg8;
43458 }
43459 return NULL;
43460}
43461
43462
43463SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43464 PyObject *resultobj = 0;
43465 wxColourPickerCtrl *result = 0 ;
43466
43467 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43468 {
43469 if (!wxPyCheckForApp()) SWIG_fail;
43470 PyThreadState* __tstate = wxPyBeginAllowThreads();
43471 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43472 wxPyEndAllowThreads(__tstate);
43473 if (PyErr_Occurred()) SWIG_fail;
43474 }
43475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43476 return resultobj;
43477fail:
43478 return NULL;
43479}
43480
43481
43482SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43483 PyObject *resultobj = 0;
43484 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43485 wxWindow *arg2 = (wxWindow *) 0 ;
43486 int arg3 ;
43487 wxColour const &arg4_defvalue = *wxBLACK ;
43488 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43489 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43490 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43491 wxSize const &arg6_defvalue = wxDefaultSize ;
43492 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43493 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43494 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43495 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43496 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43497 wxString *arg9 = (wxString *) &arg9_defvalue ;
43498 bool result;
43499 void *argp1 = 0 ;
43500 int res1 = 0 ;
43501 void *argp2 = 0 ;
43502 int res2 = 0 ;
43503 int val3 ;
43504 int ecode3 = 0 ;
43505 wxColour temp4 ;
43506 wxPoint temp5 ;
43507 wxSize temp6 ;
43508 long val7 ;
43509 int ecode7 = 0 ;
43510 void *argp8 = 0 ;
43511 int res8 = 0 ;
43512 bool temp9 = false ;
43513 PyObject * obj0 = 0 ;
43514 PyObject * obj1 = 0 ;
43515 PyObject * obj2 = 0 ;
43516 PyObject * obj3 = 0 ;
43517 PyObject * obj4 = 0 ;
43518 PyObject * obj5 = 0 ;
43519 PyObject * obj6 = 0 ;
43520 PyObject * obj7 = 0 ;
43521 PyObject * obj8 = 0 ;
43522 char * kwnames[] = {
43523 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43524 };
43525
43526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43528 if (!SWIG_IsOK(res1)) {
43529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43530 }
43531 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43532 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43533 if (!SWIG_IsOK(res2)) {
43534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43535 }
43536 arg2 = reinterpret_cast< wxWindow * >(argp2);
43537 ecode3 = SWIG_AsVal_int(obj2, &val3);
43538 if (!SWIG_IsOK(ecode3)) {
43539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43540 }
43541 arg3 = static_cast< int >(val3);
43542 if (obj3) {
43543 {
43544 arg4 = &temp4;
43545 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43546 }
43547 }
43548 if (obj4) {
43549 {
43550 arg5 = &temp5;
43551 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43552 }
43553 }
43554 if (obj5) {
43555 {
43556 arg6 = &temp6;
43557 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43558 }
43559 }
43560 if (obj6) {
43561 ecode7 = SWIG_AsVal_long(obj6, &val7);
43562 if (!SWIG_IsOK(ecode7)) {
43563 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43564 }
43565 arg7 = static_cast< long >(val7);
43566 }
43567 if (obj7) {
43568 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43569 if (!SWIG_IsOK(res8)) {
43570 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43571 }
43572 if (!argp8) {
43573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43574 }
43575 arg8 = reinterpret_cast< wxValidator * >(argp8);
43576 }
43577 if (obj8) {
43578 {
43579 arg9 = wxString_in_helper(obj8);
43580 if (arg9 == NULL) SWIG_fail;
43581 temp9 = true;
43582 }
43583 }
43584 {
43585 PyThreadState* __tstate = wxPyBeginAllowThreads();
43586 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43587 wxPyEndAllowThreads(__tstate);
43588 if (PyErr_Occurred()) SWIG_fail;
43589 }
43590 {
43591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43592 }
43593 {
43594 if (temp9)
43595 delete arg9;
43596 }
43597 return resultobj;
43598fail:
43599 {
43600 if (temp9)
43601 delete arg9;
43602 }
43603 return NULL;
43604}
43605
43606
43607SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43608 PyObject *resultobj = 0;
43609 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43610 wxColour result;
43611 void *argp1 = 0 ;
43612 int res1 = 0 ;
43613 PyObject *swig_obj[1] ;
43614
43615 if (!args) SWIG_fail;
43616 swig_obj[0] = args;
43617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43618 if (!SWIG_IsOK(res1)) {
43619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43620 }
43621 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43622 {
43623 PyThreadState* __tstate = wxPyBeginAllowThreads();
43624 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43625 wxPyEndAllowThreads(__tstate);
43626 if (PyErr_Occurred()) SWIG_fail;
43627 }
43628 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43629 return resultobj;
43630fail:
43631 return NULL;
43632}
43633
43634
43635SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43636 PyObject *resultobj = 0;
43637 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43638 wxColour *arg2 = 0 ;
43639 void *argp1 = 0 ;
43640 int res1 = 0 ;
43641 wxColour temp2 ;
43642 PyObject * obj0 = 0 ;
43643 PyObject * obj1 = 0 ;
43644 char * kwnames[] = {
43645 (char *) "self",(char *) "col", NULL
43646 };
43647
43648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43650 if (!SWIG_IsOK(res1)) {
43651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43652 }
43653 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43654 {
43655 arg2 = &temp2;
43656 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43657 }
43658 {
43659 PyThreadState* __tstate = wxPyBeginAllowThreads();
43660 (arg1)->SetColour((wxColour const &)*arg2);
43661 wxPyEndAllowThreads(__tstate);
43662 if (PyErr_Occurred()) SWIG_fail;
43663 }
43664 resultobj = SWIG_Py_Void();
43665 return resultobj;
43666fail:
43667 return NULL;
43668}
43669
43670
43671SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43672 PyObject *obj;
43673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43674 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43675 return SWIG_Py_Void();
43676}
43677
43678SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43679 return SWIG_Python_InitShadowInstance(args);
43680}
43681
43682SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43683 PyObject *resultobj = 0;
43684 wxObject *arg1 = (wxObject *) 0 ;
43685 int arg2 ;
43686 wxColour *arg3 = 0 ;
43687 wxColourPickerEvent *result = 0 ;
43688 void *argp1 = 0 ;
43689 int res1 = 0 ;
43690 int val2 ;
43691 int ecode2 = 0 ;
43692 wxColour temp3 ;
43693 PyObject * obj0 = 0 ;
43694 PyObject * obj1 = 0 ;
43695 PyObject * obj2 = 0 ;
43696 char * kwnames[] = {
43697 (char *) "generator",(char *) "id",(char *) "col", NULL
43698 };
43699
43700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43702 if (!SWIG_IsOK(res1)) {
43703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43704 }
43705 arg1 = reinterpret_cast< wxObject * >(argp1);
43706 ecode2 = SWIG_AsVal_int(obj1, &val2);
43707 if (!SWIG_IsOK(ecode2)) {
43708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43709 }
43710 arg2 = static_cast< int >(val2);
43711 {
43712 arg3 = &temp3;
43713 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43714 }
43715 {
43716 PyThreadState* __tstate = wxPyBeginAllowThreads();
43717 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43718 wxPyEndAllowThreads(__tstate);
43719 if (PyErr_Occurred()) SWIG_fail;
43720 }
43721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43722 return resultobj;
43723fail:
43724 return NULL;
43725}
43726
43727
43728SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43729 PyObject *resultobj = 0;
43730 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43731 wxColour result;
43732 void *argp1 = 0 ;
43733 int res1 = 0 ;
43734 PyObject *swig_obj[1] ;
43735
43736 if (!args) SWIG_fail;
43737 swig_obj[0] = args;
43738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43739 if (!SWIG_IsOK(res1)) {
43740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43741 }
43742 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43743 {
43744 PyThreadState* __tstate = wxPyBeginAllowThreads();
43745 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43746 wxPyEndAllowThreads(__tstate);
43747 if (PyErr_Occurred()) SWIG_fail;
43748 }
43749 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43750 return resultobj;
43751fail:
43752 return NULL;
43753}
43754
43755
43756SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43757 PyObject *resultobj = 0;
43758 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43759 wxColour *arg2 = 0 ;
43760 void *argp1 = 0 ;
43761 int res1 = 0 ;
43762 wxColour temp2 ;
43763 PyObject * obj0 = 0 ;
43764 PyObject * obj1 = 0 ;
43765 char * kwnames[] = {
43766 (char *) "self",(char *) "c", NULL
43767 };
43768
43769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43771 if (!SWIG_IsOK(res1)) {
43772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43773 }
43774 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43775 {
43776 arg2 = &temp2;
43777 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43778 }
43779 {
43780 PyThreadState* __tstate = wxPyBeginAllowThreads();
43781 (arg1)->SetColour((wxColour const &)*arg2);
43782 wxPyEndAllowThreads(__tstate);
43783 if (PyErr_Occurred()) SWIG_fail;
43784 }
43785 resultobj = SWIG_Py_Void();
43786 return resultobj;
43787fail:
43788 return NULL;
43789}
43790
43791
43792SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43793 PyObject *obj;
43794 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43795 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43796 return SWIG_Py_Void();
43797}
43798
43799SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43800 return SWIG_Python_InitShadowInstance(args);
43801}
43802
43803SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43804 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43805 return 1;
43806}
43807
43808
43809SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43810 PyObject *pyobj = 0;
43811
43812 {
43813#if wxUSE_UNICODE
43814 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43815#else
43816 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43817#endif
43818 }
43819 return pyobj;
43820}
43821
43822
43823SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43824 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43825 return 1;
43826}
43827
43828
43829SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43830 PyObject *pyobj = 0;
43831
43832 {
43833#if wxUSE_UNICODE
43834 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43835#else
43836 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43837#endif
43838 }
43839 return pyobj;
43840}
43841
43842
43843SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43844 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43845 return 1;
43846}
43847
43848
43849SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43850 PyObject *pyobj = 0;
43851
43852 {
43853#if wxUSE_UNICODE
43854 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43855#else
43856 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43857#endif
43858 }
43859 return pyobj;
43860}
43861
43862
43863SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43864 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43865 return 1;
43866}
43867
43868
43869SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43870 PyObject *pyobj = 0;
43871
43872 {
43873#if wxUSE_UNICODE
43874 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43875#else
43876 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43877#endif
43878 }
43879 return pyobj;
43880}
43881
43882
43883SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43884 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43885 return 1;
43886}
43887
43888
43889SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43890 PyObject *pyobj = 0;
43891
43892 {
43893#if wxUSE_UNICODE
43894 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43895#else
43896 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43897#endif
43898 }
43899 return pyobj;
43900}
43901
43902
43903SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43904 PyObject *resultobj = 0;
43905 wxWindow *arg1 = (wxWindow *) 0 ;
43906 int arg2 = (int) -1 ;
43907 wxString const &arg3_defvalue = wxPyEmptyString ;
43908 wxString *arg3 = (wxString *) &arg3_defvalue ;
43909 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43910 wxString *arg4 = (wxString *) &arg4_defvalue ;
43911 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43912 wxString *arg5 = (wxString *) &arg5_defvalue ;
43913 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43914 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43915 wxSize const &arg7_defvalue = wxDefaultSize ;
43916 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43917 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43918 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43919 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43920 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43921 wxString *arg10 = (wxString *) &arg10_defvalue ;
43922 wxFilePickerCtrl *result = 0 ;
43923 void *argp1 = 0 ;
43924 int res1 = 0 ;
43925 int val2 ;
43926 int ecode2 = 0 ;
43927 bool temp3 = false ;
43928 bool temp4 = false ;
43929 bool temp5 = false ;
43930 wxPoint temp6 ;
43931 wxSize temp7 ;
43932 long val8 ;
43933 int ecode8 = 0 ;
43934 void *argp9 = 0 ;
43935 int res9 = 0 ;
43936 bool temp10 = false ;
43937 PyObject * obj0 = 0 ;
43938 PyObject * obj1 = 0 ;
43939 PyObject * obj2 = 0 ;
43940 PyObject * obj3 = 0 ;
43941 PyObject * obj4 = 0 ;
43942 PyObject * obj5 = 0 ;
43943 PyObject * obj6 = 0 ;
43944 PyObject * obj7 = 0 ;
43945 PyObject * obj8 = 0 ;
43946 PyObject * obj9 = 0 ;
43947 char * kwnames[] = {
43948 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43949 };
43950
43951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43953 if (!SWIG_IsOK(res1)) {
43954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43955 }
43956 arg1 = reinterpret_cast< wxWindow * >(argp1);
43957 if (obj1) {
43958 ecode2 = SWIG_AsVal_int(obj1, &val2);
43959 if (!SWIG_IsOK(ecode2)) {
43960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43961 }
43962 arg2 = static_cast< int >(val2);
43963 }
43964 if (obj2) {
43965 {
43966 arg3 = wxString_in_helper(obj2);
43967 if (arg3 == NULL) SWIG_fail;
43968 temp3 = true;
43969 }
43970 }
43971 if (obj3) {
43972 {
43973 arg4 = wxString_in_helper(obj3);
43974 if (arg4 == NULL) SWIG_fail;
43975 temp4 = true;
43976 }
43977 }
43978 if (obj4) {
43979 {
43980 arg5 = wxString_in_helper(obj4);
43981 if (arg5 == NULL) SWIG_fail;
43982 temp5 = true;
43983 }
43984 }
43985 if (obj5) {
43986 {
43987 arg6 = &temp6;
43988 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43989 }
43990 }
43991 if (obj6) {
43992 {
43993 arg7 = &temp7;
43994 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43995 }
43996 }
43997 if (obj7) {
43998 ecode8 = SWIG_AsVal_long(obj7, &val8);
43999 if (!SWIG_IsOK(ecode8)) {
44000 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
44001 }
44002 arg8 = static_cast< long >(val8);
44003 }
44004 if (obj8) {
44005 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44006 if (!SWIG_IsOK(res9)) {
44007 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44008 }
44009 if (!argp9) {
44010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44011 }
44012 arg9 = reinterpret_cast< wxValidator * >(argp9);
44013 }
44014 if (obj9) {
44015 {
44016 arg10 = wxString_in_helper(obj9);
44017 if (arg10 == NULL) SWIG_fail;
44018 temp10 = true;
44019 }
44020 }
44021 {
44022 if (!wxPyCheckForApp()) SWIG_fail;
44023 PyThreadState* __tstate = wxPyBeginAllowThreads();
44024 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);
44025 wxPyEndAllowThreads(__tstate);
44026 if (PyErr_Occurred()) SWIG_fail;
44027 }
44028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
44029 {
44030 if (temp3)
44031 delete arg3;
44032 }
44033 {
44034 if (temp4)
44035 delete arg4;
44036 }
44037 {
44038 if (temp5)
44039 delete arg5;
44040 }
44041 {
44042 if (temp10)
44043 delete arg10;
44044 }
44045 return resultobj;
44046fail:
44047 {
44048 if (temp3)
44049 delete arg3;
44050 }
44051 {
44052 if (temp4)
44053 delete arg4;
44054 }
44055 {
44056 if (temp5)
44057 delete arg5;
44058 }
44059 {
44060 if (temp10)
44061 delete arg10;
44062 }
44063 return NULL;
44064}
44065
44066
44067SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44068 PyObject *resultobj = 0;
44069 wxFilePickerCtrl *result = 0 ;
44070
44071 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
44072 {
44073 if (!wxPyCheckForApp()) SWIG_fail;
44074 PyThreadState* __tstate = wxPyBeginAllowThreads();
44075 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
44076 wxPyEndAllowThreads(__tstate);
44077 if (PyErr_Occurred()) SWIG_fail;
44078 }
44079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
44080 return resultobj;
44081fail:
44082 return NULL;
44083}
44084
44085
44086SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44087 PyObject *resultobj = 0;
44088 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44089 wxWindow *arg2 = (wxWindow *) 0 ;
44090 int arg3 = (int) -1 ;
44091 wxString const &arg4_defvalue = wxPyEmptyString ;
44092 wxString *arg4 = (wxString *) &arg4_defvalue ;
44093 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
44094 wxString *arg5 = (wxString *) &arg5_defvalue ;
44095 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44096 wxString *arg6 = (wxString *) &arg6_defvalue ;
44097 wxPoint const &arg7_defvalue = wxDefaultPosition ;
44098 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
44099 wxSize const &arg8_defvalue = wxDefaultSize ;
44100 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
44101 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
44102 wxValidator const &arg10_defvalue = wxDefaultValidator ;
44103 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
44104 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
44105 wxString *arg11 = (wxString *) &arg11_defvalue ;
44106 bool result;
44107 void *argp1 = 0 ;
44108 int res1 = 0 ;
44109 void *argp2 = 0 ;
44110 int res2 = 0 ;
44111 int val3 ;
44112 int ecode3 = 0 ;
44113 bool temp4 = false ;
44114 bool temp5 = false ;
44115 bool temp6 = false ;
44116 wxPoint temp7 ;
44117 wxSize temp8 ;
44118 long val9 ;
44119 int ecode9 = 0 ;
44120 void *argp10 = 0 ;
44121 int res10 = 0 ;
44122 bool temp11 = false ;
44123 PyObject * obj0 = 0 ;
44124 PyObject * obj1 = 0 ;
44125 PyObject * obj2 = 0 ;
44126 PyObject * obj3 = 0 ;
44127 PyObject * obj4 = 0 ;
44128 PyObject * obj5 = 0 ;
44129 PyObject * obj6 = 0 ;
44130 PyObject * obj7 = 0 ;
44131 PyObject * obj8 = 0 ;
44132 PyObject * obj9 = 0 ;
44133 PyObject * obj10 = 0 ;
44134 char * kwnames[] = {
44135 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44136 };
44137
44138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
44139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44140 if (!SWIG_IsOK(res1)) {
44141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44142 }
44143 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44144 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44145 if (!SWIG_IsOK(res2)) {
44146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44147 }
44148 arg2 = reinterpret_cast< wxWindow * >(argp2);
44149 if (obj2) {
44150 ecode3 = SWIG_AsVal_int(obj2, &val3);
44151 if (!SWIG_IsOK(ecode3)) {
44152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44153 }
44154 arg3 = static_cast< int >(val3);
44155 }
44156 if (obj3) {
44157 {
44158 arg4 = wxString_in_helper(obj3);
44159 if (arg4 == NULL) SWIG_fail;
44160 temp4 = true;
44161 }
44162 }
44163 if (obj4) {
44164 {
44165 arg5 = wxString_in_helper(obj4);
44166 if (arg5 == NULL) SWIG_fail;
44167 temp5 = true;
44168 }
44169 }
44170 if (obj5) {
44171 {
44172 arg6 = wxString_in_helper(obj5);
44173 if (arg6 == NULL) SWIG_fail;
44174 temp6 = true;
44175 }
44176 }
44177 if (obj6) {
44178 {
44179 arg7 = &temp7;
44180 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
44181 }
44182 }
44183 if (obj7) {
44184 {
44185 arg8 = &temp8;
44186 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
44187 }
44188 }
44189 if (obj8) {
44190 ecode9 = SWIG_AsVal_long(obj8, &val9);
44191 if (!SWIG_IsOK(ecode9)) {
44192 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
44193 }
44194 arg9 = static_cast< long >(val9);
44195 }
44196 if (obj9) {
44197 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
44198 if (!SWIG_IsOK(res10)) {
44199 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44200 }
44201 if (!argp10) {
44202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44203 }
44204 arg10 = reinterpret_cast< wxValidator * >(argp10);
44205 }
44206 if (obj10) {
44207 {
44208 arg11 = wxString_in_helper(obj10);
44209 if (arg11 == NULL) SWIG_fail;
44210 temp11 = true;
44211 }
44212 }
44213 {
44214 PyThreadState* __tstate = wxPyBeginAllowThreads();
44215 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);
44216 wxPyEndAllowThreads(__tstate);
44217 if (PyErr_Occurred()) SWIG_fail;
44218 }
44219 {
44220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44221 }
44222 {
44223 if (temp4)
44224 delete arg4;
44225 }
44226 {
44227 if (temp5)
44228 delete arg5;
44229 }
44230 {
44231 if (temp6)
44232 delete arg6;
44233 }
44234 {
44235 if (temp11)
44236 delete arg11;
44237 }
44238 return resultobj;
44239fail:
44240 {
44241 if (temp4)
44242 delete arg4;
44243 }
44244 {
44245 if (temp5)
44246 delete arg5;
44247 }
44248 {
44249 if (temp6)
44250 delete arg6;
44251 }
44252 {
44253 if (temp11)
44254 delete arg11;
44255 }
44256 return NULL;
44257}
44258
44259
44260SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44261 PyObject *resultobj = 0;
44262 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44263 wxString result;
44264 void *argp1 = 0 ;
44265 int res1 = 0 ;
44266 PyObject *swig_obj[1] ;
44267
44268 if (!args) SWIG_fail;
44269 swig_obj[0] = args;
44270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44271 if (!SWIG_IsOK(res1)) {
44272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44273 }
44274 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44275 {
44276 PyThreadState* __tstate = wxPyBeginAllowThreads();
44277 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44278 wxPyEndAllowThreads(__tstate);
44279 if (PyErr_Occurred()) SWIG_fail;
44280 }
44281 {
44282#if wxUSE_UNICODE
44283 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44284#else
44285 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44286#endif
44287 }
44288 return resultobj;
44289fail:
44290 return NULL;
44291}
44292
44293
44294SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44295 PyObject *resultobj = 0;
44296 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44297 wxString *arg2 = 0 ;
44298 void *argp1 = 0 ;
44299 int res1 = 0 ;
44300 bool temp2 = false ;
44301 PyObject * obj0 = 0 ;
44302 PyObject * obj1 = 0 ;
44303 char * kwnames[] = {
44304 (char *) "self",(char *) "str", NULL
44305 };
44306
44307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44309 if (!SWIG_IsOK(res1)) {
44310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44311 }
44312 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44313 {
44314 arg2 = wxString_in_helper(obj1);
44315 if (arg2 == NULL) SWIG_fail;
44316 temp2 = true;
44317 }
44318 {
44319 PyThreadState* __tstate = wxPyBeginAllowThreads();
44320 (arg1)->SetPath((wxString const &)*arg2);
44321 wxPyEndAllowThreads(__tstate);
44322 if (PyErr_Occurred()) SWIG_fail;
44323 }
44324 resultobj = SWIG_Py_Void();
44325 {
44326 if (temp2)
44327 delete arg2;
44328 }
44329 return resultobj;
44330fail:
44331 {
44332 if (temp2)
44333 delete arg2;
44334 }
44335 return NULL;
44336}
44337
44338
b02396e8
RD
44339SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44340 PyObject *resultobj = 0;
44341 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44342 wxString *arg2 = 0 ;
44343 bool result;
44344 void *argp1 = 0 ;
44345 int res1 = 0 ;
44346 bool temp2 = false ;
44347 PyObject * obj0 = 0 ;
44348 PyObject * obj1 = 0 ;
44349 char * kwnames[] = {
44350 (char *) "self",(char *) "path", NULL
44351 };
44352
44353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44355 if (!SWIG_IsOK(res1)) {
44356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44357 }
44358 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44359 {
44360 arg2 = wxString_in_helper(obj1);
44361 if (arg2 == NULL) SWIG_fail;
44362 temp2 = true;
44363 }
44364 {
44365 PyThreadState* __tstate = wxPyBeginAllowThreads();
44366 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44367 wxPyEndAllowThreads(__tstate);
44368 if (PyErr_Occurred()) SWIG_fail;
44369 }
44370 {
44371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44372 }
44373 {
44374 if (temp2)
44375 delete arg2;
44376 }
44377 return resultobj;
44378fail:
44379 {
44380 if (temp2)
44381 delete arg2;
44382 }
44383 return NULL;
44384}
44385
44386
44387SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44388 PyObject *resultobj = 0;
44389 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44390 wxString result;
44391 void *argp1 = 0 ;
44392 int res1 = 0 ;
44393 PyObject *swig_obj[1] ;
44394
44395 if (!args) SWIG_fail;
44396 swig_obj[0] = args;
44397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44398 if (!SWIG_IsOK(res1)) {
44399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44400 }
44401 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44402 {
44403 PyThreadState* __tstate = wxPyBeginAllowThreads();
44404 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44405 wxPyEndAllowThreads(__tstate);
44406 if (PyErr_Occurred()) SWIG_fail;
44407 }
44408 {
44409#if wxUSE_UNICODE
44410 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44411#else
44412 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44413#endif
44414 }
44415 return resultobj;
44416fail:
44417 return NULL;
44418}
44419
44420
b850e7f3
RD
44421SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44422 PyObject *obj;
44423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44424 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44425 return SWIG_Py_Void();
44426}
44427
44428SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44429 return SWIG_Python_InitShadowInstance(args);
44430}
44431
44432SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44433 PyObject *resultobj = 0;
44434 wxWindow *arg1 = (wxWindow *) 0 ;
44435 int arg2 = (int) -1 ;
44436 wxString const &arg3_defvalue = wxPyEmptyString ;
44437 wxString *arg3 = (wxString *) &arg3_defvalue ;
44438 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44439 wxString *arg4 = (wxString *) &arg4_defvalue ;
44440 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44441 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44442 wxSize const &arg6_defvalue = wxDefaultSize ;
44443 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44444 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44445 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44446 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44447 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44448 wxString *arg9 = (wxString *) &arg9_defvalue ;
44449 wxDirPickerCtrl *result = 0 ;
44450 void *argp1 = 0 ;
44451 int res1 = 0 ;
44452 int val2 ;
44453 int ecode2 = 0 ;
44454 bool temp3 = false ;
44455 bool temp4 = false ;
44456 wxPoint temp5 ;
44457 wxSize temp6 ;
44458 long val7 ;
44459 int ecode7 = 0 ;
44460 void *argp8 = 0 ;
44461 int res8 = 0 ;
44462 bool temp9 = false ;
44463 PyObject * obj0 = 0 ;
44464 PyObject * obj1 = 0 ;
44465 PyObject * obj2 = 0 ;
44466 PyObject * obj3 = 0 ;
44467 PyObject * obj4 = 0 ;
44468 PyObject * obj5 = 0 ;
44469 PyObject * obj6 = 0 ;
44470 PyObject * obj7 = 0 ;
44471 PyObject * obj8 = 0 ;
44472 char * kwnames[] = {
44473 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44474 };
44475
44476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44478 if (!SWIG_IsOK(res1)) {
44479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44480 }
44481 arg1 = reinterpret_cast< wxWindow * >(argp1);
44482 if (obj1) {
44483 ecode2 = SWIG_AsVal_int(obj1, &val2);
44484 if (!SWIG_IsOK(ecode2)) {
44485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44486 }
44487 arg2 = static_cast< int >(val2);
44488 }
44489 if (obj2) {
44490 {
44491 arg3 = wxString_in_helper(obj2);
44492 if (arg3 == NULL) SWIG_fail;
44493 temp3 = true;
44494 }
44495 }
44496 if (obj3) {
44497 {
44498 arg4 = wxString_in_helper(obj3);
44499 if (arg4 == NULL) SWIG_fail;
44500 temp4 = true;
44501 }
44502 }
44503 if (obj4) {
44504 {
44505 arg5 = &temp5;
44506 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44507 }
44508 }
44509 if (obj5) {
44510 {
44511 arg6 = &temp6;
44512 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44513 }
44514 }
44515 if (obj6) {
44516 ecode7 = SWIG_AsVal_long(obj6, &val7);
44517 if (!SWIG_IsOK(ecode7)) {
44518 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44519 }
44520 arg7 = static_cast< long >(val7);
44521 }
44522 if (obj7) {
44523 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44524 if (!SWIG_IsOK(res8)) {
44525 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44526 }
44527 if (!argp8) {
44528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44529 }
44530 arg8 = reinterpret_cast< wxValidator * >(argp8);
44531 }
44532 if (obj8) {
44533 {
44534 arg9 = wxString_in_helper(obj8);
44535 if (arg9 == NULL) SWIG_fail;
44536 temp9 = true;
44537 }
44538 }
44539 {
44540 if (!wxPyCheckForApp()) SWIG_fail;
44541 PyThreadState* __tstate = wxPyBeginAllowThreads();
44542 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);
44543 wxPyEndAllowThreads(__tstate);
44544 if (PyErr_Occurred()) SWIG_fail;
44545 }
44546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44547 {
44548 if (temp3)
44549 delete arg3;
44550 }
44551 {
44552 if (temp4)
44553 delete arg4;
44554 }
44555 {
44556 if (temp9)
44557 delete arg9;
44558 }
44559 return resultobj;
44560fail:
44561 {
44562 if (temp3)
44563 delete arg3;
44564 }
44565 {
44566 if (temp4)
44567 delete arg4;
44568 }
44569 {
44570 if (temp9)
44571 delete arg9;
44572 }
44573 return NULL;
44574}
44575
44576
44577SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44578 PyObject *resultobj = 0;
44579 wxDirPickerCtrl *result = 0 ;
44580
44581 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44582 {
44583 if (!wxPyCheckForApp()) SWIG_fail;
44584 PyThreadState* __tstate = wxPyBeginAllowThreads();
44585 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44586 wxPyEndAllowThreads(__tstate);
44587 if (PyErr_Occurred()) SWIG_fail;
44588 }
44589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44590 return resultobj;
44591fail:
44592 return NULL;
44593}
44594
44595
44596SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44597 PyObject *resultobj = 0;
44598 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44599 wxWindow *arg2 = (wxWindow *) 0 ;
44600 int arg3 = (int) -1 ;
44601 wxString const &arg4_defvalue = wxPyEmptyString ;
44602 wxString *arg4 = (wxString *) &arg4_defvalue ;
44603 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44604 wxString *arg5 = (wxString *) &arg5_defvalue ;
44605 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44606 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44607 wxSize const &arg7_defvalue = wxDefaultSize ;
44608 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44609 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44610 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44611 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44612 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44613 wxString *arg10 = (wxString *) &arg10_defvalue ;
44614 bool result;
44615 void *argp1 = 0 ;
44616 int res1 = 0 ;
44617 void *argp2 = 0 ;
44618 int res2 = 0 ;
44619 int val3 ;
44620 int ecode3 = 0 ;
44621 bool temp4 = false ;
44622 bool temp5 = false ;
44623 wxPoint temp6 ;
44624 wxSize temp7 ;
44625 long val8 ;
44626 int ecode8 = 0 ;
44627 void *argp9 = 0 ;
44628 int res9 = 0 ;
44629 bool temp10 = false ;
44630 PyObject * obj0 = 0 ;
44631 PyObject * obj1 = 0 ;
44632 PyObject * obj2 = 0 ;
44633 PyObject * obj3 = 0 ;
44634 PyObject * obj4 = 0 ;
44635 PyObject * obj5 = 0 ;
44636 PyObject * obj6 = 0 ;
44637 PyObject * obj7 = 0 ;
44638 PyObject * obj8 = 0 ;
44639 PyObject * obj9 = 0 ;
44640 char * kwnames[] = {
44641 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44642 };
44643
44644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44646 if (!SWIG_IsOK(res1)) {
44647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44648 }
44649 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44650 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44651 if (!SWIG_IsOK(res2)) {
44652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44653 }
44654 arg2 = reinterpret_cast< wxWindow * >(argp2);
44655 if (obj2) {
44656 ecode3 = SWIG_AsVal_int(obj2, &val3);
44657 if (!SWIG_IsOK(ecode3)) {
44658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44659 }
44660 arg3 = static_cast< int >(val3);
44661 }
44662 if (obj3) {
44663 {
44664 arg4 = wxString_in_helper(obj3);
44665 if (arg4 == NULL) SWIG_fail;
44666 temp4 = true;
44667 }
44668 }
44669 if (obj4) {
44670 {
44671 arg5 = wxString_in_helper(obj4);
44672 if (arg5 == NULL) SWIG_fail;
44673 temp5 = true;
44674 }
44675 }
44676 if (obj5) {
44677 {
44678 arg6 = &temp6;
44679 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44680 }
44681 }
44682 if (obj6) {
44683 {
44684 arg7 = &temp7;
44685 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44686 }
44687 }
44688 if (obj7) {
44689 ecode8 = SWIG_AsVal_long(obj7, &val8);
44690 if (!SWIG_IsOK(ecode8)) {
44691 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44692 }
44693 arg8 = static_cast< long >(val8);
44694 }
44695 if (obj8) {
44696 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44697 if (!SWIG_IsOK(res9)) {
44698 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44699 }
44700 if (!argp9) {
44701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44702 }
44703 arg9 = reinterpret_cast< wxValidator * >(argp9);
44704 }
44705 if (obj9) {
44706 {
44707 arg10 = wxString_in_helper(obj9);
44708 if (arg10 == NULL) SWIG_fail;
44709 temp10 = true;
44710 }
44711 }
44712 {
44713 PyThreadState* __tstate = wxPyBeginAllowThreads();
44714 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);
44715 wxPyEndAllowThreads(__tstate);
44716 if (PyErr_Occurred()) SWIG_fail;
44717 }
44718 {
44719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44720 }
44721 {
44722 if (temp4)
44723 delete arg4;
44724 }
44725 {
44726 if (temp5)
44727 delete arg5;
44728 }
44729 {
44730 if (temp10)
44731 delete arg10;
44732 }
44733 return resultobj;
44734fail:
44735 {
44736 if (temp4)
44737 delete arg4;
44738 }
44739 {
44740 if (temp5)
44741 delete arg5;
44742 }
44743 {
44744 if (temp10)
44745 delete arg10;
44746 }
44747 return NULL;
44748}
44749
44750
44751SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44752 PyObject *resultobj = 0;
44753 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44754 wxString result;
44755 void *argp1 = 0 ;
44756 int res1 = 0 ;
44757 PyObject *swig_obj[1] ;
44758
44759 if (!args) SWIG_fail;
44760 swig_obj[0] = args;
44761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44762 if (!SWIG_IsOK(res1)) {
44763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44764 }
44765 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44766 {
44767 PyThreadState* __tstate = wxPyBeginAllowThreads();
44768 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44769 wxPyEndAllowThreads(__tstate);
44770 if (PyErr_Occurred()) SWIG_fail;
44771 }
44772 {
44773#if wxUSE_UNICODE
44774 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44775#else
44776 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44777#endif
44778 }
44779 return resultobj;
44780fail:
44781 return NULL;
44782}
44783
44784
44785SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44786 PyObject *resultobj = 0;
44787 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44788 wxString *arg2 = 0 ;
44789 void *argp1 = 0 ;
44790 int res1 = 0 ;
44791 bool temp2 = false ;
44792 PyObject * obj0 = 0 ;
44793 PyObject * obj1 = 0 ;
44794 char * kwnames[] = {
44795 (char *) "self",(char *) "str", NULL
44796 };
44797
44798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44800 if (!SWIG_IsOK(res1)) {
44801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44802 }
44803 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44804 {
44805 arg2 = wxString_in_helper(obj1);
44806 if (arg2 == NULL) SWIG_fail;
44807 temp2 = true;
44808 }
44809 {
44810 PyThreadState* __tstate = wxPyBeginAllowThreads();
44811 (arg1)->SetPath((wxString const &)*arg2);
44812 wxPyEndAllowThreads(__tstate);
44813 if (PyErr_Occurred()) SWIG_fail;
44814 }
44815 resultobj = SWIG_Py_Void();
44816 {
44817 if (temp2)
44818 delete arg2;
44819 }
44820 return resultobj;
44821fail:
44822 {
44823 if (temp2)
44824 delete arg2;
44825 }
44826 return NULL;
44827}
44828
44829
b02396e8
RD
44830SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44831 PyObject *resultobj = 0;
44832 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44833 wxString *arg2 = 0 ;
44834 bool result;
44835 void *argp1 = 0 ;
44836 int res1 = 0 ;
44837 bool temp2 = false ;
44838 PyObject * obj0 = 0 ;
44839 PyObject * obj1 = 0 ;
44840 char * kwnames[] = {
44841 (char *) "self",(char *) "path", NULL
44842 };
44843
44844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44846 if (!SWIG_IsOK(res1)) {
44847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44848 }
44849 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44850 {
44851 arg2 = wxString_in_helper(obj1);
44852 if (arg2 == NULL) SWIG_fail;
44853 temp2 = true;
44854 }
44855 {
44856 PyThreadState* __tstate = wxPyBeginAllowThreads();
44857 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44858 wxPyEndAllowThreads(__tstate);
44859 if (PyErr_Occurred()) SWIG_fail;
44860 }
44861 {
44862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44863 }
44864 {
44865 if (temp2)
44866 delete arg2;
44867 }
44868 return resultobj;
44869fail:
44870 {
44871 if (temp2)
44872 delete arg2;
44873 }
44874 return NULL;
44875}
44876
44877
44878SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44879 PyObject *resultobj = 0;
44880 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44881 wxString result;
44882 void *argp1 = 0 ;
44883 int res1 = 0 ;
44884 PyObject *swig_obj[1] ;
44885
44886 if (!args) SWIG_fail;
44887 swig_obj[0] = args;
44888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44889 if (!SWIG_IsOK(res1)) {
44890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44891 }
44892 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44893 {
44894 PyThreadState* __tstate = wxPyBeginAllowThreads();
44895 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44896 wxPyEndAllowThreads(__tstate);
44897 if (PyErr_Occurred()) SWIG_fail;
44898 }
44899 {
44900#if wxUSE_UNICODE
44901 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44902#else
44903 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44904#endif
44905 }
44906 return resultobj;
44907fail:
44908 return NULL;
44909}
44910
44911
b850e7f3
RD
44912SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44913 PyObject *obj;
44914 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44915 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44916 return SWIG_Py_Void();
44917}
44918
44919SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44920 return SWIG_Python_InitShadowInstance(args);
44921}
44922
44923SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44924 PyObject *resultobj = 0;
44925 wxEventType arg1 ;
44926 wxObject *arg2 = (wxObject *) 0 ;
44927 int arg3 ;
44928 wxString *arg4 = 0 ;
44929 wxFileDirPickerEvent *result = 0 ;
44930 int val1 ;
44931 int ecode1 = 0 ;
44932 void *argp2 = 0 ;
44933 int res2 = 0 ;
44934 int val3 ;
44935 int ecode3 = 0 ;
44936 bool temp4 = false ;
44937 PyObject * obj0 = 0 ;
44938 PyObject * obj1 = 0 ;
44939 PyObject * obj2 = 0 ;
44940 PyObject * obj3 = 0 ;
44941 char * kwnames[] = {
44942 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44943 };
44944
44945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44946 ecode1 = SWIG_AsVal_int(obj0, &val1);
44947 if (!SWIG_IsOK(ecode1)) {
44948 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44949 }
44950 arg1 = static_cast< wxEventType >(val1);
44951 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44952 if (!SWIG_IsOK(res2)) {
44953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44954 }
44955 arg2 = reinterpret_cast< wxObject * >(argp2);
44956 ecode3 = SWIG_AsVal_int(obj2, &val3);
44957 if (!SWIG_IsOK(ecode3)) {
44958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44959 }
44960 arg3 = static_cast< int >(val3);
44961 {
44962 arg4 = wxString_in_helper(obj3);
44963 if (arg4 == NULL) SWIG_fail;
44964 temp4 = true;
44965 }
44966 {
44967 PyThreadState* __tstate = wxPyBeginAllowThreads();
44968 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44969 wxPyEndAllowThreads(__tstate);
44970 if (PyErr_Occurred()) SWIG_fail;
44971 }
44972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44973 {
44974 if (temp4)
44975 delete arg4;
44976 }
44977 return resultobj;
44978fail:
44979 {
44980 if (temp4)
44981 delete arg4;
44982 }
44983 return NULL;
44984}
44985
44986
44987SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44988 PyObject *resultobj = 0;
44989 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44990 wxString result;
44991 void *argp1 = 0 ;
44992 int res1 = 0 ;
44993 PyObject *swig_obj[1] ;
44994
44995 if (!args) SWIG_fail;
44996 swig_obj[0] = args;
44997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44998 if (!SWIG_IsOK(res1)) {
44999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
45000 }
45001 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45002 {
45003 PyThreadState* __tstate = wxPyBeginAllowThreads();
45004 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
45005 wxPyEndAllowThreads(__tstate);
45006 if (PyErr_Occurred()) SWIG_fail;
45007 }
45008 {
45009#if wxUSE_UNICODE
45010 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45011#else
45012 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45013#endif
45014 }
45015 return resultobj;
45016fail:
45017 return NULL;
45018}
45019
45020
45021SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45022 PyObject *resultobj = 0;
45023 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45024 wxString *arg2 = 0 ;
45025 void *argp1 = 0 ;
45026 int res1 = 0 ;
45027 bool temp2 = false ;
45028 PyObject * obj0 = 0 ;
45029 PyObject * obj1 = 0 ;
45030 char * kwnames[] = {
45031 (char *) "self",(char *) "p", NULL
45032 };
45033
45034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
45035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45036 if (!SWIG_IsOK(res1)) {
45037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
45038 }
45039 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45040 {
45041 arg2 = wxString_in_helper(obj1);
45042 if (arg2 == NULL) SWIG_fail;
45043 temp2 = true;
45044 }
45045 {
45046 PyThreadState* __tstate = wxPyBeginAllowThreads();
45047 (arg1)->SetPath((wxString const &)*arg2);
45048 wxPyEndAllowThreads(__tstate);
45049 if (PyErr_Occurred()) SWIG_fail;
45050 }
45051 resultobj = SWIG_Py_Void();
45052 {
45053 if (temp2)
45054 delete arg2;
45055 }
45056 return resultobj;
45057fail:
45058 {
45059 if (temp2)
45060 delete arg2;
45061 }
45062 return NULL;
45063}
45064
45065
45066SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45067 PyObject *obj;
45068 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45069 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
45070 return SWIG_Py_Void();
45071}
45072
45073SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45074 return SWIG_Python_InitShadowInstance(args);
45075}
45076
45077SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
45078 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
45079 return 1;
45080}
45081
45082
45083SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
45084 PyObject *pyobj = 0;
45085
45086 {
45087#if wxUSE_UNICODE
45088 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45089#else
45090 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45091#endif
45092 }
45093 return pyobj;
45094}
45095
45096
45097SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45098 PyObject *resultobj = 0;
45099 wxWindow *arg1 = (wxWindow *) 0 ;
45100 int arg2 = (int) -1 ;
45101 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
45102 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
45103 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45104 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45105 wxSize const &arg5_defvalue = wxDefaultSize ;
45106 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45107 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
45108 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45109 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45110 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
45111 wxString *arg8 = (wxString *) &arg8_defvalue ;
45112 wxFontPickerCtrl *result = 0 ;
45113 void *argp1 = 0 ;
45114 int res1 = 0 ;
45115 int val2 ;
45116 int ecode2 = 0 ;
45117 void *argp3 = 0 ;
45118 int res3 = 0 ;
45119 wxPoint temp4 ;
45120 wxSize temp5 ;
45121 long val6 ;
45122 int ecode6 = 0 ;
45123 void *argp7 = 0 ;
45124 int res7 = 0 ;
45125 bool temp8 = false ;
45126 PyObject * obj0 = 0 ;
45127 PyObject * obj1 = 0 ;
45128 PyObject * obj2 = 0 ;
45129 PyObject * obj3 = 0 ;
45130 PyObject * obj4 = 0 ;
45131 PyObject * obj5 = 0 ;
45132 PyObject * obj6 = 0 ;
45133 PyObject * obj7 = 0 ;
45134 char * kwnames[] = {
45135 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45136 };
45137
45138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45140 if (!SWIG_IsOK(res1)) {
45141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
45142 }
45143 arg1 = reinterpret_cast< wxWindow * >(argp1);
45144 if (obj1) {
45145 ecode2 = SWIG_AsVal_int(obj1, &val2);
45146 if (!SWIG_IsOK(ecode2)) {
45147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
45148 }
45149 arg2 = static_cast< int >(val2);
45150 }
45151 if (obj2) {
45152 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45153 if (!SWIG_IsOK(res3)) {
45154 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45155 }
45156 if (!argp3) {
45157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45158 }
45159 arg3 = reinterpret_cast< wxFont * >(argp3);
45160 }
45161 if (obj3) {
45162 {
45163 arg4 = &temp4;
45164 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45165 }
45166 }
45167 if (obj4) {
45168 {
45169 arg5 = &temp5;
45170 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45171 }
45172 }
45173 if (obj5) {
45174 ecode6 = SWIG_AsVal_long(obj5, &val6);
45175 if (!SWIG_IsOK(ecode6)) {
45176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
45177 }
45178 arg6 = static_cast< long >(val6);
45179 }
45180 if (obj6) {
45181 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45182 if (!SWIG_IsOK(res7)) {
45183 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45184 }
45185 if (!argp7) {
45186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45187 }
45188 arg7 = reinterpret_cast< wxValidator * >(argp7);
45189 }
45190 if (obj7) {
45191 {
45192 arg8 = wxString_in_helper(obj7);
45193 if (arg8 == NULL) SWIG_fail;
45194 temp8 = true;
45195 }
45196 }
45197 {
45198 if (!wxPyCheckForApp()) SWIG_fail;
45199 PyThreadState* __tstate = wxPyBeginAllowThreads();
45200 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45201 wxPyEndAllowThreads(__tstate);
45202 if (PyErr_Occurred()) SWIG_fail;
45203 }
45204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
45205 {
45206 if (temp8)
45207 delete arg8;
45208 }
45209 return resultobj;
45210fail:
45211 {
45212 if (temp8)
45213 delete arg8;
45214 }
45215 return NULL;
45216}
45217
45218
45219SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45220 PyObject *resultobj = 0;
45221 wxFontPickerCtrl *result = 0 ;
45222
45223 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
45224 {
45225 if (!wxPyCheckForApp()) SWIG_fail;
45226 PyThreadState* __tstate = wxPyBeginAllowThreads();
45227 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
45228 wxPyEndAllowThreads(__tstate);
45229 if (PyErr_Occurred()) SWIG_fail;
45230 }
45231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
45232 return resultobj;
45233fail:
45234 return NULL;
45235}
45236
45237
45238SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45239 PyObject *resultobj = 0;
45240 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45241 wxWindow *arg2 = (wxWindow *) 0 ;
45242 int arg3 = (int) -1 ;
45243 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
45244 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45245 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45246 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45247 wxSize const &arg6_defvalue = wxDefaultSize ;
45248 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45249 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45250 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45251 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45252 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45253 wxString *arg9 = (wxString *) &arg9_defvalue ;
45254 bool result;
45255 void *argp1 = 0 ;
45256 int res1 = 0 ;
45257 void *argp2 = 0 ;
45258 int res2 = 0 ;
45259 int val3 ;
45260 int ecode3 = 0 ;
45261 void *argp4 = 0 ;
45262 int res4 = 0 ;
45263 wxPoint temp5 ;
45264 wxSize temp6 ;
45265 long val7 ;
45266 int ecode7 = 0 ;
45267 void *argp8 = 0 ;
45268 int res8 = 0 ;
45269 bool temp9 = false ;
45270 PyObject * obj0 = 0 ;
45271 PyObject * obj1 = 0 ;
45272 PyObject * obj2 = 0 ;
45273 PyObject * obj3 = 0 ;
45274 PyObject * obj4 = 0 ;
45275 PyObject * obj5 = 0 ;
45276 PyObject * obj6 = 0 ;
45277 PyObject * obj7 = 0 ;
45278 PyObject * obj8 = 0 ;
45279 char * kwnames[] = {
45280 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45281 };
45282
45283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45285 if (!SWIG_IsOK(res1)) {
45286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45287 }
45288 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45289 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45290 if (!SWIG_IsOK(res2)) {
45291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45292 }
45293 arg2 = reinterpret_cast< wxWindow * >(argp2);
45294 if (obj2) {
45295 ecode3 = SWIG_AsVal_int(obj2, &val3);
45296 if (!SWIG_IsOK(ecode3)) {
45297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45298 }
45299 arg3 = static_cast< int >(val3);
45300 }
45301 if (obj3) {
45302 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45303 if (!SWIG_IsOK(res4)) {
45304 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45305 }
45306 if (!argp4) {
45307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45308 }
45309 arg4 = reinterpret_cast< wxFont * >(argp4);
45310 }
45311 if (obj4) {
45312 {
45313 arg5 = &temp5;
45314 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45315 }
45316 }
45317 if (obj5) {
45318 {
45319 arg6 = &temp6;
45320 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45321 }
45322 }
45323 if (obj6) {
45324 ecode7 = SWIG_AsVal_long(obj6, &val7);
45325 if (!SWIG_IsOK(ecode7)) {
45326 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45327 }
45328 arg7 = static_cast< long >(val7);
45329 }
45330 if (obj7) {
45331 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45332 if (!SWIG_IsOK(res8)) {
45333 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45334 }
45335 if (!argp8) {
45336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45337 }
45338 arg8 = reinterpret_cast< wxValidator * >(argp8);
45339 }
45340 if (obj8) {
45341 {
45342 arg9 = wxString_in_helper(obj8);
45343 if (arg9 == NULL) SWIG_fail;
45344 temp9 = true;
45345 }
45346 }
45347 {
45348 PyThreadState* __tstate = wxPyBeginAllowThreads();
45349 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45350 wxPyEndAllowThreads(__tstate);
45351 if (PyErr_Occurred()) SWIG_fail;
45352 }
45353 {
45354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45355 }
45356 {
45357 if (temp9)
45358 delete arg9;
45359 }
45360 return resultobj;
45361fail:
45362 {
45363 if (temp9)
45364 delete arg9;
45365 }
45366 return NULL;
45367}
45368
45369
45370SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45371 PyObject *resultobj = 0;
45372 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45373 wxFont result;
45374 void *argp1 = 0 ;
45375 int res1 = 0 ;
45376 PyObject *swig_obj[1] ;
45377
45378 if (!args) SWIG_fail;
45379 swig_obj[0] = args;
45380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45381 if (!SWIG_IsOK(res1)) {
45382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45383 }
45384 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45385 {
45386 PyThreadState* __tstate = wxPyBeginAllowThreads();
45387 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45388 wxPyEndAllowThreads(__tstate);
45389 if (PyErr_Occurred()) SWIG_fail;
45390 }
45391 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45392 return resultobj;
45393fail:
45394 return NULL;
45395}
45396
45397
45398SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45399 PyObject *resultobj = 0;
45400 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45401 wxFont *arg2 = 0 ;
45402 void *argp1 = 0 ;
45403 int res1 = 0 ;
45404 void *argp2 = 0 ;
45405 int res2 = 0 ;
45406 PyObject * obj0 = 0 ;
45407 PyObject * obj1 = 0 ;
45408 char * kwnames[] = {
45409 (char *) "self",(char *) "f", NULL
45410 };
45411
45412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45414 if (!SWIG_IsOK(res1)) {
45415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45416 }
45417 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45418 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45419 if (!SWIG_IsOK(res2)) {
45420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45421 }
45422 if (!argp2) {
45423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45424 }
45425 arg2 = reinterpret_cast< wxFont * >(argp2);
45426 {
45427 PyThreadState* __tstate = wxPyBeginAllowThreads();
45428 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45429 wxPyEndAllowThreads(__tstate);
45430 if (PyErr_Occurred()) SWIG_fail;
45431 }
45432 resultobj = SWIG_Py_Void();
45433 return resultobj;
45434fail:
45435 return NULL;
45436}
45437
45438
45439SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45440 PyObject *resultobj = 0;
45441 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45442 unsigned int arg2 ;
45443 void *argp1 = 0 ;
45444 int res1 = 0 ;
45445 unsigned int val2 ;
45446 int ecode2 = 0 ;
45447 PyObject * obj0 = 0 ;
45448 PyObject * obj1 = 0 ;
45449 char * kwnames[] = {
45450 (char *) "self",(char *) "max", NULL
45451 };
45452
45453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45455 if (!SWIG_IsOK(res1)) {
45456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45457 }
45458 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45459 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45460 if (!SWIG_IsOK(ecode2)) {
45461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45462 }
45463 arg2 = static_cast< unsigned int >(val2);
45464 {
45465 PyThreadState* __tstate = wxPyBeginAllowThreads();
45466 (arg1)->SetMaxPointSize(arg2);
45467 wxPyEndAllowThreads(__tstate);
45468 if (PyErr_Occurred()) SWIG_fail;
45469 }
45470 resultobj = SWIG_Py_Void();
45471 return resultobj;
45472fail:
45473 return NULL;
45474}
45475
45476
45477SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45478 PyObject *resultobj = 0;
45479 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45480 unsigned int result;
45481 void *argp1 = 0 ;
45482 int res1 = 0 ;
45483 PyObject *swig_obj[1] ;
45484
45485 if (!args) SWIG_fail;
45486 swig_obj[0] = args;
45487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45488 if (!SWIG_IsOK(res1)) {
45489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45490 }
45491 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45492 {
45493 PyThreadState* __tstate = wxPyBeginAllowThreads();
45494 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45495 wxPyEndAllowThreads(__tstate);
45496 if (PyErr_Occurred()) SWIG_fail;
45497 }
45498 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45499 return resultobj;
45500fail:
45501 return NULL;
45502}
45503
45504
45505SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45506 PyObject *obj;
45507 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45508 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45509 return SWIG_Py_Void();
45510}
45511
45512SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45513 return SWIG_Python_InitShadowInstance(args);
45514}
45515
45516SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45517 PyObject *resultobj = 0;
45518 wxObject *arg1 = (wxObject *) 0 ;
45519 int arg2 ;
45520 wxFont *arg3 = 0 ;
45521 wxFontPickerEvent *result = 0 ;
45522 void *argp1 = 0 ;
45523 int res1 = 0 ;
45524 int val2 ;
45525 int ecode2 = 0 ;
45526 void *argp3 = 0 ;
45527 int res3 = 0 ;
45528 PyObject * obj0 = 0 ;
45529 PyObject * obj1 = 0 ;
45530 PyObject * obj2 = 0 ;
45531 char * kwnames[] = {
45532 (char *) "generator",(char *) "id",(char *) "f", NULL
45533 };
45534
45535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45537 if (!SWIG_IsOK(res1)) {
45538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45539 }
45540 arg1 = reinterpret_cast< wxObject * >(argp1);
45541 ecode2 = SWIG_AsVal_int(obj1, &val2);
45542 if (!SWIG_IsOK(ecode2)) {
45543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45544 }
45545 arg2 = static_cast< int >(val2);
45546 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45547 if (!SWIG_IsOK(res3)) {
45548 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45549 }
45550 if (!argp3) {
45551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45552 }
45553 arg3 = reinterpret_cast< wxFont * >(argp3);
45554 {
45555 PyThreadState* __tstate = wxPyBeginAllowThreads();
45556 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45557 wxPyEndAllowThreads(__tstate);
45558 if (PyErr_Occurred()) SWIG_fail;
45559 }
45560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45561 return resultobj;
45562fail:
45563 return NULL;
45564}
45565
45566
45567SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45568 PyObject *resultobj = 0;
45569 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45570 wxFont result;
45571 void *argp1 = 0 ;
45572 int res1 = 0 ;
45573 PyObject *swig_obj[1] ;
45574
45575 if (!args) SWIG_fail;
45576 swig_obj[0] = args;
45577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45578 if (!SWIG_IsOK(res1)) {
45579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45580 }
45581 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45582 {
45583 PyThreadState* __tstate = wxPyBeginAllowThreads();
45584 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45585 wxPyEndAllowThreads(__tstate);
45586 if (PyErr_Occurred()) SWIG_fail;
45587 }
45588 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45589 return resultobj;
45590fail:
45591 return NULL;
45592}
45593
45594
45595SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45596 PyObject *resultobj = 0;
45597 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45598 wxFont *arg2 = 0 ;
45599 void *argp1 = 0 ;
45600 int res1 = 0 ;
45601 void *argp2 = 0 ;
45602 int res2 = 0 ;
45603 PyObject * obj0 = 0 ;
45604 PyObject * obj1 = 0 ;
45605 char * kwnames[] = {
45606 (char *) "self",(char *) "c", NULL
45607 };
45608
45609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45611 if (!SWIG_IsOK(res1)) {
45612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45613 }
45614 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45615 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45616 if (!SWIG_IsOK(res2)) {
45617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45618 }
45619 if (!argp2) {
45620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45621 }
45622 arg2 = reinterpret_cast< wxFont * >(argp2);
45623 {
45624 PyThreadState* __tstate = wxPyBeginAllowThreads();
45625 (arg1)->SetFont((wxFont const &)*arg2);
45626 wxPyEndAllowThreads(__tstate);
45627 if (PyErr_Occurred()) SWIG_fail;
45628 }
45629 resultobj = SWIG_Py_Void();
45630 return resultobj;
45631fail:
45632 return NULL;
45633}
45634
45635
45636SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45637 PyObject *obj;
45638 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45639 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45640 return SWIG_Py_Void();
45641}
45642
45643SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45644 return SWIG_Python_InitShadowInstance(args);
45645}
45646
45647static PyMethodDef SwigMethods[] = {
45648 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45649 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45650 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45651 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45652 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45653 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45654 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45655 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45656 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45657 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45658 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45659 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45660 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45661 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45662 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45663 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45664 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45665 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45666 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45667 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45668 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45669 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45670 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45671 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45672 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45673 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45674 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45675 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45676 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45677 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45678 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45679 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45680 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45681 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45682 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45683 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45684 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45685 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45686 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45687 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45688 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45689 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45690 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45691 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45692 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45693 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45694 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45695 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45696 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45697 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45698 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45699 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45700 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45701 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45702 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45703 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45704 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45705 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45706 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45707 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
45708 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45709 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45710 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45711 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45712 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45713 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45714 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45715 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45716 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45717 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45718 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45719 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45720 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45721 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45722 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45723 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45724 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45725 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45726 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45727 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45728 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45729 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45730 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45731 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45732 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
0d2c9713 45733 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
b850e7f3
RD
45734 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45735 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45736 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45737 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45738 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45739 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45740 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45741 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45742 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45743 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45744 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45745 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45746 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45747 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45748 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45749 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45750 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45751 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45752 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45753 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45754 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45755 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45756 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45757 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45758 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45760 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45761 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45762 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45763 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45764 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45765 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45766 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45767 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45768 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45769 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45770 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45771 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45772 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45773 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45774 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45775 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45776 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45777 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45778 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45779 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45780 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45781 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45782 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45783 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45784 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45785 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45786 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45787 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45788 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45789 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45790 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45791 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45792 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45793 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45794 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45795 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45796 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45797 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45798 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45799 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45800 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45801 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45802 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
45803 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45804 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45805 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45806 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45807 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45808 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45809 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45810 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45811 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45812 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45813 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45814 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45815 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45816 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45817 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45818 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45819 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45820 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45821 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45822 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45823 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45824 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45825 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45826 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45827 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45828 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45829 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45830 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45831 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45832 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45833 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45834 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45835 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45837 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45838 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45839 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45840 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45842 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
45843 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
45844 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45845 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45846 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45847 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45848 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45849 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45850 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45851 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45852 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45853 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45854 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45855 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45856 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45857 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45858 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45859 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45860 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45861 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 45862 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45863 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45864 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45865 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45866 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45867 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45868 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45869 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45870 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45871 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45872 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45873 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45874 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45875 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45876 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45877 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45878 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45879 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45880 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45881 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45882 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45883 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45884 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45885 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45886 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45887 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45888 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45889 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45890 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45891 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45892 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 45893 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
b850e7f3
RD
45894 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
45895 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
45896 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45897 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45898 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45900 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45901 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45902 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45903 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45904 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45905 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45906 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45907 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45908 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45909 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45910 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45911 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45912 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45913 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45914 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45915 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45916 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45917 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45918 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45919 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45920 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45921 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45922 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45923 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45924 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45925 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45926 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45927 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45928 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45929 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45930 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45931 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45932 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45933 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45934 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45935 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45936 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45937 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45938 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45939 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45940 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45941 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45942 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45943 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45944 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45945 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45946 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45947 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45948 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45949 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45950 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45951 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45952 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45953 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45954 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45955 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45956 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45957 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45958 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45959 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45960 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45961 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45962 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45963 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45964 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45965 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45966 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45967 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45968 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45969 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45970 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45971 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45972 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45974 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45975 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45976 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45977 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45978 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45979 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45980 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45981 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45982 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45983 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45984 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45985 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45986 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45987 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45988 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45990 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45991 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45992 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45993 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45994 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45996 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45997 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45998 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45999 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
46000 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
46001 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
46002 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
46003 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
46004 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
46005 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
46006 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
46007 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46008 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46009 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
46010 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
46011 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
46012 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
46013 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46014 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46015 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
46016 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46017 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
46018 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
46019 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
46020 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
46021 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
46022 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
46023 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46024 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46025 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46027 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
46028 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46029 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46031 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46032 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
46033 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
46034 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
e9d6f3a4
RD
46035 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
554f62e9
RD
46037 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 46039 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
554f62e9
RD
46040 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
46041 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
46042 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
46043 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
46044 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
46045 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 46046 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 46047 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46048 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46049 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46050 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
46051 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46052 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
46053 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46054 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
46055 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
46057 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
46058 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
46059 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
46060 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46061 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
46062 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
46063 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46064 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
46065 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
46066 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46067 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46068 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
46069 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
46070 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46071 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
46072 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
46073 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
46074 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
46075 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46076 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
46077 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
46078 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
46079 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46080 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
46081 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
46082 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
46083 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
46084 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46085 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
46086 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
46087 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
46088 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46089 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
46090 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
46091 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
46092 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
46093 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46094 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
46095 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
46096 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
46098 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
46099 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
46100 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
46101 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
46102 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
46103 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46104 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
46105 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
46106 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
46107 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
46108 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46109 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
46110 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
46111 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
46112 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
46113 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46114 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
46115 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
46116 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
46117 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
46118 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
46119 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
46120 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
46121 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
46122 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
46123 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
46124 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
46125 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
46126 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
46127 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
46128 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
46129 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
46130 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
46131 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
46132 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
46133 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
46134 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
46135 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
46136 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46137 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46138 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46139 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46140 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46141 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
46142 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
46143 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
46144 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46145 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
46146 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
46147 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
46148 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
46149 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
46150 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
46151 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
46152 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
46153 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
46154 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
46155 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
46156 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
46157 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
46158 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
46159 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
46160 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
46161 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
46162 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
46163 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46164 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46165 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
46166 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
46167 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46168 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46169 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46170 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46171 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46172 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
46173 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46174 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
46175 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
46176 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
46177 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
46178 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
46179 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
46180 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
46181 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
46182 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
46183 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
46184 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
46185 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
46186 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
46187 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46188 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
46189 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
46190 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
46191 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
46192 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
46193 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
46194 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46195 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46196 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
46197 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
46198 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46199 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
46200 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46201 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46202 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46203 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
46204 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
46205 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
46206 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
46207 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
46208 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
46209 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
46210 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
46211 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
46212 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
46213 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
46214 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
46215 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
46216 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
46217 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
46218 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46219 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46220 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
46221 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
46222 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
46223 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
46224 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46225 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46226 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
46227 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46228 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46229 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46230 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
46231 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
46232 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
46233 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
46234 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
46235 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
46236 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
46237 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
46238 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
46239 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
46240 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
46241 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
46242 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
46243 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
46244 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
46245 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
46246 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
46247 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
46248 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
46249 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
46250 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
46251 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
46252 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
46253 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
46254 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
46255 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
46256 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
46257 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
46258 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
46259 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
46260 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
46261 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
46262 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
46263 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
46264 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
46265 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
46266 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46267 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
46268 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
46269 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
46270 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
46271 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
46272 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
46273 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
46274 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
46275 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
46276 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
46277 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
46278 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
46279 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
46280 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
46281 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
46282 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
46283 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
46284 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
46285 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
46286 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
46287 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
46288 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
46289 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
46290 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
46291 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46292 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
46293 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
46294 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46295 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
46296 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46297 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46298 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46299 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46300 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46301 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46302 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
46303 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
46304 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
46305 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46306 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46307 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46308 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46309 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46310 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46311 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46312 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46313 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46314 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46315 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46316 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46317 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
46318 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46319 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
46320 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
46321 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
46322 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
46323 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
46324 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46325 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
46326 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46327 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46328 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46329 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46330 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46331 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
46332 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
46333 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
46334 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
46335 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
46336 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
46337 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
46338 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46339 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
46340 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
46341 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46342 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46343 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46344 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
46345 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46346 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
46347 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46348 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46349 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46350 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46351 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
46352 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46353 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
46354 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46355 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
46356 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
46357 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46358 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46359 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46360 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46361 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46362 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46363 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
46364 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
46365 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46366 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
46367 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
46368 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
46369 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
46370 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46371 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46372 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
46373 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
46374 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46375 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
46376 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46377 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46378 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46379 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
46380 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
46381 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
46382 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
46383 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
46384 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46385 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46386 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
46387 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
46388 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
46389 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
46390 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46391 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
46392 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
46393 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46394 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
46395 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46396 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
46397 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
46398 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 46399 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
554f62e9
RD
46400 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
46401 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46402 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
46403 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
46404 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
46405 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46406 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
46407 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
46408 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46409 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
46410 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46411 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
46412 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46413 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46414 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
46415 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
46416 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
46417 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46418 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
46419 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46420 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46421 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
46422 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
46423 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46424 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
46425 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46426 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
46427 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
46428 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46429 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46430 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46431 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46432 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46433 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46434 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46435 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46436 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46437 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46438 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46439 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46440 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46441 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46442 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46443 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46444 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
46445 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
46446 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46447 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46448 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46449 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46450 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46451 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46452 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46453 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
46454 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
46455 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
46456 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
46457 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
46458 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
46459 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
46460 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
46461 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
46462 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46463 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46464 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
46465 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46466 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46467 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
46468 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46469 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46470 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
46471 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46472 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46473 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46474 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
46475 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
453fb36b
RD
46476 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46477 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
554f62e9
RD
46478 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46479 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
46480 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46481 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
46482 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46483 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
46484 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46485 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46486 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46487 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46488 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46489 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46490 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46491 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46492 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46493 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46494 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
46495 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
46496 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
46497 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46498 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
554f62e9
RD
46499 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46500 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46501 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46502 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46503 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46504 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46505 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46506 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46507 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46508 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46509 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46510 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46511 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46512 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46513 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46514 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46515 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46516 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46517 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46518 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46519 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46520 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46521 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46522 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46523 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46524 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46525 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46526 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46527 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46528 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46529 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46530 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46531 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46532 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46533 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46534 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46535 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46536 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46537 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46538 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46539 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46540 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46541 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46542 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46543 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46544 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46545 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46546 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46547 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46548 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46549 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46550 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46551 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46552 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46553 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46554 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46555 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
46556 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46557 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46558 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46559 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46560 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46561 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46562 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46563 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46564 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46565 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46566 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46567 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46568 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 46569 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
554f62e9
RD
46570 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46571 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46572 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46573 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 46574 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46575 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46576 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46577 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46578 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46579 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46580 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46581 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46582 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46583 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46584 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46585 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46586 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46587 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46588 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46589 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46590 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46591 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46592 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46593 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46594 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46595 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46596 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46597 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46598 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46599 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46600 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46601 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46602 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46603 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46604 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46605 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46606 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46607 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46608 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46609 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46610 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46611 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
46612 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46613 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46614 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46615 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46616 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46617 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46618 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46619 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46620 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46621 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46622 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46623 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46624 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46625 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46626 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46627 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46628 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46629 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46630 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46631 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
46632 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46633 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46634 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46635 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46636 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
1eeb270e
RD
46637 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46638 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
46639 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46640 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46641 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46642 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46643 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46644 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46645 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46646 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46647 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46648 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46649 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46650 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46651 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46652 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46653 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46654 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46655 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46656 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46657 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46658 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46659 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46660 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46661 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46662 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46663 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46664 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46665 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46666 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46667 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46668 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46669 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46670 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46671 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46672 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46673 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46674 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46675 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46676 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46677 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46678 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46679 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46680 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46681 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46682 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46683 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46684 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46685 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46686 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46687 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46688 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46689 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46690 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46691 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46692 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46693 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46694 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46695 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
554f62e9
RD
46696 { NULL, NULL, 0, NULL }
46697};
46698
46699
46700/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46701
46702static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46703 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46704}
46705static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46706 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46707}
46708static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46709 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46710}
46711static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46712 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46713}
46714static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46715 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46716}
46717static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46718 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46719}
46720static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46721 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46722}
46723static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46724 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46725}
b850e7f3
RD
46726static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46727 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46728}
46729static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46730 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46731}
46732static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46733 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46734}
554f62e9
RD
46735static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46736 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46737}
46738static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46739 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46740}
46741static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46742 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46743}
554f62e9
RD
46744static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46745 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46746}
0f83f5da
RD
46747static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
46748 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
46749}
2131d850
RD
46750static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46751 return (void *)((wxEvent *) ((wxPyEvent *) x));
46752}
554f62e9
RD
46753static void *_p_wxListEventTo_p_wxEvent(void *x) {
46754 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46755}
46756static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46757 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46758}
46759static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46760 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46761}
46762static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46763 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46764}
46765static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46766 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46767}
46768static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46769 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46770}
46771static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46772 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46773}
46774static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46775 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46776}
46777static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46778 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46779}
46780static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46781 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46782}
46783static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46784 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46785}
46786static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46787 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46788}
46789static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46790 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46791}
46792static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46793 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46794}
46795static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46796 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46797}
46798static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46799 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46800}
46801static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46802 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46803}
46804static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46805 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46806}
0f83f5da
RD
46807static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46808 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46809}
554f62e9
RD
46810static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46811 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46812}
46813static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46814 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46815}
46816static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46817 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46818}
46819static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46820 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46821}
46822static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46823 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46824}
704eda0c
RD
46825static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46826 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46827}
554f62e9
RD
46828static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46829 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46830}
46831static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46832 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46833}
46834static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46835 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46836}
46837static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46838 return (void *)((wxEvent *) ((wxShowEvent *) x));
46839}
46840static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46841 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46842}
46843static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46844 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46845}
46846static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46847 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46848}
46849static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46850 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46851}
46852static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46853 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46854}
46855static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46856 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46857}
46858static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46859 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46860}
b850e7f3
RD
46861static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46862 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46863}
46864static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46865 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46866}
46867static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46868 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46869}
46870static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46871 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46872}
554f62e9
RD
46873static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46874 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46875}
46876static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46877 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46878}
46879static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46880 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46881}
46882static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46883 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46884}
46885static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46886 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46887}
46888static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46889 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46890}
46891static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46892 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46893}
46894static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46895 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46896}
46897static void *_p_wxToolBarTo_p_wxControl(void *x) {
46898 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46899}
b850e7f3
RD
46900static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46901 return (void *)((wxControl *) ((wxPickerBase *) x));
46902}
554f62e9
RD
46903static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46904 return (void *)((wxControl *) ((wxToggleButton *) x));
46905}
46906static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46907 return (void *)((wxControl *) ((wxRadioButton *) x));
46908}
46909static void *_p_wxToolbookTo_p_wxControl(void *x) {
46910 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46911}
46912static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46913 return (void *)((wxControl *) ((wxToolBarBase *) x));
46914}
46915static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46916 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46917}
46918static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46919 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46920}
46921static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46922 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46923}
46924static void *_p_wxPyControlTo_p_wxControl(void *x) {
46925 return (void *)((wxControl *) ((wxPyControl *) x));
46926}
46927static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46928 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46929}
46930static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46931 return (void *)((wxControl *) ((wxScrollBar *) x));
46932}
46933static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46934 return (void *)((wxControl *) ((wxControlWithItems *) x));
46935}
46936static void *_p_wxGaugeTo_p_wxControl(void *x) {
46937 return (void *)((wxControl *) ((wxGauge *) x));
46938}
46939static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46940 return (void *)((wxControl *) ((wxStaticLine *) x));
46941}
46942static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46943 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46944}
46945static void *_p_wxListbookTo_p_wxControl(void *x) {
46946 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46947}
704eda0c
RD
46948static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46949 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46950}
554f62e9
RD
46951static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46952 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46953}
46954static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46955 return (void *)((wxControl *) ((wxCheckBox *) x));
46956}
46957static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46958 return (void *)((wxControl *) ((wxRadioBox *) x));
46959}
46960static void *_p_wxChoiceTo_p_wxControl(void *x) {
46961 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46962}
46963static void *_p_wxListBoxTo_p_wxControl(void *x) {
46964 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46965}
46966static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46967 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46968}
46969static void *_p_wxListViewTo_p_wxControl(void *x) {
46970 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46971}
46972static void *_p_wxNotebookTo_p_wxControl(void *x) {
46973 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46974}
46975static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46976 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46977}
46978static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46979 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46980}
46981static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46982 return (void *)((wxControl *) ((wxStaticText *) x));
46983}
46984static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46985 return (void *)((wxControl *) ((wxStaticBox *) x));
46986}
46987static void *_p_wxSliderTo_p_wxControl(void *x) {
46988 return (void *)((wxControl *) ((wxSlider *) x));
46989}
46990static void *_p_wxTreebookTo_p_wxControl(void *x) {
46991 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46992}
46993static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46994 return (void *)((wxControl *) ((wxSpinButton *) x));
46995}
46996static void *_p_wxButtonTo_p_wxControl(void *x) {
46997 return (void *)((wxControl *) ((wxButton *) x));
46998}
46999static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
47000 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
47001}
47002static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
47003 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47004}
47005static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
47006 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
47007}
b850e7f3
RD
47008static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
47009 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
47010}
47011static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
47012 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
47013}
47014static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
47015 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
47016}
47017static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
47018 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
47019}
554f62e9
RD
47020static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
47021 return (void *)((wxControl *) ((wxTextCtrl *) x));
47022}
47023static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
47024 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
47025}
47026static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
47027 return (void *)((wxChoice *) ((wxComboBox *) x));
47028}
47029static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
47030 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
47031}
47032static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
47033 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47034}
47035static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
47036 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
47037}
47038static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
47039 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
47040}
47041static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
47042 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
47043}
47044static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
47045 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47046}
47047static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
47048 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47049}
47050static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
47051 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47052}
47053static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
47054 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47055}
47056static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
47057 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47058}
47059static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
47060 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
47061}
47062static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
47063 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
47064}
47065static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
47066 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
47067}
47068static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
47069 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
47070}
47071static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
47072 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
47073}
47074static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
47075 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
47076}
47077static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
47078 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47079}
47080static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
47081 return (void *)((wxEvtHandler *) ((wxValidator *) x));
47082}
47083static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
47084 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
47085}
47086static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
47087 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47088}
b850e7f3
RD
47089static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
47090 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
47091}
554f62e9
RD
47092static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
47093 return (void *)((wxEvtHandler *) ((wxMenu *) x));
47094}
47095static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
47096 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
47097}
47098static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
47099 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
47100}
47101static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
47102 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47103}
47104static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
47105 return (void *)((wxEvtHandler *) ((wxWindow *) x));
47106}
47107static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
47108 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
47109}
47110static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
47111 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47112}
47113static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
47114 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47115}
47116static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
47117 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47118}
47119static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
47120 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47121}
47122static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
47123 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
47124}
47125static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
47126 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
47127}
47128static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
47129 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47130}
47131static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
47132 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
47133}
47134static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
47135 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47136}
47137static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
47138 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
47139}
47140static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
47141 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
47142}
47143static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
47144 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47145}
47146static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
47147 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47148}
704eda0c
RD
47149static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
47150 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47151}
554f62e9
RD
47152static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
47153 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47154}
47155static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
47156 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
47157}
47158static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
47159 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
47160}
47161static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
47162 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47163}
47164static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
47165 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47166}
47167static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
47168 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47169}
47170static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
47171 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47172}
47173static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
47174 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47175}
47176static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
47177 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47178}
47179static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
47180 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47181}
47182static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
47183 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
47184}
47185static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
47186 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
47187}
47188static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
47189 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
47190}
47191static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
47192 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47193}
47194static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
47195 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
47196}
47197static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
47198 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
47199}
47200static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
47201 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47202}
47203static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
47204 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47205}
47206static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
47207 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47208}
b850e7f3
RD
47209static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
47210 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47211}
47212static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
47213 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47214}
47215static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
47216 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47217}
47218static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
47219 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47220}
554f62e9
RD
47221static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
47222 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47223}
47224static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
47225 return (void *)((wxListBox *) ((wxCheckListBox *) x));
47226}
47227static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
47228 return (void *)((wxButton *) ((wxBitmapButton *) x));
47229}
47230static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
47231 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
47232}
47233static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
47234 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
47235}
47236static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
47237 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
47238}
47239static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
47240 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
47241}
47242static void *_p_wxToolbookTo_p_wxObject(void *x) {
47243 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47244}
554f62e9
RD
47245static void *_p_wxSizerItemTo_p_wxObject(void *x) {
47246 return (void *)((wxObject *) ((wxSizerItem *) x));
47247}
0f83f5da
RD
47248static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
47249 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
47250}
554f62e9
RD
47251static void *_p_wxScrollEventTo_p_wxObject(void *x) {
47252 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
47253}
47254static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
47255 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
47256}
47257static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
47258 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
47259}
47260static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
47261 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
47262}
47263static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
47264 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
47265}
47266static void *_p_wxSizerTo_p_wxObject(void *x) {
47267 return (void *)((wxObject *) ((wxSizer *) x));
47268}
47269static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
47270 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
47271}
47272static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
47273 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
47274}
47275static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
47276 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47277}
47278static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
47279 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
47280}
47281static void *_p_wxEventTo_p_wxObject(void *x) {
47282 return (void *)((wxObject *) ((wxEvent *) x));
47283}
47284static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
47285 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
47286}
47287static void *_p_wxGridSizerTo_p_wxObject(void *x) {
47288 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
47289}
47290static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
47291 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
47292}
47293static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
47294 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47295}
b850e7f3
RD
47296static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
47297 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
47298}
554f62e9
RD
47299static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
47300 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47301}
47302static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
47303 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47304}
2131d850
RD
47305static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
47306 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
47307}
554f62e9
RD
47308static void *_p_wxPaintEventTo_p_wxObject(void *x) {
47309 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
47310}
47311static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
47312 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
47313}
47314static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
47315 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
47316}
47317static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
47318 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
47319}
47320static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
47321 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47322}
47323static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
47324 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
47325}
47326static void *_p_wxStaticLineTo_p_wxObject(void *x) {
47327 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
47328}
47329static void *_p_wxControlTo_p_wxObject(void *x) {
47330 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
47331}
47332static void *_p_wxPyControlTo_p_wxObject(void *x) {
47333 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
47334}
47335static void *_p_wxGaugeTo_p_wxObject(void *x) {
47336 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
47337}
47338static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
47339 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
47340}
47341static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
47342 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
47343}
47344static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
47345 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47346}
47347static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
47348 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
47349}
b850e7f3
RD
47350static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
47351 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
47352}
47353static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
47354 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47355}
47356static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
47357 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
47358}
554f62e9
RD
47359static void *_p_wxChoiceTo_p_wxObject(void *x) {
47360 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47361}
47362static void *_p_wxFSFileTo_p_wxObject(void *x) {
47363 return (void *)((wxObject *) ((wxFSFile *) x));
47364}
47365static void *_p_wxPySizerTo_p_wxObject(void *x) {
47366 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
47367}
47368static void *_p_wxTreebookTo_p_wxObject(void *x) {
47369 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47370}
47371static void *_p_wxListViewTo_p_wxObject(void *x) {
47372 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47373}
704eda0c
RD
47374static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
47375 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
47376}
554f62e9
RD
47377static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
47378 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47379}
47380static void *_p_wxNotebookTo_p_wxObject(void *x) {
47381 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47382}
47383static void *_p_wxPyEventTo_p_wxObject(void *x) {
47384 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
47385}
47386static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
47387 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
47388}
47389static void *_p_wxChoicebookTo_p_wxObject(void *x) {
47390 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47391}
47392static void *_p_wxListbookTo_p_wxObject(void *x) {
47393 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47394}
47395static void *_p_wxShowEventTo_p_wxObject(void *x) {
47396 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
47397}
47398static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
47399 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47400}
47401static void *_p_wxSliderTo_p_wxObject(void *x) {
47402 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
47403}
47404static void *_p_wxMenuItemTo_p_wxObject(void *x) {
47405 return (void *)((wxObject *) ((wxMenuItem *) x));
47406}
47407static void *_p_wxDateEventTo_p_wxObject(void *x) {
47408 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
47409}
47410static void *_p_wxIdleEventTo_p_wxObject(void *x) {
47411 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
47412}
47413static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
47414 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
47415}
47416static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
47417 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
47418}
47419static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
47420 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
47421}
47422static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
47423 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
47424}
47425static void *_p_wxSizeEventTo_p_wxObject(void *x) {
47426 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
47427}
47428static void *_p_wxMoveEventTo_p_wxObject(void *x) {
47429 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
47430}
47431static void *_p_wxActivateEventTo_p_wxObject(void *x) {
47432 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
47433}
47434static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
47435 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
47436}
47437static void *_p_wxContextHelpTo_p_wxObject(void *x) {
47438 return (void *)((wxObject *) ((wxContextHelp *) x));
47439}
47440static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
47441 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47442}
47443static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
47444 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
47445}
47446static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
47447 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
47448}
47449static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
47450 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
47451}
47452static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
47453 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
47454}
47455static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
47456 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
47457}
47458static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
47459 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
47460}
47461static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
47462 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
47463}
47464static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47465 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47466}
47467static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47468 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47469}
47470static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
47471 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
47472}
47473static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47474 return (void *)((wxObject *) ((wxImageHandler *) x));
47475}
47476static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47477 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47478}
47479static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47480 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47481}
47482static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47483 return (void *)((wxObject *) ((wxEvtHandler *) x));
47484}
0f83f5da
RD
47485static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
47486 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
47487}
554f62e9
RD
47488static void *_p_wxListEventTo_p_wxObject(void *x) {
47489 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47490}
47491static void *_p_wxListBoxTo_p_wxObject(void *x) {
47492 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47493}
47494static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47495 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47496}
47497static void *_p_wxButtonTo_p_wxObject(void *x) {
47498 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47499}
47500static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47501 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47502}
47503static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47504 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47505}
47506static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47507 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47508}
47509static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47510 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47511}
47512static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47513 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47514}
47515static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47516 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47517}
47518static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47519 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47520}
47521static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47522 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47523}
47524static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47525 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47526}
47527static void *_p_wxListItemTo_p_wxObject(void *x) {
47528 return (void *)((wxObject *) ((wxListItem *) x));
47529}
47530static void *_p_wxImageTo_p_wxObject(void *x) {
47531 return (void *)((wxObject *) ((wxImage *) x));
47532}
47533static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47534 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47535}
47536static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47537 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47538}
47539static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47540 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47541}
47542static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47543 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47544}
47545static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47546 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47547}
47548static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47549 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47550}
47551static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47552 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47553}
47554static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47555 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47556}
47557static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47558 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47559}
47560static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47561 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47562}
47563static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47564 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47565}
47566static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47567 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47568}
47569static void *_p_wxWindowTo_p_wxObject(void *x) {
47570 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47571}
47572static void *_p_wxMenuTo_p_wxObject(void *x) {
47573 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47574}
47575static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47576 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47577}
47578static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47579 return (void *)((wxObject *) ((wxFileSystem *) x));
47580}
47581static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47582 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47583}
47584static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47585 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47586}
47587static void *_p_wxPyAppTo_p_wxObject(void *x) {
47588 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47589}
47590static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47591 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47592}
47593static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47594 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47595}
47596static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47597 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47598}
47599static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47600 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47601}
47602static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47603 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47604}
47605static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47606 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47607}
47608static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47609 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47610}
47611static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47612 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47613}
47614static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47615 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47616}
47617static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47618 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47619}
47620static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47621 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47622}
47623static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47624 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47625}
b850e7f3
RD
47626static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47627 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47628}
47629static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47630 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47631}
47632static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47633 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47634}
47635static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47636 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47637}
554f62e9
RD
47638static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47639 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47640}
704eda0c
RD
47641static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47642 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47643}
554f62e9
RD
47644static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47645 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47646}
47647static void *_p_wxToolBarTo_p_wxObject(void *x) {
47648 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47649}
47650static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47651 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47652}
47653static void *_p_wxValidatorTo_p_wxObject(void *x) {
47654 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47655}
47656static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47657 return (void *)((wxWindow *) ((wxMenuBar *) x));
47658}
47659static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47660 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47661}
47662static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47663 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47664}
b850e7f3
RD
47665static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47666 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47667}
554f62e9
RD
47668static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47669 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47670}
47671static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47672 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47673}
47674static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47675 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47676}
47677static void *_p_wxControlTo_p_wxWindow(void *x) {
47678 return (void *)((wxWindow *) ((wxControl *) x));
47679}
47680static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47681 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47682}
47683static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47684 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47685}
47686static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47687 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47688}
47689static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47690 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47691}
47692static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47693 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47694}
47695static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47696 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47697}
47698static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47699 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47700}
47701static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47702 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47703}
47704static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47705 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47706}
47707static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47708 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47709}
47710static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47711 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47712}
47713static void *_p_wxListbookTo_p_wxWindow(void *x) {
47714 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47715}
704eda0c
RD
47716static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47717 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47718}
554f62e9
RD
47719static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47720 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47721}
47722static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47723 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47724}
47725static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47726 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47727}
47728static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47729 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47730}
47731static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47732 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47733}
47734static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47735 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47736}
47737static void *_p_wxListViewTo_p_wxWindow(void *x) {
47738 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47739}
47740static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47741 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47742}
47743static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47744 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47745}
47746static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47747 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47748}
47749static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47750 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47751}
47752static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47753 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47754}
47755static void *_p_wxSliderTo_p_wxWindow(void *x) {
47756 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47757}
47758static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47759 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47760}
47761static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47762 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47763}
47764static void *_p_wxButtonTo_p_wxWindow(void *x) {
47765 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47766}
47767static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47768 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47769}
47770static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47771 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47772}
47773static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47774 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47775}
b850e7f3
RD
47776static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47777 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47778}
47779static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47780 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47781}
47782static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47783 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47784}
47785static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47786 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47787}
554f62e9
RD
47788static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47789 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47790}
47791static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47792 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47793}
47794static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47795 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47796}
47797static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47798 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47799}
47800static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47801 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47802}
47803static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47804 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47805}
47806static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47807 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47808}
704eda0c
RD
47809static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47810 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47811}
2131d850
RD
47812static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47813 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47814}
b850e7f3
RD
47815static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47816 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47817}
47818static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47819 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47820}
47821static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47822 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47823}
554f62e9
RD
47824static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47825 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47826}
47827static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47828 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47829}
47830static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47831 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47832}
47833static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47834 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47835}
47836static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47837 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47838}
554f62e9
RD
47839static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47840 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47841}
2131d850
RD
47842static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47843 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47844}
554f62e9
RD
47845static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47846 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47847}
47848static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47849 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47850}
47851static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47852 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47853}
47854static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47855 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47856}
47857static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47858 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47859}
47860static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47861 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47862}
47863static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47864 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47865}
47866static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47867 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47868}
47869static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47870 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47871}
47872static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47873 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47874}
47875static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47876 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47877}
47878static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47879 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47880}
47881static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
47882 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
47883}
47884static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47885 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47886}
47887static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47888 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47889}
47890static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47891 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47892}
47893static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47894 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47895}
47896static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47897 return (void *)((wxValidator *) ((wxPyValidator *) x));
47898}
47899static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47900static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47901static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
47902static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47903static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47904static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47905static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47906static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47907static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47908static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47909static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47910static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47911static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47912static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47913static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47914static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47915static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47916static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47917static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47918static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47919static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47920static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
47921static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47922static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
47923static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47924static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47925static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 47926static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
554f62e9
RD
47927static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47928static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47929static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47930static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47931static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47932static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47933static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47934static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47935static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47936static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47937static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47938static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47939static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47940static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47941static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47942static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 47943static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
554f62e9
RD
47944static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47945static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47946static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47947static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47948static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47949static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47950static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47951static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
0f83f5da 47952static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
554f62e9
RD
47953static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47954static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47955static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47956static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47957static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47958static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
0f83f5da 47959static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
554f62e9
RD
47960static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47961static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47962static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47963static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47964static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47965static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47966static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47967static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47968static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47969static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47970static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47971static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47972static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47973static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47974static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47975static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
b850e7f3
RD
47976static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47977static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
554f62e9 47978static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
47979static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47980static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
47981static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47982static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47983static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47984static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47985static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
47986static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47987static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
47988static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47989static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47990static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47991static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47992static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47993static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47994static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47995static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47996static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47997static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47998static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47999static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
48000static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
48001static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
48002static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
48003static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
48004static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
48005static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
554f62e9 48006static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
0f83f5da 48007static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
554f62e9
RD
48008static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
48009static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
48010static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
48011static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
48012static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
48013static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
48014static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
48015static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
48016static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
48017static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
554f62e9
RD
48018static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
48019static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
48020static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
48021static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
48022static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
48023static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
48024static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
48025static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
48026static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 48027static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 48028static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
554f62e9
RD
48029static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
48030static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
48031static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
48032static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
48033static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
48034static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
48035static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 48036static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
554f62e9
RD
48037static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
48038static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
48039static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
48040static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
48041static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
48042static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
48043static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
48044static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
48045static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
48046static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
48047static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
48048static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
48049static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
48050static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
48051static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
48052static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
48053static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
48054static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
48055static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
48056static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
48057static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
48058static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
48059static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
48060static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
48061static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
48062static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
48063static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
48064static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
48065static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
48066static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
48067static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
48068static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
48069static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
48070static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
48071static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
48072static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 48073static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
554f62e9
RD
48074
48075static swig_type_info *swig_type_initial[] = {
48076 &_swigt__p_bool,
48077 &_swigt__p_char,
48078 &_swigt__p_form_ops_t,
48079 &_swigt__p_int,
48080 &_swigt__p_long,
48081 &_swigt__p_unsigned_char,
48082 &_swigt__p_unsigned_int,
48083 &_swigt__p_unsigned_long,
48084 &_swigt__p_void,
48085 &_swigt__p_wxANIHandler,
48086 &_swigt__p_wxAcceleratorTable,
48087 &_swigt__p_wxActivateEvent,
48088 &_swigt__p_wxArrayInt,
48089 &_swigt__p_wxArrayString,
48090 &_swigt__p_wxBMPHandler,
48091 &_swigt__p_wxBitmap,
48092 &_swigt__p_wxBitmapButton,
48093 &_swigt__p_wxBookCtrlBase,
48094 &_swigt__p_wxBookCtrlBaseEvent,
48095 &_swigt__p_wxBoxSizer,
48096 &_swigt__p_wxButton,
48097 &_swigt__p_wxCURHandler,
48098 &_swigt__p_wxCheckBox,
48099 &_swigt__p_wxCheckListBox,
48100 &_swigt__p_wxChildFocusEvent,
48101 &_swigt__p_wxChoice,
48102 &_swigt__p_wxChoicebook,
48103 &_swigt__p_wxChoicebookEvent,
2131d850 48104 &_swigt__p_wxClipboardTextEvent,
554f62e9
RD
48105 &_swigt__p_wxCloseEvent,
48106 &_swigt__p_wxColour,
b850e7f3
RD
48107 &_swigt__p_wxColourPickerCtrl,
48108 &_swigt__p_wxColourPickerEvent,
554f62e9
RD
48109 &_swigt__p_wxComboBox,
48110 &_swigt__p_wxCommandEvent,
48111 &_swigt__p_wxContextHelp,
48112 &_swigt__p_wxContextHelpButton,
48113 &_swigt__p_wxContextMenuEvent,
48114 &_swigt__p_wxControl,
48115 &_swigt__p_wxControlWithItems,
48116 &_swigt__p_wxCursor,
48117 &_swigt__p_wxDC,
48118 &_swigt__p_wxDateEvent,
48119 &_swigt__p_wxDatePickerCtrl,
48120 &_swigt__p_wxDateTime,
48121 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 48122 &_swigt__p_wxDirPickerCtrl,
554f62e9
RD
48123 &_swigt__p_wxDisplayChangedEvent,
48124 &_swigt__p_wxDropFilesEvent,
48125 &_swigt__p_wxDuplexMode,
48126 &_swigt__p_wxEraseEvent,
48127 &_swigt__p_wxEvent,
48128 &_swigt__p_wxEvtHandler,
48129 &_swigt__p_wxFSFile,
b850e7f3
RD
48130 &_swigt__p_wxFileDirPickerEvent,
48131 &_swigt__p_wxFilePickerCtrl,
554f62e9
RD
48132 &_swigt__p_wxFileSystem,
48133 &_swigt__p_wxFlexGridSizer,
48134 &_swigt__p_wxFocusEvent,
48135 &_swigt__p_wxFont,
b850e7f3
RD
48136 &_swigt__p_wxFontPickerCtrl,
48137 &_swigt__p_wxFontPickerEvent,
554f62e9
RD
48138 &_swigt__p_wxGBSizerItem,
48139 &_swigt__p_wxGIFHandler,
48140 &_swigt__p_wxGauge,
48141 &_swigt__p_wxGenericDirCtrl,
48142 &_swigt__p_wxGenericDragImage,
48143 &_swigt__p_wxGridBagSizer,
48144 &_swigt__p_wxGridSizer,
48145 &_swigt__p_wxHelpEvent,
48146 &_swigt__p_wxHelpProvider,
704eda0c
RD
48147 &_swigt__p_wxHyperlinkCtrl,
48148 &_swigt__p_wxHyperlinkEvent,
554f62e9
RD
48149 &_swigt__p_wxICOHandler,
48150 &_swigt__p_wxIcon,
48151 &_swigt__p_wxIconizeEvent,
48152 &_swigt__p_wxIdleEvent,
48153 &_swigt__p_wxImage,
48154 &_swigt__p_wxImageHandler,
48155 &_swigt__p_wxImageList,
48156 &_swigt__p_wxIndividualLayoutConstraint,
48157 &_swigt__p_wxInitDialogEvent,
48158 &_swigt__p_wxItemContainer,
48159 &_swigt__p_wxJPEGHandler,
48160 &_swigt__p_wxKeyEvent,
48161 &_swigt__p_wxLayoutConstraints,
48162 &_swigt__p_wxListBox,
48163 &_swigt__p_wxListEvent,
48164 &_swigt__p_wxListItem,
48165 &_swigt__p_wxListItemAttr,
48166 &_swigt__p_wxListView,
48167 &_swigt__p_wxListbook,
48168 &_swigt__p_wxListbookEvent,
48169 &_swigt__p_wxMaximizeEvent,
48170 &_swigt__p_wxMemoryDC,
48171 &_swigt__p_wxMenu,
48172 &_swigt__p_wxMenuBar,
48173 &_swigt__p_wxMenuEvent,
48174 &_swigt__p_wxMenuItem,
48175 &_swigt__p_wxMouseCaptureChangedEvent,
0f83f5da 48176 &_swigt__p_wxMouseCaptureLostEvent,
554f62e9
RD
48177 &_swigt__p_wxMouseEvent,
48178 &_swigt__p_wxMoveEvent,
48179 &_swigt__p_wxNavigationKeyEvent,
48180 &_swigt__p_wxNcPaintEvent,
48181 &_swigt__p_wxNotebook,
48182 &_swigt__p_wxNotebookEvent,
48183 &_swigt__p_wxNotifyEvent,
48184 &_swigt__p_wxObject,
48185 &_swigt__p_wxPCXHandler,
48186 &_swigt__p_wxPNGHandler,
48187 &_swigt__p_wxPNMHandler,
48188 &_swigt__p_wxPaintEvent,
48189 &_swigt__p_wxPaletteChangedEvent,
48190 &_swigt__p_wxPaperSize,
b850e7f3 48191 &_swigt__p_wxPickerBase,
554f62e9
RD
48192 &_swigt__p_wxPoint,
48193 &_swigt__p_wxPyApp,
48194 &_swigt__p_wxPyCommandEvent,
48195 &_swigt__p_wxPyControl,
48196 &_swigt__p_wxPyEvent,
48197 &_swigt__p_wxPyImageHandler,
48198 &_swigt__p_wxPyListCtrl,
48199 &_swigt__p_wxPySizer,
48200 &_swigt__p_wxPyTreeCtrl,
48201 &_swigt__p_wxPyTreeItemData,
48202 &_swigt__p_wxPyValidator,
48203 &_swigt__p_wxQueryNewPaletteEvent,
48204 &_swigt__p_wxRadioBox,
48205 &_swigt__p_wxRadioButton,
48206 &_swigt__p_wxRect,
48207 &_swigt__p_wxScrollBar,
48208 &_swigt__p_wxScrollEvent,
48209 &_swigt__p_wxScrollWinEvent,
48210 &_swigt__p_wxSetCursorEvent,
48211 &_swigt__p_wxShowEvent,
48212 &_swigt__p_wxSimpleHelpProvider,
48213 &_swigt__p_wxSize,
48214 &_swigt__p_wxSizeEvent,
48215 &_swigt__p_wxSizer,
48216 &_swigt__p_wxSizerItem,
48217 &_swigt__p_wxSlider,
48218 &_swigt__p_wxSpinButton,
48219 &_swigt__p_wxSpinCtrl,
48220 &_swigt__p_wxSpinEvent,
48221 &_swigt__p_wxStaticBitmap,
48222 &_swigt__p_wxStaticBox,
48223 &_swigt__p_wxStaticBoxSizer,
48224 &_swigt__p_wxStaticLine,
48225 &_swigt__p_wxStaticText,
48226 &_swigt__p_wxStdDialogButtonSizer,
48227 &_swigt__p_wxString,
48228 &_swigt__p_wxSysColourChangedEvent,
48229 &_swigt__p_wxTIFFHandler,
48230 &_swigt__p_wxTextAttr,
48231 &_swigt__p_wxTextCtrl,
48232 &_swigt__p_wxTextUrlEvent,
48233 &_swigt__p_wxToggleButton,
48234 &_swigt__p_wxToolBar,
48235 &_swigt__p_wxToolBarBase,
48236 &_swigt__p_wxToolBarToolBase,
48237 &_swigt__p_wxToolbook,
48238 &_swigt__p_wxToolbookEvent,
554f62e9
RD
48239 &_swigt__p_wxTreeEvent,
48240 &_swigt__p_wxTreeItemId,
48241 &_swigt__p_wxTreebook,
48242 &_swigt__p_wxTreebookEvent,
48243 &_swigt__p_wxUpdateUIEvent,
48244 &_swigt__p_wxValidator,
48245 &_swigt__p_wxVisualAttributes,
48246 &_swigt__p_wxWindow,
b850e7f3 48247 &_swigt__p_wxWindowBase,
554f62e9
RD
48248 &_swigt__p_wxWindowCreateEvent,
48249 &_swigt__p_wxWindowDestroyEvent,
48250 &_swigt__p_wxXPMHandler,
48251};
48252
48253static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
48254static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
48255static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
48256static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
48257static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
48258static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
48259static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
48260static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
48261static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
48262static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
48263static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
48264static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
48265static 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}};
48266static 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}};
48267static 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}};
48268static 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}};
48269static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
48270static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
48271static 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}};
48272static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
48273static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48274static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48275static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48276static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48277static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
48278static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 48279static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48280static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
48281static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
48282static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48283static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48284static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
48285static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
48286static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 48287static 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
48288static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
48289static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 48290static 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
48291static 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}};
48292static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
48293static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
48294static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48295static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
48296static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 48297static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48298static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
48299static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48300static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
48301static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
48302static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
48303static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
48304static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 48305static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48306static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
48307static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48308static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48309static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
48310static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48311static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 48312static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48313static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48314static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48315static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48316static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48317static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48318static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48319static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
48320static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48321static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
48322static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48323static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 48324static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48325static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
48326static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
48327static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
48328static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48329static 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}};
48330static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48331static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 48332static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48333static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48334static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48335static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
48336static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
48337static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
48338static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
48339static 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
48340static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
48341static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48342static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
48343static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
48344static 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}};
48345static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48346static 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}};
48347static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
48348static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
48349static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
48350static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
48351static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
48352static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48353static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
48354static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
48355static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
48356static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48357static 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}};
48358static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 48359static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 48360static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48361static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
48362static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48363static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48364static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
48365static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
48366static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48367static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48368static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
48369static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
48370static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48371static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
48372static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
48373static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
48374static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
48375static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48376static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
48377static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
48378static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
48379static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 48380static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 48381static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48382static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
48383static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
48384static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
48385static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
48386static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
48387static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 48388static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
554f62e9 48389static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 48390static 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
48391static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
48392static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
48393static 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}};
48394static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
48395static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
48396static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
48397static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
48398static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
48399static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
48400static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
48401static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
48402static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
48403static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
48404static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
48405static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
48406static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
48407static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
48408static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
48409static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
48410static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
48411static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
48412static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
48413static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
48414static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
48415static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
48416static 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}};
48417static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
48418static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
48419static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48420static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
48421static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
48422static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
48423static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48424static 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}};
48425static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48426static 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}};
48427static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48428
48429static swig_cast_info *swig_cast_initial[] = {
48430 _swigc__p_bool,
48431 _swigc__p_char,
48432 _swigc__p_form_ops_t,
48433 _swigc__p_int,
48434 _swigc__p_long,
48435 _swigc__p_unsigned_char,
48436 _swigc__p_unsigned_int,
48437 _swigc__p_unsigned_long,
48438 _swigc__p_void,
48439 _swigc__p_wxANIHandler,
48440 _swigc__p_wxAcceleratorTable,
48441 _swigc__p_wxActivateEvent,
48442 _swigc__p_wxArrayInt,
48443 _swigc__p_wxArrayString,
48444 _swigc__p_wxBMPHandler,
48445 _swigc__p_wxBitmap,
48446 _swigc__p_wxBitmapButton,
48447 _swigc__p_wxBookCtrlBase,
48448 _swigc__p_wxBookCtrlBaseEvent,
48449 _swigc__p_wxBoxSizer,
48450 _swigc__p_wxButton,
48451 _swigc__p_wxCURHandler,
48452 _swigc__p_wxCheckBox,
48453 _swigc__p_wxCheckListBox,
48454 _swigc__p_wxChildFocusEvent,
48455 _swigc__p_wxChoice,
48456 _swigc__p_wxChoicebook,
48457 _swigc__p_wxChoicebookEvent,
2131d850 48458 _swigc__p_wxClipboardTextEvent,
554f62e9
RD
48459 _swigc__p_wxCloseEvent,
48460 _swigc__p_wxColour,
b850e7f3
RD
48461 _swigc__p_wxColourPickerCtrl,
48462 _swigc__p_wxColourPickerEvent,
554f62e9
RD
48463 _swigc__p_wxComboBox,
48464 _swigc__p_wxCommandEvent,
48465 _swigc__p_wxContextHelp,
48466 _swigc__p_wxContextHelpButton,
48467 _swigc__p_wxContextMenuEvent,
48468 _swigc__p_wxControl,
48469 _swigc__p_wxControlWithItems,
48470 _swigc__p_wxCursor,
48471 _swigc__p_wxDC,
48472 _swigc__p_wxDateEvent,
48473 _swigc__p_wxDatePickerCtrl,
48474 _swigc__p_wxDateTime,
48475 _swigc__p_wxDirFilterListCtrl,
b850e7f3 48476 _swigc__p_wxDirPickerCtrl,
554f62e9
RD
48477 _swigc__p_wxDisplayChangedEvent,
48478 _swigc__p_wxDropFilesEvent,
48479 _swigc__p_wxDuplexMode,
48480 _swigc__p_wxEraseEvent,
48481 _swigc__p_wxEvent,
48482 _swigc__p_wxEvtHandler,
48483 _swigc__p_wxFSFile,
b850e7f3
RD
48484 _swigc__p_wxFileDirPickerEvent,
48485 _swigc__p_wxFilePickerCtrl,
554f62e9
RD
48486 _swigc__p_wxFileSystem,
48487 _swigc__p_wxFlexGridSizer,
48488 _swigc__p_wxFocusEvent,
48489 _swigc__p_wxFont,
b850e7f3
RD
48490 _swigc__p_wxFontPickerCtrl,
48491 _swigc__p_wxFontPickerEvent,
554f62e9
RD
48492 _swigc__p_wxGBSizerItem,
48493 _swigc__p_wxGIFHandler,
48494 _swigc__p_wxGauge,
48495 _swigc__p_wxGenericDirCtrl,
48496 _swigc__p_wxGenericDragImage,
48497 _swigc__p_wxGridBagSizer,
48498 _swigc__p_wxGridSizer,
48499 _swigc__p_wxHelpEvent,
48500 _swigc__p_wxHelpProvider,
704eda0c
RD
48501 _swigc__p_wxHyperlinkCtrl,
48502 _swigc__p_wxHyperlinkEvent,
554f62e9
RD
48503 _swigc__p_wxICOHandler,
48504 _swigc__p_wxIcon,
48505 _swigc__p_wxIconizeEvent,
48506 _swigc__p_wxIdleEvent,
48507 _swigc__p_wxImage,
48508 _swigc__p_wxImageHandler,
48509 _swigc__p_wxImageList,
48510 _swigc__p_wxIndividualLayoutConstraint,
48511 _swigc__p_wxInitDialogEvent,
48512 _swigc__p_wxItemContainer,
48513 _swigc__p_wxJPEGHandler,
48514 _swigc__p_wxKeyEvent,
48515 _swigc__p_wxLayoutConstraints,
48516 _swigc__p_wxListBox,
48517 _swigc__p_wxListEvent,
48518 _swigc__p_wxListItem,
48519 _swigc__p_wxListItemAttr,
48520 _swigc__p_wxListView,
48521 _swigc__p_wxListbook,
48522 _swigc__p_wxListbookEvent,
48523 _swigc__p_wxMaximizeEvent,
48524 _swigc__p_wxMemoryDC,
48525 _swigc__p_wxMenu,
48526 _swigc__p_wxMenuBar,
48527 _swigc__p_wxMenuEvent,
48528 _swigc__p_wxMenuItem,
48529 _swigc__p_wxMouseCaptureChangedEvent,
0f83f5da 48530 _swigc__p_wxMouseCaptureLostEvent,
554f62e9
RD
48531 _swigc__p_wxMouseEvent,
48532 _swigc__p_wxMoveEvent,
48533 _swigc__p_wxNavigationKeyEvent,
48534 _swigc__p_wxNcPaintEvent,
48535 _swigc__p_wxNotebook,
48536 _swigc__p_wxNotebookEvent,
48537 _swigc__p_wxNotifyEvent,
48538 _swigc__p_wxObject,
48539 _swigc__p_wxPCXHandler,
48540 _swigc__p_wxPNGHandler,
48541 _swigc__p_wxPNMHandler,
48542 _swigc__p_wxPaintEvent,
48543 _swigc__p_wxPaletteChangedEvent,
48544 _swigc__p_wxPaperSize,
b850e7f3 48545 _swigc__p_wxPickerBase,
554f62e9
RD
48546 _swigc__p_wxPoint,
48547 _swigc__p_wxPyApp,
48548 _swigc__p_wxPyCommandEvent,
48549 _swigc__p_wxPyControl,
48550 _swigc__p_wxPyEvent,
48551 _swigc__p_wxPyImageHandler,
48552 _swigc__p_wxPyListCtrl,
48553 _swigc__p_wxPySizer,
48554 _swigc__p_wxPyTreeCtrl,
48555 _swigc__p_wxPyTreeItemData,
48556 _swigc__p_wxPyValidator,
48557 _swigc__p_wxQueryNewPaletteEvent,
48558 _swigc__p_wxRadioBox,
48559 _swigc__p_wxRadioButton,
48560 _swigc__p_wxRect,
48561 _swigc__p_wxScrollBar,
48562 _swigc__p_wxScrollEvent,
48563 _swigc__p_wxScrollWinEvent,
48564 _swigc__p_wxSetCursorEvent,
48565 _swigc__p_wxShowEvent,
48566 _swigc__p_wxSimpleHelpProvider,
48567 _swigc__p_wxSize,
48568 _swigc__p_wxSizeEvent,
48569 _swigc__p_wxSizer,
48570 _swigc__p_wxSizerItem,
48571 _swigc__p_wxSlider,
48572 _swigc__p_wxSpinButton,
48573 _swigc__p_wxSpinCtrl,
48574 _swigc__p_wxSpinEvent,
48575 _swigc__p_wxStaticBitmap,
48576 _swigc__p_wxStaticBox,
48577 _swigc__p_wxStaticBoxSizer,
48578 _swigc__p_wxStaticLine,
48579 _swigc__p_wxStaticText,
48580 _swigc__p_wxStdDialogButtonSizer,
48581 _swigc__p_wxString,
48582 _swigc__p_wxSysColourChangedEvent,
48583 _swigc__p_wxTIFFHandler,
48584 _swigc__p_wxTextAttr,
48585 _swigc__p_wxTextCtrl,
48586 _swigc__p_wxTextUrlEvent,
48587 _swigc__p_wxToggleButton,
48588 _swigc__p_wxToolBar,
48589 _swigc__p_wxToolBarBase,
48590 _swigc__p_wxToolBarToolBase,
48591 _swigc__p_wxToolbook,
48592 _swigc__p_wxToolbookEvent,
554f62e9
RD
48593 _swigc__p_wxTreeEvent,
48594 _swigc__p_wxTreeItemId,
48595 _swigc__p_wxTreebook,
48596 _swigc__p_wxTreebookEvent,
48597 _swigc__p_wxUpdateUIEvent,
48598 _swigc__p_wxValidator,
48599 _swigc__p_wxVisualAttributes,
48600 _swigc__p_wxWindow,
b850e7f3 48601 _swigc__p_wxWindowBase,
554f62e9
RD
48602 _swigc__p_wxWindowCreateEvent,
48603 _swigc__p_wxWindowDestroyEvent,
48604 _swigc__p_wxXPMHandler,
48605};
48606
48607
48608/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48609
48610static swig_const_info swig_const_table[] = {
48611{0, 0, 0, 0.0, 0, 0}};
48612
48613#ifdef __cplusplus
48614}
48615#endif
48616/* -----------------------------------------------------------------------------
48617 * Type initialization:
48618 * This problem is tough by the requirement that no dynamic
48619 * memory is used. Also, since swig_type_info structures store pointers to
48620 * swig_cast_info structures and swig_cast_info structures store pointers back
48621 * to swig_type_info structures, we need some lookup code at initialization.
48622 * The idea is that swig generates all the structures that are needed.
48623 * The runtime then collects these partially filled structures.
48624 * The SWIG_InitializeModule function takes these initial arrays out of
48625 * swig_module, and does all the lookup, filling in the swig_module.types
48626 * array with the correct data and linking the correct swig_cast_info
48627 * structures together.
48628 *
48629 * The generated swig_type_info structures are assigned staticly to an initial
48630 * array. We just loop though that array, and handle each type individually.
48631 * First we lookup if this type has been already loaded, and if so, use the
48632 * loaded structure instead of the generated one. Then we have to fill in the
48633 * cast linked list. The cast data is initially stored in something like a
48634 * two-dimensional array. Each row corresponds to a type (there are the same
48635 * number of rows as there are in the swig_type_initial array). Each entry in
48636 * a column is one of the swig_cast_info structures for that type.
48637 * The cast_initial array is actually an array of arrays, because each row has
48638 * a variable number of columns. So to actually build the cast linked list,
48639 * we find the array of casts associated with the type, and loop through it
48640 * adding the casts to the list. The one last trick we need to do is making
48641 * sure the type pointer in the swig_cast_info struct is correct.
48642 *
48643 * First off, we lookup the cast->type name to see if it is already loaded.
48644 * There are three cases to handle:
48645 * 1) If the cast->type has already been loaded AND the type we are adding
48646 * casting info to has not been loaded (it is in this module), THEN we
48647 * replace the cast->type pointer with the type pointer that has already
48648 * been loaded.
48649 * 2) If BOTH types (the one we are adding casting info to, and the
48650 * cast->type) are loaded, THEN the cast info has already been loaded by
48651 * the previous module so we just ignore it.
48652 * 3) Finally, if cast->type has not already been loaded, then we add that
48653 * swig_cast_info to the linked list (because the cast->type) pointer will
48654 * be correct.
48655 * ----------------------------------------------------------------------------- */
48656
48657#ifdef __cplusplus
48658extern "C" {
48659#if 0
48660} /* c-mode */
48661#endif
48662#endif
48663
48664#if 0
48665#define SWIGRUNTIME_DEBUG
48666#endif
48667
48668SWIGRUNTIME void
48669SWIG_InitializeModule(void *clientdata) {
48670 size_t i;
48671 swig_module_info *module_head;
48672 static int init_run = 0;
48673
48674 clientdata = clientdata;
48675
48676 if (init_run) return;
48677 init_run = 1;
48678
48679 /* Initialize the swig_module */
48680 swig_module.type_initial = swig_type_initial;
48681 swig_module.cast_initial = swig_cast_initial;
48682
48683 /* Try and load any already created modules */
48684 module_head = SWIG_GetModule(clientdata);
48685 if (module_head) {
48686 swig_module.next = module_head->next;
48687 module_head->next = &swig_module;
48688 } else {
48689 /* This is the first module loaded */
48690 swig_module.next = &swig_module;
48691 SWIG_SetModule(clientdata, &swig_module);
48692 }
48693
48694 /* Now work on filling in swig_module.types */
48695#ifdef SWIGRUNTIME_DEBUG
48696 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48697#endif
48698 for (i = 0; i < swig_module.size; ++i) {
48699 swig_type_info *type = 0;
48700 swig_type_info *ret;
48701 swig_cast_info *cast;
d55e5bfc 48702
554f62e9
RD
48703#ifdef SWIGRUNTIME_DEBUG
48704 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48705#endif
d55e5bfc 48706
554f62e9
RD
48707 /* if there is another module already loaded */
48708 if (swig_module.next != &swig_module) {
48709 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 48710 }
554f62e9
RD
48711 if (type) {
48712 /* Overwrite clientdata field */
48713#ifdef SWIGRUNTIME_DEBUG
48714 printf("SWIG_InitializeModule: found type %s\n", type->name);
48715#endif
48716 if (swig_module.type_initial[i]->clientdata) {
48717 type->clientdata = swig_module.type_initial[i]->clientdata;
48718#ifdef SWIGRUNTIME_DEBUG
48719 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48720#endif
48721 }
48722 } else {
48723 type = swig_module.type_initial[i];
093d3ff1 48724 }
d55e5bfc 48725
554f62e9
RD
48726 /* Insert casting types */
48727 cast = swig_module.cast_initial[i];
48728 while (cast->type) {
48729 /* Don't need to add information already in the list */
48730 ret = 0;
48731#ifdef SWIGRUNTIME_DEBUG
48732 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48733#endif
48734 if (swig_module.next != &swig_module) {
48735 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48736#ifdef SWIGRUNTIME_DEBUG
48737 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48738#endif
48739 }
48740 if (ret) {
48741 if (type == swig_module.type_initial[i]) {
48742#ifdef SWIGRUNTIME_DEBUG
48743 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48744#endif
48745 cast->type = ret;
48746 ret = 0;
48747 } else {
48748 /* Check for casting already in the list */
48749 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48750#ifdef SWIGRUNTIME_DEBUG
48751 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48752#endif
48753 if (!ocast) ret = 0;
48754 }
48755 }
48756
48757 if (!ret) {
48758#ifdef SWIGRUNTIME_DEBUG
48759 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48760#endif
48761 if (type->cast) {
48762 type->cast->prev = cast;
48763 cast->next = type->cast;
48764 }
48765 type->cast = cast;
48766 }
48767 cast++;
093d3ff1 48768 }
554f62e9
RD
48769 /* Set entry in modules->types array equal to the type */
48770 swig_module.types[i] = type;
48771 }
48772 swig_module.types[i] = 0;
48773
48774#ifdef SWIGRUNTIME_DEBUG
48775 printf("**** SWIG_InitializeModule: Cast List ******\n");
48776 for (i = 0; i < swig_module.size; ++i) {
48777 int j = 0;
48778 swig_cast_info *cast = swig_module.cast_initial[i];
48779 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48780 while (cast->type) {
48781 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48782 cast++;
48783 ++j;
48784 }
48785 printf("---- Total casts: %d\n",j);
48786 }
48787 printf("**** SWIG_InitializeModule: Cast List ******\n");
48788#endif
48789}
48790
48791/* This function will propagate the clientdata field of type to
48792* any new swig_type_info structures that have been added into the list
48793* of equivalent types. It is like calling
48794* SWIG_TypeClientData(type, clientdata) a second time.
48795*/
48796SWIGRUNTIME void
48797SWIG_PropagateClientData(void) {
48798 size_t i;
48799 swig_cast_info *equiv;
48800 static int init_run = 0;
48801
48802 if (init_run) return;
48803 init_run = 1;
48804
48805 for (i = 0; i < swig_module.size; i++) {
48806 if (swig_module.types[i]->clientdata) {
48807 equiv = swig_module.types[i]->cast;
48808 while (equiv) {
48809 if (!equiv->converter) {
48810 if (equiv->type && !equiv->type->clientdata)
48811 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48812 }
48813 equiv = equiv->next;
48814 }
093d3ff1 48815 }
554f62e9
RD
48816 }
48817}
48818
48819#ifdef __cplusplus
48820#if 0
48821{
48822 /* c-mode */
48823#endif
48824}
48825#endif
48826
48827
48828
48829#ifdef __cplusplus
48830extern "C" {
48831#endif
48832
48833 /* Python-specific SWIG API */
48834#define SWIG_newvarlink() SWIG_Python_newvarlink()
48835#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48836#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48837
48838 /* -----------------------------------------------------------------------------
48839 * global variable support code.
48840 * ----------------------------------------------------------------------------- */
48841
48842 typedef struct swig_globalvar {
48843 char *name; /* Name of global variable */
48844 PyObject *(*get_attr)(void); /* Return the current value */
48845 int (*set_attr)(PyObject *); /* Set the value */
48846 struct swig_globalvar *next;
48847 } swig_globalvar;
48848
48849 typedef struct swig_varlinkobject {
48850 PyObject_HEAD
48851 swig_globalvar *vars;
48852 } swig_varlinkobject;
48853
48854 SWIGINTERN PyObject *
48855 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48856 return PyString_FromString("<Swig global variables>");
48857 }
48858
48859 SWIGINTERN PyObject *
48860 swig_varlink_str(swig_varlinkobject *v) {
48861 PyObject *str = PyString_FromString("(");
48862 swig_globalvar *var;
48863 for (var = v->vars; var; var=var->next) {
48864 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48865 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48866 }
48867 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48868 return str;
48869 }
48870
48871 SWIGINTERN int
48872 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48873 PyObject *str = swig_varlink_str(v);
48874 fprintf(fp,"Swig global variables ");
48875 fprintf(fp,"%s\n", PyString_AsString(str));
48876 Py_DECREF(str);
48877 return 0;
48878 }
48879
48880 SWIGINTERN void
48881 swig_varlink_dealloc(swig_varlinkobject *v) {
48882 swig_globalvar *var = v->vars;
48883 while (var) {
48884 swig_globalvar *n = var->next;
48885 free(var->name);
48886 free(var);
48887 var = n;
093d3ff1 48888 }
554f62e9
RD
48889 }
48890
48891 SWIGINTERN PyObject *
48892 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48893 PyObject *res = NULL;
48894 swig_globalvar *var = v->vars;
48895 while (var) {
48896 if (strcmp(var->name,n) == 0) {
48897 res = (*var->get_attr)();
48898 break;
48899 }
48900 var = var->next;
093d3ff1 48901 }
554f62e9
RD
48902 if (res == NULL && !PyErr_Occurred()) {
48903 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 48904 }
554f62e9
RD
48905 return res;
48906 }
48907
48908 SWIGINTERN int
48909 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48910 int res = 1;
48911 swig_globalvar *var = v->vars;
48912 while (var) {
48913 if (strcmp(var->name,n) == 0) {
48914 res = (*var->set_attr)(p);
48915 break;
48916 }
48917 var = var->next;
093d3ff1 48918 }
554f62e9
RD
48919 if (res == 1 && !PyErr_Occurred()) {
48920 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 48921 }
554f62e9
RD
48922 return res;
48923 }
48924
48925 SWIGINTERN PyTypeObject*
48926 swig_varlink_type(void) {
48927 static char varlink__doc__[] = "Swig var link object";
48928 static PyTypeObject varlink_type;
48929 static int type_init = 0;
48930 if (!type_init) {
48931 const PyTypeObject tmp
48932 = {
48933 PyObject_HEAD_INIT(NULL)
48934 0, /* Number of items in variable part (ob_size) */
48935 (char *)"swigvarlink", /* Type name (tp_name) */
48936 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48937 0, /* Itemsize (tp_itemsize) */
48938 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48939 (printfunc) swig_varlink_print, /* Print (tp_print) */
48940 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48941 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48942 0, /* tp_compare */
48943 (reprfunc) swig_varlink_repr, /* tp_repr */
48944 0, /* tp_as_number */
48945 0, /* tp_as_sequence */
48946 0, /* tp_as_mapping */
48947 0, /* tp_hash */
48948 0, /* tp_call */
48949 (reprfunc)swig_varlink_str, /* tp_str */
48950 0, /* tp_getattro */
48951 0, /* tp_setattro */
48952 0, /* tp_as_buffer */
48953 0, /* tp_flags */
48954 varlink__doc__, /* tp_doc */
48955 0, /* tp_traverse */
48956 0, /* tp_clear */
48957 0, /* tp_richcompare */
48958 0, /* tp_weaklistoffset */
48959#if PY_VERSION_HEX >= 0x02020000
48960 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48961#endif
48962#if PY_VERSION_HEX >= 0x02030000
48963 0, /* tp_del */
48964#endif
48965#ifdef COUNT_ALLOCS
48966 0,0,0,0 /* tp_alloc -> tp_next */
48967#endif
48968 };
48969 varlink_type = tmp;
48970 varlink_type.ob_type = &PyType_Type;
48971 type_init = 1;
53aa7709 48972 }
554f62e9
RD
48973 return &varlink_type;
48974 }
48975
48976 /* Create a variable linking object for use later */
48977 SWIGINTERN PyObject *
48978 SWIG_Python_newvarlink(void) {
48979 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48980 if (result) {
48981 result->vars = 0;
48982 }
48983 return ((PyObject*) result);
48984 }
48985
48986 SWIGINTERN void
48987 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48988 swig_varlinkobject *v = (swig_varlinkobject *) p;
48989 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48990 if (gv) {
48991 size_t size = strlen(name)+1;
48992 gv->name = (char *)malloc(size);
48993 if (gv->name) {
48994 strncpy(gv->name,name,size);
48995 gv->get_attr = get_attr;
48996 gv->set_attr = set_attr;
48997 gv->next = v->vars;
48998 }
53aa7709 48999 }
554f62e9
RD
49000 v->vars = gv;
49001 }
49002
49003 SWIGINTERN PyObject *
49004 SWIG_globals() {
49005 static PyObject *_SWIG_globals = 0;
49006 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
49007 return _SWIG_globals;
49008 }
49009
49010 /* -----------------------------------------------------------------------------
49011 * constants/methods manipulation
49012 * ----------------------------------------------------------------------------- */
49013
49014 /* Install Constants */
49015 SWIGINTERN void
49016 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
49017 PyObject *obj = 0;
49018 size_t i;
49019 for (i = 0; constants[i].type; ++i) {
49020 switch(constants[i].type) {
49021 case SWIG_PY_POINTER:
49022 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
49023 break;
49024 case SWIG_PY_BINARY:
49025 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
49026 break;
49027 default:
49028 obj = 0;
49029 break;
49030 }
49031 if (obj) {
49032 PyDict_SetItemString(d, constants[i].name, obj);
49033 Py_DECREF(obj);
49034 }
53aa7709 49035 }
554f62e9
RD
49036 }
49037
49038 /* -----------------------------------------------------------------------------*/
49039 /* Fix SwigMethods to carry the callback ptrs when needed */
49040 /* -----------------------------------------------------------------------------*/
49041
49042 SWIGINTERN void
49043 SWIG_Python_FixMethods(PyMethodDef *methods,
49044 swig_const_info *const_table,
49045 swig_type_info **types,
49046 swig_type_info **types_initial) {
49047 size_t i;
49048 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 49049 const char *c = methods[i].ml_doc;
554f62e9
RD
49050 if (c && (c = strstr(c, "swig_ptr: "))) {
49051 int j;
49052 swig_const_info *ci = 0;
453fb36b 49053 const char *name = c + 10;
554f62e9
RD
49054 for (j = 0; const_table[j].type; ++j) {
49055 if (strncmp(const_table[j].name, name,
49056 strlen(const_table[j].name)) == 0) {
49057 ci = &(const_table[j]);
49058 break;
49059 }
49060 }
49061 if (ci) {
49062 size_t shift = (ci->ptype) - types;
49063 swig_type_info *ty = types_initial[shift];
49064 size_t ldoc = (c - methods[i].ml_doc);
49065 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
49066 char *ndoc = (char*)malloc(ldoc + lptr + 10);
49067 if (ndoc) {
49068 char *buff = ndoc;
49069 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
49070 if (ptr) {
49071 strncpy(buff, methods[i].ml_doc, ldoc);
49072 buff += ldoc;
49073 strncpy(buff, "swig_ptr: ", 10);
49074 buff += 10;
49075 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
49076 methods[i].ml_doc = ndoc;
49077 }
49078 }
49079 }
49080 }
53aa7709 49081 }
554f62e9
RD
49082 }
49083
49084#ifdef __cplusplus
49085}
49086#endif
49087
49088/* -----------------------------------------------------------------------------*
49089 * Partial Init method
49090 * -----------------------------------------------------------------------------*/
49091
49092#ifdef __cplusplus
49093extern "C"
49094#endif
49095SWIGEXPORT void SWIG_init(void) {
49096 PyObject *m, *d;
49097
49098 /* Fix SwigMethods to carry the callback ptrs when needed */
49099 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
49100
49101 m = Py_InitModule((char *) SWIG_name, SwigMethods);
49102 d = PyModule_GetDict(m);
49103
49104 SWIG_InitializeModule(0);
49105 SWIG_InstallConstants(d,swig_const_table);
49106
49107
49108 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
49109 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
49110 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
49111 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
49112 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
49113 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
49114 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
49115 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
49116 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
49117 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
49118 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
49119 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
49120 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
49121 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
49122 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
49123 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
49124 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
49125 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
49126 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
49127 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
49128 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
49129 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
554f62e9
RD
49130 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
49131 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
49132 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
49133 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
49134 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
49135 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
49136 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
49137 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
49138 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
49139 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
49140 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
49141 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
49142 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
49143 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
49144 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
49145 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
49146 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
49147 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
49148 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
49149 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
49150 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
49151 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
49152 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
554f62e9
RD
49153 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
49154 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
49155 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
49156 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
49157 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
49158 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
49159 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
49160 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
49161 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
49162 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
49163 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
49164 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
49165 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
49166 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
49167 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
49168 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
49169 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
49170 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
49171 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
49172 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
49173 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
49174 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
49175 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
49176 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
49177 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
49178 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
49179 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
f5263701 49180 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
554f62e9
RD
49181 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
49182 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
49183 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
49184 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
49185 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
49186 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
49187 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
49188 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
49189 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
49190 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
49191 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
49192 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
49193 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
49194 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
49195 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
49196 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
49197 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
49198 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
49199 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
49200 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
49201 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
49202 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
49203 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
49204 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
49205 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
49206 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
49207 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
49208 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
49209 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
49210 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
49211 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
49212 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
49213 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
49214 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
49215 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
49216 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 49217 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
49218 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
49219 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
49220 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
49221 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
49222 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
554f62e9
RD
49223 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
49224 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
49225 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
49226 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
49227 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
49228 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
49229 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
49230 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
49231 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
49232 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
49233 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 49234 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
554f62e9
RD
49235 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
49236 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
49237 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
49238 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
49239 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
49240 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
49241 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
49242 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
49243 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
49244 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
49245 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
49246 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
49247 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
49248 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
49249 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
49250 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
49251 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
49252 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
49253 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
49254 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
49255 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
49256 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
49257 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
49258 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
49259 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
49260 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
49261 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
49262 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
49263 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
49264 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
49265 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
49266 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
49267 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
49268 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
49269 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
49270 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
49271 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
49272 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 49273 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
6a223074 49274 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
554f62e9
RD
49275 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
49276 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
49277 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
49278 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
49279 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
49280 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
49281 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
49282 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
49283 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
49284 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
49285 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
49286 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
49287 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
49288 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
49289 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
49290 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
49291 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
49292 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
49293 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
49294 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
49295 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
49296 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
49297 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
49298 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
49299 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
49300 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
49301 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
49302 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
49303 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
49304 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
49305 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
49306 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
49307 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
49308 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
49309 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
49310 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
49311 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
49312 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
49313 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
49314 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
49315 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
49316 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
49317 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
49318 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
49319 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
49320 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
49321 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 49322 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
554f62e9
RD
49323 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
49324 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
49325 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
49326 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
49327 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
49328 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
49329 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
49330 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
49331 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
49332 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
49333 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
49334 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
49335 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
49336 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
49337 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
49338 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
49339 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
49340 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
49341 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
49342 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
49343 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
49344 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
49345 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
49346 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
49347 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
49348 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
49349 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
49350 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
49351 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
49352 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
49353 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
49354 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
49355 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
49356 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
49357 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
49358 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
49359 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
49360 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
49361 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
49362 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
49363 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
49364 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
49365
49366 // Map renamed classes back to their common name for OOR
49367 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
49368
49369 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
49370 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
49371 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
49372 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
49373 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
49374 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
49375 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
49376 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
49377 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
49378 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
49379 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
49380 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
49381 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
49382 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
49383 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
554f62e9
RD
49384 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
49385 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
49386 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
49387 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
49388 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
49389 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
49390 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
49391 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
49392 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
49393 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
49394 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
49395 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
49396 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
49397 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
49398 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
49399 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
49400 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
49401 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
49402 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
49403 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
49404 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
49405 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
49406 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
49407 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
49408 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
49409 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
49410 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
49411 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
49412 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
49413 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
49414 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
49415 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
49416 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
49417 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
49418 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
49419 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
49420 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
49421 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
49422 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
49423 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 49424 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
554f62e9
RD
49425
49426 // Map renamed classes back to their common name for OOR
49427 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
49428 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
49429
49430 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
49431 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
49432 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
49433 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
49434 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
49435 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
554f62e9
RD
49436 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
49437 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
49438 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
49439 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
49440 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
554f62e9
RD
49441
49442 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
49443
49444 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
49445 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
49446 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
49447 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
49448 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
49449 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
49450 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
49451 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
33d6fd3b
RD
49452 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
49453 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
49454 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
704eda0c
RD
49455 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
49456 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
49457 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
49458 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
49459 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
49460 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
49461 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
49462 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
49463 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
49464 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
49465 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
49466 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
49467 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
49468 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
49469 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
49470 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
49471 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
49472 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
49473 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
49474 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
49475 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
49476 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
49477 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
49478 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
49479 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
49480 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
49481 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
49482 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
49483 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
49484 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
49485 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
49486 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
d55e5bfc
RD
49487}
49488