]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_controls_wrap.cpp
Added wx.lib.delayedresult from Oliver Schoenborn.
[wxWidgets.git] / wxPython / src / gtk / _controls_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
0085ce49 3 * Version 1.3.29
d14a1e28
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
0085ce49 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d14a1e28
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};
d14a1e28
RD
28#endif
29
0085ce49 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
0085ce49 33 * ----------------------------------------------------------------------------- */
d14a1e28 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
0085ce49
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
d14a1e28 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
0085ce49
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
0085ce49
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
0085ce49
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
0085ce49
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
0085ce49
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
c9c7117a 127
0085ce49 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d14a1e28 130
0085ce49 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d14a1e28 133 *
0085ce49
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d14a1e28 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 */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d14a1e28 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d14a1e28 147#else
32fe5131 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*/
32fe5131 159
093d3ff1 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
32fe5131 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
166#endif
167
0085ce49
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d14a1e28
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d14a1e28 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
0085ce49 325 int owndata; /* flag if the structure owns the clientdata */
d14a1e28
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
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;
0085ce49 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>|...
32fe5131 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 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
093d3ff1 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
093d3ff1 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
32fe5131 401 return equiv;
093d3ff1
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
093d3ff1
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 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. */
0085ce49 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
32fe5131
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;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
093d3ff1 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
0085ce49
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
093d3ff1 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
093d3ff1 591 }
32fe5131
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) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
093d3ff1 605 for (; u != eu; ++u) {
32fe5131 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;
32fe5131 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
0085ce49 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}
d14a1e28 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}
d14a1e28
RD
695
696#ifdef __cplusplus
697}
698#endif
699
0085ce49
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
d14a1e28 714
0085ce49
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
0085ce49
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/* -----------------------------------------------------------------------------
0085ce49 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d14a1e28 803
0085ce49
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}
d14a1e28 846
0085ce49
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
d14a1e28 936
0085ce49
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
0085ce49
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d14a1e28 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 {
0085ce49
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;
d14a1e28 965
994141e6 966#ifdef __cplusplus
0085ce49
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
994141e6 972
15afbcd0 973
0085ce49
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 *
0085ce49
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 *
0085ce49 984 * ----------------------------------------------------------------------------- */
15afbcd0 985
093d3ff1 986/* Common SWIG API */
994141e6 987
d1a49b78
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
0085ce49
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
994141e6 1000
0085ce49
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)
994141e6 1004
0085ce49
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)
d14a1e28 1008
0085ce49
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)
4d5c3d91 1012
0085ce49
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
4d5c3d91 1017
0085ce49 1018/* Runtime API */
15afbcd0 1019
0085ce49
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
0085ce49
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
15afbcd0 1030
0085ce49 1031/* Runtime API implementation */
093d3ff1 1032
0085ce49 1033/* Error manipulation */
093d3ff1 1034
0085ce49
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;
15afbcd0
RD
1041}
1042
0085ce49
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}
15afbcd0 1049
0085ce49 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
0085ce49 1052/* Set a constant value */
093d3ff1 1053
0085ce49
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
15afbcd0
RD
1058}
1059
0085ce49 1060/* Append a value to the result obj */
15afbcd0 1061
0085ce49
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 {
0085ce49
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 }
0085ce49
RD
1101 return result;
1102#endif
994141e6 1103}
093d3ff1 1104
0085ce49 1105/* Unpack the argument tuple */
093d3ff1 1106
0085ce49
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*/
32fe5131 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 */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1613#endif
1614 };
1615
0085ce49 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
0085ce49
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
0085ce49
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
0085ce49
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 */
15afbcd0 1672#endif
093d3ff1 1673#if PY_VERSION_HEX >= 0x02030000
0085ce49 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
0085ce49 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
0085ce49 1679 };
32fe5131 1680 pyswigobject_type = tmp;
0085ce49 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1
RD
1682 type_init = 1;
1683 }
32fe5131 1684 return &pyswigobject_type;
093d3ff1
RD
1685}
1686
1687SWIGRUNTIME PyObject *
0085ce49 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
0085ce49
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
0085ce49 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;
0085ce49 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
0085ce49 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 }
0085ce49 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
1723}
1724
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
1727{
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
0085ce49 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
0085ce49 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))){
0085ce49 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
0085ce49 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
1746
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
0085ce49
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
0085ce49 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
0085ce49
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
0085ce49 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
0085ce49 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
0085ce49 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
0085ce49 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
0085ce49 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1852{
0085ce49
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
0085ce49
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
093d3ff1 1865 }
0085ce49 1866 return (PyObject *) sobj;
093d3ff1
RD
1867}
1868
0085ce49 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
0085ce49
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/* -----------------------------------------------------------------------------
0085ce49 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
0085ce49
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
0085ce49
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
0085ce49 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
0085ce49
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1903{
0085ce49
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 {
0085ce49
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
0085ce49
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
0085ce49
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 }
0085ce49 1962 return 0;
093d3ff1
RD
1963}
1964
0085ce49
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
0085ce49
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 {
0085ce49
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
0085ce49
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
0085ce49
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
0085ce49
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 {
0085ce49
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
d1a49b78 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
0085ce49
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
0085ce49 2072/* Convert a packed value value */
093d3ff1 2073
093d3ff1 2074SWIGRUNTIME int
0085ce49
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 }
0085ce49
RD
2085 return SWIG_OK;
2086}
093d3ff1 2087
0085ce49
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
093d3ff1 2091
0085ce49
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
093d3ff1 2096
0085ce49
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 }
0085ce49
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
0085ce49
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 }
0085ce49
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 }
0085ce49
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 }
0085ce49
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
0085ce49
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
0085ce49
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
093d3ff1 2180
0085ce49
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 {
0085ce49 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
0085ce49 2194 return SWIG_Py_Void();
093d3ff1 2195 }
0085ce49
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
0085ce49 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
0085ce49
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 }
0085ce49 2215 return robj;
093d3ff1 2216 }
093d3ff1
RD
2217}
2218
0085ce49
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
0085ce49 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
32fe5131
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
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1
RD
2251}
2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
0085ce49 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
0085ce49 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
0085ce49 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
0085ce49 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
0085ce49 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
0085ce49 2281 return SWIG_OK;
093d3ff1 2282}
32fe5131 2283#endif
093d3ff1 2284
0085ce49
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
0085ce49 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
0085ce49
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
093d3ff1 2314
0085ce49
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
0085ce49
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
2466#define SWIGTYPE_p_bool swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
32fe5131
RD
2468#define SWIGTYPE_p_form_ops_t swig_types[2]
2469#define SWIGTYPE_p_int swig_types[3]
2470#define SWIGTYPE_p_long swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxArrayInt swig_types[12]
2479#define SWIGTYPE_p_wxArrayString swig_types[13]
2480#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481#define SWIGTYPE_p_wxBitmap swig_types[15]
2482#define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483#define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484#define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485#define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486#define SWIGTYPE_p_wxButton swig_types[20]
2487#define SWIGTYPE_p_wxCURHandler swig_types[21]
2488#define SWIGTYPE_p_wxCheckBox swig_types[22]
2489#define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxChoice swig_types[25]
2492#define SWIGTYPE_p_wxChoicebook swig_types[26]
2493#define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2131d850
RD
2494#define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495#define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496#define SWIGTYPE_p_wxColour swig_types[30]
b850e7f3
RD
2497#define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2498#define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2499#define SWIGTYPE_p_wxComboBox swig_types[33]
2500#define SWIGTYPE_p_wxCommandEvent swig_types[34]
2501#define SWIGTYPE_p_wxContextHelp swig_types[35]
2502#define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2503#define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2504#define SWIGTYPE_p_wxControl swig_types[38]
2505#define SWIGTYPE_p_wxControlWithItems swig_types[39]
2506#define SWIGTYPE_p_wxCursor swig_types[40]
2507#define SWIGTYPE_p_wxDC swig_types[41]
2508#define SWIGTYPE_p_wxDateEvent swig_types[42]
2509#define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2510#define SWIGTYPE_p_wxDateTime swig_types[44]
2511#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2512#define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2513#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2514#define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2515#define SWIGTYPE_p_wxDuplexMode swig_types[49]
2516#define SWIGTYPE_p_wxEraseEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvent swig_types[51]
2518#define SWIGTYPE_p_wxEvtHandler swig_types[52]
2519#define SWIGTYPE_p_wxFSFile swig_types[53]
2520#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2521#define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2522#define SWIGTYPE_p_wxFileSystem swig_types[56]
2523#define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2524#define SWIGTYPE_p_wxFocusEvent swig_types[58]
2525#define SWIGTYPE_p_wxFont swig_types[59]
2526#define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2527#define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2528#define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGauge swig_types[64]
2531#define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2532#define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2533#define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2534#define SWIGTYPE_p_wxGridSizer swig_types[68]
2535#define SWIGTYPE_p_wxHelpEvent swig_types[69]
2536#define SWIGTYPE_p_wxHelpProvider swig_types[70]
2537#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2538#define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2539#define SWIGTYPE_p_wxICOHandler swig_types[73]
2540#define SWIGTYPE_p_wxIcon swig_types[74]
2541#define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2542#define SWIGTYPE_p_wxIdleEvent swig_types[76]
2543#define SWIGTYPE_p_wxImage swig_types[77]
2544#define SWIGTYPE_p_wxImageHandler swig_types[78]
2545#define SWIGTYPE_p_wxImageList swig_types[79]
2546#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2547#define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2548#define SWIGTYPE_p_wxItemContainer swig_types[82]
2549#define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2550#define SWIGTYPE_p_wxKeyEvent swig_types[84]
2551#define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2552#define SWIGTYPE_p_wxListBox swig_types[86]
2553#define SWIGTYPE_p_wxListEvent swig_types[87]
2554#define SWIGTYPE_p_wxListItem swig_types[88]
2555#define SWIGTYPE_p_wxListItemAttr swig_types[89]
2556#define SWIGTYPE_p_wxListView swig_types[90]
2557#define SWIGTYPE_p_wxListbook swig_types[91]
2558#define SWIGTYPE_p_wxListbookEvent swig_types[92]
2559#define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2560#define SWIGTYPE_p_wxMemoryDC swig_types[94]
2561#define SWIGTYPE_p_wxMenu swig_types[95]
2562#define SWIGTYPE_p_wxMenuBar swig_types[96]
2563#define SWIGTYPE_p_wxMenuEvent swig_types[97]
2564#define SWIGTYPE_p_wxMenuItem swig_types[98]
2565#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
34e0a3bb
RD
2566#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[100]
2567#define SWIGTYPE_p_wxMouseEvent swig_types[101]
2568#define SWIGTYPE_p_wxMoveEvent swig_types[102]
2569#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[103]
2570#define SWIGTYPE_p_wxNcPaintEvent swig_types[104]
2571#define SWIGTYPE_p_wxNotebook swig_types[105]
2572#define SWIGTYPE_p_wxNotebookEvent swig_types[106]
2573#define SWIGTYPE_p_wxNotifyEvent swig_types[107]
2574#define SWIGTYPE_p_wxObject swig_types[108]
2575#define SWIGTYPE_p_wxPCXHandler swig_types[109]
2576#define SWIGTYPE_p_wxPNGHandler swig_types[110]
2577#define SWIGTYPE_p_wxPNMHandler swig_types[111]
2578#define SWIGTYPE_p_wxPaintEvent swig_types[112]
2579#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[113]
2580#define SWIGTYPE_p_wxPaperSize swig_types[114]
2581#define SWIGTYPE_p_wxPickerBase swig_types[115]
2582#define SWIGTYPE_p_wxPoint swig_types[116]
2583#define SWIGTYPE_p_wxPyApp swig_types[117]
2584#define SWIGTYPE_p_wxPyCommandEvent swig_types[118]
2585#define SWIGTYPE_p_wxPyControl swig_types[119]
2586#define SWIGTYPE_p_wxPyEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyImageHandler swig_types[121]
2588#define SWIGTYPE_p_wxPyListCtrl swig_types[122]
2589#define SWIGTYPE_p_wxPySizer swig_types[123]
2590#define SWIGTYPE_p_wxPyTreeCtrl swig_types[124]
2591#define SWIGTYPE_p_wxPyTreeItemData swig_types[125]
2592#define SWIGTYPE_p_wxPyValidator swig_types[126]
2593#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594#define SWIGTYPE_p_wxRadioBox swig_types[128]
2595#define SWIGTYPE_p_wxRadioButton swig_types[129]
2596#define SWIGTYPE_p_wxRect swig_types[130]
2597#define SWIGTYPE_p_wxScrollBar swig_types[131]
2598#define SWIGTYPE_p_wxScrollEvent swig_types[132]
2599#define SWIGTYPE_p_wxScrollWinEvent swig_types[133]
2600#define SWIGTYPE_p_wxSetCursorEvent swig_types[134]
2601#define SWIGTYPE_p_wxShowEvent swig_types[135]
2602#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[136]
2603#define SWIGTYPE_p_wxSize swig_types[137]
2604#define SWIGTYPE_p_wxSizeEvent swig_types[138]
2605#define SWIGTYPE_p_wxSizer swig_types[139]
2606#define SWIGTYPE_p_wxSizerItem swig_types[140]
2607#define SWIGTYPE_p_wxSlider swig_types[141]
2608#define SWIGTYPE_p_wxSpinButton swig_types[142]
2609#define SWIGTYPE_p_wxSpinCtrl swig_types[143]
2610#define SWIGTYPE_p_wxSpinEvent swig_types[144]
2611#define SWIGTYPE_p_wxStaticBitmap swig_types[145]
2612#define SWIGTYPE_p_wxStaticBox swig_types[146]
2613#define SWIGTYPE_p_wxStaticBoxSizer swig_types[147]
2614#define SWIGTYPE_p_wxStaticLine swig_types[148]
2615#define SWIGTYPE_p_wxStaticText swig_types[149]
2616#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[150]
2617#define SWIGTYPE_p_wxString swig_types[151]
2618#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[152]
2619#define SWIGTYPE_p_wxTIFFHandler swig_types[153]
2620#define SWIGTYPE_p_wxTextAttr swig_types[154]
2621#define SWIGTYPE_p_wxTextCtrl swig_types[155]
2622#define SWIGTYPE_p_wxTextUrlEvent swig_types[156]
2623#define SWIGTYPE_p_wxToggleButton swig_types[157]
2624#define SWIGTYPE_p_wxToolBar swig_types[158]
2625#define SWIGTYPE_p_wxToolBarBase swig_types[159]
2626#define SWIGTYPE_p_wxToolBarToolBase swig_types[160]
2627#define SWIGTYPE_p_wxToolbook swig_types[161]
2628#define SWIGTYPE_p_wxToolbookEvent swig_types[162]
2629#define SWIGTYPE_p_wxTreeEvent swig_types[163]
2630#define SWIGTYPE_p_wxTreeItemId swig_types[164]
2631#define SWIGTYPE_p_wxTreebook swig_types[165]
2632#define SWIGTYPE_p_wxTreebookEvent swig_types[166]
2633#define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2634#define SWIGTYPE_p_wxValidator swig_types[168]
2635#define SWIGTYPE_p_wxVisualAttributes swig_types[169]
2636#define SWIGTYPE_p_wxWindow swig_types[170]
2637#define SWIGTYPE_p_wxWindowBase swig_types[171]
2638#define SWIGTYPE_p_wxWindowCreateEvent swig_types[172]
2639#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[173]
2640#define SWIGTYPE_p_wxXPMHandler swig_types[174]
2641static swig_type_info *swig_types[176];
2642static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
32fe5131
RD
2643#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2644#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
093d3ff1
RD
2645
2646/* -------- TYPES TABLE (END) -------- */
2647
0085ce49
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
0085ce49
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
0085ce49 2751 #define SWIG_From_long PyInt_FromLong
093d3ff1
RD
2752
2753
0085ce49
RD
2754SWIGINTERNINLINE PyObject *
2755SWIG_From_int (int value)
2756{
2757 return SWIG_From_long (value);
2758}
093d3ff1
RD
2759
2760
0085ce49
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
0085ce49 2774SWIG_AsVal_long (PyObject* obj, long* val)
093d3ff1
RD
2775{
2776 if (PyNumber_Check(obj)) {
2777 if (val) *val = PyInt_AsLong(obj);
0085ce49 2778 return SWIG_OK;
093d3ff1 2779 }
0085ce49 2780 return SWIG_TypeError;
093d3ff1
RD
2781}
2782
2783
093d3ff1 2784SWIGINTERN int
0085ce49
RD
2785SWIG_AsVal_int (PyObject * obj, int *val)
2786{
093d3ff1 2787 long v;
0085ce49
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 {
0085ce49 2793 if (val) *val = static_cast< int >(v);
093d3ff1 2794 }
0085ce49
RD
2795 }
2796 return res;
994141e6
RD
2797}
2798
c32bde28 2799 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
15afbcd0 2800
093d3ff1 2801SWIGINTERN int
0085ce49 2802SWIG_AsVal_bool (PyObject *obj, bool *val)
15afbcd0 2803{
c32bde28
RD
2804 if (obj == Py_True) {
2805 if (val) *val = true;
0085ce49
RD
2806 return SWIG_OK;
2807 } else if (obj == Py_False) {
c32bde28 2808 if (val) *val = false;
0085ce49 2809 return SWIG_OK;
093d3ff1 2810 } else {
0085ce49
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 }
15afbcd0
RD
2816}
2817
b2dc1044
RD
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);
d14a1e28
RD
2824
2825#include <wx/checklst.h>
d14a1e28 2826
b2dc1044 2827 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
0085ce49 2828SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2829 if (clientData)
2830 {
d14a1e28
RD
2831 wxPyClientData* data = new wxPyClientData(clientData);
2832 self->Insert(item, pos, data);
e9d6f3a4
RD
2833 }
2834 else
d14a1e28
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
0085ce49 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 }
0085ce49 2878SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
c3eb6258
RD
2879 #ifdef __WXMSW__
2880 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2881 self->GetItem(item)->SetTextColour(c);
2882 #endif
2883 }
0085ce49 2884SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
c3eb6258
RD
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetBackgroundColour(c);
2888 #endif
2889 }
0085ce49 2890SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
c3eb6258
RD
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetFont(f);
2894 #endif
2895 }
b2dc1044 2896 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
0085ce49 2897SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d14a1e28
RD
2898 self->AppendText(text);
2899 }
0085ce49 2900SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d14a1e28
RD
2901 return self->GetValue().Mid(from, to - from);
2902 }
b2dc1044
RD
2903 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2904 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
33b885b9 2905 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
b2dc1044
RD
2906 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2907 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
75219dcb
RD
2908
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
50f151d7
RD
2923
2924SWIGINTERNINLINE PyObject *
2925SWIG_From_unsigned_SS_int (unsigned int value)
2926{
2927 return SWIG_From_unsigned_SS_long (value);
2928}
2929
d14a1e28
RD
2930
2931#include <wx/slider.h>
2932
d14a1e28 2933
b2dc1044 2934 static const wxString wxPySliderNameStr(wxSliderNameStr);
33b885b9 2935 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
d14a1e28 2936
15afbcd0
RD
2937#if !wxUSE_TOGGLEBTN
2938// implement dummy items for platforms that don't have this class
d14a1e28
RD
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&)
39f61e25 2948 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
2949
2950 wxToggleButton()
39f61e25 2951 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
2952};
2953#endif
2954
51b83b37 2955 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
994141e6 2956
7e08d4ef 2957SWIGINTERNINLINE int
0085ce49 2958SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2959{
7e08d4ef 2960 unsigned long v;
0085ce49
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
b2dc1044 2966 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
0085ce49 2967SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d14a1e28
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 }
0085ce49 2977SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d14a1e28
RD
2978 self->SetClientData(new wxPyUserData(clientData));
2979 }
0085ce49 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){
d14a1e28
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 }
0085ce49 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){
d14a1e28
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 }
0085ce49 2994SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d14a1e28
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 }
0085ce49 3004SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d14a1e28
RD
3005 self->SetToolClientData(id, new wxPyUserData(clientData));
3006 }
3007
3008#include <wx/listctrl.h>
3009
7557b9b5 3010 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
0085ce49 3011SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d14a1e28
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();
d14a1e28
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
4f89f6a3 3026 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3027 return retval;
3028 }
3029
3030 // C++ Version of a Python aware class
3031class wxPyListCtrl : public wxListCtrl {
32fe5131 3032 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d14a1e28
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);
d14a1e28
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
d14a1e28
RD
3059 PYPRIVATE;
3060};
3061
3062IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3063
3064IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d14a1e28 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
d14a1e28 3069
0085ce49 3070SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d14a1e28
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 }
0085ce49 3085SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d14a1e28
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 }
0085ce49 3093SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d14a1e28
RD
3094 wxPoint pos;
3095 self->GetItemPosition(item, pos);
3096 return pos;
3097 }
0085ce49 3098SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d14a1e28
RD
3099 wxRect rect;
3100 self->GetItemRect(item, rect, code);
3101 return rect;
3102 }
0085ce49 3103SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d14a1e28 3104 if (!PyCallable_Check(func))
ae8162c8 3105 return false;
d14a1e28
RD
3106 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3107 }
0085ce49 3108SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d14a1e28
RD
3109
3110
3111
3112 return (wxWindow*)self->m_mainWin;
3113
3114 }
3115
3116#include <wx/treectrl.h>
3117#include "wx/wxPython/pytree.h"
d14a1e28 3118
33b885b9 3119 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
0085ce49
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
d14a1e28
RD
3126 // C++ version of Python aware wxTreeCtrl
3127class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3128 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d14a1e28
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();
d14a1e28 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);
d14a1e28
RD
3157 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3158 Py_DECREF(o1);
3159 Py_DECREF(o2);
3160 }
4f89f6a3 3161 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3162 if (! found)
3163 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3164 return rval;
3165 }
3166 PYPRIVATE;
3167};
3168
3169IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3170
3171
0085ce49 3172SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d14a1e28
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 }
0085ce49 3181SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d14a1e28
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 }
0085ce49 3190SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d14a1e28
RD
3191 data->SetId(item); // set the id
3192 self->SetItemData(item, data);
3193 }
0085ce49 3194SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d14a1e28
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 }
0085ce49 3203SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3204 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28
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);
d14a1e28 3212 PyList_Append(rval, item);
1a10c483 3213 Py_DECREF(item);
d14a1e28 3214 }
4f89f6a3 3215 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3216 return rval;
3217 }
0085ce49 3218SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
58203fa6
RD
3219 void* cookie = 0;
3220 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3221 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3222 PyObject* tup = PyTuple_New(2);
ae8162c8 3223 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
58203fa6 3224 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
4f89f6a3 3225 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3226 return tup;
3227 }
0085ce49 3228SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
58203fa6 3229 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3230 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3231 PyObject* tup = PyTuple_New(2);
ae8162c8 3232 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
58203fa6 3233 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
4f89f6a3 3234 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3235 return tup;
3236 }
0085ce49 3237SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d14a1e28
RD
3238 wxRect rect;
3239 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3240 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3241 wxRect* r = new wxRect(rect);
ae8162c8 3242 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
4f89f6a3 3243 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3244 return val;
3245 }
3246 else
3247 RETURN_NONE();
3248 }
b2dc1044 3249 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c32bde28 3250
32fe5131 3251SWIGINTERNINLINE PyObject*
0085ce49 3252 SWIG_From_bool (bool value)
c32bde28 3253{
0085ce49 3254 return PyBool_FromLong(value ? 1 : 0);
c32bde28
RD
3255}
3256
d14a1e28
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
db3e571a 3271 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
d14a1e28 3272
976dbff5
RD
3273 bool DoEraseBackground(wxDC* dc) {
3274#ifdef __WXMSW__
3275 return wxWindow::DoEraseBackground(dc->GetHDC());
3276#else
3277 dc->SetBackground(wxBrush(GetBackgroundColour()));
3278 dc->Clear();
3279 return true;
3280#endif
3281 }
3282
d14a1e28
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
db3e571a 3307 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
db3e571a 3308 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
4276dc52 3309
51b83b37
RD
3310 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3311
8d38bd1d
RD
3312 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3313
d14a1e28
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
db3e571a 3343IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
db3e571a 3344IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d14a1e28 3345
51b83b37 3346IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3347
3348IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3349
d14a1e28
RD
3350
3351
0085ce49 3352SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
e811c8ce
RD
3353
3354#include <wx/generic/dragimgg.h>
3355
53aa7709 3356 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
0085ce49 3357SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3358 wxDateTime rv;
3359 self->GetRange(&rv, NULL);
3360 return rv;
3361 }
0085ce49 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);
d14a1e28
RD
3375#ifdef __cplusplus
3376extern "C" {
3377#endif
0085ce49
RD
3378SWIGINTERN int ButtonNameStr_set(PyObject *) {
3379 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3380 return 1;
b2dc1044
RD
3381}
3382
3383
0085ce49
RD
3384SWIGINTERN PyObject *ButtonNameStr_get(void) {
3385 PyObject *pyobj = 0;
3386
3387 {
b2dc1044 3388#if wxUSE_UNICODE
0085ce49 3389 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
b2dc1044 3390#else
0085ce49 3391 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
b2dc1044 3392#endif
0085ce49
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) {
d14a1e28 3452 {
0085ce49
RD
3453 arg3 = wxString_in_helper(obj2);
3454 if (arg3 == NULL) SWIG_fail;
3455 temp3 = true;
d14a1e28 3456 }
0085ce49
RD
3457 }
3458 if (obj3) {
d14a1e28 3459 {
0085ce49
RD
3460 arg4 = &temp4;
3461 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 3462 }
0085ce49
RD
3463 }
3464 if (obj4) {
d14a1e28 3465 {
0085ce49
RD
3466 arg5 = &temp5;
3467 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3468 }
0085ce49
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 &""'");
d14a1e28 3481 }
0085ce49
RD
3482 if (!argp7) {
3483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 3484 }
0085ce49
RD
3485 arg7 = reinterpret_cast< wxValidator * >(argp7);
3486 }
3487 if (obj7) {
d14a1e28 3488 {
0085ce49
RD
3489 arg8 = wxString_in_helper(obj7);
3490 if (arg8 == NULL) SWIG_fail;
3491 temp8 = true;
d14a1e28 3492 }
0085ce49
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;
d14a1e28
RD
3521}
3522
3523
0085ce49
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) {
d14a1e28 3606 {
0085ce49
RD
3607 arg4 = wxString_in_helper(obj3);
3608 if (arg4 == NULL) SWIG_fail;
3609 temp4 = true;
d14a1e28 3610 }
0085ce49
RD
3611 }
3612 if (obj4) {
4f89f6a3 3613 {
0085ce49
RD
3614 arg5 = &temp5;
3615 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4f89f6a3 3616 }
0085ce49
RD
3617 }
3618 if (obj5) {
d14a1e28 3619 {
0085ce49
RD
3620 arg6 = &temp6;
3621 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 3622 }
0085ce49
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 &""'");
d14a1e28 3635 }
0085ce49
RD
3636 if (!argp8) {
3637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3638 }
0085ce49
RD
3639 arg8 = reinterpret_cast< wxValidator * >(argp8);
3640 }
3641 if (obj8) {
d14a1e28 3642 {
0085ce49
RD
3643 arg9 = wxString_in_helper(obj8);
3644 if (arg9 == NULL) SWIG_fail;
3645 temp9 = true;
d14a1e28 3646 }
0085ce49
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;
d14a1e28
RD
3676}
3677
3678
0085ce49
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;
d14a1e28
RD
3703}
3704
3705
0085ce49
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) {
d14a1e28 3833 {
0085ce49
RD
3834 arg4 = &temp4;
3835 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 3836 }
0085ce49
RD
3837 }
3838 if (obj4) {
d14a1e28 3839 {
0085ce49
RD
3840 arg5 = &temp5;
3841 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3842 }
0085ce49
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 &""'");
22bfe96c 3855 }
0085ce49
RD
3856 if (!argp7) {
3857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
22bfe96c 3858 }
0085ce49
RD
3859 arg7 = reinterpret_cast< wxValidator * >(argp7);
3860 }
3861 if (obj7) {
22bfe96c 3862 {
0085ce49
RD
3863 arg8 = wxString_in_helper(obj7);
3864 if (arg8 == NULL) SWIG_fail;
3865 temp8 = true;
22bfe96c 3866 }
0085ce49
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;
22bfe96c
RD
3887}
3888
3889
0085ce49
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 &""'");
d14a1e28 3976 }
0085ce49
RD
3977 if (!argp4) {
3978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d14a1e28 3979 }
0085ce49
RD
3980 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3981 }
3982 if (obj4) {
d14a1e28 3983 {
0085ce49
RD
3984 arg5 = &temp5;
3985 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3986 }
0085ce49
RD
3987 }
3988 if (obj5) {
d14a1e28 3989 {
0085ce49
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 &""'");
d14a1e28 4008 }
0085ce49
RD
4009 arg8 = reinterpret_cast< wxValidator * >(argp8);
4010 }
4011 if (obj8) {
d14a1e28 4012 {
0085ce49
RD
4013 arg9 = wxString_in_helper(obj8);
4014 if (arg9 == NULL) SWIG_fail;
4015 temp9 = true;
d14a1e28 4016 }
0085ce49
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;
d14a1e28
RD
4038}
4039
4040
0085ce49
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;
d14a1e28
RD
4066}
4067
4068
0085ce49
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;
d14a1e28
RD
4094}
4095
4096
0085ce49
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;
d14a1e28
RD
4122}
4123
4124
0085ce49
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;
d14a1e28
RD
4150}
4151
4152
0085ce49
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;
d14a1e28
RD
4430}
4431
4432
0085ce49
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;
d14a1e28
RD
4458}
4459
4460
0085ce49
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
0085ce49
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();
d14a1e28
RD
4494}
4495
0085ce49
RD
4496SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4497 return SWIG_Python_InitShadowInstance(args);
4498}
d14a1e28 4499
0085ce49
RD
4500SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4501 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4502 return 1;
d14a1e28
RD
4503}
4504
4505
0085ce49
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) {
d14a1e28 4574 {
0085ce49
RD
4575 arg3 = wxString_in_helper(obj2);
4576 if (arg3 == NULL) SWIG_fail;
4577 temp3 = true;
d14a1e28 4578 }
0085ce49
RD
4579 }
4580 if (obj3) {
4581 {
4582 arg4 = &temp4;
4583 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 4584 }
0085ce49
RD
4585 }
4586 if (obj4) {
d14a1e28 4587 {
0085ce49
RD
4588 arg5 = &temp5;
4589 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 4590 }
0085ce49
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 }
0085ce49
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 {
0085ce49
RD
4611 arg8 = wxString_in_helper(obj7);
4612 if (arg8 == NULL) SWIG_fail;
4613 temp8 = true;
b1fcee84 4614 }
0085ce49
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
0085ce49
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 {
0085ce49
RD
4729 arg4 = wxString_in_helper(obj3);
4730 if (arg4 == NULL) SWIG_fail;
4731 temp4 = true;
093d3ff1 4732 }
0085ce49
RD
4733 }
4734 if (obj4) {
093d3ff1 4735 {
0085ce49
RD
4736 arg5 = &temp5;
4737 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 4738 }
0085ce49
RD
4739 }
4740 if (obj5) {
d14a1e28 4741 {
0085ce49
RD
4742 arg6 = &temp6;
4743 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 4744 }
0085ce49
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 &""'");
d14a1e28 4757 }
0085ce49
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 {
0085ce49
RD
4765 arg9 = wxString_in_helper(obj8);
4766 if (arg9 == NULL) SWIG_fail;
4767 temp9 = true;
093d3ff1 4768 }
0085ce49
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;
d14a1e28
RD
4798}
4799
4800
0085ce49
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;
d14a1e28
RD
4828}
4829
4830
0085ce49
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;
d14a1e28 4896}
0085ce49
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;
b2dc1044
RD
4962}
4963
4964
0085ce49
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;
d14a1e28
RD
4992}
4993
4994
0085ce49
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;
d14a1e28
RD
5022}
5023
5024
0085ce49
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;
d14a1e28
RD
5055}
5056
5057
0085ce49
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();
d14a1e28
RD
5063}
5064
0085ce49
RD
5065SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5066 return SWIG_Python_InitShadowInstance(args);
5067}
d14a1e28 5068
0085ce49
RD
5069SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5070 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5071 return 1;
d14a1e28
RD
5072}
5073
5074
0085ce49
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 {
0085ce49
RD
5144 arg3 = &temp3;
5145 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 5146 }
0085ce49
RD
5147 }
5148 if (obj3) {
d14a1e28 5149 {
0085ce49
RD
5150 arg4 = &temp4;
5151 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5152 }
0085ce49
RD
5153 }
5154 if (obj4) {
d14a1e28 5155 {
0085ce49
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 }
d14a1e28 5171 }
0085ce49
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 }
0085ce49
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) {
d14a1e28 5191 {
0085ce49
RD
5192 arg8 = wxString_in_helper(obj7);
5193 if (arg8 == NULL) SWIG_fail;
5194 temp8 = true;
d14a1e28 5195 }
0085ce49
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;
d14a1e28
RD
5222}
5223
5224
0085ce49
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) {
d14a1e28 5307 {
0085ce49
RD
5308 arg4 = &temp4;
5309 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5310 }
0085ce49
RD
5311 }
5312 if (obj4) {
4f89f6a3 5313 {
0085ce49
RD
5314 arg5 = &temp5;
5315 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4f89f6a3 5316 }
0085ce49
RD
5317 }
5318 if (obj5) {
d14a1e28 5319 {
0085ce49
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 &""'");
d14a1e28 5348 }
0085ce49
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) {
4f89f6a3 5355 {
0085ce49
RD
5356 arg9 = wxString_in_helper(obj8);
5357 if (arg9 == NULL) SWIG_fail;
5358 temp9 = true;
4f89f6a3 5359 }
0085ce49
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;
d14a1e28
RD
5387}
5388
5389
0085ce49
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;
22bfe96c
RD
5448}
5449
5450
0085ce49
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();
d14a1e28 5456}
0085ce49
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;
b2dc1044
RD
5465}
5466
5467
0085ce49
RD
5468SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5469 PyObject *pyobj = 0;
5470
5471 {
b2dc1044 5472#if wxUSE_UNICODE
0085ce49 5473 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
b2dc1044 5474#else
0085ce49 5475 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
b2dc1044 5476#endif
0085ce49
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) {
d14a1e28 5540 {
0085ce49
RD
5541 arg3 = wxString_in_helper(obj2);
5542 if (arg3 == NULL) SWIG_fail;
5543 temp3 = true;
d14a1e28 5544 }
0085ce49
RD
5545 }
5546 if (obj3) {
d14a1e28 5547 {
0085ce49
RD
5548 arg4 = &temp4;
5549 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5550 }
0085ce49
RD
5551 }
5552 if (obj4) {
d14a1e28 5553 {
0085ce49
RD
5554 arg5 = &temp5;
5555 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 5556 }
0085ce49
RD
5557 }
5558 if (obj5) {
d14a1e28 5559 {
0085ce49
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 }
d14a1e28 5575 }
0085ce49
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) {
d14a1e28 5595 {
0085ce49
RD
5596 arg9 = wxString_in_helper(obj8);
5597 if (arg9 == NULL) SWIG_fail;
5598 temp9 = true;
d14a1e28 5599 }
0085ce49
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;
d14a1e28
RD
5634}
5635
5636
0085ce49
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) {
4f89f6a3 5723 {
0085ce49
RD
5724 arg4 = wxString_in_helper(obj3);
5725 if (arg4 == NULL) SWIG_fail;
5726 temp4 = true;
4f89f6a3 5727 }
0085ce49
RD
5728 }
5729 if (obj4) {
d14a1e28 5730 {
0085ce49
RD
5731 arg5 = &temp5;
5732 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 5733 }
0085ce49
RD
5734 }
5735 if (obj5) {
d14a1e28 5736 {
0085ce49
RD
5737 arg6 = &temp6;
5738 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 5739 }
0085ce49
RD
5740 }
5741 if (obj6) {
d14a1e28 5742 {
0085ce49
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 }
d14a1e28 5758 }
0085ce49
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 &""'");
d14a1e28 5771 }
0085ce49
RD
5772 if (!argp9) {
5773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 5774 }
0085ce49
RD
5775 arg9 = reinterpret_cast< wxValidator * >(argp9);
5776 }
5777 if (obj9) {
d14a1e28 5778 {
0085ce49
RD
5779 arg10 = wxString_in_helper(obj9);
5780 if (arg10 == NULL) SWIG_fail;
5781 temp10 = true;
d14a1e28 5782 }
0085ce49
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;
d14a1e28
RD
5818}
5819
5820
0085ce49
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 {
d14a1e28 5843#if wxUSE_UNICODE
0085ce49 5844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 5845#else
0085ce49 5846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 5847#endif
0085ce49
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;
d14a1e28
RD
5897}
5898
5899
0085ce49
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;
d14a1e28
RD
5924}
5925
5926
0085ce49
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;
d14a1e28
RD
5951}
5952
5953
0085ce49
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;
d14a1e28
RD
6016}
6017
6018
0085ce49
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;
d14a1e28
RD
6044}
6045
6046
0085ce49
RD
6047SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6048 PyObject *resultobj = 0;
6049 wxComboBox *arg1 = (wxComboBox *) 0 ;
6050 long result;
6051 void *argp1 = 0 ;
6052 int res1 = 0 ;
6053 PyObject *swig_obj[1] ;
6054
6055 if (!args) SWIG_fail;
6056 swig_obj[0] = args;
6057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6058 if (!SWIG_IsOK(res1)) {
6059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6060 }
6061 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_From_long(static_cast< long >(result));
6069 return resultobj;
6070fail:
6071 return NULL;
6072}
6073
6074
6075SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj = 0;
6077 wxComboBox *arg1 = (wxComboBox *) 0 ;
6078 long arg2 ;
6079 long arg3 ;
6080 wxString *arg4 = 0 ;
6081 void *argp1 = 0 ;
6082 int res1 = 0 ;
6083 long val2 ;
6084 int ecode2 = 0 ;
6085 long val3 ;
6086 int ecode3 = 0 ;
6087 bool temp4 = false ;
6088 PyObject * obj0 = 0 ;
6089 PyObject * obj1 = 0 ;
6090 PyObject * obj2 = 0 ;
6091 PyObject * obj3 = 0 ;
6092 char * kwnames[] = {
2131d850 6093 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
0085ce49
RD
6094 };
6095
6096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6098 if (!SWIG_IsOK(res1)) {
6099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6100 }
6101 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6102 ecode2 = SWIG_AsVal_long(obj1, &val2);
6103 if (!SWIG_IsOK(ecode2)) {
6104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6105 }
6106 arg2 = static_cast< long >(val2);
6107 ecode3 = SWIG_AsVal_long(obj2, &val3);
6108 if (!SWIG_IsOK(ecode3)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6110 }
6111 arg3 = static_cast< long >(val3);
6112 {
6113 arg4 = wxString_in_helper(obj3);
6114 if (arg4 == NULL) SWIG_fail;
6115 temp4 = true;
6116 }
6117 {
6118 PyThreadState* __tstate = wxPyBeginAllowThreads();
6119 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6120 wxPyEndAllowThreads(__tstate);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 resultobj = SWIG_Py_Void();
6124 {
6125 if (temp4)
6126 delete arg4;
6127 }
6128 return resultobj;
6129fail:
6130 {
6131 if (temp4)
6132 delete arg4;
6133 }
6134 return NULL;
6135}
6136
6137
6138SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6139 PyObject *resultobj = 0;
6140 wxComboBox *arg1 = (wxComboBox *) 0 ;
6141 long arg2 ;
6142 long arg3 ;
6143 void *argp1 = 0 ;
6144 int res1 = 0 ;
6145 long val2 ;
6146 int ecode2 = 0 ;
6147 long val3 ;
6148 int ecode3 = 0 ;
6149 PyObject * obj0 = 0 ;
6150 PyObject * obj1 = 0 ;
6151 PyObject * obj2 = 0 ;
6152 char * kwnames[] = {
2131d850 6153 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
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;
d14a1e28
RD
6229}
6230
6231
0085ce49
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
0085ce49
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;
d14a1e28
RD
6397}
6398
6399
0085ce49
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[] = {
2131d850 6442 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
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;
d14a1e28
RD
6471}
6472
6473
0085ce49
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;
d14a1e28
RD
6501}
6502
6503
0085ce49
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;
fd3f2efe
RD
6528}
6529
6530
0085ce49
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;
d14a1e28
RD
6555}
6556
6557
0085ce49
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;
b9d6a5f3
RD
6582}
6583
6584
0085ce49
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;
943e8dfd
RD
6612}
6613
6614
0085ce49
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
0085ce49
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
0085ce49
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;
d14a1e28
RD
6702}
6703
6704
0085ce49
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;
d14a1e28
RD
6732}
6733
6734
0085ce49
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;
d14a1e28
RD
6765}
6766
6767
0085ce49
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();
5cbf236d
RD
6773}
6774
0085ce49
RD
6775SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6776 return SWIG_Python_InitShadowInstance(args);
6777}
5cbf236d 6778
0085ce49
RD
6779SWIGINTERN int GaugeNameStr_set(PyObject *) {
6780 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6781 return 1;
5cbf236d
RD
6782}
6783
6784
0085ce49
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) {
5cbf236d 6860 {
0085ce49
RD
6861 arg4 = &temp4;
6862 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6863 }
0085ce49
RD
6864 }
6865 if (obj4) {
5cbf236d 6866 {
0085ce49
RD
6867 arg5 = &temp5;
6868 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6869 }
0085ce49
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 &""'");
5cbf236d 6885 }
0085ce49
RD
6886 arg7 = reinterpret_cast< wxValidator * >(argp7);
6887 }
6888 if (obj7) {
5cbf236d 6889 {
0085ce49
RD
6890 arg8 = wxString_in_helper(obj7);
6891 if (arg8 == NULL) SWIG_fail;
6892 temp8 = true;
5cbf236d 6893 }
0085ce49
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;
5cbf236d
RD
6914}
6915
6916
0085ce49
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) {
5cbf236d 7006 {
0085ce49
RD
7007 arg5 = &temp5;
7008 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 7009 }
0085ce49
RD
7010 }
7011 if (obj5) {
5cbf236d 7012 {
0085ce49
RD
7013 arg6 = &temp6;
7014 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 7015 }
0085ce49
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 &""'");
5cbf236d 7028 }
0085ce49
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) {
5cbf236d 7035 {
0085ce49
RD
7036 arg9 = wxString_in_helper(obj8);
7037 if (arg9 == NULL) SWIG_fail;
7038 temp9 = true;
5cbf236d 7039 }
0085ce49
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;
5cbf236d
RD
7099}
7100
7101
0085ce49
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;
5cbf236d
RD
7165}
7166
7167
0085ce49
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;
5cbf236d
RD
7193}
7194
7195
ae5bc7f3
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
0085ce49
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;
22bfe96c
RD
7288}
7289
7290
0085ce49
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;
d14a1e28 7354}
0085ce49
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;
b2dc1044
RD
7415}
7416
7417
0085ce49
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 {
b2dc1044 7439#if wxUSE_UNICODE
0085ce49 7440 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7441#else
0085ce49 7442 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7443#endif
0085ce49
RD
7444 }
7445 return pyobj;
d14a1e28
RD
7446}
7447
7448
0085ce49
RD
7449SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7450 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7451 return 1;
d14a1e28
RD
7452}
7453
7454
0085ce49
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) {
d14a1e28 7538 {
0085ce49
RD
7539 arg3 = wxString_in_helper(obj2);
7540 if (arg3 == NULL) SWIG_fail;
7541 temp3 = true;
d14a1e28 7542 }
0085ce49
RD
7543 }
7544 if (obj3) {
4f89f6a3 7545 {
0085ce49
RD
7546 arg4 = &temp4;
7547 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 7548 }
0085ce49
RD
7549 }
7550 if (obj4) {
d14a1e28 7551 {
0085ce49
RD
7552 arg5 = &temp5;
7553 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7554 }
0085ce49
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) {
d14a1e28 7564 {
0085ce49
RD
7565 arg7 = wxString_in_helper(obj6);
7566 if (arg7 == NULL) SWIG_fail;
7567 temp7 = true;
d14a1e28 7568 }
0085ce49
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;
d14a1e28
RD
7597}
7598
7599
0085ce49
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 {
0085ce49
RD
7678 arg4 = wxString_in_helper(obj3);
7679 if (arg4 == NULL) SWIG_fail;
7680 temp4 = true;
093d3ff1 7681 }
0085ce49
RD
7682 }
7683 if (obj4) {
d14a1e28 7684 {
0085ce49
RD
7685 arg5 = &temp5;
7686 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7687 }
0085ce49
RD
7688 }
7689 if (obj5) {
d14a1e28 7690 {
0085ce49
RD
7691 arg6 = &temp6;
7692 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 7693 }
0085ce49
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 {
0085ce49
RD
7704 arg8 = wxString_in_helper(obj7);
7705 if (arg8 == NULL) SWIG_fail;
7706 temp8 = true;
093d3ff1 7707 }
0085ce49
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}
d14a1e28 7738
0085ce49
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 {
0085ce49
RD
7830 arg3 = &temp3;
7831 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 7832 }
0085ce49
RD
7833 }
7834 if (obj3) {
d14a1e28 7835 {
0085ce49
RD
7836 arg4 = &temp4;
7837 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7838 }
0085ce49
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;
d14a1e28
RD
7873}
7874
7875
0085ce49
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) {
d14a1e28 7949 {
0085ce49
RD
7950 arg4 = &temp4;
7951 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7952 }
0085ce49
RD
7953 }
7954 if (obj4) {
093d3ff1 7955 {
0085ce49
RD
7956 arg5 = &temp5;
7957 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 7958 }
0085ce49
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;
d14a1e28
RD
7994}
7995
7996
0085ce49
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) {
d14a1e28 8138 {
0085ce49
RD
8139 arg3 = wxString_in_helper(obj2);
8140 if (arg3 == NULL) SWIG_fail;
8141 temp3 = true;
d14a1e28 8142 }
0085ce49
RD
8143 }
8144 if (obj3) {
4f89f6a3 8145 {
0085ce49
RD
8146 arg4 = &temp4;
8147 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 8148 }
0085ce49
RD
8149 }
8150 if (obj4) {
093d3ff1 8151 {
0085ce49
RD
8152 arg5 = &temp5;
8153 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 8154 }
0085ce49
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) {
d14a1e28 8164 {
0085ce49
RD
8165 arg7 = wxString_in_helper(obj6);
8166 if (arg7 == NULL) SWIG_fail;
8167 temp7 = true;
d14a1e28 8168 }
0085ce49
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;
d14a1e28
RD
8197}
8198
8199
0085ce49
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) {
d14a1e28 8277 {
0085ce49
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;
d14a1e28 8287 }
0085ce49
RD
8288 }
8289 if (obj5) {
093d3ff1 8290 {
0085ce49
RD
8291 arg6 = &temp6;
8292 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 8293 }
0085ce49
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 {
0085ce49
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 }
0085ce49
RD
8479 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8480 }
8481 if (obj3) {
d14a1e28 8482 {
0085ce49
RD
8483 arg4 = &temp4;
8484 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8485 }
0085ce49
RD
8486 }
8487 if (obj4) {
d14a1e28 8488 {
0085ce49
RD
8489 arg5 = &temp5;
8490 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8491 }
0085ce49
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 {
0085ce49
RD
8502 arg7 = wxString_in_helper(obj6);
8503 if (arg7 == NULL) SWIG_fail;
8504 temp7 = true;
093d3ff1 8505 }
0085ce49
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;
d14a1e28
RD
8526}
8527
8528
0085ce49
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 &""'");
22bfe96c 8613 }
0085ce49
RD
8614 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8615 }
8616 if (obj4) {
22bfe96c 8617 {
0085ce49
RD
8618 arg5 = &temp5;
8619 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 8620 }
0085ce49
RD
8621 }
8622 if (obj5) {
22bfe96c 8623 {
0085ce49
RD
8624 arg6 = &temp6;
8625 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
22bfe96c 8626 }
0085ce49
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) {
b2dc1044 8636 {
0085ce49
RD
8637 arg8 = wxString_in_helper(obj7);
8638 if (arg8 == NULL) SWIG_fail;
8639 temp8 = true;
b2dc1044 8640 }
0085ce49
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;
b2dc1044
RD
8662}
8663
8664
0085ce49
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;
b2dc1044
RD
8805}
8806
8807
0085ce49
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();
b2dc1044
RD
8813}
8814
0085ce49
RD
8815SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8816 return SWIG_Python_InitShadowInstance(args);
8817}
b2dc1044 8818
0085ce49
RD
8819SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8820 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8821 return 1;
b2dc1044
RD
8822}
8823
8824
0085ce49
RD
8825SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8826 PyObject *pyobj = 0;
8827
8828 {
b2dc1044 8829#if wxUSE_UNICODE
0085ce49 8830 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8831#else
0085ce49 8832 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8833#endif
0085ce49
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) {
d14a1e28 8893 {
0085ce49
RD
8894 arg3 = &temp3;
8895 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 8896 }
0085ce49
RD
8897 }
8898 if (obj3) {
d14a1e28 8899 {
0085ce49
RD
8900 arg4 = &temp4;
8901 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8902 }
0085ce49
RD
8903 }
8904 if (obj4) {
d14a1e28 8905 {
0085ce49
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 }
d14a1e28 8921 }
0085ce49
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 &""'");
d14a1e28 8934 }
0085ce49
RD
8935 if (!argp7) {
8936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8937 }
0085ce49
RD
8938 arg7 = reinterpret_cast< wxValidator * >(argp7);
8939 }
8940 if (obj7) {
d14a1e28 8941 {
0085ce49
RD
8942 arg8 = wxString_in_helper(obj7);
8943 if (arg8 == NULL) SWIG_fail;
8944 temp8 = true;
d14a1e28 8945 }
0085ce49
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;
d14a1e28
RD
8972}
8973
8974
0085ce49
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) {
d14a1e28 9057 {
0085ce49
RD
9058 arg4 = &temp4;
9059 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 9060 }
0085ce49
RD
9061 }
9062 if (obj4) {
d14a1e28 9063 {
0085ce49
RD
9064 arg5 = &temp5;
9065 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 9066 }
0085ce49
RD
9067 }
9068 if (obj5) {
d14a1e28 9069 {
0085ce49
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 }
d14a1e28 9085 }
0085ce49
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 &""'");
d14a1e28 9098 }
0085ce49
RD
9099 if (!argp8) {
9100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
22bfe96c 9101 }
0085ce49
RD
9102 arg8 = reinterpret_cast< wxValidator * >(argp8);
9103 }
9104 if (obj8) {
22bfe96c 9105 {
0085ce49
RD
9106 arg9 = wxString_in_helper(obj8);
9107 if (arg9 == NULL) SWIG_fail;
9108 temp9 = true;
22bfe96c 9109 }
0085ce49
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 ;
0085ce49
RD
9204 void *argp1 = 0 ;
9205 int res1 = 0 ;
9206 bool temp2 = false ;
50f151d7 9207 unsigned int val3 ;
0085ce49
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);
22bfe96c 9237 }
0085ce49 9238 }
50f151d7 9239 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
0085ce49 9240 if (!SWIG_IsOK(ecode3)) {
50f151d7 9241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
0085ce49 9242 }
50f151d7 9243 arg3 = static_cast< unsigned int >(val3);
0085ce49
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;
22bfe96c
RD
9260}
9261
9262
0085ce49
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);
d14a1e28 9297 }
0085ce49
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;
d14a1e28
RD
9580}
9581
9582
0085ce49
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;
d14a1e28
RD
9774}
9775
9776
0085ce49
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) {
d14a1e28 10082 {
0085ce49
RD
10083 arg3 = &temp3;
10084 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 10085 }
0085ce49
RD
10086 }
10087 if (obj3) {
d14a1e28 10088 {
0085ce49
RD
10089 arg4 = &temp4;
10090 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10091 }
0085ce49
RD
10092 }
10093 if (obj4) {
d14a1e28 10094 {
0085ce49
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 }
d14a1e28 10110 }
0085ce49
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 &""'");
4f89f6a3 10123 }
0085ce49
RD
10124 if (!argp7) {
10125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 10126 }
0085ce49
RD
10127 arg7 = reinterpret_cast< wxValidator * >(argp7);
10128 }
10129 if (obj7) {
093d3ff1 10130 {
0085ce49
RD
10131 arg8 = wxString_in_helper(obj7);
10132 if (arg8 == NULL) SWIG_fail;
10133 temp8 = true;
093d3ff1 10134 }
0085ce49
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;
d14a1e28
RD
10161}
10162
10163
0085ce49
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) {
22bfe96c 10246 {
0085ce49
RD
10247 arg4 = &temp4;
10248 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10249 }
0085ce49
RD
10250 }
10251 if (obj4) {
d14a1e28 10252 {
0085ce49
RD
10253 arg5 = &temp5;
10254 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 10255 }
0085ce49
RD
10256 }
10257 if (obj5) {
d14a1e28 10258 {
0085ce49
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 }
d14a1e28 10274 }
0085ce49
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 &""'");
d14a1e28 10287 }
0085ce49
RD
10288 if (!argp8) {
10289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10290 }
0085ce49
RD
10291 arg8 = reinterpret_cast< wxValidator * >(argp8);
10292 }
10293 if (obj8) {
d14a1e28 10294 {
0085ce49
RD
10295 arg9 = wxString_in_helper(obj8);
10296 if (arg9 == NULL) SWIG_fail;
10297 temp9 = true;
d14a1e28 10298 }
0085ce49
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 ;
0085ce49
RD
10333 bool result;
10334 void *argp1 = 0 ;
10335 int res1 = 0 ;
50f151d7 10336 unsigned int val2 ;
0085ce49
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);
0085ce49 10351 if (!SWIG_IsOK(ecode2)) {
50f151d7 10352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10353 }
50f151d7 10354 arg2 = static_cast< unsigned int >(val2);
0085ce49
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 ;
0085ce49
RD
10374 int arg3 = (int) true ;
10375 void *argp1 = 0 ;
10376 int res1 = 0 ;
50f151d7 10377 unsigned int val2 ;
0085ce49
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);
0085ce49 10395 if (!SWIG_IsOK(ecode2)) {
50f151d7 10396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10397 }
50f151d7 10398 arg2 = static_cast< unsigned int >(val2);
0085ce49
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;
d14a1e28
RD
10416}
10417
10418
0085ce49
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;
d14a1e28
RD
10444}
10445
10446
0085ce49
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();
d14a1e28
RD
10452}
10453
0085ce49
RD
10454SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10455 return SWIG_Python_InitShadowInstance(args);
943e8dfd
RD
10456}
10457
0085ce49
RD
10458SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10459 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10460 return 1;
22bfe96c
RD
10461}
10462
10463
0085ce49
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) {
d14a1e28 10504 {
0085ce49
RD
10505 arg1 = &temp1;
10506 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 10507 }
0085ce49
RD
10508 }
10509 if (obj1) {
d14a1e28 10510 {
0085ce49
RD
10511 arg2 = &temp2;
10512 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 10513 }
0085ce49
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 &""'");
d14a1e28 10519 }
0085ce49
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;
d14a1e28
RD
10542}
10543
10544
0085ce49
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;
d14a1e28 10562
0085ce49
RD
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 resultobj = SWIG_Py_Void();
10567 return resultobj;
10568fail:
10569 return NULL;
d14a1e28
RD
10570}
10571
10572
0085ce49
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
01f6b6d3
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
0085ce49
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);
d14a1e28 10840 }
0085ce49
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;
d14a1e28
RD
10983}
10984
10985
0085ce49
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;
d14a1e28
RD
11013}
11014
11015
0085ce49
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;
d14a1e28
RD
11043}
11044
11045
0085ce49
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;
d14a1e28
RD
11073}
11074
11075
0085ce49
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;
22bfe96c
RD
11103}
11104
11105
0085ce49
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;
b2dc1044
RD
11133}
11134
11135
0085ce49
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;
d14a1e28
RD
11163}
11164
11165
0085ce49
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;
d14a1e28
RD
11234}
11235
11236
0085ce49
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();
d14a1e28 11254 {
0085ce49
RD
11255 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11256 result = (wxColour *) &_result_ref;
d14a1e28 11257 }
0085ce49
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;
d14a1e28
RD
11265}
11266
11267
0085ce49
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();
d14a1e28 11285 {
0085ce49
RD
11286 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11287 result = (wxColour *) &_result_ref;
d14a1e28 11288 }
0085ce49
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;
d14a1e28
RD
11296}
11297
11298
0085ce49
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();
d14a1e28 11316 {
0085ce49
RD
11317 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11318 result = (wxFont *) &_result_ref;
d14a1e28 11319 }
0085ce49
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;
d14a1e28
RD
11330}
11331
11332
0085ce49
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;
d14a1e28
RD
11358}
11359
11360
0085ce49
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();
d14a1e28 11378 {
0085ce49
RD
11379 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11380 result = (wxArrayInt *) &_result_ref;
d14a1e28 11381 }
0085ce49
RD
11382 wxPyEndAllowThreads(__tstate);
11383 if (PyErr_Occurred()) SWIG_fail;
11384 }
11385 {
11386 resultobj = PyList_New(0);
11387 size_t idx;
11388 for (idx = 0; idx < result->GetCount(); idx += 1) {
11389 PyObject* val = PyInt_FromLong( result->Item(idx) );
11390 PyList_Append(resultobj, val);
11391 Py_DECREF(val);
4f89f6a3 11392 }
0085ce49
RD
11393 }
11394 return resultobj;
11395fail:
11396 return NULL;
d14a1e28
RD
11397}
11398
11399
0085ce49
RD
11400SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11401 PyObject *resultobj = 0;
11402 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11403 long result;
11404 void *argp1 = 0 ;
11405 int res1 = 0 ;
11406 PyObject *swig_obj[1] ;
11407
11408 if (!args) SWIG_fail;
11409 swig_obj[0] = args;
11410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11411 if (!SWIG_IsOK(res1)) {
11412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11413 }
11414 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11415 {
11416 PyThreadState* __tstate = wxPyBeginAllowThreads();
11417 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11418 wxPyEndAllowThreads(__tstate);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 }
11421 resultobj = SWIG_From_long(static_cast< long >(result));
11422 return resultobj;
11423fail:
11424 return NULL;
d14a1e28
RD
11425}
11426
11427
0085ce49
RD
11428SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11429 PyObject *resultobj = 0;
11430 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11431 long result;
11432 void *argp1 = 0 ;
11433 int res1 = 0 ;
11434 PyObject *swig_obj[1] ;
11435
11436 if (!args) SWIG_fail;
11437 swig_obj[0] = args;
11438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11439 if (!SWIG_IsOK(res1)) {
11440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11441 }
11442 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11443 {
11444 PyThreadState* __tstate = wxPyBeginAllowThreads();
11445 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11446 wxPyEndAllowThreads(__tstate);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 }
11449 resultobj = SWIG_From_long(static_cast< long >(result));
11450 return resultobj;
11451fail:
11452 return NULL;
d14a1e28
RD
11453}
11454
11455
0085ce49
RD
11456SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11457 PyObject *resultobj = 0;
11458 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11459 long result;
11460 void *argp1 = 0 ;
11461 int res1 = 0 ;
11462 PyObject *swig_obj[1] ;
11463
11464 if (!args) SWIG_fail;
11465 swig_obj[0] = args;
11466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11467 if (!SWIG_IsOK(res1)) {
11468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11469 }
11470 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11471 {
11472 PyThreadState* __tstate = wxPyBeginAllowThreads();
11473 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11474 wxPyEndAllowThreads(__tstate);
11475 if (PyErr_Occurred()) SWIG_fail;
11476 }
11477 resultobj = SWIG_From_long(static_cast< long >(result));
11478 return resultobj;
11479fail:
11480 return NULL;
d14a1e28
RD
11481}
11482
11483
0085ce49
RD
11484SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11485 PyObject *resultobj = 0;
11486 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11487 long result;
11488 void *argp1 = 0 ;
11489 int res1 = 0 ;
11490 PyObject *swig_obj[1] ;
11491
11492 if (!args) SWIG_fail;
11493 swig_obj[0] = args;
11494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11495 if (!SWIG_IsOK(res1)) {
11496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11497 }
11498 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11499 {
11500 PyThreadState* __tstate = wxPyBeginAllowThreads();
11501 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11502 wxPyEndAllowThreads(__tstate);
11503 if (PyErr_Occurred()) SWIG_fail;
11504 }
11505 resultobj = SWIG_From_long(static_cast< long >(result));
11506 return resultobj;
11507fail:
11508 return NULL;
d14a1e28
RD
11509}
11510
11511
0085ce49
RD
11512SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11513 PyObject *resultobj = 0;
11514 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11515 bool result;
11516 void *argp1 = 0 ;
11517 int res1 = 0 ;
11518 PyObject *swig_obj[1] ;
11519
11520 if (!args) SWIG_fail;
11521 swig_obj[0] = args;
11522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11523 if (!SWIG_IsOK(res1)) {
11524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11525 }
11526 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11527 {
11528 PyThreadState* __tstate = wxPyBeginAllowThreads();
11529 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11530 wxPyEndAllowThreads(__tstate);
11531 if (PyErr_Occurred()) SWIG_fail;
11532 }
11533 {
11534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11535 }
11536 return resultobj;
11537fail:
11538 return NULL;
11539}
11540
11541
11542SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11543 PyObject *resultobj = 0;
11544 wxTextAttr *arg1 = 0 ;
11545 wxTextAttr *arg2 = 0 ;
11546 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11547 wxTextAttr result;
11548 void *argp1 = 0 ;
11549 int res1 = 0 ;
11550 void *argp2 = 0 ;
11551 int res2 = 0 ;
11552 void *argp3 = 0 ;
11553 int res3 = 0 ;
11554 PyObject * obj0 = 0 ;
11555 PyObject * obj1 = 0 ;
11556 PyObject * obj2 = 0 ;
11557 char * kwnames[] = {
11558 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11559 };
11560
11561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11562 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11563 if (!SWIG_IsOK(res1)) {
11564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11565 }
11566 if (!argp1) {
11567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11568 }
11569 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11571 if (!SWIG_IsOK(res2)) {
11572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11573 }
11574 if (!argp2) {
11575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11576 }
11577 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11578 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11579 if (!SWIG_IsOK(res3)) {
11580 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11581 }
11582 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11583 {
11584 PyThreadState* __tstate = wxPyBeginAllowThreads();
11585 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11586 wxPyEndAllowThreads(__tstate);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 }
11589 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11590 return resultobj;
11591fail:
11592 return NULL;
11593}
11594
11595
11596SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11597 PyObject *obj;
11598 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11599 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11600 return SWIG_Py_Void();
11601}
11602
11603SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11604 return SWIG_Python_InitShadowInstance(args);
11605}
11606
11607SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11608 PyObject *resultobj = 0;
11609 wxWindow *arg1 = (wxWindow *) 0 ;
11610 int arg2 = (int) -1 ;
11611 wxString const &arg3_defvalue = wxPyEmptyString ;
11612 wxString *arg3 = (wxString *) &arg3_defvalue ;
11613 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11614 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11615 wxSize const &arg5_defvalue = wxDefaultSize ;
11616 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11617 long arg6 = (long) 0 ;
11618 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11619 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11620 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11621 wxString *arg8 = (wxString *) &arg8_defvalue ;
11622 wxTextCtrl *result = 0 ;
11623 void *argp1 = 0 ;
11624 int res1 = 0 ;
11625 int val2 ;
11626 int ecode2 = 0 ;
11627 bool temp3 = false ;
11628 wxPoint temp4 ;
11629 wxSize temp5 ;
11630 long val6 ;
11631 int ecode6 = 0 ;
11632 void *argp7 = 0 ;
11633 int res7 = 0 ;
11634 bool temp8 = false ;
11635 PyObject * obj0 = 0 ;
11636 PyObject * obj1 = 0 ;
11637 PyObject * obj2 = 0 ;
11638 PyObject * obj3 = 0 ;
11639 PyObject * obj4 = 0 ;
11640 PyObject * obj5 = 0 ;
11641 PyObject * obj6 = 0 ;
11642 PyObject * obj7 = 0 ;
11643 char * kwnames[] = {
11644 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11645 };
11646
11647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11649 if (!SWIG_IsOK(res1)) {
11650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11651 }
11652 arg1 = reinterpret_cast< wxWindow * >(argp1);
11653 if (obj1) {
11654 ecode2 = SWIG_AsVal_int(obj1, &val2);
11655 if (!SWIG_IsOK(ecode2)) {
11656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11657 }
11658 arg2 = static_cast< int >(val2);
11659 }
11660 if (obj2) {
4f89f6a3 11661 {
0085ce49
RD
11662 arg3 = wxString_in_helper(obj2);
11663 if (arg3 == NULL) SWIG_fail;
11664 temp3 = true;
4f89f6a3 11665 }
0085ce49
RD
11666 }
11667 if (obj3) {
d14a1e28 11668 {
0085ce49
RD
11669 arg4 = &temp4;
11670 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 11671 }
0085ce49
RD
11672 }
11673 if (obj4) {
d14a1e28 11674 {
0085ce49
RD
11675 arg5 = &temp5;
11676 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11677 }
0085ce49
RD
11678 }
11679 if (obj5) {
11680 ecode6 = SWIG_AsVal_long(obj5, &val6);
11681 if (!SWIG_IsOK(ecode6)) {
11682 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11683 }
11684 arg6 = static_cast< long >(val6);
11685 }
11686 if (obj6) {
11687 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11688 if (!SWIG_IsOK(res7)) {
11689 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 11690 }
0085ce49
RD
11691 if (!argp7) {
11692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 11693 }
0085ce49
RD
11694 arg7 = reinterpret_cast< wxValidator * >(argp7);
11695 }
11696 if (obj7) {
d14a1e28 11697 {
0085ce49
RD
11698 arg8 = wxString_in_helper(obj7);
11699 if (arg8 == NULL) SWIG_fail;
11700 temp8 = true;
d14a1e28 11701 }
0085ce49
RD
11702 }
11703 {
11704 if (!wxPyCheckForApp()) SWIG_fail;
11705 PyThreadState* __tstate = wxPyBeginAllowThreads();
11706 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11707 wxPyEndAllowThreads(__tstate);
11708 if (PyErr_Occurred()) SWIG_fail;
11709 }
11710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11711 {
11712 if (temp3)
11713 delete arg3;
11714 }
11715 {
11716 if (temp8)
11717 delete arg8;
11718 }
11719 return resultobj;
11720fail:
11721 {
11722 if (temp3)
11723 delete arg3;
11724 }
11725 {
11726 if (temp8)
11727 delete arg8;
11728 }
11729 return NULL;
d14a1e28
RD
11730}
11731
11732
0085ce49
RD
11733SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11734 PyObject *resultobj = 0;
11735 wxTextCtrl *result = 0 ;
11736
11737 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11738 {
11739 if (!wxPyCheckForApp()) SWIG_fail;
11740 PyThreadState* __tstate = wxPyBeginAllowThreads();
11741 result = (wxTextCtrl *)new wxTextCtrl();
11742 wxPyEndAllowThreads(__tstate);
11743 if (PyErr_Occurred()) SWIG_fail;
11744 }
11745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11746 return resultobj;
11747fail:
11748 return NULL;
11749}
11750
11751
11752SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11753 PyObject *resultobj = 0;
11754 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11755 wxWindow *arg2 = (wxWindow *) 0 ;
11756 int arg3 = (int) -1 ;
11757 wxString const &arg4_defvalue = wxPyEmptyString ;
11758 wxString *arg4 = (wxString *) &arg4_defvalue ;
11759 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11760 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11761 wxSize const &arg6_defvalue = wxDefaultSize ;
11762 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11763 long arg7 = (long) 0 ;
11764 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11765 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11766 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11767 wxString *arg9 = (wxString *) &arg9_defvalue ;
11768 bool result;
11769 void *argp1 = 0 ;
11770 int res1 = 0 ;
11771 void *argp2 = 0 ;
11772 int res2 = 0 ;
11773 int val3 ;
11774 int ecode3 = 0 ;
11775 bool temp4 = false ;
11776 wxPoint temp5 ;
11777 wxSize temp6 ;
11778 long val7 ;
11779 int ecode7 = 0 ;
11780 void *argp8 = 0 ;
11781 int res8 = 0 ;
11782 bool temp9 = false ;
11783 PyObject * obj0 = 0 ;
11784 PyObject * obj1 = 0 ;
11785 PyObject * obj2 = 0 ;
11786 PyObject * obj3 = 0 ;
11787 PyObject * obj4 = 0 ;
11788 PyObject * obj5 = 0 ;
11789 PyObject * obj6 = 0 ;
11790 PyObject * obj7 = 0 ;
11791 PyObject * obj8 = 0 ;
11792 char * kwnames[] = {
11793 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11794 };
11795
11796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11798 if (!SWIG_IsOK(res1)) {
11799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11800 }
11801 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11802 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11803 if (!SWIG_IsOK(res2)) {
11804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11805 }
11806 arg2 = reinterpret_cast< wxWindow * >(argp2);
11807 if (obj2) {
11808 ecode3 = SWIG_AsVal_int(obj2, &val3);
11809 if (!SWIG_IsOK(ecode3)) {
11810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11811 }
11812 arg3 = static_cast< int >(val3);
11813 }
11814 if (obj3) {
d14a1e28 11815 {
0085ce49
RD
11816 arg4 = wxString_in_helper(obj3);
11817 if (arg4 == NULL) SWIG_fail;
11818 temp4 = true;
d14a1e28 11819 }
0085ce49
RD
11820 }
11821 if (obj4) {
d14a1e28 11822 {
0085ce49
RD
11823 arg5 = &temp5;
11824 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11825 }
0085ce49
RD
11826 }
11827 if (obj5) {
d14a1e28 11828 {
0085ce49
RD
11829 arg6 = &temp6;
11830 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 11831 }
0085ce49
RD
11832 }
11833 if (obj6) {
11834 ecode7 = SWIG_AsVal_long(obj6, &val7);
11835 if (!SWIG_IsOK(ecode7)) {
11836 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11837 }
11838 arg7 = static_cast< long >(val7);
11839 }
11840 if (obj7) {
11841 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11842 if (!SWIG_IsOK(res8)) {
11843 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 11844 }
0085ce49
RD
11845 if (!argp8) {
11846 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 11847 }
0085ce49
RD
11848 arg8 = reinterpret_cast< wxValidator * >(argp8);
11849 }
11850 if (obj8) {
d14a1e28 11851 {
0085ce49
RD
11852 arg9 = wxString_in_helper(obj8);
11853 if (arg9 == NULL) SWIG_fail;
11854 temp9 = true;
d14a1e28 11855 }
0085ce49
RD
11856 }
11857 {
11858 PyThreadState* __tstate = wxPyBeginAllowThreads();
11859 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11860 wxPyEndAllowThreads(__tstate);
11861 if (PyErr_Occurred()) SWIG_fail;
11862 }
11863 {
11864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11865 }
11866 {
11867 if (temp4)
11868 delete arg4;
11869 }
11870 {
11871 if (temp9)
11872 delete arg9;
11873 }
11874 return resultobj;
11875fail:
11876 {
11877 if (temp4)
11878 delete arg4;
11879 }
11880 {
11881 if (temp9)
11882 delete arg9;
11883 }
11884 return NULL;
d14a1e28
RD
11885}
11886
11887
0085ce49
RD
11888SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11889 PyObject *resultobj = 0;
11890 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11891 wxString result;
11892 void *argp1 = 0 ;
11893 int res1 = 0 ;
11894 PyObject *swig_obj[1] ;
11895
11896 if (!args) SWIG_fail;
11897 swig_obj[0] = args;
11898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11899 if (!SWIG_IsOK(res1)) {
11900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11901 }
11902 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11903 {
11904 PyThreadState* __tstate = wxPyBeginAllowThreads();
11905 result = ((wxTextCtrl const *)arg1)->GetValue();
11906 wxPyEndAllowThreads(__tstate);
11907 if (PyErr_Occurred()) SWIG_fail;
11908 }
11909 {
11910#if wxUSE_UNICODE
11911 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11912#else
11913 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11914#endif
11915 }
11916 return resultobj;
11917fail:
11918 return NULL;
11919}
11920
11921
11922SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11923 PyObject *resultobj = 0;
11924 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11925 wxString *arg2 = 0 ;
11926 void *argp1 = 0 ;
11927 int res1 = 0 ;
11928 bool temp2 = false ;
11929 PyObject * obj0 = 0 ;
11930 PyObject * obj1 = 0 ;
11931 char * kwnames[] = {
11932 (char *) "self",(char *) "value", NULL
11933 };
11934
11935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11937 if (!SWIG_IsOK(res1)) {
11938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11939 }
11940 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11941 {
11942 arg2 = wxString_in_helper(obj1);
11943 if (arg2 == NULL) SWIG_fail;
11944 temp2 = true;
11945 }
11946 {
11947 PyThreadState* __tstate = wxPyBeginAllowThreads();
11948 (arg1)->SetValue((wxString const &)*arg2);
11949 wxPyEndAllowThreads(__tstate);
11950 if (PyErr_Occurred()) SWIG_fail;
11951 }
11952 resultobj = SWIG_Py_Void();
11953 {
11954 if (temp2)
11955 delete arg2;
11956 }
11957 return resultobj;
11958fail:
11959 {
11960 if (temp2)
11961 delete arg2;
11962 }
11963 return NULL;
11964}
11965
11966
11967SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11968 PyObject *resultobj = 0;
11969 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11970 long arg2 ;
11971 long arg3 ;
11972 wxString result;
11973 void *argp1 = 0 ;
11974 int res1 = 0 ;
11975 long val2 ;
11976 int ecode2 = 0 ;
11977 long val3 ;
11978 int ecode3 = 0 ;
11979 PyObject * obj0 = 0 ;
11980 PyObject * obj1 = 0 ;
11981 PyObject * obj2 = 0 ;
11982 char * kwnames[] = {
2131d850 11983 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
11984 };
11985
11986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11988 if (!SWIG_IsOK(res1)) {
11989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11990 }
11991 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11992 ecode2 = SWIG_AsVal_long(obj1, &val2);
11993 if (!SWIG_IsOK(ecode2)) {
11994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11995 }
11996 arg2 = static_cast< long >(val2);
11997 ecode3 = SWIG_AsVal_long(obj2, &val3);
11998 if (!SWIG_IsOK(ecode3)) {
11999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12000 }
12001 arg3 = static_cast< long >(val3);
12002 {
12003 PyThreadState* __tstate = wxPyBeginAllowThreads();
12004 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 {
12009#if wxUSE_UNICODE
12010 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12011#else
12012 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12013#endif
12014 }
12015 return resultobj;
12016fail:
12017 return NULL;
12018}
12019
12020
12021SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12022 PyObject *resultobj = 0;
12023 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12024 long arg2 ;
12025 int result;
12026 void *argp1 = 0 ;
12027 int res1 = 0 ;
12028 long val2 ;
12029 int ecode2 = 0 ;
12030 PyObject * obj0 = 0 ;
12031 PyObject * obj1 = 0 ;
12032 char * kwnames[] = {
12033 (char *) "self",(char *) "lineNo", NULL
12034 };
12035
12036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12038 if (!SWIG_IsOK(res1)) {
12039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12040 }
12041 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12042 ecode2 = SWIG_AsVal_long(obj1, &val2);
12043 if (!SWIG_IsOK(ecode2)) {
12044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12045 }
12046 arg2 = static_cast< long >(val2);
12047 {
12048 PyThreadState* __tstate = wxPyBeginAllowThreads();
12049 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12050 wxPyEndAllowThreads(__tstate);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 }
12053 resultobj = SWIG_From_int(static_cast< int >(result));
12054 return resultobj;
12055fail:
12056 return NULL;
12057}
12058
12059
12060SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12061 PyObject *resultobj = 0;
12062 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12063 long arg2 ;
12064 wxString result;
12065 void *argp1 = 0 ;
12066 int res1 = 0 ;
12067 long val2 ;
12068 int ecode2 = 0 ;
12069 PyObject * obj0 = 0 ;
12070 PyObject * obj1 = 0 ;
12071 char * kwnames[] = {
12072 (char *) "self",(char *) "lineNo", NULL
12073 };
12074
12075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12077 if (!SWIG_IsOK(res1)) {
12078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12079 }
12080 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12081 ecode2 = SWIG_AsVal_long(obj1, &val2);
12082 if (!SWIG_IsOK(ecode2)) {
12083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12084 }
12085 arg2 = static_cast< long >(val2);
12086 {
12087 PyThreadState* __tstate = wxPyBeginAllowThreads();
12088 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 {
12093#if wxUSE_UNICODE
12094 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12095#else
12096 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12097#endif
12098 }
12099 return resultobj;
12100fail:
12101 return NULL;
d14a1e28
RD
12102}
12103
12104
0085ce49
RD
12105SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12106 PyObject *resultobj = 0;
12107 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12108 int result;
12109 void *argp1 = 0 ;
12110 int res1 = 0 ;
12111 PyObject *swig_obj[1] ;
12112
12113 if (!args) SWIG_fail;
12114 swig_obj[0] = args;
12115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12116 if (!SWIG_IsOK(res1)) {
12117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12118 }
12119 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12120 {
12121 PyThreadState* __tstate = wxPyBeginAllowThreads();
12122 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12123 wxPyEndAllowThreads(__tstate);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
12126 resultobj = SWIG_From_int(static_cast< int >(result));
12127 return resultobj;
12128fail:
12129 return NULL;
d14a1e28
RD
12130}
12131
12132
0085ce49
RD
12133SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12134 PyObject *resultobj = 0;
12135 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12136 bool result;
12137 void *argp1 = 0 ;
12138 int res1 = 0 ;
12139 PyObject *swig_obj[1] ;
12140
12141 if (!args) SWIG_fail;
12142 swig_obj[0] = args;
12143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12144 if (!SWIG_IsOK(res1)) {
12145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12146 }
12147 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12148 {
12149 PyThreadState* __tstate = wxPyBeginAllowThreads();
12150 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12151 wxPyEndAllowThreads(__tstate);
12152 if (PyErr_Occurred()) SWIG_fail;
12153 }
12154 {
12155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12156 }
12157 return resultobj;
12158fail:
12159 return NULL;
c3eb6258
RD
12160}
12161
12162
0085ce49
RD
12163SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12164 PyObject *resultobj = 0;
12165 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12166 bool result;
12167 void *argp1 = 0 ;
12168 int res1 = 0 ;
12169 PyObject *swig_obj[1] ;
12170
12171 if (!args) SWIG_fail;
12172 swig_obj[0] = args;
12173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12174 if (!SWIG_IsOK(res1)) {
12175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12176 }
12177 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12178 {
12179 PyThreadState* __tstate = wxPyBeginAllowThreads();
12180 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12181 wxPyEndAllowThreads(__tstate);
12182 if (PyErr_Occurred()) SWIG_fail;
12183 }
12184 {
12185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12186 }
12187 return resultobj;
12188fail:
12189 return NULL;
74a57fcd
RD
12190}
12191
12192
0085ce49
RD
12193SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12194 PyObject *resultobj = 0;
12195 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12196 bool result;
12197 void *argp1 = 0 ;
12198 int res1 = 0 ;
12199 PyObject *swig_obj[1] ;
12200
12201 if (!args) SWIG_fail;
12202 swig_obj[0] = args;
12203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12204 if (!SWIG_IsOK(res1)) {
12205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12206 }
12207 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12208 {
12209 PyThreadState* __tstate = wxPyBeginAllowThreads();
12210 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12211 wxPyEndAllowThreads(__tstate);
12212 if (PyErr_Occurred()) SWIG_fail;
12213 }
12214 {
12215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12216 }
12217 return resultobj;
12218fail:
12219 return NULL;
d14a1e28
RD
12220}
12221
12222
0085ce49
RD
12223SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12224 PyObject *resultobj = 0;
12225 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12226 bool result;
12227 void *argp1 = 0 ;
12228 int res1 = 0 ;
12229 PyObject *swig_obj[1] ;
12230
12231 if (!args) SWIG_fail;
12232 swig_obj[0] = args;
12233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12234 if (!SWIG_IsOK(res1)) {
12235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12236 }
12237 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12238 {
12239 PyThreadState* __tstate = wxPyBeginAllowThreads();
12240 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12241 wxPyEndAllowThreads(__tstate);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 }
12244 {
12245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12246 }
12247 return resultobj;
12248fail:
12249 return NULL;
12250}
12251
12252
12253SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12254 PyObject *resultobj = 0;
12255 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12256 long *arg2 = (long *) 0 ;
12257 long *arg3 = (long *) 0 ;
12258 void *argp1 = 0 ;
12259 int res1 = 0 ;
12260 long temp2 ;
12261 int res2 = SWIG_TMPOBJ ;
12262 long temp3 ;
12263 int res3 = SWIG_TMPOBJ ;
12264 PyObject *swig_obj[1] ;
12265
12266 arg2 = &temp2;
12267 arg3 = &temp3;
12268 if (!args) SWIG_fail;
12269 swig_obj[0] = args;
12270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12271 if (!SWIG_IsOK(res1)) {
12272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12273 }
12274 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12275 {
12276 PyThreadState* __tstate = wxPyBeginAllowThreads();
12277 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12278 wxPyEndAllowThreads(__tstate);
12279 if (PyErr_Occurred()) SWIG_fail;
12280 }
12281 resultobj = SWIG_Py_Void();
12282 if (SWIG_IsTmpObj(res2)) {
12283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12284 } else {
12285 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12287 }
12288 if (SWIG_IsTmpObj(res3)) {
12289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12290 } else {
12291 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12293 }
12294 return resultobj;
12295fail:
12296 return NULL;
d14a1e28
RD
12297}
12298
12299
0085ce49
RD
12300SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12301 PyObject *resultobj = 0;
12302 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12303 wxString result;
12304 void *argp1 = 0 ;
12305 int res1 = 0 ;
12306 PyObject *swig_obj[1] ;
12307
12308 if (!args) SWIG_fail;
12309 swig_obj[0] = args;
12310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12311 if (!SWIG_IsOK(res1)) {
12312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12313 }
12314 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12315 {
12316 PyThreadState* __tstate = wxPyBeginAllowThreads();
12317 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12318 wxPyEndAllowThreads(__tstate);
12319 if (PyErr_Occurred()) SWIG_fail;
12320 }
12321 {
12322#if wxUSE_UNICODE
12323 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12324#else
12325 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12326#endif
12327 }
12328 return resultobj;
12329fail:
12330 return NULL;
d14a1e28
RD
12331}
12332
12333
0085ce49
RD
12334SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12335 PyObject *resultobj = 0;
12336 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12337 void *argp1 = 0 ;
12338 int res1 = 0 ;
12339 PyObject *swig_obj[1] ;
12340
12341 if (!args) SWIG_fail;
12342 swig_obj[0] = args;
12343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12344 if (!SWIG_IsOK(res1)) {
12345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12346 }
12347 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12348 {
12349 PyThreadState* __tstate = wxPyBeginAllowThreads();
12350 (arg1)->Clear();
12351 wxPyEndAllowThreads(__tstate);
12352 if (PyErr_Occurred()) SWIG_fail;
12353 }
12354 resultobj = SWIG_Py_Void();
12355 return resultobj;
12356fail:
12357 return NULL;
12358}
12359
12360
12361SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12362 PyObject *resultobj = 0;
12363 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12364 long arg2 ;
12365 long arg3 ;
12366 wxString *arg4 = 0 ;
12367 void *argp1 = 0 ;
12368 int res1 = 0 ;
12369 long val2 ;
12370 int ecode2 = 0 ;
12371 long val3 ;
12372 int ecode3 = 0 ;
12373 bool temp4 = false ;
12374 PyObject * obj0 = 0 ;
12375 PyObject * obj1 = 0 ;
12376 PyObject * obj2 = 0 ;
12377 PyObject * obj3 = 0 ;
12378 char * kwnames[] = {
2131d850 12379 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
0085ce49
RD
12380 };
12381
12382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12384 if (!SWIG_IsOK(res1)) {
12385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12386 }
12387 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12388 ecode2 = SWIG_AsVal_long(obj1, &val2);
12389 if (!SWIG_IsOK(ecode2)) {
12390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12391 }
12392 arg2 = static_cast< long >(val2);
12393 ecode3 = SWIG_AsVal_long(obj2, &val3);
12394 if (!SWIG_IsOK(ecode3)) {
12395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12396 }
12397 arg3 = static_cast< long >(val3);
12398 {
12399 arg4 = wxString_in_helper(obj3);
12400 if (arg4 == NULL) SWIG_fail;
12401 temp4 = true;
12402 }
12403 {
12404 PyThreadState* __tstate = wxPyBeginAllowThreads();
12405 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12406 wxPyEndAllowThreads(__tstate);
12407 if (PyErr_Occurred()) SWIG_fail;
12408 }
12409 resultobj = SWIG_Py_Void();
12410 {
12411 if (temp4)
12412 delete arg4;
12413 }
12414 return resultobj;
12415fail:
12416 {
12417 if (temp4)
12418 delete arg4;
12419 }
12420 return NULL;
12421}
12422
12423
12424SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12425 PyObject *resultobj = 0;
12426 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12427 long arg2 ;
12428 long arg3 ;
12429 void *argp1 = 0 ;
12430 int res1 = 0 ;
12431 long val2 ;
12432 int ecode2 = 0 ;
12433 long val3 ;
12434 int ecode3 = 0 ;
12435 PyObject * obj0 = 0 ;
12436 PyObject * obj1 = 0 ;
12437 PyObject * obj2 = 0 ;
12438 char * kwnames[] = {
2131d850 12439 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
12440 };
12441
12442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12444 if (!SWIG_IsOK(res1)) {
12445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12446 }
12447 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12448 ecode2 = SWIG_AsVal_long(obj1, &val2);
12449 if (!SWIG_IsOK(ecode2)) {
12450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12451 }
12452 arg2 = static_cast< long >(val2);
12453 ecode3 = SWIG_AsVal_long(obj2, &val3);
12454 if (!SWIG_IsOK(ecode3)) {
12455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12456 }
12457 arg3 = static_cast< long >(val3);
12458 {
12459 PyThreadState* __tstate = wxPyBeginAllowThreads();
12460 (arg1)->Remove(arg2,arg3);
12461 wxPyEndAllowThreads(__tstate);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 }
12464 resultobj = SWIG_Py_Void();
12465 return resultobj;
12466fail:
12467 return NULL;
12468}
12469
12470
12471SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12472 PyObject *resultobj = 0;
12473 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12474 wxString *arg2 = 0 ;
12475 bool result;
12476 void *argp1 = 0 ;
12477 int res1 = 0 ;
12478 bool temp2 = false ;
12479 PyObject * obj0 = 0 ;
12480 PyObject * obj1 = 0 ;
12481 char * kwnames[] = {
12482 (char *) "self",(char *) "file", NULL
12483 };
12484
12485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12487 if (!SWIG_IsOK(res1)) {
12488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12489 }
12490 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12491 {
12492 arg2 = wxString_in_helper(obj1);
12493 if (arg2 == NULL) SWIG_fail;
12494 temp2 = true;
12495 }
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12499 wxPyEndAllowThreads(__tstate);
12500 if (PyErr_Occurred()) SWIG_fail;
12501 }
12502 {
12503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12504 }
12505 {
12506 if (temp2)
12507 delete arg2;
12508 }
12509 return resultobj;
12510fail:
12511 {
12512 if (temp2)
12513 delete arg2;
12514 }
12515 return NULL;
12516}
12517
12518
12519SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12520 PyObject *resultobj = 0;
12521 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12522 wxString const &arg2_defvalue = wxPyEmptyString ;
12523 wxString *arg2 = (wxString *) &arg2_defvalue ;
12524 bool result;
12525 void *argp1 = 0 ;
12526 int res1 = 0 ;
12527 bool temp2 = false ;
12528 PyObject * obj0 = 0 ;
12529 PyObject * obj1 = 0 ;
12530 char * kwnames[] = {
12531 (char *) "self",(char *) "file", NULL
12532 };
12533
12534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12536 if (!SWIG_IsOK(res1)) {
12537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12538 }
12539 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12540 if (obj1) {
4f89f6a3 12541 {
0085ce49
RD
12542 arg2 = wxString_in_helper(obj1);
12543 if (arg2 == NULL) SWIG_fail;
12544 temp2 = true;
4f89f6a3 12545 }
0085ce49
RD
12546 }
12547 {
12548 PyThreadState* __tstate = wxPyBeginAllowThreads();
12549 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 {
12554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12555 }
12556 {
12557 if (temp2)
12558 delete arg2;
12559 }
12560 return resultobj;
12561fail:
12562 {
12563 if (temp2)
12564 delete arg2;
12565 }
12566 return NULL;
d14a1e28
RD
12567}
12568
12569
0085ce49
RD
12570SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12571 PyObject *resultobj = 0;
12572 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12573 void *argp1 = 0 ;
12574 int res1 = 0 ;
12575 PyObject *swig_obj[1] ;
12576
12577 if (!args) SWIG_fail;
12578 swig_obj[0] = args;
12579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12580 if (!SWIG_IsOK(res1)) {
12581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12582 }
12583 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12584 {
12585 PyThreadState* __tstate = wxPyBeginAllowThreads();
12586 (arg1)->MarkDirty();
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 }
12590 resultobj = SWIG_Py_Void();
12591 return resultobj;
12592fail:
12593 return NULL;
d14a1e28
RD
12594}
12595
12596
0085ce49
RD
12597SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12598 PyObject *resultobj = 0;
12599 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12600 void *argp1 = 0 ;
12601 int res1 = 0 ;
12602 PyObject *swig_obj[1] ;
12603
12604 if (!args) SWIG_fail;
12605 swig_obj[0] = args;
12606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12607 if (!SWIG_IsOK(res1)) {
12608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12609 }
12610 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12611 {
12612 PyThreadState* __tstate = wxPyBeginAllowThreads();
12613 (arg1)->DiscardEdits();
12614 wxPyEndAllowThreads(__tstate);
12615 if (PyErr_Occurred()) SWIG_fail;
12616 }
12617 resultobj = SWIG_Py_Void();
12618 return resultobj;
12619fail:
12620 return NULL;
12621}
12622
12623
b02396e8
RD
12624SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12625 PyObject *resultobj = 0;
12626 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12627 bool arg2 ;
12628 void *argp1 = 0 ;
12629 int res1 = 0 ;
12630 bool val2 ;
12631 int ecode2 = 0 ;
12632 PyObject * obj0 = 0 ;
12633 PyObject * obj1 = 0 ;
12634 char * kwnames[] = {
12635 (char *) "self",(char *) "modified", NULL
12636 };
12637
12638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12640 if (!SWIG_IsOK(res1)) {
12641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12642 }
12643 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12644 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12645 if (!SWIG_IsOK(ecode2)) {
12646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12647 }
12648 arg2 = static_cast< bool >(val2);
12649 {
12650 PyThreadState* __tstate = wxPyBeginAllowThreads();
12651 (arg1)->SetModified(arg2);
12652 wxPyEndAllowThreads(__tstate);
12653 if (PyErr_Occurred()) SWIG_fail;
12654 }
12655 resultobj = SWIG_Py_Void();
12656 return resultobj;
12657fail:
12658 return NULL;
12659}
12660
12661
0085ce49
RD
12662SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12663 PyObject *resultobj = 0;
12664 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12665 unsigned long arg2 ;
12666 void *argp1 = 0 ;
12667 int res1 = 0 ;
12668 unsigned long val2 ;
12669 int ecode2 = 0 ;
12670 PyObject * obj0 = 0 ;
12671 PyObject * obj1 = 0 ;
12672 char * kwnames[] = {
12673 (char *) "self",(char *) "len", NULL
12674 };
12675
12676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12678 if (!SWIG_IsOK(res1)) {
12679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12680 }
12681 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12682 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12683 if (!SWIG_IsOK(ecode2)) {
12684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12685 }
12686 arg2 = static_cast< unsigned long >(val2);
12687 {
12688 PyThreadState* __tstate = wxPyBeginAllowThreads();
12689 (arg1)->SetMaxLength(arg2);
12690 wxPyEndAllowThreads(__tstate);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 }
12693 resultobj = SWIG_Py_Void();
12694 return resultobj;
12695fail:
12696 return NULL;
12697}
12698
12699
12700SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12701 PyObject *resultobj = 0;
12702 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12703 wxString *arg2 = 0 ;
12704 void *argp1 = 0 ;
12705 int res1 = 0 ;
12706 bool temp2 = false ;
12707 PyObject * obj0 = 0 ;
12708 PyObject * obj1 = 0 ;
12709 char * kwnames[] = {
12710 (char *) "self",(char *) "text", NULL
12711 };
12712
12713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12715 if (!SWIG_IsOK(res1)) {
12716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12717 }
12718 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12719 {
12720 arg2 = wxString_in_helper(obj1);
12721 if (arg2 == NULL) SWIG_fail;
12722 temp2 = true;
12723 }
12724 {
12725 PyThreadState* __tstate = wxPyBeginAllowThreads();
12726 (arg1)->WriteText((wxString const &)*arg2);
12727 wxPyEndAllowThreads(__tstate);
12728 if (PyErr_Occurred()) SWIG_fail;
12729 }
12730 resultobj = SWIG_Py_Void();
12731 {
12732 if (temp2)
12733 delete arg2;
12734 }
12735 return resultobj;
12736fail:
12737 {
12738 if (temp2)
12739 delete arg2;
12740 }
12741 return NULL;
d14a1e28
RD
12742}
12743
12744
0085ce49
RD
12745SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12746 PyObject *resultobj = 0;
12747 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12748 wxString *arg2 = 0 ;
12749 void *argp1 = 0 ;
12750 int res1 = 0 ;
12751 bool temp2 = false ;
12752 PyObject * obj0 = 0 ;
12753 PyObject * obj1 = 0 ;
12754 char * kwnames[] = {
12755 (char *) "self",(char *) "text", NULL
12756 };
12757
12758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12760 if (!SWIG_IsOK(res1)) {
12761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12762 }
12763 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12764 {
12765 arg2 = wxString_in_helper(obj1);
12766 if (arg2 == NULL) SWIG_fail;
12767 temp2 = true;
12768 }
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 (arg1)->AppendText((wxString const &)*arg2);
12772 wxPyEndAllowThreads(__tstate);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 }
12775 resultobj = SWIG_Py_Void();
12776 {
12777 if (temp2)
12778 delete arg2;
12779 }
12780 return resultobj;
12781fail:
12782 {
12783 if (temp2)
12784 delete arg2;
12785 }
12786 return NULL;
12787}
12788
12789
12790SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12791 PyObject *resultobj = 0;
12792 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12793 wxKeyEvent *arg2 = 0 ;
12794 bool result;
12795 void *argp1 = 0 ;
12796 int res1 = 0 ;
12797 void *argp2 = 0 ;
12798 int res2 = 0 ;
12799 PyObject * obj0 = 0 ;
12800 PyObject * obj1 = 0 ;
12801 char * kwnames[] = {
12802 (char *) "self",(char *) "event", NULL
12803 };
12804
12805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12807 if (!SWIG_IsOK(res1)) {
12808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12809 }
12810 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12811 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12812 if (!SWIG_IsOK(res2)) {
12813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12814 }
12815 if (!argp2) {
12816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12817 }
12818 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12819 {
12820 PyThreadState* __tstate = wxPyBeginAllowThreads();
12821 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12822 wxPyEndAllowThreads(__tstate);
12823 if (PyErr_Occurred()) SWIG_fail;
12824 }
12825 {
12826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12827 }
12828 return resultobj;
12829fail:
12830 return NULL;
12831}
12832
12833
12834SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12835 PyObject *resultobj = 0;
12836 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12837 long arg2 ;
12838 long arg3 ;
12839 wxTextAttr *arg4 = 0 ;
12840 bool result;
12841 void *argp1 = 0 ;
12842 int res1 = 0 ;
12843 long val2 ;
12844 int ecode2 = 0 ;
12845 long val3 ;
12846 int ecode3 = 0 ;
12847 void *argp4 = 0 ;
12848 int res4 = 0 ;
12849 PyObject * obj0 = 0 ;
12850 PyObject * obj1 = 0 ;
12851 PyObject * obj2 = 0 ;
12852 PyObject * obj3 = 0 ;
12853 char * kwnames[] = {
12854 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12855 };
12856
12857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12859 if (!SWIG_IsOK(res1)) {
12860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12861 }
12862 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12863 ecode2 = SWIG_AsVal_long(obj1, &val2);
12864 if (!SWIG_IsOK(ecode2)) {
12865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12866 }
12867 arg2 = static_cast< long >(val2);
12868 ecode3 = SWIG_AsVal_long(obj2, &val3);
12869 if (!SWIG_IsOK(ecode3)) {
12870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12871 }
12872 arg3 = static_cast< long >(val3);
12873 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12874 if (!SWIG_IsOK(res4)) {
12875 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12876 }
12877 if (!argp4) {
12878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12879 }
12880 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12881 {
12882 PyThreadState* __tstate = wxPyBeginAllowThreads();
12883 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12884 wxPyEndAllowThreads(__tstate);
12885 if (PyErr_Occurred()) SWIG_fail;
12886 }
12887 {
12888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12889 }
12890 return resultobj;
12891fail:
12892 return NULL;
12893}
12894
12895
12896SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12897 PyObject *resultobj = 0;
12898 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12899 long arg2 ;
12900 wxTextAttr *arg3 = 0 ;
12901 bool result;
12902 void *argp1 = 0 ;
12903 int res1 = 0 ;
12904 long val2 ;
12905 int ecode2 = 0 ;
12906 void *argp3 = 0 ;
12907 int res3 = 0 ;
12908 PyObject * obj0 = 0 ;
12909 PyObject * obj1 = 0 ;
12910 PyObject * obj2 = 0 ;
12911 char * kwnames[] = {
12912 (char *) "self",(char *) "position",(char *) "style", NULL
12913 };
12914
12915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12917 if (!SWIG_IsOK(res1)) {
12918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12919 }
12920 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12921 ecode2 = SWIG_AsVal_long(obj1, &val2);
12922 if (!SWIG_IsOK(ecode2)) {
12923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12924 }
12925 arg2 = static_cast< long >(val2);
12926 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12927 if (!SWIG_IsOK(res3)) {
12928 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12929 }
12930 if (!argp3) {
12931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12932 }
12933 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12934 {
12935 PyThreadState* __tstate = wxPyBeginAllowThreads();
12936 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12937 wxPyEndAllowThreads(__tstate);
12938 if (PyErr_Occurred()) SWIG_fail;
12939 }
12940 {
12941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12942 }
12943 return resultobj;
12944fail:
12945 return NULL;
12946}
12947
12948
12949SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12950 PyObject *resultobj = 0;
12951 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12952 wxTextAttr *arg2 = 0 ;
12953 bool result;
12954 void *argp1 = 0 ;
12955 int res1 = 0 ;
12956 void *argp2 = 0 ;
12957 int res2 = 0 ;
12958 PyObject * obj0 = 0 ;
12959 PyObject * obj1 = 0 ;
12960 char * kwnames[] = {
12961 (char *) "self",(char *) "style", NULL
12962 };
12963
12964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12966 if (!SWIG_IsOK(res1)) {
12967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12968 }
12969 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12970 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12971 if (!SWIG_IsOK(res2)) {
12972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12973 }
12974 if (!argp2) {
12975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12976 }
12977 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12978 {
12979 PyThreadState* __tstate = wxPyBeginAllowThreads();
12980 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12981 wxPyEndAllowThreads(__tstate);
12982 if (PyErr_Occurred()) SWIG_fail;
12983 }
12984 {
12985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12986 }
12987 return resultobj;
12988fail:
12989 return NULL;
d14a1e28
RD
12990}
12991
12992
0085ce49
RD
12993SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12994 PyObject *resultobj = 0;
12995 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12996 wxTextAttr *result = 0 ;
12997 void *argp1 = 0 ;
12998 int res1 = 0 ;
12999 PyObject *swig_obj[1] ;
13000
13001 if (!args) SWIG_fail;
13002 swig_obj[0] = args;
13003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13004 if (!SWIG_IsOK(res1)) {
13005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13006 }
13007 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13008 {
13009 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13010 {
0085ce49
RD
13011 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13012 result = (wxTextAttr *) &_result_ref;
093d3ff1 13013 }
0085ce49
RD
13014 wxPyEndAllowThreads(__tstate);
13015 if (PyErr_Occurred()) SWIG_fail;
13016 }
13017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13018 return resultobj;
13019fail:
13020 return NULL;
13021}
13022
13023
13024SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13025 PyObject *resultobj = 0;
13026 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13027 long arg2 ;
13028 long arg3 ;
13029 long result;
13030 void *argp1 = 0 ;
13031 int res1 = 0 ;
13032 long val2 ;
13033 int ecode2 = 0 ;
13034 long val3 ;
13035 int ecode3 = 0 ;
13036 PyObject * obj0 = 0 ;
13037 PyObject * obj1 = 0 ;
13038 PyObject * obj2 = 0 ;
13039 char * kwnames[] = {
13040 (char *) "self",(char *) "x",(char *) "y", NULL
13041 };
13042
13043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13045 if (!SWIG_IsOK(res1)) {
13046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13047 }
13048 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13049 ecode2 = SWIG_AsVal_long(obj1, &val2);
13050 if (!SWIG_IsOK(ecode2)) {
13051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13052 }
13053 arg2 = static_cast< long >(val2);
13054 ecode3 = SWIG_AsVal_long(obj2, &val3);
13055 if (!SWIG_IsOK(ecode3)) {
13056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13057 }
13058 arg3 = static_cast< long >(val3);
13059 {
13060 PyThreadState* __tstate = wxPyBeginAllowThreads();
13061 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13062 wxPyEndAllowThreads(__tstate);
13063 if (PyErr_Occurred()) SWIG_fail;
13064 }
13065 resultobj = SWIG_From_long(static_cast< long >(result));
13066 return resultobj;
13067fail:
13068 return NULL;
13069}
13070
13071
13072SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13073 PyObject *resultobj = 0;
13074 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13075 long arg2 ;
13076 long *arg3 = (long *) 0 ;
13077 long *arg4 = (long *) 0 ;
13078 void *argp1 = 0 ;
13079 int res1 = 0 ;
13080 long val2 ;
13081 int ecode2 = 0 ;
13082 long temp3 ;
13083 int res3 = SWIG_TMPOBJ ;
13084 long temp4 ;
13085 int res4 = SWIG_TMPOBJ ;
13086 PyObject * obj0 = 0 ;
13087 PyObject * obj1 = 0 ;
13088 char * kwnames[] = {
13089 (char *) "self",(char *) "pos", NULL
13090 };
13091
13092 arg3 = &temp3;
13093 arg4 = &temp4;
13094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13096 if (!SWIG_IsOK(res1)) {
13097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13098 }
13099 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13100 ecode2 = SWIG_AsVal_long(obj1, &val2);
13101 if (!SWIG_IsOK(ecode2)) {
13102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13103 }
13104 arg2 = static_cast< long >(val2);
13105 {
13106 PyThreadState* __tstate = wxPyBeginAllowThreads();
13107 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13108 wxPyEndAllowThreads(__tstate);
13109 if (PyErr_Occurred()) SWIG_fail;
13110 }
13111 resultobj = SWIG_Py_Void();
13112 if (SWIG_IsTmpObj(res3)) {
13113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13114 } else {
13115 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13117 }
13118 if (SWIG_IsTmpObj(res4)) {
13119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13120 } else {
13121 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13123 }
13124 return resultobj;
13125fail:
13126 return NULL;
13127}
13128
13129
13130SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13131 PyObject *resultobj = 0;
13132 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13133 long arg2 ;
13134 void *argp1 = 0 ;
13135 int res1 = 0 ;
13136 long val2 ;
13137 int ecode2 = 0 ;
13138 PyObject * obj0 = 0 ;
13139 PyObject * obj1 = 0 ;
13140 char * kwnames[] = {
13141 (char *) "self",(char *) "pos", NULL
13142 };
13143
13144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13146 if (!SWIG_IsOK(res1)) {
13147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13148 }
13149 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13150 ecode2 = SWIG_AsVal_long(obj1, &val2);
13151 if (!SWIG_IsOK(ecode2)) {
13152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13153 }
13154 arg2 = static_cast< long >(val2);
13155 {
13156 PyThreadState* __tstate = wxPyBeginAllowThreads();
13157 (arg1)->ShowPosition(arg2);
13158 wxPyEndAllowThreads(__tstate);
13159 if (PyErr_Occurred()) SWIG_fail;
13160 }
13161 resultobj = SWIG_Py_Void();
13162 return resultobj;
13163fail:
13164 return NULL;
13165}
13166
13167
13168SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13169 PyObject *resultobj = 0;
13170 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13171 wxPoint *arg2 = 0 ;
13172 long *arg3 = (long *) 0 ;
13173 long *arg4 = (long *) 0 ;
13174 wxTextCtrlHitTestResult result;
13175 void *argp1 = 0 ;
13176 int res1 = 0 ;
13177 wxPoint temp2 ;
13178 long temp3 ;
13179 int res3 = SWIG_TMPOBJ ;
13180 long temp4 ;
13181 int res4 = SWIG_TMPOBJ ;
13182 PyObject * obj0 = 0 ;
13183 PyObject * obj1 = 0 ;
13184 char * kwnames[] = {
13185 (char *) "self",(char *) "pt", NULL
13186 };
13187
13188 arg3 = &temp3;
13189 arg4 = &temp4;
13190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13192 if (!SWIG_IsOK(res1)) {
13193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13194 }
13195 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13196 {
13197 arg2 = &temp2;
13198 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13199 }
13200 {
13201 PyThreadState* __tstate = wxPyBeginAllowThreads();
13202 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13203 wxPyEndAllowThreads(__tstate);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
13206 resultobj = SWIG_From_int(static_cast< int >(result));
13207 if (SWIG_IsTmpObj(res3)) {
13208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13209 } else {
13210 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13212 }
13213 if (SWIG_IsTmpObj(res4)) {
13214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13215 } else {
13216 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13218 }
13219 return resultobj;
13220fail:
13221 return NULL;
13222}
13223
13224
13225SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13226 PyObject *resultobj = 0;
13227 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13228 wxPoint *arg2 = 0 ;
13229 long *arg3 = (long *) 0 ;
13230 wxTextCtrlHitTestResult result;
13231 void *argp1 = 0 ;
13232 int res1 = 0 ;
13233 wxPoint temp2 ;
13234 long temp3 ;
13235 int res3 = SWIG_TMPOBJ ;
13236 PyObject * obj0 = 0 ;
13237 PyObject * obj1 = 0 ;
13238 char * kwnames[] = {
13239 (char *) "self",(char *) "pt", NULL
13240 };
13241
13242 arg3 = &temp3;
13243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13245 if (!SWIG_IsOK(res1)) {
13246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13247 }
13248 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13249 {
13250 arg2 = &temp2;
13251 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13252 }
13253 {
13254 PyThreadState* __tstate = wxPyBeginAllowThreads();
13255 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13256 wxPyEndAllowThreads(__tstate);
13257 if (PyErr_Occurred()) SWIG_fail;
13258 }
13259 resultobj = SWIG_From_int(static_cast< int >(result));
13260 if (SWIG_IsTmpObj(res3)) {
13261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13262 } else {
13263 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13264 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13265 }
13266 return resultobj;
13267fail:
13268 return NULL;
d14a1e28
RD
13269}
13270
13271
0085ce49
RD
13272SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13273 PyObject *resultobj = 0;
13274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13275 void *argp1 = 0 ;
13276 int res1 = 0 ;
13277 PyObject *swig_obj[1] ;
13278
13279 if (!args) SWIG_fail;
13280 swig_obj[0] = args;
13281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13282 if (!SWIG_IsOK(res1)) {
13283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13284 }
13285 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13286 {
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 (arg1)->Copy();
13289 wxPyEndAllowThreads(__tstate);
13290 if (PyErr_Occurred()) SWIG_fail;
13291 }
13292 resultobj = SWIG_Py_Void();
13293 return resultobj;
13294fail:
13295 return NULL;
d14a1e28 13296}
0085ce49
RD
13297
13298
13299SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13300 PyObject *resultobj = 0;
13301 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13302 void *argp1 = 0 ;
13303 int res1 = 0 ;
13304 PyObject *swig_obj[1] ;
13305
13306 if (!args) SWIG_fail;
13307 swig_obj[0] = args;
13308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13309 if (!SWIG_IsOK(res1)) {
13310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13311 }
13312 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13313 {
13314 PyThreadState* __tstate = wxPyBeginAllowThreads();
13315 (arg1)->Cut();
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 resultobj = SWIG_Py_Void();
13320 return resultobj;
13321fail:
13322 return NULL;
b2dc1044
RD
13323}
13324
13325
0085ce49
RD
13326SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13327 PyObject *resultobj = 0;
13328 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13329 void *argp1 = 0 ;
13330 int res1 = 0 ;
13331 PyObject *swig_obj[1] ;
13332
13333 if (!args) SWIG_fail;
13334 swig_obj[0] = args;
13335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13336 if (!SWIG_IsOK(res1)) {
13337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13338 }
13339 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13340 {
13341 PyThreadState* __tstate = wxPyBeginAllowThreads();
13342 (arg1)->Paste();
13343 wxPyEndAllowThreads(__tstate);
13344 if (PyErr_Occurred()) SWIG_fail;
13345 }
13346 resultobj = SWIG_Py_Void();
13347 return resultobj;
13348fail:
13349 return NULL;
d14a1e28
RD
13350}
13351
13352
0085ce49
RD
13353SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13354 PyObject *resultobj = 0;
13355 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13356 bool result;
13357 void *argp1 = 0 ;
13358 int res1 = 0 ;
13359 PyObject *swig_obj[1] ;
13360
13361 if (!args) SWIG_fail;
13362 swig_obj[0] = args;
13363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13364 if (!SWIG_IsOK(res1)) {
13365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13366 }
13367 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13368 {
13369 PyThreadState* __tstate = wxPyBeginAllowThreads();
13370 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13371 wxPyEndAllowThreads(__tstate);
13372 if (PyErr_Occurred()) SWIG_fail;
13373 }
13374 {
13375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13376 }
13377 return resultobj;
13378fail:
13379 return NULL;
d14a1e28
RD
13380}
13381
13382
0085ce49
RD
13383SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13384 PyObject *resultobj = 0;
13385 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13386 bool result;
13387 void *argp1 = 0 ;
13388 int res1 = 0 ;
13389 PyObject *swig_obj[1] ;
13390
13391 if (!args) SWIG_fail;
13392 swig_obj[0] = args;
13393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13394 if (!SWIG_IsOK(res1)) {
13395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13396 }
13397 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13398 {
13399 PyThreadState* __tstate = wxPyBeginAllowThreads();
13400 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13401 wxPyEndAllowThreads(__tstate);
13402 if (PyErr_Occurred()) SWIG_fail;
13403 }
13404 {
13405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13406 }
13407 return resultobj;
13408fail:
13409 return NULL;
994141e6
RD
13410}
13411
13412
0085ce49
RD
13413SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13414 PyObject *resultobj = 0;
13415 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13416 bool result;
13417 void *argp1 = 0 ;
13418 int res1 = 0 ;
13419 PyObject *swig_obj[1] ;
13420
13421 if (!args) SWIG_fail;
13422 swig_obj[0] = args;
13423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13424 if (!SWIG_IsOK(res1)) {
13425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13426 }
13427 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13428 {
13429 PyThreadState* __tstate = wxPyBeginAllowThreads();
13430 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13431 wxPyEndAllowThreads(__tstate);
13432 if (PyErr_Occurred()) SWIG_fail;
13433 }
13434 {
13435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13436 }
13437 return resultobj;
13438fail:
13439 return NULL;
d14a1e28
RD
13440}
13441
13442
0085ce49
RD
13443SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13444 PyObject *resultobj = 0;
13445 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13446 void *argp1 = 0 ;
13447 int res1 = 0 ;
13448 PyObject *swig_obj[1] ;
13449
13450 if (!args) SWIG_fail;
13451 swig_obj[0] = args;
13452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13453 if (!SWIG_IsOK(res1)) {
13454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13455 }
13456 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 (arg1)->Undo();
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 resultobj = SWIG_Py_Void();
13464 return resultobj;
13465fail:
13466 return NULL;
d14a1e28
RD
13467}
13468
13469
0085ce49
RD
13470SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13471 PyObject *resultobj = 0;
13472 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13473 void *argp1 = 0 ;
13474 int res1 = 0 ;
13475 PyObject *swig_obj[1] ;
13476
13477 if (!args) SWIG_fail;
13478 swig_obj[0] = args;
13479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13480 if (!SWIG_IsOK(res1)) {
13481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13482 }
13483 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13484 {
13485 PyThreadState* __tstate = wxPyBeginAllowThreads();
13486 (arg1)->Redo();
13487 wxPyEndAllowThreads(__tstate);
13488 if (PyErr_Occurred()) SWIG_fail;
13489 }
13490 resultobj = SWIG_Py_Void();
13491 return resultobj;
13492fail:
13493 return NULL;
d14a1e28
RD
13494}
13495
13496
0085ce49
RD
13497SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13498 PyObject *resultobj = 0;
13499 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13500 bool result;
13501 void *argp1 = 0 ;
13502 int res1 = 0 ;
13503 PyObject *swig_obj[1] ;
13504
13505 if (!args) SWIG_fail;
13506 swig_obj[0] = args;
13507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13508 if (!SWIG_IsOK(res1)) {
13509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13510 }
13511 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13512 {
13513 PyThreadState* __tstate = wxPyBeginAllowThreads();
13514 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13515 wxPyEndAllowThreads(__tstate);
13516 if (PyErr_Occurred()) SWIG_fail;
13517 }
13518 {
13519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13520 }
13521 return resultobj;
13522fail:
13523 return NULL;
d14a1e28
RD
13524}
13525
13526
0085ce49
RD
13527SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13528 PyObject *resultobj = 0;
13529 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13530 bool result;
13531 void *argp1 = 0 ;
13532 int res1 = 0 ;
13533 PyObject *swig_obj[1] ;
13534
13535 if (!args) SWIG_fail;
13536 swig_obj[0] = args;
13537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13538 if (!SWIG_IsOK(res1)) {
13539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13540 }
13541 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13542 {
13543 PyThreadState* __tstate = wxPyBeginAllowThreads();
13544 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13545 wxPyEndAllowThreads(__tstate);
13546 if (PyErr_Occurred()) SWIG_fail;
13547 }
13548 {
13549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13550 }
13551 return resultobj;
13552fail:
13553 return NULL;
13554}
13555
13556
13557SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13558 PyObject *resultobj = 0;
13559 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13560 long arg2 ;
13561 void *argp1 = 0 ;
13562 int res1 = 0 ;
13563 long val2 ;
13564 int ecode2 = 0 ;
13565 PyObject * obj0 = 0 ;
13566 PyObject * obj1 = 0 ;
13567 char * kwnames[] = {
13568 (char *) "self",(char *) "pos", NULL
13569 };
13570
13571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13573 if (!SWIG_IsOK(res1)) {
13574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13575 }
13576 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13577 ecode2 = SWIG_AsVal_long(obj1, &val2);
13578 if (!SWIG_IsOK(ecode2)) {
13579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13580 }
13581 arg2 = static_cast< long >(val2);
13582 {
13583 PyThreadState* __tstate = wxPyBeginAllowThreads();
13584 (arg1)->SetInsertionPoint(arg2);
13585 wxPyEndAllowThreads(__tstate);
13586 if (PyErr_Occurred()) SWIG_fail;
13587 }
13588 resultobj = SWIG_Py_Void();
13589 return resultobj;
13590fail:
13591 return NULL;
d14a1e28
RD
13592}
13593
13594
0085ce49
RD
13595SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13596 PyObject *resultobj = 0;
13597 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13598 void *argp1 = 0 ;
13599 int res1 = 0 ;
13600 PyObject *swig_obj[1] ;
13601
13602 if (!args) SWIG_fail;
13603 swig_obj[0] = args;
13604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13605 if (!SWIG_IsOK(res1)) {
13606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13607 }
13608 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13609 {
13610 PyThreadState* __tstate = wxPyBeginAllowThreads();
13611 (arg1)->SetInsertionPointEnd();
13612 wxPyEndAllowThreads(__tstate);
13613 if (PyErr_Occurred()) SWIG_fail;
13614 }
13615 resultobj = SWIG_Py_Void();
13616 return resultobj;
13617fail:
13618 return NULL;
d14a1e28
RD
13619}
13620
13621
0085ce49
RD
13622SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13623 PyObject *resultobj = 0;
13624 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13625 long result;
13626 void *argp1 = 0 ;
13627 int res1 = 0 ;
13628 PyObject *swig_obj[1] ;
13629
13630 if (!args) SWIG_fail;
13631 swig_obj[0] = args;
13632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13633 if (!SWIG_IsOK(res1)) {
13634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13635 }
13636 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13637 {
13638 PyThreadState* __tstate = wxPyBeginAllowThreads();
13639 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13640 wxPyEndAllowThreads(__tstate);
13641 if (PyErr_Occurred()) SWIG_fail;
13642 }
13643 resultobj = SWIG_From_long(static_cast< long >(result));
13644 return resultobj;
13645fail:
13646 return NULL;
d14a1e28
RD
13647}
13648
13649
0085ce49
RD
13650SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13651 PyObject *resultobj = 0;
13652 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13653 long result;
13654 void *argp1 = 0 ;
13655 int res1 = 0 ;
13656 PyObject *swig_obj[1] ;
13657
13658 if (!args) SWIG_fail;
13659 swig_obj[0] = args;
13660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13661 if (!SWIG_IsOK(res1)) {
13662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13663 }
13664 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13665 {
13666 PyThreadState* __tstate = wxPyBeginAllowThreads();
13667 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13668 wxPyEndAllowThreads(__tstate);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 resultobj = SWIG_From_long(static_cast< long >(result));
13672 return resultobj;
13673fail:
13674 return NULL;
13675}
13676
13677
13678SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13679 PyObject *resultobj = 0;
13680 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13681 long arg2 ;
13682 long arg3 ;
13683 void *argp1 = 0 ;
13684 int res1 = 0 ;
13685 long val2 ;
13686 int ecode2 = 0 ;
13687 long val3 ;
13688 int ecode3 = 0 ;
13689 PyObject * obj0 = 0 ;
13690 PyObject * obj1 = 0 ;
13691 PyObject * obj2 = 0 ;
13692 char * kwnames[] = {
2131d850 13693 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
13694 };
13695
13696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13698 if (!SWIG_IsOK(res1)) {
13699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13700 }
13701 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13702 ecode2 = SWIG_AsVal_long(obj1, &val2);
13703 if (!SWIG_IsOK(ecode2)) {
13704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13705 }
13706 arg2 = static_cast< long >(val2);
13707 ecode3 = SWIG_AsVal_long(obj2, &val3);
13708 if (!SWIG_IsOK(ecode3)) {
13709 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13710 }
13711 arg3 = static_cast< long >(val3);
13712 {
13713 PyThreadState* __tstate = wxPyBeginAllowThreads();
13714 (arg1)->SetSelection(arg2,arg3);
13715 wxPyEndAllowThreads(__tstate);
13716 if (PyErr_Occurred()) SWIG_fail;
13717 }
13718 resultobj = SWIG_Py_Void();
13719 return resultobj;
13720fail:
13721 return NULL;
d14a1e28
RD
13722}
13723
13724
0085ce49
RD
13725SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13726 PyObject *resultobj = 0;
13727 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13728 void *argp1 = 0 ;
13729 int res1 = 0 ;
13730 PyObject *swig_obj[1] ;
13731
13732 if (!args) SWIG_fail;
13733 swig_obj[0] = args;
13734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13735 if (!SWIG_IsOK(res1)) {
13736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13737 }
13738 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13739 {
13740 PyThreadState* __tstate = wxPyBeginAllowThreads();
13741 (arg1)->SelectAll();
13742 wxPyEndAllowThreads(__tstate);
13743 if (PyErr_Occurred()) SWIG_fail;
13744 }
13745 resultobj = SWIG_Py_Void();
13746 return resultobj;
13747fail:
13748 return NULL;
13749}
13750
13751
13752SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13753 PyObject *resultobj = 0;
13754 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13755 bool arg2 ;
13756 void *argp1 = 0 ;
13757 int res1 = 0 ;
13758 bool val2 ;
13759 int ecode2 = 0 ;
13760 PyObject * obj0 = 0 ;
13761 PyObject * obj1 = 0 ;
13762 char * kwnames[] = {
13763 (char *) "self",(char *) "editable", NULL
13764 };
13765
13766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13768 if (!SWIG_IsOK(res1)) {
13769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13770 }
13771 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13772 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13773 if (!SWIG_IsOK(ecode2)) {
13774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13775 }
13776 arg2 = static_cast< bool >(val2);
13777 {
13778 PyThreadState* __tstate = wxPyBeginAllowThreads();
13779 (arg1)->SetEditable(arg2);
13780 wxPyEndAllowThreads(__tstate);
13781 if (PyErr_Occurred()) SWIG_fail;
13782 }
13783 resultobj = SWIG_Py_Void();
13784 return resultobj;
13785fail:
13786 return NULL;
13787}
13788
13789
13790SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13791 PyObject *resultobj = 0;
13792 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13793 wxString *arg2 = 0 ;
13794 void *argp1 = 0 ;
13795 int res1 = 0 ;
13796 bool temp2 = false ;
13797 PyObject * obj0 = 0 ;
13798 PyObject * obj1 = 0 ;
13799 char * kwnames[] = {
13800 (char *) "self",(char *) "text", NULL
13801 };
13802
13803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13805 if (!SWIG_IsOK(res1)) {
13806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13807 }
13808 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13809 {
13810 arg2 = wxString_in_helper(obj1);
13811 if (arg2 == NULL) SWIG_fail;
13812 temp2 = true;
13813 }
13814 {
13815 PyThreadState* __tstate = wxPyBeginAllowThreads();
13816 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13817 wxPyEndAllowThreads(__tstate);
13818 if (PyErr_Occurred()) SWIG_fail;
13819 }
13820 resultobj = SWIG_Py_Void();
13821 {
13822 if (temp2)
13823 delete arg2;
13824 }
13825 return resultobj;
13826fail:
13827 {
13828 if (temp2)
13829 delete arg2;
13830 }
13831 return NULL;
13832}
13833
13834
13835SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13836 PyObject *resultobj = 0;
13837 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13838 long arg2 ;
13839 long arg3 ;
13840 wxString result;
13841 void *argp1 = 0 ;
13842 int res1 = 0 ;
13843 long val2 ;
13844 int ecode2 = 0 ;
13845 long val3 ;
13846 int ecode3 = 0 ;
13847 PyObject * obj0 = 0 ;
13848 PyObject * obj1 = 0 ;
13849 PyObject * obj2 = 0 ;
13850 char * kwnames[] = {
2131d850 13851 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
13852 };
13853
13854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13856 if (!SWIG_IsOK(res1)) {
13857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13858 }
13859 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13860 ecode2 = SWIG_AsVal_long(obj1, &val2);
13861 if (!SWIG_IsOK(ecode2)) {
13862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13863 }
13864 arg2 = static_cast< long >(val2);
13865 ecode3 = SWIG_AsVal_long(obj2, &val3);
13866 if (!SWIG_IsOK(ecode3)) {
13867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13868 }
13869 arg3 = static_cast< long >(val3);
13870 {
13871 PyThreadState* __tstate = wxPyBeginAllowThreads();
13872 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13873 wxPyEndAllowThreads(__tstate);
13874 if (PyErr_Occurred()) SWIG_fail;
13875 }
13876 {
13877#if wxUSE_UNICODE
13878 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13879#else
13880 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13881#endif
13882 }
13883 return resultobj;
13884fail:
13885 return NULL;
d14a1e28
RD
13886}
13887
13888
0085ce49
RD
13889SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13890 PyObject *resultobj = 0;
13891 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13892 SwigValueWrapper<wxVisualAttributes > result;
13893 int val1 ;
13894 int ecode1 = 0 ;
13895 PyObject * obj0 = 0 ;
13896 char * kwnames[] = {
13897 (char *) "variant", NULL
13898 };
13899
13900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13901 if (obj0) {
13902 ecode1 = SWIG_AsVal_int(obj0, &val1);
13903 if (!SWIG_IsOK(ecode1)) {
13904 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13905 }
13906 arg1 = static_cast< wxWindowVariant >(val1);
13907 }
13908 {
13909 if (!wxPyCheckForApp()) SWIG_fail;
13910 PyThreadState* __tstate = wxPyBeginAllowThreads();
13911 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13912 wxPyEndAllowThreads(__tstate);
13913 if (PyErr_Occurred()) SWIG_fail;
13914 }
13915 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13916 return resultobj;
13917fail:
13918 return NULL;
13919}
13920
13921
13922SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13923 PyObject *obj;
13924 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13925 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13926 return SWIG_Py_Void();
13927}
13928
13929SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13930 return SWIG_Python_InitShadowInstance(args);
13931}
13932
13933SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13934 PyObject *resultobj = 0;
13935 int arg1 ;
13936 wxMouseEvent *arg2 = 0 ;
13937 long arg3 ;
13938 long arg4 ;
13939 wxTextUrlEvent *result = 0 ;
13940 int val1 ;
13941 int ecode1 = 0 ;
13942 void *argp2 = 0 ;
13943 int res2 = 0 ;
13944 long val3 ;
13945 int ecode3 = 0 ;
13946 long val4 ;
13947 int ecode4 = 0 ;
13948 PyObject * obj0 = 0 ;
13949 PyObject * obj1 = 0 ;
13950 PyObject * obj2 = 0 ;
13951 PyObject * obj3 = 0 ;
13952 char * kwnames[] = {
13953 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13954 };
13955
13956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13957 ecode1 = SWIG_AsVal_int(obj0, &val1);
13958 if (!SWIG_IsOK(ecode1)) {
13959 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13960 }
13961 arg1 = static_cast< int >(val1);
13962 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13963 if (!SWIG_IsOK(res2)) {
13964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13965 }
13966 if (!argp2) {
13967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13968 }
13969 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13970 ecode3 = SWIG_AsVal_long(obj2, &val3);
13971 if (!SWIG_IsOK(ecode3)) {
13972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13973 }
13974 arg3 = static_cast< long >(val3);
13975 ecode4 = SWIG_AsVal_long(obj3, &val4);
13976 if (!SWIG_IsOK(ecode4)) {
13977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13978 }
13979 arg4 = static_cast< long >(val4);
13980 {
13981 PyThreadState* __tstate = wxPyBeginAllowThreads();
13982 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13983 wxPyEndAllowThreads(__tstate);
13984 if (PyErr_Occurred()) SWIG_fail;
13985 }
13986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13987 return resultobj;
13988fail:
13989 return NULL;
d14a1e28
RD
13990}
13991
13992
0085ce49
RD
13993SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13994 PyObject *resultobj = 0;
13995 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13996 wxMouseEvent *result = 0 ;
13997 void *argp1 = 0 ;
13998 int res1 = 0 ;
13999 PyObject *swig_obj[1] ;
14000
14001 if (!args) SWIG_fail;
14002 swig_obj[0] = args;
14003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14004 if (!SWIG_IsOK(res1)) {
14005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14006 }
14007 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14008 {
14009 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 14010 {
0085ce49
RD
14011 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14012 result = (wxMouseEvent *) &_result_ref;
4f89f6a3 14013 }
0085ce49
RD
14014 wxPyEndAllowThreads(__tstate);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 }
14017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14018 return resultobj;
14019fail:
14020 return NULL;
d14a1e28
RD
14021}
14022
14023
0085ce49
RD
14024SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14025 PyObject *resultobj = 0;
14026 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14027 long result;
14028 void *argp1 = 0 ;
14029 int res1 = 0 ;
14030 PyObject *swig_obj[1] ;
14031
14032 if (!args) SWIG_fail;
14033 swig_obj[0] = args;
14034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14035 if (!SWIG_IsOK(res1)) {
14036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14037 }
14038 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14039 {
14040 PyThreadState* __tstate = wxPyBeginAllowThreads();
14041 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14042 wxPyEndAllowThreads(__tstate);
14043 if (PyErr_Occurred()) SWIG_fail;
14044 }
14045 resultobj = SWIG_From_long(static_cast< long >(result));
14046 return resultobj;
14047fail:
14048 return NULL;
d14a1e28
RD
14049}
14050
14051
0085ce49
RD
14052SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14053 PyObject *resultobj = 0;
14054 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14055 long result;
14056 void *argp1 = 0 ;
14057 int res1 = 0 ;
14058 PyObject *swig_obj[1] ;
14059
14060 if (!args) SWIG_fail;
14061 swig_obj[0] = args;
14062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14063 if (!SWIG_IsOK(res1)) {
14064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14065 }
14066 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14067 {
14068 PyThreadState* __tstate = wxPyBeginAllowThreads();
14069 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14070 wxPyEndAllowThreads(__tstate);
14071 if (PyErr_Occurred()) SWIG_fail;
14072 }
14073 resultobj = SWIG_From_long(static_cast< long >(result));
14074 return resultobj;
14075fail:
14076 return NULL;
d14a1e28
RD
14077}
14078
14079
0085ce49
RD
14080SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14081 PyObject *obj;
14082 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14083 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14084 return SWIG_Py_Void();
d14a1e28
RD
14085}
14086
0085ce49
RD
14087SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14088 return SWIG_Python_InitShadowInstance(args);
14089}
d14a1e28 14090
0085ce49
RD
14091SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14092 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14093 return 1;
14094}
14095
14096
14097SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14098 PyObject *pyobj = 0;
14099
14100 {
14101#if wxUSE_UNICODE
14102 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14103#else
14104 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14105#endif
14106 }
14107 return pyobj;
14108}
14109
14110
14111SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14112 PyObject *resultobj = 0;
14113 wxWindow *arg1 = (wxWindow *) 0 ;
14114 int arg2 = (int) -1 ;
14115 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14116 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14117 wxSize const &arg4_defvalue = wxDefaultSize ;
14118 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14119 long arg5 = (long) wxSB_HORIZONTAL ;
14120 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14121 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14122 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14123 wxString *arg7 = (wxString *) &arg7_defvalue ;
14124 wxScrollBar *result = 0 ;
14125 void *argp1 = 0 ;
14126 int res1 = 0 ;
14127 int val2 ;
14128 int ecode2 = 0 ;
14129 wxPoint temp3 ;
14130 wxSize temp4 ;
14131 long val5 ;
14132 int ecode5 = 0 ;
14133 void *argp6 = 0 ;
14134 int res6 = 0 ;
14135 bool temp7 = false ;
14136 PyObject * obj0 = 0 ;
14137 PyObject * obj1 = 0 ;
14138 PyObject * obj2 = 0 ;
14139 PyObject * obj3 = 0 ;
14140 PyObject * obj4 = 0 ;
14141 PyObject * obj5 = 0 ;
14142 PyObject * obj6 = 0 ;
14143 char * kwnames[] = {
14144 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14145 };
14146
14147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14149 if (!SWIG_IsOK(res1)) {
14150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14151 }
14152 arg1 = reinterpret_cast< wxWindow * >(argp1);
14153 if (obj1) {
14154 ecode2 = SWIG_AsVal_int(obj1, &val2);
14155 if (!SWIG_IsOK(ecode2)) {
14156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14157 }
14158 arg2 = static_cast< int >(val2);
14159 }
14160 if (obj2) {
d14a1e28 14161 {
0085ce49
RD
14162 arg3 = &temp3;
14163 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14164 }
0085ce49
RD
14165 }
14166 if (obj3) {
4f89f6a3 14167 {
0085ce49
RD
14168 arg4 = &temp4;
14169 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 14170 }
0085ce49
RD
14171 }
14172 if (obj4) {
14173 ecode5 = SWIG_AsVal_long(obj4, &val5);
14174 if (!SWIG_IsOK(ecode5)) {
14175 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14176 }
14177 arg5 = static_cast< long >(val5);
14178 }
14179 if (obj5) {
14180 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14181 if (!SWIG_IsOK(res6)) {
14182 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14183 }
14184 if (!argp6) {
14185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14186 }
14187 arg6 = reinterpret_cast< wxValidator * >(argp6);
14188 }
14189 if (obj6) {
14190 {
14191 arg7 = wxString_in_helper(obj6);
14192 if (arg7 == NULL) SWIG_fail;
14193 temp7 = true;
14194 }
14195 }
14196 {
14197 if (!wxPyCheckForApp()) SWIG_fail;
14198 PyThreadState* __tstate = wxPyBeginAllowThreads();
14199 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14200 wxPyEndAllowThreads(__tstate);
14201 if (PyErr_Occurred()) SWIG_fail;
14202 }
14203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14204 {
14205 if (temp7)
14206 delete arg7;
14207 }
14208 return resultobj;
14209fail:
14210 {
14211 if (temp7)
14212 delete arg7;
14213 }
14214 return NULL;
d14a1e28
RD
14215}
14216
14217
0085ce49
RD
14218SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14219 PyObject *resultobj = 0;
14220 wxScrollBar *result = 0 ;
14221
14222 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14223 {
14224 if (!wxPyCheckForApp()) SWIG_fail;
14225 PyThreadState* __tstate = wxPyBeginAllowThreads();
14226 result = (wxScrollBar *)new wxScrollBar();
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14231 return resultobj;
14232fail:
14233 return NULL;
14234}
14235
14236
14237SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14238 PyObject *resultobj = 0;
14239 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14240 wxWindow *arg2 = (wxWindow *) 0 ;
14241 int arg3 = (int) -1 ;
14242 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14243 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14244 wxSize const &arg5_defvalue = wxDefaultSize ;
14245 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14246 long arg6 = (long) wxSB_HORIZONTAL ;
14247 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14248 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14249 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14250 wxString *arg8 = (wxString *) &arg8_defvalue ;
14251 bool result;
14252 void *argp1 = 0 ;
14253 int res1 = 0 ;
14254 void *argp2 = 0 ;
14255 int res2 = 0 ;
14256 int val3 ;
14257 int ecode3 = 0 ;
14258 wxPoint temp4 ;
14259 wxSize temp5 ;
14260 long val6 ;
14261 int ecode6 = 0 ;
14262 void *argp7 = 0 ;
14263 int res7 = 0 ;
14264 bool temp8 = false ;
14265 PyObject * obj0 = 0 ;
14266 PyObject * obj1 = 0 ;
14267 PyObject * obj2 = 0 ;
14268 PyObject * obj3 = 0 ;
14269 PyObject * obj4 = 0 ;
14270 PyObject * obj5 = 0 ;
14271 PyObject * obj6 = 0 ;
14272 PyObject * obj7 = 0 ;
14273 char * kwnames[] = {
14274 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14275 };
14276
14277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14279 if (!SWIG_IsOK(res1)) {
14280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14281 }
14282 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14283 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14284 if (!SWIG_IsOK(res2)) {
14285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14286 }
14287 arg2 = reinterpret_cast< wxWindow * >(argp2);
14288 if (obj2) {
14289 ecode3 = SWIG_AsVal_int(obj2, &val3);
14290 if (!SWIG_IsOK(ecode3)) {
14291 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14292 }
14293 arg3 = static_cast< int >(val3);
14294 }
14295 if (obj3) {
093d3ff1 14296 {
0085ce49
RD
14297 arg4 = &temp4;
14298 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 14299 }
0085ce49
RD
14300 }
14301 if (obj4) {
d14a1e28 14302 {
0085ce49
RD
14303 arg5 = &temp5;
14304 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14305 }
14306 }
14307 if (obj5) {
14308 ecode6 = SWIG_AsVal_long(obj5, &val6);
14309 if (!SWIG_IsOK(ecode6)) {
14310 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14311 }
14312 arg6 = static_cast< long >(val6);
14313 }
14314 if (obj6) {
14315 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14316 if (!SWIG_IsOK(res7)) {
14317 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 14318 }
0085ce49
RD
14319 if (!argp7) {
14320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14321 }
14322 arg7 = reinterpret_cast< wxValidator * >(argp7);
14323 }
14324 if (obj7) {
4f89f6a3 14325 {
0085ce49
RD
14326 arg8 = wxString_in_helper(obj7);
14327 if (arg8 == NULL) SWIG_fail;
14328 temp8 = true;
4f89f6a3 14329 }
0085ce49
RD
14330 }
14331 {
14332 PyThreadState* __tstate = wxPyBeginAllowThreads();
14333 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14334 wxPyEndAllowThreads(__tstate);
14335 if (PyErr_Occurred()) SWIG_fail;
14336 }
14337 {
14338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14339 }
14340 {
14341 if (temp8)
14342 delete arg8;
14343 }
14344 return resultobj;
14345fail:
14346 {
14347 if (temp8)
14348 delete arg8;
14349 }
14350 return NULL;
d14a1e28
RD
14351}
14352
14353
0085ce49
RD
14354SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14355 PyObject *resultobj = 0;
14356 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14357 int result;
14358 void *argp1 = 0 ;
14359 int res1 = 0 ;
14360 PyObject *swig_obj[1] ;
14361
14362 if (!args) SWIG_fail;
14363 swig_obj[0] = args;
14364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14365 if (!SWIG_IsOK(res1)) {
14366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14367 }
14368 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14369 {
14370 PyThreadState* __tstate = wxPyBeginAllowThreads();
14371 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14372 wxPyEndAllowThreads(__tstate);
14373 if (PyErr_Occurred()) SWIG_fail;
14374 }
14375 resultobj = SWIG_From_int(static_cast< int >(result));
14376 return resultobj;
14377fail:
14378 return NULL;
d14a1e28
RD
14379}
14380
14381
0085ce49
RD
14382SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14383 PyObject *resultobj = 0;
14384 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14385 int result;
14386 void *argp1 = 0 ;
14387 int res1 = 0 ;
14388 PyObject *swig_obj[1] ;
14389
14390 if (!args) SWIG_fail;
14391 swig_obj[0] = args;
14392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14393 if (!SWIG_IsOK(res1)) {
14394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14395 }
14396 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14397 {
14398 PyThreadState* __tstate = wxPyBeginAllowThreads();
14399 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14400 wxPyEndAllowThreads(__tstate);
14401 if (PyErr_Occurred()) SWIG_fail;
14402 }
14403 resultobj = SWIG_From_int(static_cast< int >(result));
14404 return resultobj;
14405fail:
14406 return NULL;
d14a1e28
RD
14407}
14408
14409
0085ce49
RD
14410SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14411 PyObject *resultobj = 0;
14412 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14413 int result;
14414 void *argp1 = 0 ;
14415 int res1 = 0 ;
14416 PyObject *swig_obj[1] ;
14417
14418 if (!args) SWIG_fail;
14419 swig_obj[0] = args;
14420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14421 if (!SWIG_IsOK(res1)) {
14422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14423 }
14424 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14425 {
14426 PyThreadState* __tstate = wxPyBeginAllowThreads();
14427 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14428 wxPyEndAllowThreads(__tstate);
14429 if (PyErr_Occurred()) SWIG_fail;
14430 }
14431 resultobj = SWIG_From_int(static_cast< int >(result));
14432 return resultobj;
14433fail:
14434 return NULL;
d14a1e28
RD
14435}
14436
14437
0085ce49
RD
14438SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14439 PyObject *resultobj = 0;
14440 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14441 int result;
14442 void *argp1 = 0 ;
14443 int res1 = 0 ;
14444 PyObject *swig_obj[1] ;
14445
14446 if (!args) SWIG_fail;
14447 swig_obj[0] = args;
14448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14449 if (!SWIG_IsOK(res1)) {
14450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14451 }
14452 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14453 {
14454 PyThreadState* __tstate = wxPyBeginAllowThreads();
14455 result = (int)((wxScrollBar const *)arg1)->GetRange();
14456 wxPyEndAllowThreads(__tstate);
14457 if (PyErr_Occurred()) SWIG_fail;
14458 }
14459 resultobj = SWIG_From_int(static_cast< int >(result));
14460 return resultobj;
14461fail:
14462 return NULL;
d14a1e28
RD
14463}
14464
14465
0085ce49
RD
14466SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14467 PyObject *resultobj = 0;
14468 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14469 bool result;
14470 void *argp1 = 0 ;
14471 int res1 = 0 ;
14472 PyObject *swig_obj[1] ;
14473
14474 if (!args) SWIG_fail;
14475 swig_obj[0] = args;
14476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14477 if (!SWIG_IsOK(res1)) {
14478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14479 }
14480 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14481 {
14482 PyThreadState* __tstate = wxPyBeginAllowThreads();
14483 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14484 wxPyEndAllowThreads(__tstate);
14485 if (PyErr_Occurred()) SWIG_fail;
14486 }
14487 {
14488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14489 }
14490 return resultobj;
14491fail:
14492 return NULL;
14493}
14494
14495
14496SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14497 PyObject *resultobj = 0;
14498 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14499 int arg2 ;
14500 void *argp1 = 0 ;
14501 int res1 = 0 ;
14502 int val2 ;
14503 int ecode2 = 0 ;
14504 PyObject * obj0 = 0 ;
14505 PyObject * obj1 = 0 ;
14506 char * kwnames[] = {
14507 (char *) "self",(char *) "viewStart", NULL
14508 };
14509
14510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14512 if (!SWIG_IsOK(res1)) {
14513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14514 }
14515 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14516 ecode2 = SWIG_AsVal_int(obj1, &val2);
14517 if (!SWIG_IsOK(ecode2)) {
14518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14519 }
14520 arg2 = static_cast< int >(val2);
14521 {
14522 PyThreadState* __tstate = wxPyBeginAllowThreads();
14523 (arg1)->SetThumbPosition(arg2);
14524 wxPyEndAllowThreads(__tstate);
14525 if (PyErr_Occurred()) SWIG_fail;
14526 }
14527 resultobj = SWIG_Py_Void();
14528 return resultobj;
14529fail:
14530 return NULL;
14531}
14532
14533
14534SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14535 PyObject *resultobj = 0;
14536 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14537 SwigValueWrapper<wxVisualAttributes > result;
14538 int val1 ;
14539 int ecode1 = 0 ;
14540 PyObject * obj0 = 0 ;
14541 char * kwnames[] = {
14542 (char *) "variant", NULL
14543 };
14544
14545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14546 if (obj0) {
14547 ecode1 = SWIG_AsVal_int(obj0, &val1);
14548 if (!SWIG_IsOK(ecode1)) {
14549 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14550 }
14551 arg1 = static_cast< wxWindowVariant >(val1);
14552 }
14553 {
14554 if (!wxPyCheckForApp()) SWIG_fail;
14555 PyThreadState* __tstate = wxPyBeginAllowThreads();
14556 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14557 wxPyEndAllowThreads(__tstate);
14558 if (PyErr_Occurred()) SWIG_fail;
14559 }
14560 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14561 return resultobj;
14562fail:
14563 return NULL;
d14a1e28
RD
14564}
14565
14566
0085ce49
RD
14567SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14568 PyObject *obj;
14569 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14570 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14571 return SWIG_Py_Void();
d14a1e28
RD
14572}
14573
0085ce49
RD
14574SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14575 return SWIG_Python_InitShadowInstance(args);
14576}
d14a1e28 14577
0085ce49
RD
14578SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14579 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14580 return 1;
d14a1e28
RD
14581}
14582
14583
0085ce49
RD
14584SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14585 PyObject *pyobj = 0;
14586
14587 {
14588#if wxUSE_UNICODE
14589 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14590#else
14591 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14592#endif
14593 }
14594 return pyobj;
d14a1e28
RD
14595}
14596
14597
0085ce49
RD
14598SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14599 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14600 return 1;
d14a1e28
RD
14601}
14602
14603
0085ce49
RD
14604SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14605 PyObject *pyobj = 0;
14606
14607 {
14608#if wxUSE_UNICODE
14609 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14610#else
14611 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14612#endif
14613 }
14614 return pyobj;
14615}
14616
14617
14618SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14619 PyObject *resultobj = 0;
14620 wxWindow *arg1 = (wxWindow *) 0 ;
14621 int arg2 = (int) -1 ;
14622 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14623 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14624 wxSize const &arg4_defvalue = wxDefaultSize ;
14625 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14626 long arg5 = (long) wxSP_HORIZONTAL ;
14627 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14628 wxString *arg6 = (wxString *) &arg6_defvalue ;
14629 wxSpinButton *result = 0 ;
14630 void *argp1 = 0 ;
14631 int res1 = 0 ;
14632 int val2 ;
14633 int ecode2 = 0 ;
14634 wxPoint temp3 ;
14635 wxSize temp4 ;
14636 long val5 ;
14637 int ecode5 = 0 ;
14638 bool temp6 = false ;
14639 PyObject * obj0 = 0 ;
14640 PyObject * obj1 = 0 ;
14641 PyObject * obj2 = 0 ;
14642 PyObject * obj3 = 0 ;
14643 PyObject * obj4 = 0 ;
14644 PyObject * obj5 = 0 ;
14645 char * kwnames[] = {
14646 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14647 };
14648
14649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14651 if (!SWIG_IsOK(res1)) {
14652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14653 }
14654 arg1 = reinterpret_cast< wxWindow * >(argp1);
14655 if (obj1) {
14656 ecode2 = SWIG_AsVal_int(obj1, &val2);
14657 if (!SWIG_IsOK(ecode2)) {
14658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14659 }
14660 arg2 = static_cast< int >(val2);
14661 }
14662 if (obj2) {
093d3ff1 14663 {
0085ce49
RD
14664 arg3 = &temp3;
14665 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14666 }
0085ce49
RD
14667 }
14668 if (obj3) {
d14a1e28 14669 {
0085ce49
RD
14670 arg4 = &temp4;
14671 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14672 }
0085ce49
RD
14673 }
14674 if (obj4) {
14675 ecode5 = SWIG_AsVal_long(obj4, &val5);
14676 if (!SWIG_IsOK(ecode5)) {
14677 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14678 }
14679 arg5 = static_cast< long >(val5);
14680 }
14681 if (obj5) {
d14a1e28 14682 {
0085ce49
RD
14683 arg6 = wxString_in_helper(obj5);
14684 if (arg6 == NULL) SWIG_fail;
14685 temp6 = true;
d14a1e28 14686 }
0085ce49
RD
14687 }
14688 {
14689 if (!wxPyCheckForApp()) SWIG_fail;
14690 PyThreadState* __tstate = wxPyBeginAllowThreads();
14691 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14692 wxPyEndAllowThreads(__tstate);
14693 if (PyErr_Occurred()) SWIG_fail;
14694 }
14695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14696 {
14697 if (temp6)
14698 delete arg6;
14699 }
14700 return resultobj;
14701fail:
14702 {
14703 if (temp6)
14704 delete arg6;
14705 }
14706 return NULL;
d14a1e28
RD
14707}
14708
14709
0085ce49
RD
14710SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14711 PyObject *resultobj = 0;
14712 wxSpinButton *result = 0 ;
14713
14714 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14715 {
14716 if (!wxPyCheckForApp()) SWIG_fail;
14717 PyThreadState* __tstate = wxPyBeginAllowThreads();
14718 result = (wxSpinButton *)new wxSpinButton();
14719 wxPyEndAllowThreads(__tstate);
14720 if (PyErr_Occurred()) SWIG_fail;
14721 }
14722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14723 return resultobj;
14724fail:
14725 return NULL;
14726}
14727
14728
14729SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14730 PyObject *resultobj = 0;
14731 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14732 wxWindow *arg2 = (wxWindow *) 0 ;
14733 int arg3 = (int) -1 ;
14734 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14735 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14736 wxSize const &arg5_defvalue = wxDefaultSize ;
14737 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14738 long arg6 = (long) wxSP_HORIZONTAL ;
14739 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14740 wxString *arg7 = (wxString *) &arg7_defvalue ;
14741 bool result;
14742 void *argp1 = 0 ;
14743 int res1 = 0 ;
14744 void *argp2 = 0 ;
14745 int res2 = 0 ;
14746 int val3 ;
14747 int ecode3 = 0 ;
14748 wxPoint temp4 ;
14749 wxSize temp5 ;
14750 long val6 ;
14751 int ecode6 = 0 ;
14752 bool temp7 = false ;
14753 PyObject * obj0 = 0 ;
14754 PyObject * obj1 = 0 ;
14755 PyObject * obj2 = 0 ;
14756 PyObject * obj3 = 0 ;
14757 PyObject * obj4 = 0 ;
14758 PyObject * obj5 = 0 ;
14759 PyObject * obj6 = 0 ;
14760 char * kwnames[] = {
14761 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14762 };
14763
14764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14766 if (!SWIG_IsOK(res1)) {
14767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14768 }
14769 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14770 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14771 if (!SWIG_IsOK(res2)) {
14772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14773 }
14774 arg2 = reinterpret_cast< wxWindow * >(argp2);
14775 if (obj2) {
14776 ecode3 = SWIG_AsVal_int(obj2, &val3);
14777 if (!SWIG_IsOK(ecode3)) {
14778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14779 }
14780 arg3 = static_cast< int >(val3);
14781 }
14782 if (obj3) {
d14a1e28 14783 {
0085ce49
RD
14784 arg4 = &temp4;
14785 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14786 }
0085ce49
RD
14787 }
14788 if (obj4) {
d14a1e28 14789 {
0085ce49
RD
14790 arg5 = &temp5;
14791 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 14792 }
0085ce49
RD
14793 }
14794 if (obj5) {
14795 ecode6 = SWIG_AsVal_long(obj5, &val6);
14796 if (!SWIG_IsOK(ecode6)) {
14797 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14798 }
14799 arg6 = static_cast< long >(val6);
14800 }
14801 if (obj6) {
d14a1e28 14802 {
0085ce49
RD
14803 arg7 = wxString_in_helper(obj6);
14804 if (arg7 == NULL) SWIG_fail;
14805 temp7 = true;
d14a1e28 14806 }
0085ce49
RD
14807 }
14808 {
14809 PyThreadState* __tstate = wxPyBeginAllowThreads();
14810 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14811 wxPyEndAllowThreads(__tstate);
14812 if (PyErr_Occurred()) SWIG_fail;
14813 }
14814 {
14815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14816 }
14817 {
14818 if (temp7)
14819 delete arg7;
14820 }
14821 return resultobj;
14822fail:
14823 {
14824 if (temp7)
14825 delete arg7;
14826 }
14827 return NULL;
d14a1e28
RD
14828}
14829
14830
0085ce49
RD
14831SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14832 PyObject *resultobj = 0;
14833 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14834 int result;
14835 void *argp1 = 0 ;
14836 int res1 = 0 ;
14837 PyObject *swig_obj[1] ;
14838
14839 if (!args) SWIG_fail;
14840 swig_obj[0] = args;
14841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14842 if (!SWIG_IsOK(res1)) {
14843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14844 }
14845 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14846 {
14847 PyThreadState* __tstate = wxPyBeginAllowThreads();
14848 result = (int)((wxSpinButton const *)arg1)->GetValue();
14849 wxPyEndAllowThreads(__tstate);
14850 if (PyErr_Occurred()) SWIG_fail;
14851 }
14852 resultobj = SWIG_From_int(static_cast< int >(result));
14853 return resultobj;
14854fail:
14855 return NULL;
d14a1e28
RD
14856}
14857
14858
0085ce49
RD
14859SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14860 PyObject *resultobj = 0;
14861 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14862 int result;
14863 void *argp1 = 0 ;
14864 int res1 = 0 ;
14865 PyObject *swig_obj[1] ;
14866
14867 if (!args) SWIG_fail;
14868 swig_obj[0] = args;
14869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14870 if (!SWIG_IsOK(res1)) {
14871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14872 }
14873 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14874 {
14875 PyThreadState* __tstate = wxPyBeginAllowThreads();
14876 result = (int)((wxSpinButton const *)arg1)->GetMin();
14877 wxPyEndAllowThreads(__tstate);
14878 if (PyErr_Occurred()) SWIG_fail;
14879 }
14880 resultobj = SWIG_From_int(static_cast< int >(result));
14881 return resultobj;
14882fail:
14883 return NULL;
d14a1e28
RD
14884}
14885
14886
0085ce49
RD
14887SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14888 PyObject *resultobj = 0;
14889 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14890 int result;
14891 void *argp1 = 0 ;
14892 int res1 = 0 ;
14893 PyObject *swig_obj[1] ;
14894
14895 if (!args) SWIG_fail;
14896 swig_obj[0] = args;
14897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14898 if (!SWIG_IsOK(res1)) {
14899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14900 }
14901 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14902 {
14903 PyThreadState* __tstate = wxPyBeginAllowThreads();
14904 result = (int)((wxSpinButton const *)arg1)->GetMax();
14905 wxPyEndAllowThreads(__tstate);
14906 if (PyErr_Occurred()) SWIG_fail;
14907 }
14908 resultobj = SWIG_From_int(static_cast< int >(result));
14909 return resultobj;
14910fail:
14911 return NULL;
14912}
14913
14914
14915SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14916 PyObject *resultobj = 0;
14917 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14918 int arg2 ;
14919 void *argp1 = 0 ;
14920 int res1 = 0 ;
14921 int val2 ;
14922 int ecode2 = 0 ;
14923 PyObject * obj0 = 0 ;
14924 PyObject * obj1 = 0 ;
14925 char * kwnames[] = {
14926 (char *) "self",(char *) "val", NULL
14927 };
14928
14929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14931 if (!SWIG_IsOK(res1)) {
14932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14933 }
14934 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14935 ecode2 = SWIG_AsVal_int(obj1, &val2);
14936 if (!SWIG_IsOK(ecode2)) {
14937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14938 }
14939 arg2 = static_cast< int >(val2);
14940 {
14941 PyThreadState* __tstate = wxPyBeginAllowThreads();
14942 (arg1)->SetValue(arg2);
14943 wxPyEndAllowThreads(__tstate);
14944 if (PyErr_Occurred()) SWIG_fail;
14945 }
14946 resultobj = SWIG_Py_Void();
14947 return resultobj;
14948fail:
14949 return NULL;
14950}
14951
14952
14953SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14954 PyObject *resultobj = 0;
14955 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14956 int arg2 ;
14957 void *argp1 = 0 ;
14958 int res1 = 0 ;
14959 int val2 ;
14960 int ecode2 = 0 ;
14961 PyObject * obj0 = 0 ;
14962 PyObject * obj1 = 0 ;
14963 char * kwnames[] = {
14964 (char *) "self",(char *) "minVal", NULL
14965 };
14966
14967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14969 if (!SWIG_IsOK(res1)) {
14970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14971 }
14972 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14973 ecode2 = SWIG_AsVal_int(obj1, &val2);
14974 if (!SWIG_IsOK(ecode2)) {
14975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14976 }
14977 arg2 = static_cast< int >(val2);
14978 {
14979 PyThreadState* __tstate = wxPyBeginAllowThreads();
14980 (arg1)->SetMin(arg2);
14981 wxPyEndAllowThreads(__tstate);
14982 if (PyErr_Occurred()) SWIG_fail;
14983 }
14984 resultobj = SWIG_Py_Void();
14985 return resultobj;
14986fail:
14987 return NULL;
14988}
14989
14990
14991SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14992 PyObject *resultobj = 0;
14993 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14994 int arg2 ;
14995 void *argp1 = 0 ;
14996 int res1 = 0 ;
14997 int val2 ;
14998 int ecode2 = 0 ;
14999 PyObject * obj0 = 0 ;
15000 PyObject * obj1 = 0 ;
15001 char * kwnames[] = {
15002 (char *) "self",(char *) "maxVal", NULL
15003 };
15004
15005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15007 if (!SWIG_IsOK(res1)) {
15008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15009 }
15010 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15011 ecode2 = SWIG_AsVal_int(obj1, &val2);
15012 if (!SWIG_IsOK(ecode2)) {
15013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15014 }
15015 arg2 = static_cast< int >(val2);
15016 {
15017 PyThreadState* __tstate = wxPyBeginAllowThreads();
15018 (arg1)->SetMax(arg2);
15019 wxPyEndAllowThreads(__tstate);
15020 if (PyErr_Occurred()) SWIG_fail;
15021 }
15022 resultobj = SWIG_Py_Void();
15023 return resultobj;
15024fail:
15025 return NULL;
15026}
15027
15028
15029SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15030 PyObject *resultobj = 0;
15031 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15032 int arg2 ;
15033 int arg3 ;
15034 void *argp1 = 0 ;
15035 int res1 = 0 ;
15036 int val2 ;
15037 int ecode2 = 0 ;
15038 int val3 ;
15039 int ecode3 = 0 ;
15040 PyObject * obj0 = 0 ;
15041 PyObject * obj1 = 0 ;
15042 PyObject * obj2 = 0 ;
15043 char * kwnames[] = {
15044 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15045 };
15046
15047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15049 if (!SWIG_IsOK(res1)) {
15050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15051 }
15052 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15053 ecode2 = SWIG_AsVal_int(obj1, &val2);
15054 if (!SWIG_IsOK(ecode2)) {
15055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15056 }
15057 arg2 = static_cast< int >(val2);
15058 ecode3 = SWIG_AsVal_int(obj2, &val3);
15059 if (!SWIG_IsOK(ecode3)) {
15060 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15061 }
15062 arg3 = static_cast< int >(val3);
15063 {
15064 PyThreadState* __tstate = wxPyBeginAllowThreads();
15065 (arg1)->SetRange(arg2,arg3);
15066 wxPyEndAllowThreads(__tstate);
15067 if (PyErr_Occurred()) SWIG_fail;
15068 }
15069 resultobj = SWIG_Py_Void();
15070 return resultobj;
15071fail:
15072 return NULL;
d14a1e28
RD
15073}
15074
15075
0085ce49
RD
15076SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15077 PyObject *resultobj = 0;
15078 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15079 bool result;
15080 void *argp1 = 0 ;
15081 int res1 = 0 ;
15082 PyObject *swig_obj[1] ;
15083
15084 if (!args) SWIG_fail;
15085 swig_obj[0] = args;
15086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15087 if (!SWIG_IsOK(res1)) {
15088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15089 }
15090 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15091 {
15092 PyThreadState* __tstate = wxPyBeginAllowThreads();
15093 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15094 wxPyEndAllowThreads(__tstate);
15095 if (PyErr_Occurred()) SWIG_fail;
15096 }
15097 {
15098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15099 }
15100 return resultobj;
15101fail:
15102 return NULL;
d14a1e28
RD
15103}
15104
15105
0085ce49
RD
15106SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15107 PyObject *resultobj = 0;
15108 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15109 SwigValueWrapper<wxVisualAttributes > result;
15110 int val1 ;
15111 int ecode1 = 0 ;
15112 PyObject * obj0 = 0 ;
15113 char * kwnames[] = {
15114 (char *) "variant", NULL
15115 };
15116
15117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15118 if (obj0) {
15119 ecode1 = SWIG_AsVal_int(obj0, &val1);
15120 if (!SWIG_IsOK(ecode1)) {
15121 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15122 }
15123 arg1 = static_cast< wxWindowVariant >(val1);
15124 }
15125 {
15126 if (!wxPyCheckForApp()) SWIG_fail;
15127 PyThreadState* __tstate = wxPyBeginAllowThreads();
15128 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15129 wxPyEndAllowThreads(__tstate);
15130 if (PyErr_Occurred()) SWIG_fail;
15131 }
15132 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15133 return resultobj;
15134fail:
15135 return NULL;
15136}
15137
15138
15139SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15140 PyObject *obj;
15141 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15142 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15143 return SWIG_Py_Void();
15144}
15145
15146SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15147 return SWIG_Python_InitShadowInstance(args);
15148}
15149
15150SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15151 PyObject *resultobj = 0;
15152 wxWindow *arg1 = (wxWindow *) 0 ;
15153 int arg2 = (int) -1 ;
15154 wxString const &arg3_defvalue = wxPyEmptyString ;
15155 wxString *arg3 = (wxString *) &arg3_defvalue ;
15156 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15157 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15158 wxSize const &arg5_defvalue = wxDefaultSize ;
15159 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15160 long arg6 = (long) wxSP_ARROW_KEYS ;
15161 int arg7 = (int) 0 ;
15162 int arg8 = (int) 100 ;
15163 int arg9 = (int) 0 ;
15164 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15165 wxString *arg10 = (wxString *) &arg10_defvalue ;
15166 wxSpinCtrl *result = 0 ;
15167 void *argp1 = 0 ;
15168 int res1 = 0 ;
15169 int val2 ;
15170 int ecode2 = 0 ;
15171 bool temp3 = false ;
15172 wxPoint temp4 ;
15173 wxSize temp5 ;
15174 long val6 ;
15175 int ecode6 = 0 ;
15176 int val7 ;
15177 int ecode7 = 0 ;
15178 int val8 ;
15179 int ecode8 = 0 ;
15180 int val9 ;
15181 int ecode9 = 0 ;
15182 bool temp10 = false ;
15183 PyObject * obj0 = 0 ;
15184 PyObject * obj1 = 0 ;
15185 PyObject * obj2 = 0 ;
15186 PyObject * obj3 = 0 ;
15187 PyObject * obj4 = 0 ;
15188 PyObject * obj5 = 0 ;
15189 PyObject * obj6 = 0 ;
15190 PyObject * obj7 = 0 ;
15191 PyObject * obj8 = 0 ;
15192 PyObject * obj9 = 0 ;
15193 char * kwnames[] = {
15194 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15195 };
15196
15197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15199 if (!SWIG_IsOK(res1)) {
15200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15201 }
15202 arg1 = reinterpret_cast< wxWindow * >(argp1);
15203 if (obj1) {
15204 ecode2 = SWIG_AsVal_int(obj1, &val2);
15205 if (!SWIG_IsOK(ecode2)) {
15206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15207 }
15208 arg2 = static_cast< int >(val2);
15209 }
15210 if (obj2) {
093d3ff1 15211 {
0085ce49
RD
15212 arg3 = wxString_in_helper(obj2);
15213 if (arg3 == NULL) SWIG_fail;
15214 temp3 = true;
093d3ff1 15215 }
0085ce49
RD
15216 }
15217 if (obj3) {
093d3ff1 15218 {
0085ce49
RD
15219 arg4 = &temp4;
15220 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 15221 }
0085ce49
RD
15222 }
15223 if (obj4) {
d14a1e28 15224 {
0085ce49
RD
15225 arg5 = &temp5;
15226 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15227 }
0085ce49
RD
15228 }
15229 if (obj5) {
15230 ecode6 = SWIG_AsVal_long(obj5, &val6);
15231 if (!SWIG_IsOK(ecode6)) {
15232 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15233 }
15234 arg6 = static_cast< long >(val6);
15235 }
15236 if (obj6) {
15237 ecode7 = SWIG_AsVal_int(obj6, &val7);
15238 if (!SWIG_IsOK(ecode7)) {
15239 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15240 }
15241 arg7 = static_cast< int >(val7);
15242 }
15243 if (obj7) {
15244 ecode8 = SWIG_AsVal_int(obj7, &val8);
15245 if (!SWIG_IsOK(ecode8)) {
15246 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15247 }
15248 arg8 = static_cast< int >(val8);
15249 }
15250 if (obj8) {
15251 ecode9 = SWIG_AsVal_int(obj8, &val9);
15252 if (!SWIG_IsOK(ecode9)) {
15253 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15254 }
15255 arg9 = static_cast< int >(val9);
15256 }
15257 if (obj9) {
d14a1e28 15258 {
0085ce49
RD
15259 arg10 = wxString_in_helper(obj9);
15260 if (arg10 == NULL) SWIG_fail;
15261 temp10 = true;
d14a1e28 15262 }
0085ce49
RD
15263 }
15264 {
15265 if (!wxPyCheckForApp()) SWIG_fail;
15266 PyThreadState* __tstate = wxPyBeginAllowThreads();
15267 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15268 wxPyEndAllowThreads(__tstate);
15269 if (PyErr_Occurred()) SWIG_fail;
15270 }
15271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15272 {
15273 if (temp3)
15274 delete arg3;
15275 }
15276 {
15277 if (temp10)
15278 delete arg10;
15279 }
15280 return resultobj;
15281fail:
15282 {
15283 if (temp3)
15284 delete arg3;
15285 }
15286 {
15287 if (temp10)
15288 delete arg10;
15289 }
15290 return NULL;
d14a1e28
RD
15291}
15292
15293
0085ce49
RD
15294SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15295 PyObject *resultobj = 0;
15296 wxSpinCtrl *result = 0 ;
15297
15298 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15299 {
15300 if (!wxPyCheckForApp()) SWIG_fail;
15301 PyThreadState* __tstate = wxPyBeginAllowThreads();
15302 result = (wxSpinCtrl *)new wxSpinCtrl();
15303 wxPyEndAllowThreads(__tstate);
15304 if (PyErr_Occurred()) SWIG_fail;
15305 }
15306 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15307 return resultobj;
15308fail:
15309 return NULL;
15310}
15311
15312
15313SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15314 PyObject *resultobj = 0;
15315 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15316 wxWindow *arg2 = (wxWindow *) 0 ;
15317 int arg3 = (int) -1 ;
15318 wxString const &arg4_defvalue = wxPyEmptyString ;
15319 wxString *arg4 = (wxString *) &arg4_defvalue ;
15320 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15321 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15322 wxSize const &arg6_defvalue = wxDefaultSize ;
15323 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15324 long arg7 = (long) wxSP_ARROW_KEYS ;
15325 int arg8 = (int) 0 ;
15326 int arg9 = (int) 100 ;
15327 int arg10 = (int) 0 ;
15328 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15329 wxString *arg11 = (wxString *) &arg11_defvalue ;
15330 bool result;
15331 void *argp1 = 0 ;
15332 int res1 = 0 ;
15333 void *argp2 = 0 ;
15334 int res2 = 0 ;
15335 int val3 ;
15336 int ecode3 = 0 ;
15337 bool temp4 = false ;
15338 wxPoint temp5 ;
15339 wxSize temp6 ;
15340 long val7 ;
15341 int ecode7 = 0 ;
15342 int val8 ;
15343 int ecode8 = 0 ;
15344 int val9 ;
15345 int ecode9 = 0 ;
15346 int val10 ;
15347 int ecode10 = 0 ;
15348 bool temp11 = false ;
15349 PyObject * obj0 = 0 ;
15350 PyObject * obj1 = 0 ;
15351 PyObject * obj2 = 0 ;
15352 PyObject * obj3 = 0 ;
15353 PyObject * obj4 = 0 ;
15354 PyObject * obj5 = 0 ;
15355 PyObject * obj6 = 0 ;
15356 PyObject * obj7 = 0 ;
15357 PyObject * obj8 = 0 ;
15358 PyObject * obj9 = 0 ;
15359 PyObject * obj10 = 0 ;
15360 char * kwnames[] = {
15361 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15362 };
15363
15364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15366 if (!SWIG_IsOK(res1)) {
15367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15368 }
15369 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15370 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15371 if (!SWIG_IsOK(res2)) {
15372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15373 }
15374 arg2 = reinterpret_cast< wxWindow * >(argp2);
15375 if (obj2) {
15376 ecode3 = SWIG_AsVal_int(obj2, &val3);
15377 if (!SWIG_IsOK(ecode3)) {
15378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15379 }
15380 arg3 = static_cast< int >(val3);
15381 }
15382 if (obj3) {
093d3ff1 15383 {
0085ce49
RD
15384 arg4 = wxString_in_helper(obj3);
15385 if (arg4 == NULL) SWIG_fail;
15386 temp4 = true;
093d3ff1 15387 }
0085ce49
RD
15388 }
15389 if (obj4) {
d14a1e28 15390 {
0085ce49
RD
15391 arg5 = &temp5;
15392 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15393 }
0085ce49
RD
15394 }
15395 if (obj5) {
093d3ff1 15396 {
0085ce49
RD
15397 arg6 = &temp6;
15398 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 15399 }
0085ce49
RD
15400 }
15401 if (obj6) {
15402 ecode7 = SWIG_AsVal_long(obj6, &val7);
15403 if (!SWIG_IsOK(ecode7)) {
15404 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15405 }
15406 arg7 = static_cast< long >(val7);
15407 }
15408 if (obj7) {
15409 ecode8 = SWIG_AsVal_int(obj7, &val8);
15410 if (!SWIG_IsOK(ecode8)) {
15411 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15412 }
15413 arg8 = static_cast< int >(val8);
15414 }
15415 if (obj8) {
15416 ecode9 = SWIG_AsVal_int(obj8, &val9);
15417 if (!SWIG_IsOK(ecode9)) {
15418 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15419 }
15420 arg9 = static_cast< int >(val9);
15421 }
15422 if (obj9) {
15423 ecode10 = SWIG_AsVal_int(obj9, &val10);
15424 if (!SWIG_IsOK(ecode10)) {
15425 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15426 }
15427 arg10 = static_cast< int >(val10);
15428 }
15429 if (obj10) {
d14a1e28 15430 {
0085ce49
RD
15431 arg11 = wxString_in_helper(obj10);
15432 if (arg11 == NULL) SWIG_fail;
15433 temp11 = true;
d14a1e28 15434 }
0085ce49
RD
15435 }
15436 {
15437 PyThreadState* __tstate = wxPyBeginAllowThreads();
15438 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15439 wxPyEndAllowThreads(__tstate);
15440 if (PyErr_Occurred()) SWIG_fail;
15441 }
15442 {
15443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15444 }
15445 {
15446 if (temp4)
15447 delete arg4;
15448 }
15449 {
15450 if (temp11)
15451 delete arg11;
15452 }
15453 return resultobj;
15454fail:
15455 {
15456 if (temp4)
15457 delete arg4;
15458 }
15459 {
15460 if (temp11)
15461 delete arg11;
15462 }
15463 return NULL;
d14a1e28
RD
15464}
15465
15466
0085ce49
RD
15467SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15468 PyObject *resultobj = 0;
15469 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15470 int result;
15471 void *argp1 = 0 ;
15472 int res1 = 0 ;
15473 PyObject *swig_obj[1] ;
15474
15475 if (!args) SWIG_fail;
15476 swig_obj[0] = args;
15477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15478 if (!SWIG_IsOK(res1)) {
15479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15480 }
15481 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15482 {
15483 PyThreadState* __tstate = wxPyBeginAllowThreads();
15484 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15485 wxPyEndAllowThreads(__tstate);
15486 if (PyErr_Occurred()) SWIG_fail;
15487 }
15488 resultobj = SWIG_From_int(static_cast< int >(result));
15489 return resultobj;
15490fail:
15491 return NULL;
15492}
15493
15494
15495SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15496 PyObject *resultobj = 0;
15497 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15498 int arg2 ;
15499 void *argp1 = 0 ;
15500 int res1 = 0 ;
15501 int val2 ;
15502 int ecode2 = 0 ;
15503 PyObject * obj0 = 0 ;
15504 PyObject * obj1 = 0 ;
15505 char * kwnames[] = {
15506 (char *) "self",(char *) "value", NULL
15507 };
15508
15509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15511 if (!SWIG_IsOK(res1)) {
15512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15513 }
15514 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15515 ecode2 = SWIG_AsVal_int(obj1, &val2);
15516 if (!SWIG_IsOK(ecode2)) {
15517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15518 }
15519 arg2 = static_cast< int >(val2);
15520 {
15521 PyThreadState* __tstate = wxPyBeginAllowThreads();
15522 (arg1)->SetValue(arg2);
15523 wxPyEndAllowThreads(__tstate);
15524 if (PyErr_Occurred()) SWIG_fail;
15525 }
15526 resultobj = SWIG_Py_Void();
15527 return resultobj;
15528fail:
15529 return NULL;
15530}
15531
15532
15533SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15534 PyObject *resultobj = 0;
15535 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15536 wxString *arg2 = 0 ;
15537 void *argp1 = 0 ;
15538 int res1 = 0 ;
15539 bool temp2 = false ;
15540 PyObject * obj0 = 0 ;
15541 PyObject * obj1 = 0 ;
15542 char * kwnames[] = {
15543 (char *) "self",(char *) "text", NULL
15544 };
15545
15546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15548 if (!SWIG_IsOK(res1)) {
15549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15550 }
15551 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15552 {
15553 arg2 = wxString_in_helper(obj1);
15554 if (arg2 == NULL) SWIG_fail;
15555 temp2 = true;
15556 }
15557 {
15558 PyThreadState* __tstate = wxPyBeginAllowThreads();
15559 (arg1)->SetValue((wxString const &)*arg2);
15560 wxPyEndAllowThreads(__tstate);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 resultobj = SWIG_Py_Void();
15564 {
15565 if (temp2)
15566 delete arg2;
15567 }
15568 return resultobj;
15569fail:
15570 {
15571 if (temp2)
15572 delete arg2;
15573 }
15574 return NULL;
15575}
15576
15577
15578SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15579 PyObject *resultobj = 0;
15580 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15581 int arg2 ;
15582 int arg3 ;
15583 void *argp1 = 0 ;
15584 int res1 = 0 ;
15585 int val2 ;
15586 int ecode2 = 0 ;
15587 int val3 ;
15588 int ecode3 = 0 ;
15589 PyObject * obj0 = 0 ;
15590 PyObject * obj1 = 0 ;
15591 PyObject * obj2 = 0 ;
15592 char * kwnames[] = {
15593 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15594 };
15595
15596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15598 if (!SWIG_IsOK(res1)) {
15599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15600 }
15601 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15602 ecode2 = SWIG_AsVal_int(obj1, &val2);
15603 if (!SWIG_IsOK(ecode2)) {
15604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15605 }
15606 arg2 = static_cast< int >(val2);
15607 ecode3 = SWIG_AsVal_int(obj2, &val3);
15608 if (!SWIG_IsOK(ecode3)) {
15609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15610 }
15611 arg3 = static_cast< int >(val3);
15612 {
15613 PyThreadState* __tstate = wxPyBeginAllowThreads();
15614 (arg1)->SetRange(arg2,arg3);
15615 wxPyEndAllowThreads(__tstate);
15616 if (PyErr_Occurred()) SWIG_fail;
15617 }
15618 resultobj = SWIG_Py_Void();
15619 return resultobj;
15620fail:
15621 return NULL;
d14a1e28
RD
15622}
15623
15624
0085ce49
RD
15625SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15626 PyObject *resultobj = 0;
15627 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15628 int result;
15629 void *argp1 = 0 ;
15630 int res1 = 0 ;
15631 PyObject *swig_obj[1] ;
15632
15633 if (!args) SWIG_fail;
15634 swig_obj[0] = args;
15635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15636 if (!SWIG_IsOK(res1)) {
15637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15638 }
15639 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15640 {
15641 PyThreadState* __tstate = wxPyBeginAllowThreads();
15642 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15643 wxPyEndAllowThreads(__tstate);
15644 if (PyErr_Occurred()) SWIG_fail;
15645 }
15646 resultobj = SWIG_From_int(static_cast< int >(result));
15647 return resultobj;
15648fail:
15649 return NULL;
d14a1e28
RD
15650}
15651
15652
0085ce49
RD
15653SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15654 PyObject *resultobj = 0;
15655 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15656 int result;
15657 void *argp1 = 0 ;
15658 int res1 = 0 ;
15659 PyObject *swig_obj[1] ;
15660
15661 if (!args) SWIG_fail;
15662 swig_obj[0] = args;
15663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15664 if (!SWIG_IsOK(res1)) {
15665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15666 }
15667 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15668 {
15669 PyThreadState* __tstate = wxPyBeginAllowThreads();
15670 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15671 wxPyEndAllowThreads(__tstate);
15672 if (PyErr_Occurred()) SWIG_fail;
15673 }
15674 resultobj = SWIG_From_int(static_cast< int >(result));
15675 return resultobj;
15676fail:
15677 return NULL;
15678}
15679
15680
15681SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15682 PyObject *resultobj = 0;
15683 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15684 long arg2 ;
15685 long arg3 ;
15686 void *argp1 = 0 ;
15687 int res1 = 0 ;
15688 long val2 ;
15689 int ecode2 = 0 ;
15690 long val3 ;
15691 int ecode3 = 0 ;
15692 PyObject * obj0 = 0 ;
15693 PyObject * obj1 = 0 ;
15694 PyObject * obj2 = 0 ;
15695 char * kwnames[] = {
2131d850 15696 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
15697 };
15698
15699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15701 if (!SWIG_IsOK(res1)) {
15702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15703 }
15704 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15705 ecode2 = SWIG_AsVal_long(obj1, &val2);
15706 if (!SWIG_IsOK(ecode2)) {
15707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15708 }
15709 arg2 = static_cast< long >(val2);
15710 ecode3 = SWIG_AsVal_long(obj2, &val3);
15711 if (!SWIG_IsOK(ecode3)) {
15712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15713 }
15714 arg3 = static_cast< long >(val3);
15715 {
15716 PyThreadState* __tstate = wxPyBeginAllowThreads();
15717 (arg1)->SetSelection(arg2,arg3);
15718 wxPyEndAllowThreads(__tstate);
15719 if (PyErr_Occurred()) SWIG_fail;
15720 }
15721 resultobj = SWIG_Py_Void();
15722 return resultobj;
15723fail:
15724 return NULL;
15725}
15726
15727
15728SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15729 PyObject *resultobj = 0;
15730 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15731 SwigValueWrapper<wxVisualAttributes > result;
15732 int val1 ;
15733 int ecode1 = 0 ;
15734 PyObject * obj0 = 0 ;
15735 char * kwnames[] = {
15736 (char *) "variant", NULL
15737 };
15738
15739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15740 if (obj0) {
15741 ecode1 = SWIG_AsVal_int(obj0, &val1);
15742 if (!SWIG_IsOK(ecode1)) {
15743 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15744 }
15745 arg1 = static_cast< wxWindowVariant >(val1);
15746 }
15747 {
15748 if (!wxPyCheckForApp()) SWIG_fail;
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
15750 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15751 wxPyEndAllowThreads(__tstate);
15752 if (PyErr_Occurred()) SWIG_fail;
15753 }
15754 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15755 return resultobj;
15756fail:
15757 return NULL;
d14a1e28
RD
15758}
15759
15760
0085ce49
RD
15761SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15762 PyObject *obj;
15763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15764 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15765 return SWIG_Py_Void();
d14a1e28
RD
15766}
15767
0085ce49
RD
15768SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15769 return SWIG_Python_InitShadowInstance(args);
15770}
d14a1e28 15771
0085ce49
RD
15772SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15773 PyObject *resultobj = 0;
15774 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15775 int arg2 = (int) 0 ;
15776 wxSpinEvent *result = 0 ;
15777 int val1 ;
15778 int ecode1 = 0 ;
15779 int val2 ;
15780 int ecode2 = 0 ;
15781 PyObject * obj0 = 0 ;
15782 PyObject * obj1 = 0 ;
15783 char * kwnames[] = {
15784 (char *) "commandType",(char *) "winid", NULL
15785 };
15786
15787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15788 if (obj0) {
15789 ecode1 = SWIG_AsVal_int(obj0, &val1);
15790 if (!SWIG_IsOK(ecode1)) {
15791 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15792 }
15793 arg1 = static_cast< wxEventType >(val1);
15794 }
15795 if (obj1) {
15796 ecode2 = SWIG_AsVal_int(obj1, &val2);
15797 if (!SWIG_IsOK(ecode2)) {
15798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15799 }
15800 arg2 = static_cast< int >(val2);
15801 }
15802 {
15803 PyThreadState* __tstate = wxPyBeginAllowThreads();
15804 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15805 wxPyEndAllowThreads(__tstate);
15806 if (PyErr_Occurred()) SWIG_fail;
15807 }
15808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15809 return resultobj;
15810fail:
15811 return NULL;
d14a1e28
RD
15812}
15813
15814
0085ce49
RD
15815SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15816 PyObject *resultobj = 0;
15817 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15818 int result;
15819 void *argp1 = 0 ;
15820 int res1 = 0 ;
15821 PyObject *swig_obj[1] ;
15822
15823 if (!args) SWIG_fail;
15824 swig_obj[0] = args;
15825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15826 if (!SWIG_IsOK(res1)) {
15827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15828 }
15829 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15830 {
15831 PyThreadState* __tstate = wxPyBeginAllowThreads();
15832 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15833 wxPyEndAllowThreads(__tstate);
15834 if (PyErr_Occurred()) SWIG_fail;
15835 }
15836 resultobj = SWIG_From_int(static_cast< int >(result));
15837 return resultobj;
15838fail:
15839 return NULL;
15840}
15841
15842
15843SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15844 PyObject *resultobj = 0;
15845 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15846 int arg2 ;
15847 void *argp1 = 0 ;
15848 int res1 = 0 ;
15849 int val2 ;
15850 int ecode2 = 0 ;
15851 PyObject * obj0 = 0 ;
15852 PyObject * obj1 = 0 ;
15853 char * kwnames[] = {
15854 (char *) "self",(char *) "pos", NULL
15855 };
15856
15857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15859 if (!SWIG_IsOK(res1)) {
15860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15861 }
15862 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15863 ecode2 = SWIG_AsVal_int(obj1, &val2);
15864 if (!SWIG_IsOK(ecode2)) {
15865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15866 }
15867 arg2 = static_cast< int >(val2);
15868 {
15869 PyThreadState* __tstate = wxPyBeginAllowThreads();
15870 (arg1)->SetPosition(arg2);
15871 wxPyEndAllowThreads(__tstate);
15872 if (PyErr_Occurred()) SWIG_fail;
15873 }
15874 resultobj = SWIG_Py_Void();
15875 return resultobj;
15876fail:
15877 return NULL;
d14a1e28
RD
15878}
15879
15880
0085ce49
RD
15881SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15882 PyObject *obj;
15883 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15884 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15885 return SWIG_Py_Void();
15886}
15887
15888SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15889 return SWIG_Python_InitShadowInstance(args);
15890}
15891
15892SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15893 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15894 return 1;
15895}
15896
15897
15898SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15899 PyObject *pyobj = 0;
15900
15901 {
d14a1e28 15902#if wxUSE_UNICODE
0085ce49 15903 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 15904#else
0085ce49 15905 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 15906#endif
0085ce49
RD
15907 }
15908 return pyobj;
d14a1e28
RD
15909}
15910
15911
0085ce49
RD
15912SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15913 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15914 return 1;
d14a1e28
RD
15915}
15916
15917
0085ce49
RD
15918SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15919 PyObject *pyobj = 0;
15920
15921 {
15922#if wxUSE_UNICODE
15923 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15924#else
15925 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15926#endif
15927 }
15928 return pyobj;
15929}
15930
15931
15932SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15933 PyObject *resultobj = 0;
15934 wxWindow *arg1 = (wxWindow *) 0 ;
15935 int arg2 = (int) -1 ;
15936 wxString const &arg3_defvalue = wxPyEmptyString ;
15937 wxString *arg3 = (wxString *) &arg3_defvalue ;
15938 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15939 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15940 wxSize const &arg5_defvalue = wxDefaultSize ;
15941 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15942 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15943 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15944 int arg7 = (int) 0 ;
15945 long arg8 = (long) wxRA_HORIZONTAL ;
15946 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15947 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15948 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15949 wxString *arg10 = (wxString *) &arg10_defvalue ;
15950 wxRadioBox *result = 0 ;
15951 void *argp1 = 0 ;
15952 int res1 = 0 ;
15953 int val2 ;
15954 int ecode2 = 0 ;
15955 bool temp3 = false ;
15956 wxPoint temp4 ;
15957 wxSize temp5 ;
15958 bool temp6 = false ;
15959 int val7 ;
15960 int ecode7 = 0 ;
15961 long val8 ;
15962 int ecode8 = 0 ;
15963 void *argp9 = 0 ;
15964 int res9 = 0 ;
15965 bool temp10 = false ;
15966 PyObject * obj0 = 0 ;
15967 PyObject * obj1 = 0 ;
15968 PyObject * obj2 = 0 ;
15969 PyObject * obj3 = 0 ;
15970 PyObject * obj4 = 0 ;
15971 PyObject * obj5 = 0 ;
15972 PyObject * obj6 = 0 ;
15973 PyObject * obj7 = 0 ;
15974 PyObject * obj8 = 0 ;
15975 PyObject * obj9 = 0 ;
15976 char * kwnames[] = {
15977 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15978 };
15979
15980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15982 if (!SWIG_IsOK(res1)) {
15983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15984 }
15985 arg1 = reinterpret_cast< wxWindow * >(argp1);
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_RadioBox" "', expected argument " "2"" of type '" "int""'");
15990 }
15991 arg2 = static_cast< int >(val2);
15992 }
15993 if (obj2) {
093d3ff1 15994 {
0085ce49
RD
15995 arg3 = wxString_in_helper(obj2);
15996 if (arg3 == NULL) SWIG_fail;
15997 temp3 = true;
093d3ff1 15998 }
0085ce49
RD
15999 }
16000 if (obj3) {
093d3ff1 16001 {
0085ce49
RD
16002 arg4 = &temp4;
16003 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 16004 }
0085ce49
RD
16005 }
16006 if (obj4) {
d14a1e28 16007 {
0085ce49
RD
16008 arg5 = &temp5;
16009 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 16010 }
0085ce49
RD
16011 }
16012 if (obj5) {
d14a1e28 16013 {
0085ce49
RD
16014 if (! PySequence_Check(obj5)) {
16015 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16016 SWIG_fail;
16017 }
16018 arg6 = new wxArrayString;
16019 temp6 = true;
16020 int i, len=PySequence_Length(obj5);
16021 for (i=0; i<len; i++) {
16022 PyObject* item = PySequence_GetItem(obj5, i);
16023 wxString* s = wxString_in_helper(item);
16024 if (PyErr_Occurred()) SWIG_fail;
16025 arg6->Add(*s);
16026 delete s;
16027 Py_DECREF(item);
16028 }
d14a1e28 16029 }
0085ce49
RD
16030 }
16031 if (obj6) {
16032 ecode7 = SWIG_AsVal_int(obj6, &val7);
16033 if (!SWIG_IsOK(ecode7)) {
16034 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16035 }
16036 arg7 = static_cast< int >(val7);
16037 }
16038 if (obj7) {
16039 ecode8 = SWIG_AsVal_long(obj7, &val8);
16040 if (!SWIG_IsOK(ecode8)) {
16041 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16042 }
16043 arg8 = static_cast< long >(val8);
16044 }
16045 if (obj8) {
16046 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16047 if (!SWIG_IsOK(res9)) {
16048 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16049 }
16050 if (!argp9) {
16051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 16052 }
0085ce49
RD
16053 arg9 = reinterpret_cast< wxValidator * >(argp9);
16054 }
16055 if (obj9) {
d14a1e28 16056 {
0085ce49
RD
16057 arg10 = wxString_in_helper(obj9);
16058 if (arg10 == NULL) SWIG_fail;
16059 temp10 = true;
d14a1e28 16060 }
0085ce49
RD
16061 }
16062 {
16063 if (!wxPyCheckForApp()) SWIG_fail;
16064 PyThreadState* __tstate = wxPyBeginAllowThreads();
16065 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);
16066 wxPyEndAllowThreads(__tstate);
16067 if (PyErr_Occurred()) SWIG_fail;
16068 }
16069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16070 {
16071 if (temp3)
16072 delete arg3;
16073 }
16074 {
16075 if (temp6) delete arg6;
16076 }
16077 {
16078 if (temp10)
16079 delete arg10;
16080 }
16081 return resultobj;
16082fail:
16083 {
16084 if (temp3)
16085 delete arg3;
16086 }
16087 {
16088 if (temp6) delete arg6;
16089 }
16090 {
16091 if (temp10)
16092 delete arg10;
16093 }
16094 return NULL;
d14a1e28
RD
16095}
16096
16097
0085ce49
RD
16098SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16099 PyObject *resultobj = 0;
16100 wxRadioBox *result = 0 ;
16101
16102 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16103 {
16104 if (!wxPyCheckForApp()) SWIG_fail;
16105 PyThreadState* __tstate = wxPyBeginAllowThreads();
16106 result = (wxRadioBox *)new wxRadioBox();
16107 wxPyEndAllowThreads(__tstate);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16111 return resultobj;
16112fail:
16113 return NULL;
16114}
16115
16116
16117SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16118 PyObject *resultobj = 0;
16119 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16120 wxWindow *arg2 = (wxWindow *) 0 ;
16121 int arg3 = (int) -1 ;
16122 wxString const &arg4_defvalue = wxPyEmptyString ;
16123 wxString *arg4 = (wxString *) &arg4_defvalue ;
16124 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16125 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16126 wxSize const &arg6_defvalue = wxDefaultSize ;
16127 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16128 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16129 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16130 int arg8 = (int) 0 ;
16131 long arg9 = (long) wxRA_HORIZONTAL ;
16132 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16133 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16134 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16135 wxString *arg11 = (wxString *) &arg11_defvalue ;
16136 bool result;
16137 void *argp1 = 0 ;
16138 int res1 = 0 ;
16139 void *argp2 = 0 ;
16140 int res2 = 0 ;
16141 int val3 ;
16142 int ecode3 = 0 ;
16143 bool temp4 = false ;
16144 wxPoint temp5 ;
16145 wxSize temp6 ;
16146 bool temp7 = false ;
16147 int val8 ;
16148 int ecode8 = 0 ;
16149 long val9 ;
16150 int ecode9 = 0 ;
16151 void *argp10 = 0 ;
16152 int res10 = 0 ;
16153 bool temp11 = false ;
16154 PyObject * obj0 = 0 ;
16155 PyObject * obj1 = 0 ;
16156 PyObject * obj2 = 0 ;
16157 PyObject * obj3 = 0 ;
16158 PyObject * obj4 = 0 ;
16159 PyObject * obj5 = 0 ;
16160 PyObject * obj6 = 0 ;
16161 PyObject * obj7 = 0 ;
16162 PyObject * obj8 = 0 ;
16163 PyObject * obj9 = 0 ;
16164 PyObject * obj10 = 0 ;
16165 char * kwnames[] = {
16166 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16167 };
16168
16169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16171 if (!SWIG_IsOK(res1)) {
16172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16173 }
16174 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16175 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16176 if (!SWIG_IsOK(res2)) {
16177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16178 }
16179 arg2 = reinterpret_cast< wxWindow * >(argp2);
16180 if (obj2) {
16181 ecode3 = SWIG_AsVal_int(obj2, &val3);
16182 if (!SWIG_IsOK(ecode3)) {
16183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16184 }
16185 arg3 = static_cast< int >(val3);
16186 }
16187 if (obj3) {
093d3ff1 16188 {
0085ce49
RD
16189 arg4 = wxString_in_helper(obj3);
16190 if (arg4 == NULL) SWIG_fail;
16191 temp4 = true;
093d3ff1 16192 }
0085ce49
RD
16193 }
16194 if (obj4) {
d14a1e28 16195 {
0085ce49
RD
16196 arg5 = &temp5;
16197 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 16198 }
0085ce49
RD
16199 }
16200 if (obj5) {
d14a1e28 16201 {
0085ce49
RD
16202 arg6 = &temp6;
16203 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 16204 }
0085ce49
RD
16205 }
16206 if (obj6) {
d14a1e28 16207 {
0085ce49
RD
16208 if (! PySequence_Check(obj6)) {
16209 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16210 SWIG_fail;
16211 }
16212 arg7 = new wxArrayString;
16213 temp7 = true;
16214 int i, len=PySequence_Length(obj6);
16215 for (i=0; i<len; i++) {
16216 PyObject* item = PySequence_GetItem(obj6, i);
16217 wxString* s = wxString_in_helper(item);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 arg7->Add(*s);
16220 delete s;
16221 Py_DECREF(item);
16222 }
d14a1e28 16223 }
0085ce49
RD
16224 }
16225 if (obj7) {
16226 ecode8 = SWIG_AsVal_int(obj7, &val8);
16227 if (!SWIG_IsOK(ecode8)) {
16228 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16229 }
16230 arg8 = static_cast< int >(val8);
16231 }
16232 if (obj8) {
16233 ecode9 = SWIG_AsVal_long(obj8, &val9);
16234 if (!SWIG_IsOK(ecode9)) {
16235 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16236 }
16237 arg9 = static_cast< long >(val9);
16238 }
16239 if (obj9) {
16240 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16241 if (!SWIG_IsOK(res10)) {
16242 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
4f89f6a3 16243 }
0085ce49
RD
16244 if (!argp10) {
16245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 16246 }
0085ce49
RD
16247 arg10 = reinterpret_cast< wxValidator * >(argp10);
16248 }
16249 if (obj10) {
d14a1e28 16250 {
0085ce49
RD
16251 arg11 = wxString_in_helper(obj10);
16252 if (arg11 == NULL) SWIG_fail;
16253 temp11 = true;
d14a1e28 16254 }
0085ce49
RD
16255 }
16256 {
16257 PyThreadState* __tstate = wxPyBeginAllowThreads();
16258 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);
16259 wxPyEndAllowThreads(__tstate);
16260 if (PyErr_Occurred()) SWIG_fail;
16261 }
16262 {
16263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16264 }
16265 {
16266 if (temp4)
16267 delete arg4;
16268 }
16269 {
16270 if (temp7) delete arg7;
16271 }
16272 {
16273 if (temp11)
16274 delete arg11;
16275 }
16276 return resultobj;
16277fail:
16278 {
16279 if (temp4)
16280 delete arg4;
16281 }
16282 {
16283 if (temp7) delete arg7;
16284 }
16285 {
16286 if (temp11)
16287 delete arg11;
16288 }
16289 return NULL;
16290}
16291
16292
16293SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16294 PyObject *resultobj = 0;
16295 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16296 int arg2 ;
16297 void *argp1 = 0 ;
16298 int res1 = 0 ;
16299 int val2 ;
16300 int ecode2 = 0 ;
16301 PyObject * obj0 = 0 ;
16302 PyObject * obj1 = 0 ;
16303 char * kwnames[] = {
16304 (char *) "self",(char *) "n", NULL
16305 };
16306
16307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16309 if (!SWIG_IsOK(res1)) {
16310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16311 }
16312 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16313 ecode2 = SWIG_AsVal_int(obj1, &val2);
16314 if (!SWIG_IsOK(ecode2)) {
16315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16316 }
16317 arg2 = static_cast< int >(val2);
16318 {
16319 PyThreadState* __tstate = wxPyBeginAllowThreads();
16320 (arg1)->SetSelection(arg2);
16321 wxPyEndAllowThreads(__tstate);
16322 if (PyErr_Occurred()) SWIG_fail;
16323 }
16324 resultobj = SWIG_Py_Void();
16325 return resultobj;
16326fail:
16327 return NULL;
d14a1e28
RD
16328}
16329
16330
0085ce49
RD
16331SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16332 PyObject *resultobj = 0;
16333 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16334 int result;
16335 void *argp1 = 0 ;
16336 int res1 = 0 ;
16337 PyObject *swig_obj[1] ;
16338
16339 if (!args) SWIG_fail;
16340 swig_obj[0] = args;
16341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16342 if (!SWIG_IsOK(res1)) {
16343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16344 }
16345 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16346 {
16347 PyThreadState* __tstate = wxPyBeginAllowThreads();
16348 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16349 wxPyEndAllowThreads(__tstate);
16350 if (PyErr_Occurred()) SWIG_fail;
16351 }
16352 resultobj = SWIG_From_int(static_cast< int >(result));
16353 return resultobj;
16354fail:
16355 return NULL;
d14a1e28
RD
16356}
16357
16358
0085ce49
RD
16359SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16360 PyObject *resultobj = 0;
16361 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16362 wxString result;
16363 void *argp1 = 0 ;
16364 int res1 = 0 ;
16365 PyObject *swig_obj[1] ;
16366
16367 if (!args) SWIG_fail;
16368 swig_obj[0] = args;
16369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16370 if (!SWIG_IsOK(res1)) {
16371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16372 }
16373 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16374 {
16375 PyThreadState* __tstate = wxPyBeginAllowThreads();
16376 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16377 wxPyEndAllowThreads(__tstate);
16378 if (PyErr_Occurred()) SWIG_fail;
16379 }
16380 {
16381#if wxUSE_UNICODE
16382 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16383#else
16384 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16385#endif
16386 }
16387 return resultobj;
16388fail:
16389 return NULL;
16390}
16391
16392
16393SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16394 PyObject *resultobj = 0;
16395 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16396 wxString *arg2 = 0 ;
16397 bool result;
16398 void *argp1 = 0 ;
16399 int res1 = 0 ;
16400 bool temp2 = false ;
16401 PyObject * obj0 = 0 ;
16402 PyObject * obj1 = 0 ;
16403 char * kwnames[] = {
16404 (char *) "self",(char *) "s", NULL
16405 };
16406
16407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16409 if (!SWIG_IsOK(res1)) {
16410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16411 }
16412 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16413 {
16414 arg2 = wxString_in_helper(obj1);
16415 if (arg2 == NULL) SWIG_fail;
16416 temp2 = true;
16417 }
16418 {
16419 PyThreadState* __tstate = wxPyBeginAllowThreads();
16420 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16421 wxPyEndAllowThreads(__tstate);
16422 if (PyErr_Occurred()) SWIG_fail;
16423 }
16424 {
16425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16426 }
16427 {
16428 if (temp2)
16429 delete arg2;
16430 }
16431 return resultobj;
16432fail:
16433 {
16434 if (temp2)
16435 delete arg2;
16436 }
16437 return NULL;
d14a1e28
RD
16438}
16439
16440
0085ce49
RD
16441SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16442 PyObject *resultobj = 0;
16443 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
75219dcb 16444 size_t result;
0085ce49
RD
16445 void *argp1 = 0 ;
16446 int res1 = 0 ;
16447 PyObject *swig_obj[1] ;
16448
16449 if (!args) SWIG_fail;
16450 swig_obj[0] = args;
16451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16452 if (!SWIG_IsOK(res1)) {
16453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16454 }
16455 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16456 {
16457 PyThreadState* __tstate = wxPyBeginAllowThreads();
75219dcb 16458 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
0085ce49
RD
16459 wxPyEndAllowThreads(__tstate);
16460 if (PyErr_Occurred()) SWIG_fail;
16461 }
75219dcb 16462 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
0085ce49
RD
16463 return resultobj;
16464fail:
16465 return NULL;
16466}
16467
16468
16469SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16470 PyObject *resultobj = 0;
16471 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16472 wxString *arg2 = 0 ;
16473 int result;
16474 void *argp1 = 0 ;
16475 int res1 = 0 ;
16476 bool temp2 = false ;
16477 PyObject * obj0 = 0 ;
16478 PyObject * obj1 = 0 ;
16479 char * kwnames[] = {
16480 (char *) "self",(char *) "s", NULL
16481 };
16482
16483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16485 if (!SWIG_IsOK(res1)) {
16486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16487 }
16488 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16489 {
16490 arg2 = wxString_in_helper(obj1);
16491 if (arg2 == NULL) SWIG_fail;
16492 temp2 = true;
16493 }
16494 {
16495 PyThreadState* __tstate = wxPyBeginAllowThreads();
16496 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16497 wxPyEndAllowThreads(__tstate);
16498 if (PyErr_Occurred()) SWIG_fail;
16499 }
16500 resultobj = SWIG_From_int(static_cast< int >(result));
16501 {
16502 if (temp2)
16503 delete arg2;
16504 }
16505 return resultobj;
16506fail:
16507 {
16508 if (temp2)
16509 delete arg2;
16510 }
16511 return NULL;
16512}
16513
16514
16515SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16516 PyObject *resultobj = 0;
16517 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16518 int arg2 ;
16519 wxString result;
16520 void *argp1 = 0 ;
16521 int res1 = 0 ;
16522 int val2 ;
16523 int ecode2 = 0 ;
16524 PyObject * obj0 = 0 ;
16525 PyObject * obj1 = 0 ;
16526 char * kwnames[] = {
16527 (char *) "self",(char *) "n", NULL
16528 };
16529
16530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16532 if (!SWIG_IsOK(res1)) {
16533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16534 }
16535 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16536 ecode2 = SWIG_AsVal_int(obj1, &val2);
16537 if (!SWIG_IsOK(ecode2)) {
16538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16539 }
16540 arg2 = static_cast< int >(val2);
16541 {
16542 PyThreadState* __tstate = wxPyBeginAllowThreads();
16543 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16544 wxPyEndAllowThreads(__tstate);
16545 if (PyErr_Occurred()) SWIG_fail;
16546 }
16547 {
16548#if wxUSE_UNICODE
16549 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16550#else
16551 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16552#endif
16553 }
16554 return resultobj;
16555fail:
16556 return NULL;
16557}
16558
16559
16560SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16561 PyObject *resultobj = 0;
16562 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16563 int arg2 ;
16564 wxString *arg3 = 0 ;
16565 void *argp1 = 0 ;
16566 int res1 = 0 ;
16567 int val2 ;
16568 int ecode2 = 0 ;
16569 bool temp3 = false ;
16570 PyObject * obj0 = 0 ;
16571 PyObject * obj1 = 0 ;
16572 PyObject * obj2 = 0 ;
16573 char * kwnames[] = {
16574 (char *) "self",(char *) "n",(char *) "label", NULL
16575 };
16576
16577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16579 if (!SWIG_IsOK(res1)) {
16580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16581 }
16582 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16583 ecode2 = SWIG_AsVal_int(obj1, &val2);
16584 if (!SWIG_IsOK(ecode2)) {
16585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16586 }
16587 arg2 = static_cast< int >(val2);
16588 {
16589 arg3 = wxString_in_helper(obj2);
16590 if (arg3 == NULL) SWIG_fail;
16591 temp3 = true;
16592 }
16593 {
16594 PyThreadState* __tstate = wxPyBeginAllowThreads();
16595 (arg1)->SetString(arg2,(wxString const &)*arg3);
16596 wxPyEndAllowThreads(__tstate);
16597 if (PyErr_Occurred()) SWIG_fail;
16598 }
16599 resultobj = SWIG_Py_Void();
16600 {
16601 if (temp3)
16602 delete arg3;
16603 }
16604 return resultobj;
16605fail:
16606 {
16607 if (temp3)
16608 delete arg3;
16609 }
16610 return NULL;
16611}
16612
16613
16614SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16615 PyObject *resultobj = 0;
16616 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16617 unsigned int arg2 ;
0085ce49
RD
16618 bool arg3 = (bool) true ;
16619 void *argp1 = 0 ;
16620 int res1 = 0 ;
50f151d7 16621 unsigned int val2 ;
0085ce49
RD
16622 int ecode2 = 0 ;
16623 bool val3 ;
16624 int ecode3 = 0 ;
16625 PyObject * obj0 = 0 ;
16626 PyObject * obj1 = 0 ;
16627 PyObject * obj2 = 0 ;
16628 char * kwnames[] = {
16629 (char *) "self",(char *) "n",(char *) "enable", NULL
16630 };
16631
16632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16634 if (!SWIG_IsOK(res1)) {
16635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16636 }
16637 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16638 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 16639 if (!SWIG_IsOK(ecode2)) {
50f151d7 16640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 16641 }
50f151d7 16642 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
16643 if (obj2) {
16644 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16645 if (!SWIG_IsOK(ecode3)) {
16646 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16647 }
16648 arg3 = static_cast< bool >(val3);
16649 }
16650 {
16651 PyThreadState* __tstate = wxPyBeginAllowThreads();
16652 (arg1)->Enable(arg2,arg3);
16653 wxPyEndAllowThreads(__tstate);
16654 if (PyErr_Occurred()) SWIG_fail;
16655 }
16656 resultobj = SWIG_Py_Void();
16657 return resultobj;
16658fail:
16659 return NULL;
16660}
16661
16662
16663SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16664 PyObject *resultobj = 0;
16665 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16666 unsigned int arg2 ;
0085ce49
RD
16667 bool arg3 = (bool) true ;
16668 void *argp1 = 0 ;
16669 int res1 = 0 ;
50f151d7 16670 unsigned int val2 ;
0085ce49
RD
16671 int ecode2 = 0 ;
16672 bool val3 ;
16673 int ecode3 = 0 ;
16674 PyObject * obj0 = 0 ;
16675 PyObject * obj1 = 0 ;
16676 PyObject * obj2 = 0 ;
16677 char * kwnames[] = {
16678 (char *) "self",(char *) "n",(char *) "show", NULL
16679 };
16680
16681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16683 if (!SWIG_IsOK(res1)) {
16684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16685 }
16686 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16687 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 16688 if (!SWIG_IsOK(ecode2)) {
50f151d7 16689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 16690 }
50f151d7 16691 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
16692 if (obj2) {
16693 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16694 if (!SWIG_IsOK(ecode3)) {
16695 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16696 }
16697 arg3 = static_cast< bool >(val3);
16698 }
16699 {
16700 PyThreadState* __tstate = wxPyBeginAllowThreads();
16701 (arg1)->Show(arg2,arg3);
16702 wxPyEndAllowThreads(__tstate);
16703 if (PyErr_Occurred()) SWIG_fail;
16704 }
16705 resultobj = SWIG_Py_Void();
16706 return resultobj;
16707fail:
16708 return NULL;
d14a1e28
RD
16709}
16710
16711
50f151d7
RD
16712SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16713 PyObject *resultobj = 0;
16714 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16715 unsigned int arg2 ;
16716 bool result;
16717 void *argp1 = 0 ;
16718 int res1 = 0 ;
16719 unsigned int val2 ;
16720 int ecode2 = 0 ;
16721 PyObject * obj0 = 0 ;
16722 PyObject * obj1 = 0 ;
16723 char * kwnames[] = {
16724 (char *) "self",(char *) "n", NULL
16725 };
16726
16727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16729 if (!SWIG_IsOK(res1)) {
16730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16731 }
16732 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16733 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16734 if (!SWIG_IsOK(ecode2)) {
16735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16736 }
16737 arg2 = static_cast< unsigned int >(val2);
16738 {
16739 PyThreadState* __tstate = wxPyBeginAllowThreads();
16740 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16741 wxPyEndAllowThreads(__tstate);
16742 if (PyErr_Occurred()) SWIG_fail;
16743 }
16744 {
16745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16746 }
16747 return resultobj;
16748fail:
16749 return NULL;
16750}
16751
16752
16753SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16754 PyObject *resultobj = 0;
16755 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16756 unsigned int arg2 ;
16757 bool result;
16758 void *argp1 = 0 ;
16759 int res1 = 0 ;
16760 unsigned int val2 ;
16761 int ecode2 = 0 ;
16762 PyObject * obj0 = 0 ;
16763 PyObject * obj1 = 0 ;
16764 char * kwnames[] = {
16765 (char *) "self",(char *) "n", NULL
16766 };
16767
16768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) 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_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16772 }
16773 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16774 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16775 if (!SWIG_IsOK(ecode2)) {
16776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16777 }
16778 arg2 = static_cast< unsigned int >(val2);
16779 {
16780 PyThreadState* __tstate = wxPyBeginAllowThreads();
16781 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16782 wxPyEndAllowThreads(__tstate);
16783 if (PyErr_Occurred()) SWIG_fail;
16784 }
16785 {
16786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16787 }
16788 return resultobj;
16789fail:
16790 return NULL;
16791}
16792
16793
0085ce49
RD
16794SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16795 PyObject *resultobj = 0;
16796 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16797 unsigned int result;
0085ce49
RD
16798 void *argp1 = 0 ;
16799 int res1 = 0 ;
16800 PyObject *swig_obj[1] ;
16801
16802 if (!args) SWIG_fail;
16803 swig_obj[0] = args;
16804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16805 if (!SWIG_IsOK(res1)) {
16806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16807 }
16808 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16809 {
16810 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16811 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
0085ce49
RD
16812 wxPyEndAllowThreads(__tstate);
16813 if (PyErr_Occurred()) SWIG_fail;
16814 }
50f151d7 16815 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16816 return resultobj;
16817fail:
16818 return NULL;
d14a1e28
RD
16819}
16820
16821
0085ce49
RD
16822SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16823 PyObject *resultobj = 0;
16824 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16825 unsigned int result;
0085ce49
RD
16826 void *argp1 = 0 ;
16827 int res1 = 0 ;
16828 PyObject *swig_obj[1] ;
16829
16830 if (!args) SWIG_fail;
16831 swig_obj[0] = args;
16832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16833 if (!SWIG_IsOK(res1)) {
16834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16835 }
16836 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16837 {
16838 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16839 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
0085ce49
RD
16840 wxPyEndAllowThreads(__tstate);
16841 if (PyErr_Occurred()) SWIG_fail;
16842 }
50f151d7 16843 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16844 return resultobj;
16845fail:
16846 return NULL;
16847}
16848
16849
16850SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16851 PyObject *resultobj = 0;
16852 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16853 int arg2 ;
16854 wxDirection arg3 ;
16855 long arg4 ;
16856 int result;
16857 void *argp1 = 0 ;
16858 int res1 = 0 ;
16859 int val2 ;
16860 int ecode2 = 0 ;
16861 int val3 ;
16862 int ecode3 = 0 ;
16863 long val4 ;
16864 int ecode4 = 0 ;
16865 PyObject * obj0 = 0 ;
16866 PyObject * obj1 = 0 ;
16867 PyObject * obj2 = 0 ;
16868 PyObject * obj3 = 0 ;
16869 char * kwnames[] = {
16870 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16871 };
16872
16873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16875 if (!SWIG_IsOK(res1)) {
16876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16877 }
16878 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16879 ecode2 = SWIG_AsVal_int(obj1, &val2);
16880 if (!SWIG_IsOK(ecode2)) {
16881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16882 }
16883 arg2 = static_cast< int >(val2);
16884 ecode3 = SWIG_AsVal_int(obj2, &val3);
16885 if (!SWIG_IsOK(ecode3)) {
16886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16887 }
16888 arg3 = static_cast< wxDirection >(val3);
16889 ecode4 = SWIG_AsVal_long(obj3, &val4);
16890 if (!SWIG_IsOK(ecode4)) {
16891 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16892 }
16893 arg4 = static_cast< long >(val4);
16894 {
16895 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16896 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
0085ce49
RD
16897 wxPyEndAllowThreads(__tstate);
16898 if (PyErr_Occurred()) SWIG_fail;
16899 }
16900 resultobj = SWIG_From_int(static_cast< int >(result));
16901 return resultobj;
16902fail:
16903 return NULL;
16904}
16905
16906
01f6b6d3
RD
16907SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16908 PyObject *resultobj = 0;
16909 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16910 unsigned int arg2 ;
16911 wxString *arg3 = 0 ;
16912 void *argp1 = 0 ;
16913 int res1 = 0 ;
16914 unsigned int val2 ;
16915 int ecode2 = 0 ;
16916 bool temp3 = false ;
16917 PyObject * obj0 = 0 ;
16918 PyObject * obj1 = 0 ;
16919 PyObject * obj2 = 0 ;
16920 char * kwnames[] = {
16921 (char *) "self",(char *) "item",(char *) "text", NULL
16922 };
16923
16924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16926 if (!SWIG_IsOK(res1)) {
16927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16928 }
16929 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16930 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16931 if (!SWIG_IsOK(ecode2)) {
16932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16933 }
16934 arg2 = static_cast< unsigned int >(val2);
16935 {
16936 arg3 = wxString_in_helper(obj2);
16937 if (arg3 == NULL) SWIG_fail;
16938 temp3 = true;
16939 }
16940 {
16941 PyThreadState* __tstate = wxPyBeginAllowThreads();
16942 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16943 wxPyEndAllowThreads(__tstate);
16944 if (PyErr_Occurred()) SWIG_fail;
16945 }
16946 resultobj = SWIG_Py_Void();
16947 {
16948 if (temp3)
16949 delete arg3;
16950 }
16951 return resultobj;
16952fail:
16953 {
16954 if (temp3)
16955 delete arg3;
16956 }
16957 return NULL;
16958}
16959
16960
16961SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16962 PyObject *resultobj = 0;
16963 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16964 unsigned int arg2 ;
16965 wxToolTip *result = 0 ;
16966 void *argp1 = 0 ;
16967 int res1 = 0 ;
16968 unsigned int val2 ;
16969 int ecode2 = 0 ;
16970 PyObject * obj0 = 0 ;
16971 PyObject * obj1 = 0 ;
16972 char * kwnames[] = {
16973 (char *) "self",(char *) "item", NULL
16974 };
16975
16976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16978 if (!SWIG_IsOK(res1)) {
16979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16980 }
16981 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16982 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16983 if (!SWIG_IsOK(ecode2)) {
16984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16985 }
16986 arg2 = static_cast< unsigned int >(val2);
16987 {
16988 PyThreadState* __tstate = wxPyBeginAllowThreads();
16989 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16990 wxPyEndAllowThreads(__tstate);
16991 if (PyErr_Occurred()) SWIG_fail;
16992 }
16993 {
16994 resultobj = wxPyMake_wxObject(result, (bool)0);
16995 }
16996 return resultobj;
16997fail:
16998 return NULL;
16999}
17000
17001
b850e7f3
RD
17002SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17003 PyObject *resultobj = 0;
17004 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17005 unsigned int arg2 ;
17006 wxString *arg3 = 0 ;
17007 void *argp1 = 0 ;
17008 int res1 = 0 ;
17009 unsigned int val2 ;
17010 int ecode2 = 0 ;
17011 bool temp3 = false ;
17012 PyObject * obj0 = 0 ;
17013 PyObject * obj1 = 0 ;
17014 PyObject * obj2 = 0 ;
17015 char * kwnames[] = {
17016 (char *) "self",(char *) "n",(char *) "helpText", NULL
17017 };
17018
17019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17021 if (!SWIG_IsOK(res1)) {
17022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17023 }
17024 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17025 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17026 if (!SWIG_IsOK(ecode2)) {
17027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17028 }
17029 arg2 = static_cast< unsigned int >(val2);
17030 {
17031 arg3 = wxString_in_helper(obj2);
17032 if (arg3 == NULL) SWIG_fail;
17033 temp3 = true;
17034 }
17035 {
17036 PyThreadState* __tstate = wxPyBeginAllowThreads();
17037 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17038 wxPyEndAllowThreads(__tstate);
17039 if (PyErr_Occurred()) SWIG_fail;
17040 }
17041 resultobj = SWIG_Py_Void();
17042 {
17043 if (temp3)
17044 delete arg3;
17045 }
17046 return resultobj;
17047fail:
17048 {
17049 if (temp3)
17050 delete arg3;
17051 }
17052 return NULL;
17053}
17054
17055
17056SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17057 PyObject *resultobj = 0;
17058 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17059 unsigned int arg2 ;
17060 wxString result;
17061 void *argp1 = 0 ;
17062 int res1 = 0 ;
17063 unsigned int val2 ;
17064 int ecode2 = 0 ;
17065 PyObject * obj0 = 0 ;
17066 PyObject * obj1 = 0 ;
17067 char * kwnames[] = {
17068 (char *) "self",(char *) "n", NULL
17069 };
17070
17071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17073 if (!SWIG_IsOK(res1)) {
17074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17075 }
17076 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17077 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17078 if (!SWIG_IsOK(ecode2)) {
17079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17080 }
17081 arg2 = static_cast< unsigned int >(val2);
17082 {
17083 PyThreadState* __tstate = wxPyBeginAllowThreads();
17084 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17085 wxPyEndAllowThreads(__tstate);
17086 if (PyErr_Occurred()) SWIG_fail;
17087 }
17088 {
17089#if wxUSE_UNICODE
17090 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17091#else
17092 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17093#endif
17094 }
17095 return resultobj;
17096fail:
17097 return NULL;
17098}
17099
17100
0085ce49
RD
17101SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17102 PyObject *resultobj = 0;
17103 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17104 SwigValueWrapper<wxVisualAttributes > result;
17105 int val1 ;
17106 int ecode1 = 0 ;
17107 PyObject * obj0 = 0 ;
17108 char * kwnames[] = {
17109 (char *) "variant", NULL
17110 };
17111
17112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17113 if (obj0) {
17114 ecode1 = SWIG_AsVal_int(obj0, &val1);
17115 if (!SWIG_IsOK(ecode1)) {
17116 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17117 }
17118 arg1 = static_cast< wxWindowVariant >(val1);
17119 }
17120 {
17121 if (!wxPyCheckForApp()) SWIG_fail;
17122 PyThreadState* __tstate = wxPyBeginAllowThreads();
17123 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17124 wxPyEndAllowThreads(__tstate);
17125 if (PyErr_Occurred()) SWIG_fail;
17126 }
17127 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17128 return resultobj;
17129fail:
17130 return NULL;
17131}
17132
17133
17134SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17135 PyObject *obj;
17136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17137 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17138 return SWIG_Py_Void();
17139}
17140
17141SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17142 return SWIG_Python_InitShadowInstance(args);
17143}
17144
17145SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17146 PyObject *resultobj = 0;
17147 wxWindow *arg1 = (wxWindow *) 0 ;
17148 int arg2 = (int) -1 ;
17149 wxString const &arg3_defvalue = wxPyEmptyString ;
17150 wxString *arg3 = (wxString *) &arg3_defvalue ;
17151 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17152 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17153 wxSize const &arg5_defvalue = wxDefaultSize ;
17154 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17155 long arg6 = (long) 0 ;
17156 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17157 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17158 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17159 wxString *arg8 = (wxString *) &arg8_defvalue ;
17160 wxRadioButton *result = 0 ;
17161 void *argp1 = 0 ;
17162 int res1 = 0 ;
17163 int val2 ;
17164 int ecode2 = 0 ;
17165 bool temp3 = false ;
17166 wxPoint temp4 ;
17167 wxSize temp5 ;
17168 long val6 ;
17169 int ecode6 = 0 ;
17170 void *argp7 = 0 ;
17171 int res7 = 0 ;
17172 bool temp8 = false ;
17173 PyObject * obj0 = 0 ;
17174 PyObject * obj1 = 0 ;
17175 PyObject * obj2 = 0 ;
17176 PyObject * obj3 = 0 ;
17177 PyObject * obj4 = 0 ;
17178 PyObject * obj5 = 0 ;
17179 PyObject * obj6 = 0 ;
17180 PyObject * obj7 = 0 ;
17181 char * kwnames[] = {
17182 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17183 };
17184
17185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17187 if (!SWIG_IsOK(res1)) {
17188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17189 }
17190 arg1 = reinterpret_cast< wxWindow * >(argp1);
17191 if (obj1) {
17192 ecode2 = SWIG_AsVal_int(obj1, &val2);
17193 if (!SWIG_IsOK(ecode2)) {
17194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17195 }
17196 arg2 = static_cast< int >(val2);
17197 }
17198 if (obj2) {
d14a1e28 17199 {
0085ce49
RD
17200 arg3 = wxString_in_helper(obj2);
17201 if (arg3 == NULL) SWIG_fail;
17202 temp3 = true;
d14a1e28 17203 }
0085ce49
RD
17204 }
17205 if (obj3) {
d14a1e28 17206 {
0085ce49
RD
17207 arg4 = &temp4;
17208 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 17209 }
0085ce49
RD
17210 }
17211 if (obj4) {
d14a1e28 17212 {
0085ce49
RD
17213 arg5 = &temp5;
17214 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17215 }
17216 }
17217 if (obj5) {
17218 ecode6 = SWIG_AsVal_long(obj5, &val6);
17219 if (!SWIG_IsOK(ecode6)) {
17220 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17221 }
17222 arg6 = static_cast< long >(val6);
17223 }
17224 if (obj6) {
17225 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17226 if (!SWIG_IsOK(res7)) {
17227 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 17228 }
0085ce49
RD
17229 if (!argp7) {
17230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17231 }
17232 arg7 = reinterpret_cast< wxValidator * >(argp7);
17233 }
17234 if (obj7) {
d14a1e28 17235 {
0085ce49
RD
17236 arg8 = wxString_in_helper(obj7);
17237 if (arg8 == NULL) SWIG_fail;
17238 temp8 = true;
d14a1e28 17239 }
0085ce49
RD
17240 }
17241 {
17242 if (!wxPyCheckForApp()) SWIG_fail;
17243 PyThreadState* __tstate = wxPyBeginAllowThreads();
17244 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17245 wxPyEndAllowThreads(__tstate);
17246 if (PyErr_Occurred()) SWIG_fail;
17247 }
17248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17249 {
17250 if (temp3)
17251 delete arg3;
17252 }
17253 {
17254 if (temp8)
17255 delete arg8;
17256 }
17257 return resultobj;
17258fail:
17259 {
17260 if (temp3)
17261 delete arg3;
17262 }
17263 {
17264 if (temp8)
17265 delete arg8;
17266 }
17267 return NULL;
d14a1e28
RD
17268}
17269
17270
0085ce49
RD
17271SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17272 PyObject *resultobj = 0;
17273 wxRadioButton *result = 0 ;
17274
17275 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17276 {
17277 if (!wxPyCheckForApp()) SWIG_fail;
17278 PyThreadState* __tstate = wxPyBeginAllowThreads();
17279 result = (wxRadioButton *)new wxRadioButton();
17280 wxPyEndAllowThreads(__tstate);
17281 if (PyErr_Occurred()) SWIG_fail;
17282 }
17283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17284 return resultobj;
17285fail:
17286 return NULL;
17287}
17288
17289
17290SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17291 PyObject *resultobj = 0;
17292 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17293 wxWindow *arg2 = (wxWindow *) 0 ;
17294 int arg3 = (int) -1 ;
17295 wxString const &arg4_defvalue = wxPyEmptyString ;
17296 wxString *arg4 = (wxString *) &arg4_defvalue ;
17297 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17298 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17299 wxSize const &arg6_defvalue = wxDefaultSize ;
17300 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17301 long arg7 = (long) 0 ;
17302 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17303 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17304 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17305 wxString *arg9 = (wxString *) &arg9_defvalue ;
17306 bool result;
17307 void *argp1 = 0 ;
17308 int res1 = 0 ;
17309 void *argp2 = 0 ;
17310 int res2 = 0 ;
17311 int val3 ;
17312 int ecode3 = 0 ;
17313 bool temp4 = false ;
17314 wxPoint temp5 ;
17315 wxSize temp6 ;
17316 long val7 ;
17317 int ecode7 = 0 ;
17318 void *argp8 = 0 ;
17319 int res8 = 0 ;
17320 bool temp9 = false ;
17321 PyObject * obj0 = 0 ;
17322 PyObject * obj1 = 0 ;
17323 PyObject * obj2 = 0 ;
17324 PyObject * obj3 = 0 ;
17325 PyObject * obj4 = 0 ;
17326 PyObject * obj5 = 0 ;
17327 PyObject * obj6 = 0 ;
17328 PyObject * obj7 = 0 ;
17329 PyObject * obj8 = 0 ;
17330 char * kwnames[] = {
17331 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17332 };
17333
17334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17336 if (!SWIG_IsOK(res1)) {
17337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17338 }
17339 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17340 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17341 if (!SWIG_IsOK(res2)) {
17342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17343 }
17344 arg2 = reinterpret_cast< wxWindow * >(argp2);
17345 if (obj2) {
17346 ecode3 = SWIG_AsVal_int(obj2, &val3);
17347 if (!SWIG_IsOK(ecode3)) {
17348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17349 }
17350 arg3 = static_cast< int >(val3);
17351 }
17352 if (obj3) {
d14a1e28 17353 {
0085ce49
RD
17354 arg4 = wxString_in_helper(obj3);
17355 if (arg4 == NULL) SWIG_fail;
17356 temp4 = true;
d14a1e28 17357 }
0085ce49
RD
17358 }
17359 if (obj4) {
d14a1e28 17360 {
0085ce49
RD
17361 arg5 = &temp5;
17362 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 17363 }
0085ce49
RD
17364 }
17365 if (obj5) {
d14a1e28 17366 {
0085ce49
RD
17367 arg6 = &temp6;
17368 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17369 }
17370 }
17371 if (obj6) {
17372 ecode7 = SWIG_AsVal_long(obj6, &val7);
17373 if (!SWIG_IsOK(ecode7)) {
17374 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17375 }
17376 arg7 = static_cast< long >(val7);
17377 }
17378 if (obj7) {
17379 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17380 if (!SWIG_IsOK(res8)) {
17381 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17382 }
17383 if (!argp8) {
17384 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 17385 }
0085ce49
RD
17386 arg8 = reinterpret_cast< wxValidator * >(argp8);
17387 }
17388 if (obj8) {
d14a1e28 17389 {
0085ce49
RD
17390 arg9 = wxString_in_helper(obj8);
17391 if (arg9 == NULL) SWIG_fail;
17392 temp9 = true;
d14a1e28 17393 }
0085ce49
RD
17394 }
17395 {
17396 PyThreadState* __tstate = wxPyBeginAllowThreads();
17397 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17398 wxPyEndAllowThreads(__tstate);
17399 if (PyErr_Occurred()) SWIG_fail;
17400 }
17401 {
17402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17403 }
17404 {
17405 if (temp4)
17406 delete arg4;
17407 }
17408 {
17409 if (temp9)
17410 delete arg9;
17411 }
17412 return resultobj;
17413fail:
17414 {
17415 if (temp4)
17416 delete arg4;
17417 }
17418 {
17419 if (temp9)
17420 delete arg9;
17421 }
17422 return NULL;
d14a1e28
RD
17423}
17424
17425
0085ce49
RD
17426SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17427 PyObject *resultobj = 0;
17428 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17429 bool result;
17430 void *argp1 = 0 ;
17431 int res1 = 0 ;
17432 PyObject *swig_obj[1] ;
17433
17434 if (!args) SWIG_fail;
17435 swig_obj[0] = args;
17436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17437 if (!SWIG_IsOK(res1)) {
17438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17439 }
17440 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17441 {
17442 PyThreadState* __tstate = wxPyBeginAllowThreads();
17443 result = (bool)(arg1)->GetValue();
17444 wxPyEndAllowThreads(__tstate);
17445 if (PyErr_Occurred()) SWIG_fail;
17446 }
17447 {
17448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17449 }
17450 return resultobj;
17451fail:
17452 return NULL;
17453}
17454
17455
17456SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17457 PyObject *resultobj = 0;
17458 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17459 bool arg2 ;
17460 void *argp1 = 0 ;
17461 int res1 = 0 ;
17462 bool val2 ;
17463 int ecode2 = 0 ;
17464 PyObject * obj0 = 0 ;
17465 PyObject * obj1 = 0 ;
17466 char * kwnames[] = {
17467 (char *) "self",(char *) "value", NULL
17468 };
17469
17470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17472 if (!SWIG_IsOK(res1)) {
17473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17474 }
17475 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17476 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17477 if (!SWIG_IsOK(ecode2)) {
17478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17479 }
17480 arg2 = static_cast< bool >(val2);
17481 {
17482 PyThreadState* __tstate = wxPyBeginAllowThreads();
17483 (arg1)->SetValue(arg2);
17484 wxPyEndAllowThreads(__tstate);
17485 if (PyErr_Occurred()) SWIG_fail;
17486 }
17487 resultobj = SWIG_Py_Void();
17488 return resultobj;
17489fail:
17490 return NULL;
17491}
17492
17493
17494SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17495 PyObject *resultobj = 0;
17496 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17497 SwigValueWrapper<wxVisualAttributes > result;
17498 int val1 ;
17499 int ecode1 = 0 ;
17500 PyObject * obj0 = 0 ;
17501 char * kwnames[] = {
17502 (char *) "variant", NULL
17503 };
17504
17505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17506 if (obj0) {
17507 ecode1 = SWIG_AsVal_int(obj0, &val1);
17508 if (!SWIG_IsOK(ecode1)) {
17509 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17510 }
17511 arg1 = static_cast< wxWindowVariant >(val1);
17512 }
17513 {
17514 if (!wxPyCheckForApp()) SWIG_fail;
17515 PyThreadState* __tstate = wxPyBeginAllowThreads();
17516 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17517 wxPyEndAllowThreads(__tstate);
17518 if (PyErr_Occurred()) SWIG_fail;
17519 }
17520 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17521 return resultobj;
17522fail:
17523 return NULL;
d14a1e28
RD
17524}
17525
17526
0085ce49
RD
17527SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17528 PyObject *obj;
17529 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17530 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17531 return SWIG_Py_Void();
17532}
17533
17534SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17535 return SWIG_Python_InitShadowInstance(args);
17536}
17537
17538SWIGINTERN int SliderNameStr_set(PyObject *) {
17539 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17540 return 1;
17541}
17542
17543
17544SWIGINTERN PyObject *SliderNameStr_get(void) {
17545 PyObject *pyobj = 0;
17546
17547 {
17548#if wxUSE_UNICODE
17549 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17550#else
17551 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17552#endif
17553 }
17554 return pyobj;
17555}
17556
17557
17558SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17559 PyObject *resultobj = 0;
17560 wxWindow *arg1 = (wxWindow *) 0 ;
17561 int arg2 = (int) -1 ;
17562 int arg3 = (int) 0 ;
17563 int arg4 = (int) 0 ;
17564 int arg5 = (int) 100 ;
17565 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17566 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17567 wxSize const &arg7_defvalue = wxDefaultSize ;
17568 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17569 long arg8 = (long) wxSL_HORIZONTAL ;
17570 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17571 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17572 wxString const &arg10_defvalue = wxPySliderNameStr ;
17573 wxString *arg10 = (wxString *) &arg10_defvalue ;
17574 wxSlider *result = 0 ;
17575 void *argp1 = 0 ;
17576 int res1 = 0 ;
17577 int val2 ;
17578 int ecode2 = 0 ;
17579 int val3 ;
17580 int ecode3 = 0 ;
17581 int val4 ;
17582 int ecode4 = 0 ;
17583 int val5 ;
17584 int ecode5 = 0 ;
17585 wxPoint temp6 ;
17586 wxSize temp7 ;
17587 long val8 ;
17588 int ecode8 = 0 ;
17589 void *argp9 = 0 ;
17590 int res9 = 0 ;
17591 bool temp10 = false ;
17592 PyObject * obj0 = 0 ;
17593 PyObject * obj1 = 0 ;
17594 PyObject * obj2 = 0 ;
17595 PyObject * obj3 = 0 ;
17596 PyObject * obj4 = 0 ;
17597 PyObject * obj5 = 0 ;
17598 PyObject * obj6 = 0 ;
17599 PyObject * obj7 = 0 ;
17600 PyObject * obj8 = 0 ;
17601 PyObject * obj9 = 0 ;
17602 char * kwnames[] = {
17603 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17604 };
17605
17606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17608 if (!SWIG_IsOK(res1)) {
17609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17610 }
17611 arg1 = reinterpret_cast< wxWindow * >(argp1);
17612 if (obj1) {
17613 ecode2 = SWIG_AsVal_int(obj1, &val2);
17614 if (!SWIG_IsOK(ecode2)) {
17615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17616 }
17617 arg2 = static_cast< int >(val2);
17618 }
17619 if (obj2) {
17620 ecode3 = SWIG_AsVal_int(obj2, &val3);
17621 if (!SWIG_IsOK(ecode3)) {
17622 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17623 }
17624 arg3 = static_cast< int >(val3);
17625 }
17626 if (obj3) {
17627 ecode4 = SWIG_AsVal_int(obj3, &val4);
17628 if (!SWIG_IsOK(ecode4)) {
17629 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17630 }
17631 arg4 = static_cast< int >(val4);
17632 }
17633 if (obj4) {
17634 ecode5 = SWIG_AsVal_int(obj4, &val5);
17635 if (!SWIG_IsOK(ecode5)) {
17636 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17637 }
17638 arg5 = static_cast< int >(val5);
17639 }
17640 if (obj5) {
093d3ff1 17641 {
0085ce49
RD
17642 arg6 = &temp6;
17643 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 17644 }
0085ce49
RD
17645 }
17646 if (obj6) {
093d3ff1 17647 {
0085ce49
RD
17648 arg7 = &temp7;
17649 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
093d3ff1 17650 }
0085ce49
RD
17651 }
17652 if (obj7) {
17653 ecode8 = SWIG_AsVal_long(obj7, &val8);
17654 if (!SWIG_IsOK(ecode8)) {
17655 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17656 }
17657 arg8 = static_cast< long >(val8);
17658 }
17659 if (obj8) {
17660 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17661 if (!SWIG_IsOK(res9)) {
17662 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17663 }
0085ce49
RD
17664 if (!argp9) {
17665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17666 }
0085ce49
RD
17667 arg9 = reinterpret_cast< wxValidator * >(argp9);
17668 }
17669 if (obj9) {
4f89f6a3 17670 {
0085ce49
RD
17671 arg10 = wxString_in_helper(obj9);
17672 if (arg10 == NULL) SWIG_fail;
17673 temp10 = true;
4f89f6a3 17674 }
0085ce49
RD
17675 }
17676 {
17677 if (!wxPyCheckForApp()) SWIG_fail;
17678 PyThreadState* __tstate = wxPyBeginAllowThreads();
17679 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17680 wxPyEndAllowThreads(__tstate);
17681 if (PyErr_Occurred()) SWIG_fail;
17682 }
17683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17684 {
17685 if (temp10)
17686 delete arg10;
17687 }
17688 return resultobj;
17689fail:
17690 {
17691 if (temp10)
17692 delete arg10;
17693 }
17694 return NULL;
d14a1e28
RD
17695}
17696
17697
0085ce49
RD
17698SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17699 PyObject *resultobj = 0;
17700 wxSlider *result = 0 ;
17701
17702 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17703 {
17704 if (!wxPyCheckForApp()) SWIG_fail;
17705 PyThreadState* __tstate = wxPyBeginAllowThreads();
17706 result = (wxSlider *)new wxSlider();
17707 wxPyEndAllowThreads(__tstate);
17708 if (PyErr_Occurred()) SWIG_fail;
17709 }
17710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17711 return resultobj;
17712fail:
17713 return NULL;
17714}
17715
17716
17717SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17718 PyObject *resultobj = 0;
17719 wxSlider *arg1 = (wxSlider *) 0 ;
17720 wxWindow *arg2 = (wxWindow *) 0 ;
17721 int arg3 = (int) -1 ;
17722 int arg4 = (int) 0 ;
17723 int arg5 = (int) 0 ;
17724 int arg6 = (int) 100 ;
17725 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17726 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17727 wxSize const &arg8_defvalue = wxDefaultSize ;
17728 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17729 long arg9 = (long) wxSL_HORIZONTAL ;
17730 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17731 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17732 wxString const &arg11_defvalue = wxPySliderNameStr ;
17733 wxString *arg11 = (wxString *) &arg11_defvalue ;
17734 bool result;
17735 void *argp1 = 0 ;
17736 int res1 = 0 ;
17737 void *argp2 = 0 ;
17738 int res2 = 0 ;
17739 int val3 ;
17740 int ecode3 = 0 ;
17741 int val4 ;
17742 int ecode4 = 0 ;
17743 int val5 ;
17744 int ecode5 = 0 ;
17745 int val6 ;
17746 int ecode6 = 0 ;
17747 wxPoint temp7 ;
17748 wxSize temp8 ;
17749 long val9 ;
17750 int ecode9 = 0 ;
17751 void *argp10 = 0 ;
17752 int res10 = 0 ;
17753 bool temp11 = false ;
17754 PyObject * obj0 = 0 ;
17755 PyObject * obj1 = 0 ;
17756 PyObject * obj2 = 0 ;
17757 PyObject * obj3 = 0 ;
17758 PyObject * obj4 = 0 ;
17759 PyObject * obj5 = 0 ;
17760 PyObject * obj6 = 0 ;
17761 PyObject * obj7 = 0 ;
17762 PyObject * obj8 = 0 ;
17763 PyObject * obj9 = 0 ;
17764 PyObject * obj10 = 0 ;
17765 char * kwnames[] = {
17766 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17767 };
17768
17769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17771 if (!SWIG_IsOK(res1)) {
17772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17773 }
17774 arg1 = reinterpret_cast< wxSlider * >(argp1);
17775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17776 if (!SWIG_IsOK(res2)) {
17777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17778 }
17779 arg2 = reinterpret_cast< wxWindow * >(argp2);
17780 if (obj2) {
17781 ecode3 = SWIG_AsVal_int(obj2, &val3);
17782 if (!SWIG_IsOK(ecode3)) {
17783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17784 }
17785 arg3 = static_cast< int >(val3);
17786 }
17787 if (obj3) {
17788 ecode4 = SWIG_AsVal_int(obj3, &val4);
17789 if (!SWIG_IsOK(ecode4)) {
17790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17791 }
17792 arg4 = static_cast< int >(val4);
17793 }
17794 if (obj4) {
17795 ecode5 = SWIG_AsVal_int(obj4, &val5);
17796 if (!SWIG_IsOK(ecode5)) {
17797 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17798 }
17799 arg5 = static_cast< int >(val5);
17800 }
17801 if (obj5) {
17802 ecode6 = SWIG_AsVal_int(obj5, &val6);
17803 if (!SWIG_IsOK(ecode6)) {
17804 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17805 }
17806 arg6 = static_cast< int >(val6);
17807 }
17808 if (obj6) {
093d3ff1 17809 {
0085ce49
RD
17810 arg7 = &temp7;
17811 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d14a1e28 17812 }
0085ce49
RD
17813 }
17814 if (obj7) {
d14a1e28 17815 {
0085ce49
RD
17816 arg8 = &temp8;
17817 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d14a1e28 17818 }
0085ce49
RD
17819 }
17820 if (obj8) {
17821 ecode9 = SWIG_AsVal_long(obj8, &val9);
17822 if (!SWIG_IsOK(ecode9)) {
17823 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17824 }
17825 arg9 = static_cast< long >(val9);
17826 }
17827 if (obj9) {
17828 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17829 if (!SWIG_IsOK(res10)) {
17830 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 17831 }
0085ce49
RD
17832 if (!argp10) {
17833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 17834 }
0085ce49
RD
17835 arg10 = reinterpret_cast< wxValidator * >(argp10);
17836 }
17837 if (obj10) {
4f89f6a3 17838 {
0085ce49
RD
17839 arg11 = wxString_in_helper(obj10);
17840 if (arg11 == NULL) SWIG_fail;
17841 temp11 = true;
4f89f6a3 17842 }
0085ce49
RD
17843 }
17844 {
17845 PyThreadState* __tstate = wxPyBeginAllowThreads();
17846 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17847 wxPyEndAllowThreads(__tstate);
17848 if (PyErr_Occurred()) SWIG_fail;
17849 }
17850 {
17851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17852 }
17853 {
17854 if (temp11)
17855 delete arg11;
17856 }
17857 return resultobj;
17858fail:
17859 {
17860 if (temp11)
17861 delete arg11;
17862 }
17863 return NULL;
d14a1e28
RD
17864}
17865
17866
0085ce49
RD
17867SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17868 PyObject *resultobj = 0;
17869 wxSlider *arg1 = (wxSlider *) 0 ;
17870 int result;
17871 void *argp1 = 0 ;
17872 int res1 = 0 ;
17873 PyObject *swig_obj[1] ;
17874
17875 if (!args) SWIG_fail;
17876 swig_obj[0] = args;
17877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17878 if (!SWIG_IsOK(res1)) {
17879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17880 }
17881 arg1 = reinterpret_cast< wxSlider * >(argp1);
17882 {
17883 PyThreadState* __tstate = wxPyBeginAllowThreads();
17884 result = (int)((wxSlider const *)arg1)->GetValue();
17885 wxPyEndAllowThreads(__tstate);
17886 if (PyErr_Occurred()) SWIG_fail;
17887 }
17888 resultobj = SWIG_From_int(static_cast< int >(result));
17889 return resultobj;
17890fail:
17891 return NULL;
17892}
17893
17894
17895SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17896 PyObject *resultobj = 0;
17897 wxSlider *arg1 = (wxSlider *) 0 ;
17898 int arg2 ;
17899 void *argp1 = 0 ;
17900 int res1 = 0 ;
17901 int val2 ;
17902 int ecode2 = 0 ;
17903 PyObject * obj0 = 0 ;
17904 PyObject * obj1 = 0 ;
17905 char * kwnames[] = {
17906 (char *) "self",(char *) "value", NULL
17907 };
17908
17909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17911 if (!SWIG_IsOK(res1)) {
17912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17913 }
17914 arg1 = reinterpret_cast< wxSlider * >(argp1);
17915 ecode2 = SWIG_AsVal_int(obj1, &val2);
17916 if (!SWIG_IsOK(ecode2)) {
17917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17918 }
17919 arg2 = static_cast< int >(val2);
17920 {
17921 PyThreadState* __tstate = wxPyBeginAllowThreads();
17922 (arg1)->SetValue(arg2);
17923 wxPyEndAllowThreads(__tstate);
17924 if (PyErr_Occurred()) SWIG_fail;
17925 }
17926 resultobj = SWIG_Py_Void();
17927 return resultobj;
17928fail:
17929 return NULL;
17930}
17931
17932
17933SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17934 PyObject *resultobj = 0;
17935 wxSlider *arg1 = (wxSlider *) 0 ;
17936 int arg2 ;
17937 int arg3 ;
17938 void *argp1 = 0 ;
17939 int res1 = 0 ;
17940 int val2 ;
17941 int ecode2 = 0 ;
17942 int val3 ;
17943 int ecode3 = 0 ;
17944 PyObject * obj0 = 0 ;
17945 PyObject * obj1 = 0 ;
17946 PyObject * obj2 = 0 ;
17947 char * kwnames[] = {
17948 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17949 };
17950
17951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17953 if (!SWIG_IsOK(res1)) {
17954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17955 }
17956 arg1 = reinterpret_cast< wxSlider * >(argp1);
17957 ecode2 = SWIG_AsVal_int(obj1, &val2);
17958 if (!SWIG_IsOK(ecode2)) {
17959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17960 }
17961 arg2 = static_cast< int >(val2);
17962 ecode3 = SWIG_AsVal_int(obj2, &val3);
17963 if (!SWIG_IsOK(ecode3)) {
17964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17965 }
17966 arg3 = static_cast< int >(val3);
17967 {
17968 PyThreadState* __tstate = wxPyBeginAllowThreads();
17969 (arg1)->SetRange(arg2,arg3);
17970 wxPyEndAllowThreads(__tstate);
17971 if (PyErr_Occurred()) SWIG_fail;
17972 }
17973 resultobj = SWIG_Py_Void();
17974 return resultobj;
17975fail:
17976 return NULL;
d14a1e28
RD
17977}
17978
17979
0085ce49
RD
17980SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17981 PyObject *resultobj = 0;
17982 wxSlider *arg1 = (wxSlider *) 0 ;
17983 int result;
17984 void *argp1 = 0 ;
17985 int res1 = 0 ;
17986 PyObject *swig_obj[1] ;
17987
17988 if (!args) SWIG_fail;
17989 swig_obj[0] = args;
17990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17991 if (!SWIG_IsOK(res1)) {
17992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17993 }
17994 arg1 = reinterpret_cast< wxSlider * >(argp1);
17995 {
17996 PyThreadState* __tstate = wxPyBeginAllowThreads();
17997 result = (int)((wxSlider const *)arg1)->GetMin();
17998 wxPyEndAllowThreads(__tstate);
17999 if (PyErr_Occurred()) SWIG_fail;
18000 }
18001 resultobj = SWIG_From_int(static_cast< int >(result));
18002 return resultobj;
18003fail:
18004 return NULL;
d14a1e28
RD
18005}
18006
18007
0085ce49
RD
18008SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18009 PyObject *resultobj = 0;
18010 wxSlider *arg1 = (wxSlider *) 0 ;
18011 int result;
18012 void *argp1 = 0 ;
18013 int res1 = 0 ;
18014 PyObject *swig_obj[1] ;
18015
18016 if (!args) SWIG_fail;
18017 swig_obj[0] = args;
18018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18019 if (!SWIG_IsOK(res1)) {
18020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18021 }
18022 arg1 = reinterpret_cast< wxSlider * >(argp1);
18023 {
18024 PyThreadState* __tstate = wxPyBeginAllowThreads();
18025 result = (int)((wxSlider const *)arg1)->GetMax();
18026 wxPyEndAllowThreads(__tstate);
18027 if (PyErr_Occurred()) SWIG_fail;
18028 }
18029 resultobj = SWIG_From_int(static_cast< int >(result));
18030 return resultobj;
18031fail:
18032 return NULL;
18033}
18034
18035
18036SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18037 PyObject *resultobj = 0;
18038 wxSlider *arg1 = (wxSlider *) 0 ;
18039 int arg2 ;
18040 void *argp1 = 0 ;
18041 int res1 = 0 ;
18042 int val2 ;
18043 int ecode2 = 0 ;
18044 PyObject * obj0 = 0 ;
18045 PyObject * obj1 = 0 ;
18046 char * kwnames[] = {
18047 (char *) "self",(char *) "minValue", NULL
18048 };
18049
18050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18052 if (!SWIG_IsOK(res1)) {
18053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18054 }
18055 arg1 = reinterpret_cast< wxSlider * >(argp1);
18056 ecode2 = SWIG_AsVal_int(obj1, &val2);
18057 if (!SWIG_IsOK(ecode2)) {
18058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18059 }
18060 arg2 = static_cast< int >(val2);
18061 {
18062 PyThreadState* __tstate = wxPyBeginAllowThreads();
18063 (arg1)->SetMin(arg2);
18064 wxPyEndAllowThreads(__tstate);
18065 if (PyErr_Occurred()) SWIG_fail;
18066 }
18067 resultobj = SWIG_Py_Void();
18068 return resultobj;
18069fail:
18070 return NULL;
18071}
18072
18073
18074SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18075 PyObject *resultobj = 0;
18076 wxSlider *arg1 = (wxSlider *) 0 ;
18077 int arg2 ;
18078 void *argp1 = 0 ;
18079 int res1 = 0 ;
18080 int val2 ;
18081 int ecode2 = 0 ;
18082 PyObject * obj0 = 0 ;
18083 PyObject * obj1 = 0 ;
18084 char * kwnames[] = {
18085 (char *) "self",(char *) "maxValue", NULL
18086 };
18087
18088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18090 if (!SWIG_IsOK(res1)) {
18091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18092 }
18093 arg1 = reinterpret_cast< wxSlider * >(argp1);
18094 ecode2 = SWIG_AsVal_int(obj1, &val2);
18095 if (!SWIG_IsOK(ecode2)) {
18096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18097 }
18098 arg2 = static_cast< int >(val2);
18099 {
18100 PyThreadState* __tstate = wxPyBeginAllowThreads();
18101 (arg1)->SetMax(arg2);
18102 wxPyEndAllowThreads(__tstate);
18103 if (PyErr_Occurred()) SWIG_fail;
18104 }
18105 resultobj = SWIG_Py_Void();
18106 return resultobj;
18107fail:
18108 return NULL;
18109}
18110
18111
18112SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18113 PyObject *resultobj = 0;
18114 wxSlider *arg1 = (wxSlider *) 0 ;
18115 int arg2 ;
18116 void *argp1 = 0 ;
18117 int res1 = 0 ;
18118 int val2 ;
18119 int ecode2 = 0 ;
18120 PyObject * obj0 = 0 ;
18121 PyObject * obj1 = 0 ;
18122 char * kwnames[] = {
18123 (char *) "self",(char *) "lineSize", NULL
18124 };
18125
18126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18128 if (!SWIG_IsOK(res1)) {
18129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18130 }
18131 arg1 = reinterpret_cast< wxSlider * >(argp1);
18132 ecode2 = SWIG_AsVal_int(obj1, &val2);
18133 if (!SWIG_IsOK(ecode2)) {
18134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18135 }
18136 arg2 = static_cast< int >(val2);
18137 {
18138 PyThreadState* __tstate = wxPyBeginAllowThreads();
18139 (arg1)->SetLineSize(arg2);
18140 wxPyEndAllowThreads(__tstate);
18141 if (PyErr_Occurred()) SWIG_fail;
18142 }
18143 resultobj = SWIG_Py_Void();
18144 return resultobj;
18145fail:
18146 return NULL;
18147}
18148
18149
18150SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18151 PyObject *resultobj = 0;
18152 wxSlider *arg1 = (wxSlider *) 0 ;
18153 int arg2 ;
18154 void *argp1 = 0 ;
18155 int res1 = 0 ;
18156 int val2 ;
18157 int ecode2 = 0 ;
18158 PyObject * obj0 = 0 ;
18159 PyObject * obj1 = 0 ;
18160 char * kwnames[] = {
18161 (char *) "self",(char *) "pageSize", NULL
18162 };
18163
18164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18166 if (!SWIG_IsOK(res1)) {
18167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18168 }
18169 arg1 = reinterpret_cast< wxSlider * >(argp1);
18170 ecode2 = SWIG_AsVal_int(obj1, &val2);
18171 if (!SWIG_IsOK(ecode2)) {
18172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18173 }
18174 arg2 = static_cast< int >(val2);
18175 {
18176 PyThreadState* __tstate = wxPyBeginAllowThreads();
18177 (arg1)->SetPageSize(arg2);
18178 wxPyEndAllowThreads(__tstate);
18179 if (PyErr_Occurred()) SWIG_fail;
18180 }
18181 resultobj = SWIG_Py_Void();
18182 return resultobj;
18183fail:
18184 return NULL;
d14a1e28
RD
18185}
18186
18187
0085ce49
RD
18188SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18189 PyObject *resultobj = 0;
18190 wxSlider *arg1 = (wxSlider *) 0 ;
18191 int result;
18192 void *argp1 = 0 ;
18193 int res1 = 0 ;
18194 PyObject *swig_obj[1] ;
18195
18196 if (!args) SWIG_fail;
18197 swig_obj[0] = args;
18198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18199 if (!SWIG_IsOK(res1)) {
18200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18201 }
18202 arg1 = reinterpret_cast< wxSlider * >(argp1);
18203 {
18204 PyThreadState* __tstate = wxPyBeginAllowThreads();
18205 result = (int)((wxSlider const *)arg1)->GetLineSize();
18206 wxPyEndAllowThreads(__tstate);
18207 if (PyErr_Occurred()) SWIG_fail;
18208 }
18209 resultobj = SWIG_From_int(static_cast< int >(result));
18210 return resultobj;
18211fail:
18212 return NULL;
d14a1e28
RD
18213}
18214
18215
0085ce49
RD
18216SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18217 PyObject *resultobj = 0;
18218 wxSlider *arg1 = (wxSlider *) 0 ;
18219 int result;
18220 void *argp1 = 0 ;
18221 int res1 = 0 ;
18222 PyObject *swig_obj[1] ;
18223
18224 if (!args) SWIG_fail;
18225 swig_obj[0] = args;
18226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18227 if (!SWIG_IsOK(res1)) {
18228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18229 }
18230 arg1 = reinterpret_cast< wxSlider * >(argp1);
18231 {
18232 PyThreadState* __tstate = wxPyBeginAllowThreads();
18233 result = (int)((wxSlider const *)arg1)->GetPageSize();
18234 wxPyEndAllowThreads(__tstate);
18235 if (PyErr_Occurred()) SWIG_fail;
18236 }
18237 resultobj = SWIG_From_int(static_cast< int >(result));
18238 return resultobj;
18239fail:
18240 return NULL;
18241}
18242
18243
18244SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18245 PyObject *resultobj = 0;
18246 wxSlider *arg1 = (wxSlider *) 0 ;
18247 int arg2 ;
18248 void *argp1 = 0 ;
18249 int res1 = 0 ;
18250 int val2 ;
18251 int ecode2 = 0 ;
18252 PyObject * obj0 = 0 ;
18253 PyObject * obj1 = 0 ;
18254 char * kwnames[] = {
18255 (char *) "self",(char *) "lenPixels", NULL
18256 };
18257
18258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18260 if (!SWIG_IsOK(res1)) {
18261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18262 }
18263 arg1 = reinterpret_cast< wxSlider * >(argp1);
18264 ecode2 = SWIG_AsVal_int(obj1, &val2);
18265 if (!SWIG_IsOK(ecode2)) {
18266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18267 }
18268 arg2 = static_cast< int >(val2);
18269 {
18270 PyThreadState* __tstate = wxPyBeginAllowThreads();
18271 (arg1)->SetThumbLength(arg2);
18272 wxPyEndAllowThreads(__tstate);
18273 if (PyErr_Occurred()) SWIG_fail;
18274 }
18275 resultobj = SWIG_Py_Void();
18276 return resultobj;
18277fail:
18278 return NULL;
4d5c3d91
RD
18279}
18280
18281
0085ce49
RD
18282SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18283 PyObject *resultobj = 0;
18284 wxSlider *arg1 = (wxSlider *) 0 ;
18285 int result;
18286 void *argp1 = 0 ;
18287 int res1 = 0 ;
18288 PyObject *swig_obj[1] ;
18289
18290 if (!args) SWIG_fail;
18291 swig_obj[0] = args;
18292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18293 if (!SWIG_IsOK(res1)) {
18294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18295 }
18296 arg1 = reinterpret_cast< wxSlider * >(argp1);
18297 {
18298 PyThreadState* __tstate = wxPyBeginAllowThreads();
18299 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18300 wxPyEndAllowThreads(__tstate);
18301 if (PyErr_Occurred()) SWIG_fail;
18302 }
18303 resultobj = SWIG_From_int(static_cast< int >(result));
18304 return resultobj;
18305fail:
18306 return NULL;
18307}
18308
18309
18310SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18311 PyObject *resultobj = 0;
18312 wxSlider *arg1 = (wxSlider *) 0 ;
18313 int arg2 ;
18314 int arg3 = (int) 1 ;
18315 void *argp1 = 0 ;
18316 int res1 = 0 ;
18317 int val2 ;
18318 int ecode2 = 0 ;
18319 int val3 ;
18320 int ecode3 = 0 ;
18321 PyObject * obj0 = 0 ;
18322 PyObject * obj1 = 0 ;
18323 PyObject * obj2 = 0 ;
18324 char * kwnames[] = {
18325 (char *) "self",(char *) "n",(char *) "pos", NULL
18326 };
18327
18328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18330 if (!SWIG_IsOK(res1)) {
18331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18332 }
18333 arg1 = reinterpret_cast< wxSlider * >(argp1);
18334 ecode2 = SWIG_AsVal_int(obj1, &val2);
18335 if (!SWIG_IsOK(ecode2)) {
18336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18337 }
18338 arg2 = static_cast< int >(val2);
18339 if (obj2) {
18340 ecode3 = SWIG_AsVal_int(obj2, &val3);
18341 if (!SWIG_IsOK(ecode3)) {
18342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18343 }
18344 arg3 = static_cast< int >(val3);
18345 }
18346 {
18347 PyThreadState* __tstate = wxPyBeginAllowThreads();
18348 (arg1)->SetTickFreq(arg2,arg3);
18349 wxPyEndAllowThreads(__tstate);
18350 if (PyErr_Occurred()) SWIG_fail;
18351 }
18352 resultobj = SWIG_Py_Void();
18353 return resultobj;
18354fail:
18355 return NULL;
4896ac9e
RD
18356}
18357
18358
0085ce49
RD
18359SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18360 PyObject *resultobj = 0;
18361 wxSlider *arg1 = (wxSlider *) 0 ;
18362 int result;
18363 void *argp1 = 0 ;
18364 int res1 = 0 ;
18365 PyObject *swig_obj[1] ;
18366
18367 if (!args) SWIG_fail;
18368 swig_obj[0] = args;
18369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18370 if (!SWIG_IsOK(res1)) {
18371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18372 }
18373 arg1 = reinterpret_cast< wxSlider * >(argp1);
18374 {
18375 PyThreadState* __tstate = wxPyBeginAllowThreads();
18376 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18377 wxPyEndAllowThreads(__tstate);
18378 if (PyErr_Occurred()) SWIG_fail;
18379 }
18380 resultobj = SWIG_From_int(static_cast< int >(result));
18381 return resultobj;
18382fail:
18383 return NULL;
d14a1e28
RD
18384}
18385
18386
0085ce49
RD
18387SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18388 PyObject *resultobj = 0;
18389 wxSlider *arg1 = (wxSlider *) 0 ;
18390 void *argp1 = 0 ;
18391 int res1 = 0 ;
18392 PyObject *swig_obj[1] ;
18393
18394 if (!args) SWIG_fail;
18395 swig_obj[0] = args;
18396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18397 if (!SWIG_IsOK(res1)) {
18398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18399 }
18400 arg1 = reinterpret_cast< wxSlider * >(argp1);
18401 {
18402 PyThreadState* __tstate = wxPyBeginAllowThreads();
18403 (arg1)->ClearTicks();
18404 wxPyEndAllowThreads(__tstate);
18405 if (PyErr_Occurred()) SWIG_fail;
18406 }
18407 resultobj = SWIG_Py_Void();
18408 return resultobj;
18409fail:
18410 return NULL;
18411}
18412
18413
18414SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18415 PyObject *resultobj = 0;
18416 wxSlider *arg1 = (wxSlider *) 0 ;
18417 int arg2 ;
18418 void *argp1 = 0 ;
18419 int res1 = 0 ;
18420 int val2 ;
18421 int ecode2 = 0 ;
18422 PyObject * obj0 = 0 ;
18423 PyObject * obj1 = 0 ;
18424 char * kwnames[] = {
18425 (char *) "self",(char *) "tickPos", NULL
18426 };
18427
18428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18430 if (!SWIG_IsOK(res1)) {
18431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18432 }
18433 arg1 = reinterpret_cast< wxSlider * >(argp1);
18434 ecode2 = SWIG_AsVal_int(obj1, &val2);
18435 if (!SWIG_IsOK(ecode2)) {
18436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18437 }
18438 arg2 = static_cast< int >(val2);
18439 {
18440 PyThreadState* __tstate = wxPyBeginAllowThreads();
18441 (arg1)->SetTick(arg2);
18442 wxPyEndAllowThreads(__tstate);
18443 if (PyErr_Occurred()) SWIG_fail;
18444 }
18445 resultobj = SWIG_Py_Void();
18446 return resultobj;
18447fail:
18448 return NULL;
d14a1e28
RD
18449}
18450
18451
0085ce49
RD
18452SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18453 PyObject *resultobj = 0;
18454 wxSlider *arg1 = (wxSlider *) 0 ;
18455 void *argp1 = 0 ;
18456 int res1 = 0 ;
18457 PyObject *swig_obj[1] ;
18458
18459 if (!args) SWIG_fail;
18460 swig_obj[0] = args;
18461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18462 if (!SWIG_IsOK(res1)) {
18463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18464 }
18465 arg1 = reinterpret_cast< wxSlider * >(argp1);
18466 {
18467 PyThreadState* __tstate = wxPyBeginAllowThreads();
18468 (arg1)->ClearSel();
18469 wxPyEndAllowThreads(__tstate);
18470 if (PyErr_Occurred()) SWIG_fail;
18471 }
18472 resultobj = SWIG_Py_Void();
18473 return resultobj;
18474fail:
18475 return NULL;
d14a1e28
RD
18476}
18477
18478
0085ce49
RD
18479SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18480 PyObject *resultobj = 0;
18481 wxSlider *arg1 = (wxSlider *) 0 ;
18482 int result;
18483 void *argp1 = 0 ;
18484 int res1 = 0 ;
18485 PyObject *swig_obj[1] ;
18486
18487 if (!args) SWIG_fail;
18488 swig_obj[0] = args;
18489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18490 if (!SWIG_IsOK(res1)) {
18491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18492 }
18493 arg1 = reinterpret_cast< wxSlider * >(argp1);
18494 {
18495 PyThreadState* __tstate = wxPyBeginAllowThreads();
18496 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18497 wxPyEndAllowThreads(__tstate);
18498 if (PyErr_Occurred()) SWIG_fail;
18499 }
18500 resultobj = SWIG_From_int(static_cast< int >(result));
18501 return resultobj;
18502fail:
18503 return NULL;
d14a1e28
RD
18504}
18505
18506
0085ce49
RD
18507SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18508 PyObject *resultobj = 0;
18509 wxSlider *arg1 = (wxSlider *) 0 ;
18510 int result;
18511 void *argp1 = 0 ;
18512 int res1 = 0 ;
18513 PyObject *swig_obj[1] ;
18514
18515 if (!args) SWIG_fail;
18516 swig_obj[0] = args;
18517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18518 if (!SWIG_IsOK(res1)) {
18519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18520 }
18521 arg1 = reinterpret_cast< wxSlider * >(argp1);
18522 {
18523 PyThreadState* __tstate = wxPyBeginAllowThreads();
18524 result = (int)((wxSlider const *)arg1)->GetSelStart();
18525 wxPyEndAllowThreads(__tstate);
18526 if (PyErr_Occurred()) SWIG_fail;
18527 }
18528 resultobj = SWIG_From_int(static_cast< int >(result));
18529 return resultobj;
18530fail:
18531 return NULL;
18532}
18533
18534
18535SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18536 PyObject *resultobj = 0;
18537 wxSlider *arg1 = (wxSlider *) 0 ;
18538 int arg2 ;
18539 int arg3 ;
18540 void *argp1 = 0 ;
18541 int res1 = 0 ;
18542 int val2 ;
18543 int ecode2 = 0 ;
18544 int val3 ;
18545 int ecode3 = 0 ;
18546 PyObject * obj0 = 0 ;
18547 PyObject * obj1 = 0 ;
18548 PyObject * obj2 = 0 ;
18549 char * kwnames[] = {
18550 (char *) "self",(char *) "min",(char *) "max", NULL
18551 };
18552
18553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18555 if (!SWIG_IsOK(res1)) {
18556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18557 }
18558 arg1 = reinterpret_cast< wxSlider * >(argp1);
18559 ecode2 = SWIG_AsVal_int(obj1, &val2);
18560 if (!SWIG_IsOK(ecode2)) {
18561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18562 }
18563 arg2 = static_cast< int >(val2);
18564 ecode3 = SWIG_AsVal_int(obj2, &val3);
18565 if (!SWIG_IsOK(ecode3)) {
18566 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18567 }
18568 arg3 = static_cast< int >(val3);
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 (arg1)->SetSelection(arg2,arg3);
18572 wxPyEndAllowThreads(__tstate);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 }
18575 resultobj = SWIG_Py_Void();
18576 return resultobj;
18577fail:
18578 return NULL;
18579}
18580
18581
18582SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18583 PyObject *resultobj = 0;
18584 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18585 SwigValueWrapper<wxVisualAttributes > result;
18586 int val1 ;
18587 int ecode1 = 0 ;
18588 PyObject * obj0 = 0 ;
18589 char * kwnames[] = {
18590 (char *) "variant", NULL
18591 };
18592
18593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18594 if (obj0) {
18595 ecode1 = SWIG_AsVal_int(obj0, &val1);
18596 if (!SWIG_IsOK(ecode1)) {
18597 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18598 }
18599 arg1 = static_cast< wxWindowVariant >(val1);
18600 }
18601 {
18602 if (!wxPyCheckForApp()) SWIG_fail;
18603 PyThreadState* __tstate = wxPyBeginAllowThreads();
18604 result = wxSlider::GetClassDefaultAttributes(arg1);
18605 wxPyEndAllowThreads(__tstate);
18606 if (PyErr_Occurred()) SWIG_fail;
18607 }
18608 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18609 return resultobj;
18610fail:
18611 return NULL;
d14a1e28
RD
18612}
18613
18614
0085ce49
RD
18615SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18616 PyObject *obj;
18617 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18618 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18619 return SWIG_Py_Void();
d14a1e28
RD
18620}
18621
0085ce49
RD
18622SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18623 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
18624}
18625
0085ce49
RD
18626SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18627 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18628 return 1;
d14a1e28
RD
18629}
18630
18631
0085ce49
RD
18632SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18633 PyObject *pyobj = 0;
18634
18635 {
18636#if wxUSE_UNICODE
18637 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18638#else
18639 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18640#endif
18641 }
18642 return pyobj;
18643}
18644
18645
18646SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18647 PyObject *resultobj = 0;
18648 wxWindow *arg1 = (wxWindow *) 0 ;
18649 int arg2 = (int) -1 ;
18650 wxString const &arg3_defvalue = wxPyEmptyString ;
18651 wxString *arg3 = (wxString *) &arg3_defvalue ;
18652 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18653 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18654 wxSize const &arg5_defvalue = wxDefaultSize ;
18655 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18656 long arg6 = (long) 0 ;
18657 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18658 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18659 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18660 wxString *arg8 = (wxString *) &arg8_defvalue ;
18661 wxToggleButton *result = 0 ;
18662 void *argp1 = 0 ;
18663 int res1 = 0 ;
18664 int val2 ;
18665 int ecode2 = 0 ;
18666 bool temp3 = false ;
18667 wxPoint temp4 ;
18668 wxSize temp5 ;
18669 long val6 ;
18670 int ecode6 = 0 ;
18671 void *argp7 = 0 ;
18672 int res7 = 0 ;
18673 bool temp8 = false ;
18674 PyObject * obj0 = 0 ;
18675 PyObject * obj1 = 0 ;
18676 PyObject * obj2 = 0 ;
18677 PyObject * obj3 = 0 ;
18678 PyObject * obj4 = 0 ;
18679 PyObject * obj5 = 0 ;
18680 PyObject * obj6 = 0 ;
18681 PyObject * obj7 = 0 ;
18682 char * kwnames[] = {
18683 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18684 };
18685
18686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18688 if (!SWIG_IsOK(res1)) {
18689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18690 }
18691 arg1 = reinterpret_cast< wxWindow * >(argp1);
18692 if (obj1) {
18693 ecode2 = SWIG_AsVal_int(obj1, &val2);
18694 if (!SWIG_IsOK(ecode2)) {
18695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18696 }
18697 arg2 = static_cast< int >(val2);
18698 }
18699 if (obj2) {
d14a1e28 18700 {
0085ce49
RD
18701 arg3 = wxString_in_helper(obj2);
18702 if (arg3 == NULL) SWIG_fail;
18703 temp3 = true;
d14a1e28 18704 }
0085ce49
RD
18705 }
18706 if (obj3) {
4f89f6a3 18707 {
0085ce49
RD
18708 arg4 = &temp4;
18709 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 18710 }
0085ce49
RD
18711 }
18712 if (obj4) {
d14a1e28 18713 {
0085ce49
RD
18714 arg5 = &temp5;
18715 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18716 }
0085ce49
RD
18717 }
18718 if (obj5) {
18719 ecode6 = SWIG_AsVal_long(obj5, &val6);
18720 if (!SWIG_IsOK(ecode6)) {
18721 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18722 }
18723 arg6 = static_cast< long >(val6);
18724 }
18725 if (obj6) {
18726 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18727 if (!SWIG_IsOK(res7)) {
18728 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 18729 }
0085ce49
RD
18730 if (!argp7) {
18731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 18732 }
0085ce49
RD
18733 arg7 = reinterpret_cast< wxValidator * >(argp7);
18734 }
18735 if (obj7) {
d14a1e28 18736 {
0085ce49
RD
18737 arg8 = wxString_in_helper(obj7);
18738 if (arg8 == NULL) SWIG_fail;
18739 temp8 = true;
d14a1e28 18740 }
0085ce49
RD
18741 }
18742 {
18743 if (!wxPyCheckForApp()) SWIG_fail;
18744 PyThreadState* __tstate = wxPyBeginAllowThreads();
18745 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18746 wxPyEndAllowThreads(__tstate);
18747 if (PyErr_Occurred()) SWIG_fail;
18748 }
18749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18750 {
18751 if (temp3)
18752 delete arg3;
18753 }
18754 {
18755 if (temp8)
18756 delete arg8;
18757 }
18758 return resultobj;
18759fail:
18760 {
18761 if (temp3)
18762 delete arg3;
18763 }
18764 {
18765 if (temp8)
18766 delete arg8;
18767 }
18768 return NULL;
d14a1e28
RD
18769}
18770
18771
0085ce49
RD
18772SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18773 PyObject *resultobj = 0;
18774 wxToggleButton *result = 0 ;
18775
18776 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18777 {
18778 if (!wxPyCheckForApp()) SWIG_fail;
18779 PyThreadState* __tstate = wxPyBeginAllowThreads();
18780 result = (wxToggleButton *)new wxToggleButton();
18781 wxPyEndAllowThreads(__tstate);
18782 if (PyErr_Occurred()) SWIG_fail;
18783 }
18784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18785 return resultobj;
18786fail:
18787 return NULL;
18788}
18789
18790
18791SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18792 PyObject *resultobj = 0;
18793 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18794 wxWindow *arg2 = (wxWindow *) 0 ;
18795 int arg3 = (int) -1 ;
18796 wxString const &arg4_defvalue = wxPyEmptyString ;
18797 wxString *arg4 = (wxString *) &arg4_defvalue ;
18798 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18799 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18800 wxSize const &arg6_defvalue = wxDefaultSize ;
18801 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18802 long arg7 = (long) 0 ;
18803 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18804 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18805 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18806 wxString *arg9 = (wxString *) &arg9_defvalue ;
18807 bool result;
18808 void *argp1 = 0 ;
18809 int res1 = 0 ;
18810 void *argp2 = 0 ;
18811 int res2 = 0 ;
18812 int val3 ;
18813 int ecode3 = 0 ;
18814 bool temp4 = false ;
18815 wxPoint temp5 ;
18816 wxSize temp6 ;
18817 long val7 ;
18818 int ecode7 = 0 ;
18819 void *argp8 = 0 ;
18820 int res8 = 0 ;
18821 bool temp9 = false ;
18822 PyObject * obj0 = 0 ;
18823 PyObject * obj1 = 0 ;
18824 PyObject * obj2 = 0 ;
18825 PyObject * obj3 = 0 ;
18826 PyObject * obj4 = 0 ;
18827 PyObject * obj5 = 0 ;
18828 PyObject * obj6 = 0 ;
18829 PyObject * obj7 = 0 ;
18830 PyObject * obj8 = 0 ;
18831 char * kwnames[] = {
18832 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18833 };
18834
18835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18837 if (!SWIG_IsOK(res1)) {
18838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18839 }
18840 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18841 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18842 if (!SWIG_IsOK(res2)) {
18843 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18844 }
18845 arg2 = reinterpret_cast< wxWindow * >(argp2);
18846 if (obj2) {
18847 ecode3 = SWIG_AsVal_int(obj2, &val3);
18848 if (!SWIG_IsOK(ecode3)) {
18849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18850 }
18851 arg3 = static_cast< int >(val3);
18852 }
18853 if (obj3) {
d14a1e28 18854 {
0085ce49
RD
18855 arg4 = wxString_in_helper(obj3);
18856 if (arg4 == NULL) SWIG_fail;
18857 temp4 = true;
d14a1e28 18858 }
0085ce49
RD
18859 }
18860 if (obj4) {
d14a1e28 18861 {
0085ce49
RD
18862 arg5 = &temp5;
18863 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18864 }
0085ce49
RD
18865 }
18866 if (obj5) {
093d3ff1 18867 {
0085ce49
RD
18868 arg6 = &temp6;
18869 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 18870 }
0085ce49
RD
18871 }
18872 if (obj6) {
18873 ecode7 = SWIG_AsVal_long(obj6, &val7);
18874 if (!SWIG_IsOK(ecode7)) {
18875 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18876 }
18877 arg7 = static_cast< long >(val7);
18878 }
18879 if (obj7) {
18880 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18881 if (!SWIG_IsOK(res8)) {
18882 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18883 }
18884 if (!argp8) {
18885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 18886 }
0085ce49
RD
18887 arg8 = reinterpret_cast< wxValidator * >(argp8);
18888 }
18889 if (obj8) {
093d3ff1 18890 {
0085ce49
RD
18891 arg9 = wxString_in_helper(obj8);
18892 if (arg9 == NULL) SWIG_fail;
18893 temp9 = true;
093d3ff1 18894 }
0085ce49
RD
18895 }
18896 {
18897 PyThreadState* __tstate = wxPyBeginAllowThreads();
18898 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18899 wxPyEndAllowThreads(__tstate);
18900 if (PyErr_Occurred()) SWIG_fail;
18901 }
18902 {
18903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18904 }
18905 {
18906 if (temp4)
18907 delete arg4;
18908 }
18909 {
18910 if (temp9)
18911 delete arg9;
18912 }
18913 return resultobj;
18914fail:
18915 {
18916 if (temp4)
18917 delete arg4;
18918 }
18919 {
18920 if (temp9)
18921 delete arg9;
18922 }
18923 return NULL;
18924}
18925
18926
18927SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18928 PyObject *resultobj = 0;
18929 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18930 bool arg2 ;
18931 void *argp1 = 0 ;
18932 int res1 = 0 ;
18933 bool val2 ;
18934 int ecode2 = 0 ;
18935 PyObject * obj0 = 0 ;
18936 PyObject * obj1 = 0 ;
18937 char * kwnames[] = {
18938 (char *) "self",(char *) "value", NULL
18939 };
18940
18941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18943 if (!SWIG_IsOK(res1)) {
18944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18945 }
18946 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18947 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18948 if (!SWIG_IsOK(ecode2)) {
18949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18950 }
18951 arg2 = static_cast< bool >(val2);
18952 {
18953 PyThreadState* __tstate = wxPyBeginAllowThreads();
18954 (arg1)->SetValue(arg2);
18955 wxPyEndAllowThreads(__tstate);
18956 if (PyErr_Occurred()) SWIG_fail;
18957 }
18958 resultobj = SWIG_Py_Void();
18959 return resultobj;
18960fail:
18961 return NULL;
d14a1e28
RD
18962}
18963
18964
0085ce49
RD
18965SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18966 PyObject *resultobj = 0;
18967 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18968 bool result;
18969 void *argp1 = 0 ;
18970 int res1 = 0 ;
18971 PyObject *swig_obj[1] ;
18972
18973 if (!args) SWIG_fail;
18974 swig_obj[0] = args;
18975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18976 if (!SWIG_IsOK(res1)) {
18977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18978 }
18979 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18980 {
18981 PyThreadState* __tstate = wxPyBeginAllowThreads();
18982 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18983 wxPyEndAllowThreads(__tstate);
18984 if (PyErr_Occurred()) SWIG_fail;
18985 }
18986 {
18987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18988 }
18989 return resultobj;
18990fail:
18991 return NULL;
d14a1e28
RD
18992}
18993
18994
0085ce49
RD
18995SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18996 PyObject *resultobj = 0;
18997 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18998 SwigValueWrapper<wxVisualAttributes > result;
18999 int val1 ;
19000 int ecode1 = 0 ;
19001 PyObject * obj0 = 0 ;
19002 char * kwnames[] = {
19003 (char *) "variant", NULL
19004 };
19005
19006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19007 if (obj0) {
19008 ecode1 = SWIG_AsVal_int(obj0, &val1);
19009 if (!SWIG_IsOK(ecode1)) {
19010 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19011 }
19012 arg1 = static_cast< wxWindowVariant >(val1);
19013 }
19014 {
19015 if (!wxPyCheckForApp()) SWIG_fail;
19016 PyThreadState* __tstate = wxPyBeginAllowThreads();
19017 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19018 wxPyEndAllowThreads(__tstate);
19019 if (PyErr_Occurred()) SWIG_fail;
19020 }
19021 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19022 return resultobj;
19023fail:
19024 return NULL;
d14a1e28
RD
19025}
19026
19027
0085ce49
RD
19028SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19029 PyObject *obj;
19030 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19031 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19032 return SWIG_Py_Void();
d14a1e28
RD
19033}
19034
0085ce49
RD
19035SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19036 return SWIG_Python_InitShadowInstance(args);
19037}
d14a1e28 19038
0085ce49
RD
19039SWIGINTERN int NotebookNameStr_set(PyObject *) {
19040 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19041 return 1;
d14a1e28
RD
19042}
19043
19044
0085ce49
RD
19045SWIGINTERN PyObject *NotebookNameStr_get(void) {
19046 PyObject *pyobj = 0;
19047
19048 {
d14a1e28 19049#if wxUSE_UNICODE
0085ce49 19050 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 19051#else
0085ce49 19052 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 19053#endif
0085ce49
RD
19054 }
19055 return pyobj;
d14a1e28
RD
19056}
19057
19058
0085ce49
RD
19059SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19060 PyObject *resultobj = 0;
19061 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19062 size_t result;
19063 void *argp1 = 0 ;
19064 int res1 = 0 ;
19065 PyObject *swig_obj[1] ;
19066
19067 if (!args) SWIG_fail;
19068 swig_obj[0] = args;
19069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19070 if (!SWIG_IsOK(res1)) {
19071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19072 }
19073 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19074 {
19075 PyThreadState* __tstate = wxPyBeginAllowThreads();
19076 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19077 wxPyEndAllowThreads(__tstate);
19078 if (PyErr_Occurred()) SWIG_fail;
19079 }
19080 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19081 return resultobj;
19082fail:
19083 return NULL;
19084}
19085
19086
19087SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19088 PyObject *resultobj = 0;
19089 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19090 size_t arg2 ;
19091 wxWindow *result = 0 ;
19092 void *argp1 = 0 ;
19093 int res1 = 0 ;
19094 size_t val2 ;
19095 int ecode2 = 0 ;
19096 PyObject * obj0 = 0 ;
19097 PyObject * obj1 = 0 ;
19098 char * kwnames[] = {
19099 (char *) "self",(char *) "n", NULL
19100 };
19101
19102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19104 if (!SWIG_IsOK(res1)) {
19105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19106 }
19107 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19108 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19109 if (!SWIG_IsOK(ecode2)) {
19110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19111 }
19112 arg2 = static_cast< size_t >(val2);
19113 {
19114 PyThreadState* __tstate = wxPyBeginAllowThreads();
19115 result = (wxWindow *)(arg1)->GetPage(arg2);
19116 wxPyEndAllowThreads(__tstate);
19117 if (PyErr_Occurred()) SWIG_fail;
19118 }
19119 {
19120 resultobj = wxPyMake_wxObject(result, 0);
19121 }
19122 return resultobj;
19123fail:
19124 return NULL;
22bfe96c
RD
19125}
19126
19127
0085ce49
RD
19128SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19129 PyObject *resultobj = 0;
19130 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19131 wxWindow *result = 0 ;
19132 void *argp1 = 0 ;
19133 int res1 = 0 ;
19134 PyObject *swig_obj[1] ;
19135
19136 if (!args) SWIG_fail;
19137 swig_obj[0] = args;
19138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19139 if (!SWIG_IsOK(res1)) {
19140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19141 }
19142 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19143 {
19144 PyThreadState* __tstate = wxPyBeginAllowThreads();
19145 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19146 wxPyEndAllowThreads(__tstate);
19147 if (PyErr_Occurred()) SWIG_fail;
19148 }
19149 {
19150 resultobj = wxPyMake_wxObject(result, 0);
19151 }
19152 return resultobj;
19153fail:
19154 return NULL;
d14a1e28
RD
19155}
19156
19157
0085ce49
RD
19158SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19159 PyObject *resultobj = 0;
19160 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19161 int result;
19162 void *argp1 = 0 ;
19163 int res1 = 0 ;
19164 PyObject *swig_obj[1] ;
19165
19166 if (!args) SWIG_fail;
19167 swig_obj[0] = args;
19168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19169 if (!SWIG_IsOK(res1)) {
19170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19171 }
19172 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19173 {
19174 PyThreadState* __tstate = wxPyBeginAllowThreads();
19175 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19176 wxPyEndAllowThreads(__tstate);
19177 if (PyErr_Occurred()) SWIG_fail;
19178 }
19179 resultobj = SWIG_From_int(static_cast< int >(result));
19180 return resultobj;
19181fail:
19182 return NULL;
19183}
19184
19185
19186SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19187 PyObject *resultobj = 0;
19188 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19189 size_t arg2 ;
19190 wxString *arg3 = 0 ;
19191 bool result;
19192 void *argp1 = 0 ;
19193 int res1 = 0 ;
19194 size_t val2 ;
19195 int ecode2 = 0 ;
19196 bool temp3 = false ;
19197 PyObject * obj0 = 0 ;
19198 PyObject * obj1 = 0 ;
19199 PyObject * obj2 = 0 ;
19200 char * kwnames[] = {
19201 (char *) "self",(char *) "n",(char *) "strText", NULL
19202 };
19203
19204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19206 if (!SWIG_IsOK(res1)) {
19207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19208 }
19209 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19210 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19211 if (!SWIG_IsOK(ecode2)) {
19212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19213 }
19214 arg2 = static_cast< size_t >(val2);
19215 {
19216 arg3 = wxString_in_helper(obj2);
19217 if (arg3 == NULL) SWIG_fail;
19218 temp3 = true;
19219 }
19220 {
19221 PyThreadState* __tstate = wxPyBeginAllowThreads();
19222 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19223 wxPyEndAllowThreads(__tstate);
19224 if (PyErr_Occurred()) SWIG_fail;
19225 }
19226 {
19227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19228 }
19229 {
19230 if (temp3)
19231 delete arg3;
19232 }
19233 return resultobj;
19234fail:
19235 {
19236 if (temp3)
19237 delete arg3;
19238 }
19239 return NULL;
19240}
19241
19242
19243SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19244 PyObject *resultobj = 0;
19245 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19246 size_t arg2 ;
19247 wxString result;
19248 void *argp1 = 0 ;
19249 int res1 = 0 ;
19250 size_t val2 ;
19251 int ecode2 = 0 ;
19252 PyObject * obj0 = 0 ;
19253 PyObject * obj1 = 0 ;
19254 char * kwnames[] = {
19255 (char *) "self",(char *) "n", NULL
19256 };
19257
19258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19260 if (!SWIG_IsOK(res1)) {
19261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19262 }
19263 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19264 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19265 if (!SWIG_IsOK(ecode2)) {
19266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19267 }
19268 arg2 = static_cast< size_t >(val2);
19269 {
19270 PyThreadState* __tstate = wxPyBeginAllowThreads();
19271 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19272 wxPyEndAllowThreads(__tstate);
19273 if (PyErr_Occurred()) SWIG_fail;
19274 }
19275 {
19276#if wxUSE_UNICODE
19277 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19278#else
19279 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19280#endif
19281 }
19282 return resultobj;
19283fail:
19284 return NULL;
19285}
19286
19287
19288SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19289 PyObject *resultobj = 0;
19290 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19291 wxImageList *arg2 = (wxImageList *) 0 ;
19292 void *argp1 = 0 ;
19293 int res1 = 0 ;
19294 void *argp2 = 0 ;
19295 int res2 = 0 ;
19296 PyObject * obj0 = 0 ;
19297 PyObject * obj1 = 0 ;
19298 char * kwnames[] = {
19299 (char *) "self",(char *) "imageList", NULL
19300 };
19301
19302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19304 if (!SWIG_IsOK(res1)) {
19305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19306 }
19307 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19308 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19309 if (!SWIG_IsOK(res2)) {
19310 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19311 }
19312 arg2 = reinterpret_cast< wxImageList * >(argp2);
19313 {
19314 PyThreadState* __tstate = wxPyBeginAllowThreads();
19315 (arg1)->SetImageList(arg2);
19316 wxPyEndAllowThreads(__tstate);
19317 if (PyErr_Occurred()) SWIG_fail;
19318 }
19319 resultobj = SWIG_Py_Void();
19320 return resultobj;
19321fail:
19322 return NULL;
19323}
19324
19325
19326SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19327 PyObject *resultobj = 0;
19328 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19329 wxImageList *arg2 = (wxImageList *) 0 ;
19330 void *argp1 = 0 ;
19331 int res1 = 0 ;
19332 int res2 = 0 ;
19333 PyObject * obj0 = 0 ;
19334 PyObject * obj1 = 0 ;
19335 char * kwnames[] = {
19336 (char *) "self",(char *) "imageList", NULL
19337 };
19338
19339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19341 if (!SWIG_IsOK(res1)) {
19342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19343 }
19344 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19345 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19346 if (!SWIG_IsOK(res2)) {
19347 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19348 }
19349 {
19350 PyThreadState* __tstate = wxPyBeginAllowThreads();
19351 (arg1)->AssignImageList(arg2);
19352 wxPyEndAllowThreads(__tstate);
19353 if (PyErr_Occurred()) SWIG_fail;
19354 }
19355 resultobj = SWIG_Py_Void();
19356 return resultobj;
19357fail:
19358 return NULL;
d14a1e28
RD
19359}
19360
19361
0085ce49
RD
19362SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19363 PyObject *resultobj = 0;
19364 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19365 wxImageList *result = 0 ;
19366 void *argp1 = 0 ;
19367 int res1 = 0 ;
19368 PyObject *swig_obj[1] ;
19369
19370 if (!args) SWIG_fail;
19371 swig_obj[0] = args;
19372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19373 if (!SWIG_IsOK(res1)) {
19374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19375 }
19376 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19377 {
19378 PyThreadState* __tstate = wxPyBeginAllowThreads();
19379 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19380 wxPyEndAllowThreads(__tstate);
19381 if (PyErr_Occurred()) SWIG_fail;
19382 }
19383 {
19384 resultobj = wxPyMake_wxObject(result, (bool)0);
19385 }
19386 return resultobj;
19387fail:
19388 return NULL;
19389}
19390
19391
19392SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19393 PyObject *resultobj = 0;
19394 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19395 size_t arg2 ;
19396 int result;
19397 void *argp1 = 0 ;
19398 int res1 = 0 ;
19399 size_t val2 ;
19400 int ecode2 = 0 ;
19401 PyObject * obj0 = 0 ;
19402 PyObject * obj1 = 0 ;
19403 char * kwnames[] = {
19404 (char *) "self",(char *) "n", NULL
19405 };
19406
19407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19409 if (!SWIG_IsOK(res1)) {
19410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19411 }
19412 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19413 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19414 if (!SWIG_IsOK(ecode2)) {
19415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19416 }
19417 arg2 = static_cast< size_t >(val2);
19418 {
19419 PyThreadState* __tstate = wxPyBeginAllowThreads();
19420 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19421 wxPyEndAllowThreads(__tstate);
19422 if (PyErr_Occurred()) SWIG_fail;
19423 }
19424 resultobj = SWIG_From_int(static_cast< int >(result));
19425 return resultobj;
19426fail:
19427 return NULL;
19428}
19429
19430
19431SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19432 PyObject *resultobj = 0;
19433 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19434 size_t arg2 ;
19435 int arg3 ;
19436 bool result;
19437 void *argp1 = 0 ;
19438 int res1 = 0 ;
19439 size_t val2 ;
19440 int ecode2 = 0 ;
19441 int val3 ;
19442 int ecode3 = 0 ;
19443 PyObject * obj0 = 0 ;
19444 PyObject * obj1 = 0 ;
19445 PyObject * obj2 = 0 ;
19446 char * kwnames[] = {
19447 (char *) "self",(char *) "n",(char *) "imageId", NULL
19448 };
19449
19450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19452 if (!SWIG_IsOK(res1)) {
19453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19454 }
19455 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19456 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19457 if (!SWIG_IsOK(ecode2)) {
19458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19459 }
19460 arg2 = static_cast< size_t >(val2);
19461 ecode3 = SWIG_AsVal_int(obj2, &val3);
19462 if (!SWIG_IsOK(ecode3)) {
19463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19464 }
19465 arg3 = static_cast< int >(val3);
19466 {
19467 PyThreadState* __tstate = wxPyBeginAllowThreads();
19468 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19469 wxPyEndAllowThreads(__tstate);
19470 if (PyErr_Occurred()) SWIG_fail;
19471 }
19472 {
19473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19474 }
19475 return resultobj;
19476fail:
19477 return NULL;
19478}
19479
19480
19481SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19482 PyObject *resultobj = 0;
19483 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19484 wxSize *arg2 = 0 ;
19485 void *argp1 = 0 ;
19486 int res1 = 0 ;
19487 wxSize temp2 ;
19488 PyObject * obj0 = 0 ;
19489 PyObject * obj1 = 0 ;
19490 char * kwnames[] = {
19491 (char *) "self",(char *) "size", NULL
19492 };
19493
19494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19496 if (!SWIG_IsOK(res1)) {
19497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19498 }
19499 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19500 {
19501 arg2 = &temp2;
19502 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19503 }
19504 {
19505 PyThreadState* __tstate = wxPyBeginAllowThreads();
19506 (arg1)->SetPageSize((wxSize const &)*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_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19518 PyObject *resultobj = 0;
19519 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19520 wxSize *arg2 = 0 ;
19521 wxSize result;
19522 void *argp1 = 0 ;
19523 int res1 = 0 ;
19524 wxSize temp2 ;
19525 PyObject * obj0 = 0 ;
19526 PyObject * obj1 = 0 ;
19527 char * kwnames[] = {
19528 (char *) "self",(char *) "sizePage", NULL
19529 };
19530
19531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19533 if (!SWIG_IsOK(res1)) {
19534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19535 }
19536 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19537 {
19538 arg2 = &temp2;
19539 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19540 }
19541 {
19542 PyThreadState* __tstate = wxPyBeginAllowThreads();
19543 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19544 wxPyEndAllowThreads(__tstate);
19545 if (PyErr_Occurred()) SWIG_fail;
19546 }
19547 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19548 return resultobj;
19549fail:
19550 return NULL;
d14a1e28
RD
19551}
19552
19553
0085ce49
RD
19554SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19555 PyObject *resultobj = 0;
19556 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19557 unsigned int result;
0085ce49
RD
19558 void *argp1 = 0 ;
19559 int res1 = 0 ;
19560 PyObject *swig_obj[1] ;
19561
19562 if (!args) SWIG_fail;
19563 swig_obj[0] = args;
19564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19565 if (!SWIG_IsOK(res1)) {
19566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19567 }
19568 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19569 {
19570 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19571 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
0085ce49
RD
19572 wxPyEndAllowThreads(__tstate);
19573 if (PyErr_Occurred()) SWIG_fail;
19574 }
e9d6f3a4 19575 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
19576 return resultobj;
19577fail:
19578 return NULL;
19579}
19580
19581
19582SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19583 PyObject *resultobj = 0;
19584 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19585 unsigned int arg2 ;
0085ce49
RD
19586 void *argp1 = 0 ;
19587 int res1 = 0 ;
e9d6f3a4 19588 unsigned int val2 ;
0085ce49
RD
19589 int ecode2 = 0 ;
19590 PyObject * obj0 = 0 ;
19591 PyObject * obj1 = 0 ;
19592 char * kwnames[] = {
19593 (char *) "self",(char *) "internalBorder", NULL
19594 };
19595
19596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",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_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19600 }
19601 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19602 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 19603 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 19605 }
e9d6f3a4 19606 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
19607 {
19608 PyThreadState* __tstate = wxPyBeginAllowThreads();
19609 (arg1)->SetInternalBorder(arg2);
19610 wxPyEndAllowThreads(__tstate);
19611 if (PyErr_Occurred()) SWIG_fail;
19612 }
19613 resultobj = SWIG_Py_Void();
19614 return resultobj;
19615fail:
19616 return NULL;
b2dc1044
RD
19617}
19618
19619
0085ce49
RD
19620SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19621 PyObject *resultobj = 0;
19622 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19623 bool result;
19624 void *argp1 = 0 ;
19625 int res1 = 0 ;
19626 PyObject *swig_obj[1] ;
19627
19628 if (!args) SWIG_fail;
19629 swig_obj[0] = args;
19630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19631 if (!SWIG_IsOK(res1)) {
19632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19633 }
19634 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19635 {
19636 PyThreadState* __tstate = wxPyBeginAllowThreads();
19637 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19638 wxPyEndAllowThreads(__tstate);
19639 if (PyErr_Occurred()) SWIG_fail;
19640 }
19641 {
19642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19643 }
19644 return resultobj;
19645fail:
19646 return NULL;
19647}
19648
19649
e9d6f3a4
RD
19650SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19651 PyObject *resultobj = 0;
19652 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19653 int arg2 ;
19654 void *argp1 = 0 ;
19655 int res1 = 0 ;
19656 int val2 ;
19657 int ecode2 = 0 ;
19658 PyObject * obj0 = 0 ;
19659 PyObject * obj1 = 0 ;
19660 char * kwnames[] = {
19661 (char *) "self",(char *) "margin", NULL
19662 };
19663
19664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19666 if (!SWIG_IsOK(res1)) {
19667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19668 }
19669 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19670 ecode2 = SWIG_AsVal_int(obj1, &val2);
19671 if (!SWIG_IsOK(ecode2)) {
19672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19673 }
19674 arg2 = static_cast< int >(val2);
19675 {
19676 PyThreadState* __tstate = wxPyBeginAllowThreads();
19677 (arg1)->SetControlMargin(arg2);
19678 wxPyEndAllowThreads(__tstate);
19679 if (PyErr_Occurred()) SWIG_fail;
19680 }
19681 resultobj = SWIG_Py_Void();
19682 return resultobj;
19683fail:
19684 return NULL;
19685}
19686
19687
19688SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19689 PyObject *resultobj = 0;
19690 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19691 int result;
19692 void *argp1 = 0 ;
19693 int res1 = 0 ;
19694 PyObject *swig_obj[1] ;
19695
19696 if (!args) SWIG_fail;
19697 swig_obj[0] = args;
19698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19699 if (!SWIG_IsOK(res1)) {
19700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19701 }
19702 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19703 {
19704 PyThreadState* __tstate = wxPyBeginAllowThreads();
19705 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19706 wxPyEndAllowThreads(__tstate);
19707 if (PyErr_Occurred()) SWIG_fail;
19708 }
19709 resultobj = SWIG_From_int(static_cast< int >(result));
19710 return resultobj;
19711fail:
19712 return NULL;
19713}
19714
19715
0085ce49
RD
19716SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19717 PyObject *resultobj = 0;
19718 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19719 bool arg2 ;
19720 void *argp1 = 0 ;
19721 int res1 = 0 ;
19722 bool val2 ;
19723 int ecode2 = 0 ;
19724 PyObject * obj0 = 0 ;
19725 PyObject * obj1 = 0 ;
19726 char * kwnames[] = {
19727 (char *) "self",(char *) "fit", NULL
19728 };
19729
19730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19732 if (!SWIG_IsOK(res1)) {
19733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19734 }
19735 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19736 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19737 if (!SWIG_IsOK(ecode2)) {
19738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19739 }
19740 arg2 = static_cast< bool >(val2);
19741 {
19742 PyThreadState* __tstate = wxPyBeginAllowThreads();
19743 (arg1)->SetFitToCurrentPage(arg2);
19744 wxPyEndAllowThreads(__tstate);
19745 if (PyErr_Occurred()) SWIG_fail;
19746 }
19747 resultobj = SWIG_Py_Void();
19748 return resultobj;
19749fail:
19750 return NULL;
d14a1e28
RD
19751}
19752
19753
0085ce49
RD
19754SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19755 PyObject *resultobj = 0;
19756 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19757 bool result;
19758 void *argp1 = 0 ;
19759 int res1 = 0 ;
19760 PyObject *swig_obj[1] ;
19761
19762 if (!args) SWIG_fail;
19763 swig_obj[0] = args;
19764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19765 if (!SWIG_IsOK(res1)) {
19766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19767 }
19768 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19769 {
19770 PyThreadState* __tstate = wxPyBeginAllowThreads();
19771 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19772 wxPyEndAllowThreads(__tstate);
19773 if (PyErr_Occurred()) SWIG_fail;
19774 }
19775 {
19776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19777 }
19778 return resultobj;
19779fail:
19780 return NULL;
19781}
19782
19783
e9d6f3a4
RD
19784SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19785 PyObject *resultobj = 0;
19786 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19787 wxSizer *result = 0 ;
19788 void *argp1 = 0 ;
19789 int res1 = 0 ;
19790 PyObject *swig_obj[1] ;
19791
19792 if (!args) SWIG_fail;
19793 swig_obj[0] = args;
19794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19795 if (!SWIG_IsOK(res1)) {
19796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19797 }
19798 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19799 {
19800 PyThreadState* __tstate = wxPyBeginAllowThreads();
19801 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19802 wxPyEndAllowThreads(__tstate);
19803 if (PyErr_Occurred()) SWIG_fail;
19804 }
19805 {
19806 resultobj = wxPyMake_wxObject(result, (bool)0);
19807 }
19808 return resultobj;
19809fail:
19810 return NULL;
19811}
19812
19813
0085ce49
RD
19814SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19815 PyObject *resultobj = 0;
19816 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19817 size_t arg2 ;
19818 bool result;
19819 void *argp1 = 0 ;
19820 int res1 = 0 ;
19821 size_t val2 ;
19822 int ecode2 = 0 ;
19823 PyObject * obj0 = 0 ;
19824 PyObject * obj1 = 0 ;
19825 char * kwnames[] = {
19826 (char *) "self",(char *) "n", NULL
19827 };
19828
19829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19831 if (!SWIG_IsOK(res1)) {
19832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19833 }
19834 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19835 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19836 if (!SWIG_IsOK(ecode2)) {
19837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19838 }
19839 arg2 = static_cast< size_t >(val2);
19840 {
19841 PyThreadState* __tstate = wxPyBeginAllowThreads();
19842 result = (bool)(arg1)->DeletePage(arg2);
19843 wxPyEndAllowThreads(__tstate);
19844 if (PyErr_Occurred()) SWIG_fail;
19845 }
19846 {
19847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19848 }
19849 return resultobj;
19850fail:
19851 return NULL;
19852}
19853
19854
19855SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19856 PyObject *resultobj = 0;
19857 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19858 size_t arg2 ;
19859 bool result;
19860 void *argp1 = 0 ;
19861 int res1 = 0 ;
19862 size_t val2 ;
19863 int ecode2 = 0 ;
19864 PyObject * obj0 = 0 ;
19865 PyObject * obj1 = 0 ;
19866 char * kwnames[] = {
19867 (char *) "self",(char *) "n", NULL
19868 };
19869
19870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19872 if (!SWIG_IsOK(res1)) {
19873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19874 }
19875 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19876 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19877 if (!SWIG_IsOK(ecode2)) {
19878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19879 }
19880 arg2 = static_cast< size_t >(val2);
19881 {
19882 PyThreadState* __tstate = wxPyBeginAllowThreads();
19883 result = (bool)(arg1)->RemovePage(arg2);
19884 wxPyEndAllowThreads(__tstate);
19885 if (PyErr_Occurred()) SWIG_fail;
19886 }
19887 {
19888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19889 }
19890 return resultobj;
19891fail:
19892 return NULL;
d14a1e28
RD
19893}
19894
19895
0085ce49
RD
19896SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19897 PyObject *resultobj = 0;
19898 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19899 bool result;
19900 void *argp1 = 0 ;
19901 int res1 = 0 ;
19902 PyObject *swig_obj[1] ;
19903
19904 if (!args) SWIG_fail;
19905 swig_obj[0] = args;
19906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19907 if (!SWIG_IsOK(res1)) {
19908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19909 }
19910 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19911 {
19912 PyThreadState* __tstate = wxPyBeginAllowThreads();
19913 result = (bool)(arg1)->DeleteAllPages();
19914 wxPyEndAllowThreads(__tstate);
19915 if (PyErr_Occurred()) SWIG_fail;
19916 }
19917 {
19918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19919 }
19920 return resultobj;
19921fail:
19922 return NULL;
19923}
19924
19925
19926SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19927 PyObject *resultobj = 0;
19928 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19929 wxWindow *arg2 = (wxWindow *) 0 ;
19930 wxString *arg3 = 0 ;
19931 bool arg4 = (bool) false ;
19932 int arg5 = (int) -1 ;
19933 bool result;
19934 void *argp1 = 0 ;
19935 int res1 = 0 ;
19936 void *argp2 = 0 ;
19937 int res2 = 0 ;
19938 bool temp3 = false ;
19939 bool val4 ;
19940 int ecode4 = 0 ;
19941 int val5 ;
19942 int ecode5 = 0 ;
19943 PyObject * obj0 = 0 ;
19944 PyObject * obj1 = 0 ;
19945 PyObject * obj2 = 0 ;
19946 PyObject * obj3 = 0 ;
19947 PyObject * obj4 = 0 ;
19948 char * kwnames[] = {
19949 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19950 };
19951
19952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19954 if (!SWIG_IsOK(res1)) {
19955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19956 }
19957 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19958 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19959 if (!SWIG_IsOK(res2)) {
19960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19961 }
19962 arg2 = reinterpret_cast< wxWindow * >(argp2);
19963 {
19964 arg3 = wxString_in_helper(obj2);
19965 if (arg3 == NULL) SWIG_fail;
19966 temp3 = true;
19967 }
19968 if (obj3) {
19969 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19970 if (!SWIG_IsOK(ecode4)) {
19971 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19972 }
19973 arg4 = static_cast< bool >(val4);
19974 }
19975 if (obj4) {
19976 ecode5 = SWIG_AsVal_int(obj4, &val5);
19977 if (!SWIG_IsOK(ecode5)) {
19978 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19979 }
19980 arg5 = static_cast< int >(val5);
19981 }
19982 {
19983 PyThreadState* __tstate = wxPyBeginAllowThreads();
19984 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19985 wxPyEndAllowThreads(__tstate);
19986 if (PyErr_Occurred()) SWIG_fail;
19987 }
19988 {
19989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19990 }
19991 {
19992 if (temp3)
19993 delete arg3;
19994 }
19995 return resultobj;
19996fail:
19997 {
19998 if (temp3)
19999 delete arg3;
20000 }
20001 return NULL;
20002}
20003
20004
20005SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20006 PyObject *resultobj = 0;
20007 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20008 size_t arg2 ;
20009 wxWindow *arg3 = (wxWindow *) 0 ;
20010 wxString *arg4 = 0 ;
20011 bool arg5 = (bool) false ;
20012 int arg6 = (int) -1 ;
20013 bool result;
20014 void *argp1 = 0 ;
20015 int res1 = 0 ;
20016 size_t val2 ;
20017 int ecode2 = 0 ;
20018 void *argp3 = 0 ;
20019 int res3 = 0 ;
20020 bool temp4 = false ;
20021 bool val5 ;
20022 int ecode5 = 0 ;
20023 int val6 ;
20024 int ecode6 = 0 ;
20025 PyObject * obj0 = 0 ;
20026 PyObject * obj1 = 0 ;
20027 PyObject * obj2 = 0 ;
20028 PyObject * obj3 = 0 ;
20029 PyObject * obj4 = 0 ;
20030 PyObject * obj5 = 0 ;
20031 char * kwnames[] = {
20032 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20033 };
20034
20035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20037 if (!SWIG_IsOK(res1)) {
20038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20039 }
20040 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20041 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20042 if (!SWIG_IsOK(ecode2)) {
20043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20044 }
20045 arg2 = static_cast< size_t >(val2);
20046 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20047 if (!SWIG_IsOK(res3)) {
20048 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20049 }
20050 arg3 = reinterpret_cast< wxWindow * >(argp3);
20051 {
20052 arg4 = wxString_in_helper(obj3);
20053 if (arg4 == NULL) SWIG_fail;
20054 temp4 = true;
20055 }
20056 if (obj4) {
20057 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20058 if (!SWIG_IsOK(ecode5)) {
20059 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20060 }
20061 arg5 = static_cast< bool >(val5);
20062 }
20063 if (obj5) {
20064 ecode6 = SWIG_AsVal_int(obj5, &val6);
20065 if (!SWIG_IsOK(ecode6)) {
20066 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20067 }
20068 arg6 = static_cast< int >(val6);
20069 }
20070 {
20071 PyThreadState* __tstate = wxPyBeginAllowThreads();
20072 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20073 wxPyEndAllowThreads(__tstate);
20074 if (PyErr_Occurred()) SWIG_fail;
20075 }
20076 {
20077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20078 }
20079 {
20080 if (temp4)
20081 delete arg4;
20082 }
20083 return resultobj;
20084fail:
20085 {
20086 if (temp4)
20087 delete arg4;
20088 }
20089 return NULL;
20090}
20091
20092
20093SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20094 PyObject *resultobj = 0;
20095 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20096 size_t arg2 ;
20097 int result;
20098 void *argp1 = 0 ;
20099 int res1 = 0 ;
20100 size_t val2 ;
20101 int ecode2 = 0 ;
20102 PyObject * obj0 = 0 ;
20103 PyObject * obj1 = 0 ;
20104 char * kwnames[] = {
20105 (char *) "self",(char *) "n", NULL
20106 };
20107
20108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20110 if (!SWIG_IsOK(res1)) {
20111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20112 }
20113 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20114 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20115 if (!SWIG_IsOK(ecode2)) {
20116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20117 }
20118 arg2 = static_cast< size_t >(val2);
20119 {
20120 PyThreadState* __tstate = wxPyBeginAllowThreads();
20121 result = (int)(arg1)->SetSelection(arg2);
20122 wxPyEndAllowThreads(__tstate);
20123 if (PyErr_Occurred()) SWIG_fail;
20124 }
20125 resultobj = SWIG_From_int(static_cast< int >(result));
20126 return resultobj;
20127fail:
20128 return NULL;
20129}
20130
20131
20132SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20133 PyObject *resultobj = 0;
20134 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20135 bool arg2 = (bool) true ;
20136 void *argp1 = 0 ;
20137 int res1 = 0 ;
20138 bool val2 ;
20139 int ecode2 = 0 ;
20140 PyObject * obj0 = 0 ;
20141 PyObject * obj1 = 0 ;
20142 char * kwnames[] = {
20143 (char *) "self",(char *) "forward", NULL
20144 };
20145
20146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20148 if (!SWIG_IsOK(res1)) {
20149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20150 }
20151 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20152 if (obj1) {
20153 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20154 if (!SWIG_IsOK(ecode2)) {
20155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20156 }
20157 arg2 = static_cast< bool >(val2);
20158 }
20159 {
20160 PyThreadState* __tstate = wxPyBeginAllowThreads();
20161 (arg1)->AdvanceSelection(arg2);
20162 wxPyEndAllowThreads(__tstate);
20163 if (PyErr_Occurred()) SWIG_fail;
20164 }
20165 resultobj = SWIG_Py_Void();
20166 return resultobj;
20167fail:
20168 return NULL;
20169}
20170
20171
704eda0c
RD
20172SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20173 PyObject *resultobj = 0;
20174 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20175 wxPoint *arg2 = 0 ;
20176 long *arg3 = (long *) 0 ;
20177 int result;
20178 void *argp1 = 0 ;
20179 int res1 = 0 ;
20180 wxPoint temp2 ;
20181 long temp3 ;
20182 int res3 = SWIG_TMPOBJ ;
20183 PyObject * obj0 = 0 ;
20184 PyObject * obj1 = 0 ;
20185 char * kwnames[] = {
20186 (char *) "self",(char *) "pt", NULL
20187 };
20188
20189 arg3 = &temp3;
20190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20192 if (!SWIG_IsOK(res1)) {
20193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20194 }
20195 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20196 {
20197 arg2 = &temp2;
20198 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20199 }
20200 {
20201 PyThreadState* __tstate = wxPyBeginAllowThreads();
20202 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20203 wxPyEndAllowThreads(__tstate);
20204 if (PyErr_Occurred()) SWIG_fail;
20205 }
20206 resultobj = SWIG_From_int(static_cast< int >(result));
20207 if (SWIG_IsTmpObj(res3)) {
20208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20209 } else {
20210 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20212 }
20213 return resultobj;
20214fail:
20215 return NULL;
20216}
20217
20218
0085ce49
RD
20219SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20220 PyObject *resultobj = 0;
20221 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20222 SwigValueWrapper<wxVisualAttributes > result;
20223 int val1 ;
20224 int ecode1 = 0 ;
20225 PyObject * obj0 = 0 ;
20226 char * kwnames[] = {
20227 (char *) "variant", NULL
20228 };
20229
20230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20231 if (obj0) {
20232 ecode1 = SWIG_AsVal_int(obj0, &val1);
20233 if (!SWIG_IsOK(ecode1)) {
20234 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20235 }
20236 arg1 = static_cast< wxWindowVariant >(val1);
20237 }
20238 {
20239 if (!wxPyCheckForApp()) SWIG_fail;
20240 PyThreadState* __tstate = wxPyBeginAllowThreads();
20241 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20242 wxPyEndAllowThreads(__tstate);
20243 if (PyErr_Occurred()) SWIG_fail;
20244 }
20245 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20246 return resultobj;
20247fail:
20248 return NULL;
20249}
20250
20251
20252SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20253 PyObject *obj;
20254 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20255 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20256 return SWIG_Py_Void();
20257}
20258
20259SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20260 PyObject *resultobj = 0;
20261 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20262 int arg2 = (int) 0 ;
20263 int arg3 = (int) -1 ;
20264 int arg4 = (int) -1 ;
20265 wxBookCtrlBaseEvent *result = 0 ;
20266 int val1 ;
20267 int ecode1 = 0 ;
20268 int val2 ;
20269 int ecode2 = 0 ;
20270 int val3 ;
20271 int ecode3 = 0 ;
20272 int val4 ;
20273 int ecode4 = 0 ;
20274 PyObject * obj0 = 0 ;
20275 PyObject * obj1 = 0 ;
20276 PyObject * obj2 = 0 ;
20277 PyObject * obj3 = 0 ;
20278 char * kwnames[] = {
20279 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20280 };
20281
20282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20283 if (obj0) {
20284 ecode1 = SWIG_AsVal_int(obj0, &val1);
20285 if (!SWIG_IsOK(ecode1)) {
20286 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20287 }
20288 arg1 = static_cast< wxEventType >(val1);
20289 }
20290 if (obj1) {
20291 ecode2 = SWIG_AsVal_int(obj1, &val2);
20292 if (!SWIG_IsOK(ecode2)) {
20293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20294 }
20295 arg2 = static_cast< int >(val2);
20296 }
20297 if (obj2) {
20298 ecode3 = SWIG_AsVal_int(obj2, &val3);
20299 if (!SWIG_IsOK(ecode3)) {
20300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20301 }
20302 arg3 = static_cast< int >(val3);
20303 }
20304 if (obj3) {
20305 ecode4 = SWIG_AsVal_int(obj3, &val4);
20306 if (!SWIG_IsOK(ecode4)) {
20307 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20308 }
20309 arg4 = static_cast< int >(val4);
20310 }
20311 {
20312 PyThreadState* __tstate = wxPyBeginAllowThreads();
20313 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20314 wxPyEndAllowThreads(__tstate);
20315 if (PyErr_Occurred()) SWIG_fail;
20316 }
20317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20318 return resultobj;
20319fail:
20320 return NULL;
d14a1e28
RD
20321}
20322
20323
0085ce49
RD
20324SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20325 PyObject *resultobj = 0;
20326 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20327 int result;
20328 void *argp1 = 0 ;
20329 int res1 = 0 ;
20330 PyObject *swig_obj[1] ;
20331
20332 if (!args) SWIG_fail;
20333 swig_obj[0] = args;
20334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20335 if (!SWIG_IsOK(res1)) {
20336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20337 }
20338 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20339 {
20340 PyThreadState* __tstate = wxPyBeginAllowThreads();
20341 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20342 wxPyEndAllowThreads(__tstate);
20343 if (PyErr_Occurred()) SWIG_fail;
20344 }
20345 resultobj = SWIG_From_int(static_cast< int >(result));
20346 return resultobj;
20347fail:
20348 return NULL;
20349}
20350
20351
20352SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20353 PyObject *resultobj = 0;
20354 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20355 int arg2 ;
20356 void *argp1 = 0 ;
20357 int res1 = 0 ;
20358 int val2 ;
20359 int ecode2 = 0 ;
20360 PyObject * obj0 = 0 ;
20361 PyObject * obj1 = 0 ;
20362 char * kwnames[] = {
20363 (char *) "self",(char *) "nSel", NULL
20364 };
20365
20366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20368 if (!SWIG_IsOK(res1)) {
20369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20370 }
20371 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20372 ecode2 = SWIG_AsVal_int(obj1, &val2);
20373 if (!SWIG_IsOK(ecode2)) {
20374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20375 }
20376 arg2 = static_cast< int >(val2);
20377 {
20378 PyThreadState* __tstate = wxPyBeginAllowThreads();
20379 (arg1)->SetSelection(arg2);
20380 wxPyEndAllowThreads(__tstate);
20381 if (PyErr_Occurred()) SWIG_fail;
20382 }
20383 resultobj = SWIG_Py_Void();
20384 return resultobj;
20385fail:
20386 return NULL;
d14a1e28
RD
20387}
20388
20389
0085ce49
RD
20390SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20391 PyObject *resultobj = 0;
20392 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20393 int result;
20394 void *argp1 = 0 ;
20395 int res1 = 0 ;
20396 PyObject *swig_obj[1] ;
20397
20398 if (!args) SWIG_fail;
20399 swig_obj[0] = args;
20400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20401 if (!SWIG_IsOK(res1)) {
20402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20403 }
20404 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20405 {
20406 PyThreadState* __tstate = wxPyBeginAllowThreads();
20407 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20408 wxPyEndAllowThreads(__tstate);
20409 if (PyErr_Occurred()) SWIG_fail;
20410 }
20411 resultobj = SWIG_From_int(static_cast< int >(result));
20412 return resultobj;
20413fail:
20414 return NULL;
20415}
20416
20417
20418SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20419 PyObject *resultobj = 0;
20420 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20421 int arg2 ;
20422 void *argp1 = 0 ;
20423 int res1 = 0 ;
20424 int val2 ;
20425 int ecode2 = 0 ;
20426 PyObject * obj0 = 0 ;
20427 PyObject * obj1 = 0 ;
20428 char * kwnames[] = {
20429 (char *) "self",(char *) "nOldSel", NULL
20430 };
20431
20432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20434 if (!SWIG_IsOK(res1)) {
20435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20436 }
20437 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20438 ecode2 = SWIG_AsVal_int(obj1, &val2);
20439 if (!SWIG_IsOK(ecode2)) {
20440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20441 }
20442 arg2 = static_cast< int >(val2);
20443 {
20444 PyThreadState* __tstate = wxPyBeginAllowThreads();
20445 (arg1)->SetOldSelection(arg2);
20446 wxPyEndAllowThreads(__tstate);
20447 if (PyErr_Occurred()) SWIG_fail;
20448 }
20449 resultobj = SWIG_Py_Void();
20450 return resultobj;
20451fail:
20452 return NULL;
20453}
20454
20455
20456SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20457 PyObject *obj;
20458 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20459 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20460 return SWIG_Py_Void();
20461}
20462
20463SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20464 return SWIG_Python_InitShadowInstance(args);
20465}
20466
20467SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20468 PyObject *resultobj = 0;
20469 wxWindow *arg1 = (wxWindow *) 0 ;
20470 int arg2 = (int) -1 ;
20471 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20472 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20473 wxSize const &arg4_defvalue = wxDefaultSize ;
20474 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20475 long arg5 = (long) 0 ;
20476 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20477 wxString *arg6 = (wxString *) &arg6_defvalue ;
20478 wxNotebook *result = 0 ;
20479 void *argp1 = 0 ;
20480 int res1 = 0 ;
20481 int val2 ;
20482 int ecode2 = 0 ;
20483 wxPoint temp3 ;
20484 wxSize temp4 ;
20485 long val5 ;
20486 int ecode5 = 0 ;
20487 bool temp6 = false ;
20488 PyObject * obj0 = 0 ;
20489 PyObject * obj1 = 0 ;
20490 PyObject * obj2 = 0 ;
20491 PyObject * obj3 = 0 ;
20492 PyObject * obj4 = 0 ;
20493 PyObject * obj5 = 0 ;
20494 char * kwnames[] = {
20495 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20496 };
20497
20498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20500 if (!SWIG_IsOK(res1)) {
20501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20502 }
20503 arg1 = reinterpret_cast< wxWindow * >(argp1);
20504 if (obj1) {
20505 ecode2 = SWIG_AsVal_int(obj1, &val2);
20506 if (!SWIG_IsOK(ecode2)) {
20507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20508 }
20509 arg2 = static_cast< int >(val2);
20510 }
20511 if (obj2) {
093d3ff1 20512 {
0085ce49
RD
20513 arg3 = &temp3;
20514 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20515 }
0085ce49
RD
20516 }
20517 if (obj3) {
d14a1e28 20518 {
0085ce49
RD
20519 arg4 = &temp4;
20520 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 20521 }
0085ce49
RD
20522 }
20523 if (obj4) {
20524 ecode5 = SWIG_AsVal_long(obj4, &val5);
20525 if (!SWIG_IsOK(ecode5)) {
20526 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20527 }
20528 arg5 = static_cast< long >(val5);
20529 }
20530 if (obj5) {
093d3ff1 20531 {
0085ce49
RD
20532 arg6 = wxString_in_helper(obj5);
20533 if (arg6 == NULL) SWIG_fail;
20534 temp6 = true;
093d3ff1 20535 }
0085ce49
RD
20536 }
20537 {
20538 if (!wxPyCheckForApp()) SWIG_fail;
20539 PyThreadState* __tstate = wxPyBeginAllowThreads();
20540 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20541 wxPyEndAllowThreads(__tstate);
20542 if (PyErr_Occurred()) SWIG_fail;
20543 }
20544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20545 {
20546 if (temp6)
20547 delete arg6;
20548 }
20549 return resultobj;
20550fail:
20551 {
20552 if (temp6)
20553 delete arg6;
20554 }
20555 return NULL;
d14a1e28
RD
20556}
20557
20558
0085ce49
RD
20559SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20560 PyObject *resultobj = 0;
20561 wxNotebook *result = 0 ;
20562
20563 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20564 {
20565 if (!wxPyCheckForApp()) SWIG_fail;
20566 PyThreadState* __tstate = wxPyBeginAllowThreads();
20567 result = (wxNotebook *)new wxNotebook();
20568 wxPyEndAllowThreads(__tstate);
20569 if (PyErr_Occurred()) SWIG_fail;
20570 }
20571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20572 return resultobj;
20573fail:
20574 return NULL;
20575}
20576
20577
20578SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20579 PyObject *resultobj = 0;
20580 wxNotebook *arg1 = (wxNotebook *) 0 ;
20581 wxWindow *arg2 = (wxWindow *) 0 ;
20582 int arg3 = (int) -1 ;
20583 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20584 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20585 wxSize const &arg5_defvalue = wxDefaultSize ;
20586 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20587 long arg6 = (long) 0 ;
20588 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20589 wxString *arg7 = (wxString *) &arg7_defvalue ;
20590 bool result;
20591 void *argp1 = 0 ;
20592 int res1 = 0 ;
20593 void *argp2 = 0 ;
20594 int res2 = 0 ;
20595 int val3 ;
20596 int ecode3 = 0 ;
20597 wxPoint temp4 ;
20598 wxSize temp5 ;
20599 long val6 ;
20600 int ecode6 = 0 ;
20601 bool temp7 = false ;
20602 PyObject * obj0 = 0 ;
20603 PyObject * obj1 = 0 ;
20604 PyObject * obj2 = 0 ;
20605 PyObject * obj3 = 0 ;
20606 PyObject * obj4 = 0 ;
20607 PyObject * obj5 = 0 ;
20608 PyObject * obj6 = 0 ;
20609 char * kwnames[] = {
20610 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20611 };
20612
20613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20615 if (!SWIG_IsOK(res1)) {
20616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20617 }
20618 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20619 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20620 if (!SWIG_IsOK(res2)) {
20621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20622 }
20623 arg2 = reinterpret_cast< wxWindow * >(argp2);
20624 if (obj2) {
20625 ecode3 = SWIG_AsVal_int(obj2, &val3);
20626 if (!SWIG_IsOK(ecode3)) {
20627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20628 }
20629 arg3 = static_cast< int >(val3);
20630 }
20631 if (obj3) {
093d3ff1 20632 {
0085ce49
RD
20633 arg4 = &temp4;
20634 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 20635 }
0085ce49
RD
20636 }
20637 if (obj4) {
d14a1e28 20638 {
0085ce49
RD
20639 arg5 = &temp5;
20640 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 20641 }
0085ce49
RD
20642 }
20643 if (obj5) {
20644 ecode6 = SWIG_AsVal_long(obj5, &val6);
20645 if (!SWIG_IsOK(ecode6)) {
20646 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20647 }
20648 arg6 = static_cast< long >(val6);
20649 }
20650 if (obj6) {
4f89f6a3 20651 {
0085ce49
RD
20652 arg7 = wxString_in_helper(obj6);
20653 if (arg7 == NULL) SWIG_fail;
20654 temp7 = true;
4f89f6a3 20655 }
0085ce49
RD
20656 }
20657 {
20658 PyThreadState* __tstate = wxPyBeginAllowThreads();
20659 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20660 wxPyEndAllowThreads(__tstate);
20661 if (PyErr_Occurred()) SWIG_fail;
20662 }
20663 {
20664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20665 }
20666 {
20667 if (temp7)
20668 delete arg7;
20669 }
20670 return resultobj;
20671fail:
20672 {
20673 if (temp7)
20674 delete arg7;
20675 }
20676 return NULL;
d14a1e28
RD
20677}
20678
20679
0085ce49
RD
20680SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20681 PyObject *resultobj = 0;
20682 wxNotebook *arg1 = (wxNotebook *) 0 ;
20683 int result;
20684 void *argp1 = 0 ;
20685 int res1 = 0 ;
20686 PyObject *swig_obj[1] ;
20687
20688 if (!args) SWIG_fail;
20689 swig_obj[0] = args;
20690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20691 if (!SWIG_IsOK(res1)) {
20692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20693 }
20694 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20695 {
20696 PyThreadState* __tstate = wxPyBeginAllowThreads();
20697 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20698 wxPyEndAllowThreads(__tstate);
20699 if (PyErr_Occurred()) SWIG_fail;
20700 }
20701 resultobj = SWIG_From_int(static_cast< int >(result));
20702 return resultobj;
20703fail:
20704 return NULL;
20705}
20706
20707
20708SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20709 PyObject *resultobj = 0;
20710 wxNotebook *arg1 = (wxNotebook *) 0 ;
20711 wxSize *arg2 = 0 ;
20712 void *argp1 = 0 ;
20713 int res1 = 0 ;
20714 wxSize temp2 ;
20715 PyObject * obj0 = 0 ;
20716 PyObject * obj1 = 0 ;
20717 char * kwnames[] = {
20718 (char *) "self",(char *) "padding", NULL
20719 };
20720
20721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20723 if (!SWIG_IsOK(res1)) {
20724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20725 }
20726 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20727 {
20728 arg2 = &temp2;
20729 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20730 }
20731 {
20732 PyThreadState* __tstate = wxPyBeginAllowThreads();
20733 (arg1)->SetPadding((wxSize const &)*arg2);
20734 wxPyEndAllowThreads(__tstate);
20735 if (PyErr_Occurred()) SWIG_fail;
20736 }
20737 resultobj = SWIG_Py_Void();
20738 return resultobj;
20739fail:
20740 return NULL;
20741}
20742
20743
20744SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20745 PyObject *resultobj = 0;
20746 wxNotebook *arg1 = (wxNotebook *) 0 ;
20747 wxSize *arg2 = 0 ;
20748 void *argp1 = 0 ;
20749 int res1 = 0 ;
20750 wxSize temp2 ;
20751 PyObject * obj0 = 0 ;
20752 PyObject * obj1 = 0 ;
20753 char * kwnames[] = {
20754 (char *) "self",(char *) "sz", NULL
20755 };
20756
20757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20759 if (!SWIG_IsOK(res1)) {
20760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20761 }
20762 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20763 {
20764 arg2 = &temp2;
20765 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20766 }
20767 {
20768 PyThreadState* __tstate = wxPyBeginAllowThreads();
20769 (arg1)->SetTabSize((wxSize const &)*arg2);
20770 wxPyEndAllowThreads(__tstate);
20771 if (PyErr_Occurred()) SWIG_fail;
20772 }
20773 resultobj = SWIG_Py_Void();
20774 return resultobj;
20775fail:
20776 return NULL;
20777}
20778
20779
0085ce49
RD
20780SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20781 PyObject *resultobj = 0;
20782 wxNotebook *arg1 = (wxNotebook *) 0 ;
20783 wxColour result;
20784 void *argp1 = 0 ;
20785 int res1 = 0 ;
20786 PyObject *swig_obj[1] ;
20787
20788 if (!args) SWIG_fail;
20789 swig_obj[0] = args;
20790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20791 if (!SWIG_IsOK(res1)) {
20792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20793 }
20794 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20795 {
20796 PyThreadState* __tstate = wxPyBeginAllowThreads();
20797 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20798 wxPyEndAllowThreads(__tstate);
20799 if (PyErr_Occurred()) SWIG_fail;
20800 }
20801 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20802 return resultobj;
20803fail:
20804 return NULL;
20805}
20806
20807
20808SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20809 PyObject *resultobj = 0;
20810 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20811 SwigValueWrapper<wxVisualAttributes > result;
20812 int val1 ;
20813 int ecode1 = 0 ;
20814 PyObject * obj0 = 0 ;
20815 char * kwnames[] = {
20816 (char *) "variant", NULL
20817 };
20818
20819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20820 if (obj0) {
20821 ecode1 = SWIG_AsVal_int(obj0, &val1);
20822 if (!SWIG_IsOK(ecode1)) {
20823 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20824 }
20825 arg1 = static_cast< wxWindowVariant >(val1);
20826 }
20827 {
20828 if (!wxPyCheckForApp()) SWIG_fail;
20829 PyThreadState* __tstate = wxPyBeginAllowThreads();
20830 result = wxNotebook::GetClassDefaultAttributes(arg1);
20831 wxPyEndAllowThreads(__tstate);
20832 if (PyErr_Occurred()) SWIG_fail;
20833 }
20834 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20835 return resultobj;
20836fail:
20837 return NULL;
20838}
20839
20840
20841SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20842 PyObject *obj;
20843 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20844 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20845 return SWIG_Py_Void();
20846}
20847
20848SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20849 return SWIG_Python_InitShadowInstance(args);
20850}
20851
20852SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20853 PyObject *resultobj = 0;
20854 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20855 int arg2 = (int) 0 ;
20856 int arg3 = (int) -1 ;
20857 int arg4 = (int) -1 ;
20858 wxNotebookEvent *result = 0 ;
20859 int val1 ;
20860 int ecode1 = 0 ;
20861 int val2 ;
20862 int ecode2 = 0 ;
20863 int val3 ;
20864 int ecode3 = 0 ;
20865 int val4 ;
20866 int ecode4 = 0 ;
20867 PyObject * obj0 = 0 ;
20868 PyObject * obj1 = 0 ;
20869 PyObject * obj2 = 0 ;
20870 PyObject * obj3 = 0 ;
20871 char * kwnames[] = {
20872 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20873 };
20874
20875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20876 if (obj0) {
20877 ecode1 = SWIG_AsVal_int(obj0, &val1);
20878 if (!SWIG_IsOK(ecode1)) {
20879 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20880 }
20881 arg1 = static_cast< wxEventType >(val1);
20882 }
20883 if (obj1) {
20884 ecode2 = SWIG_AsVal_int(obj1, &val2);
20885 if (!SWIG_IsOK(ecode2)) {
20886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20887 }
20888 arg2 = static_cast< int >(val2);
20889 }
20890 if (obj2) {
20891 ecode3 = SWIG_AsVal_int(obj2, &val3);
20892 if (!SWIG_IsOK(ecode3)) {
20893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20894 }
20895 arg3 = static_cast< int >(val3);
20896 }
20897 if (obj3) {
20898 ecode4 = SWIG_AsVal_int(obj3, &val4);
20899 if (!SWIG_IsOK(ecode4)) {
20900 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20901 }
20902 arg4 = static_cast< int >(val4);
20903 }
20904 {
20905 PyThreadState* __tstate = wxPyBeginAllowThreads();
20906 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20907 wxPyEndAllowThreads(__tstate);
20908 if (PyErr_Occurred()) SWIG_fail;
20909 }
20910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20911 return resultobj;
20912fail:
20913 return NULL;
20914}
20915
20916
20917SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20918 PyObject *obj;
20919 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20920 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20921 return SWIG_Py_Void();
20922}
20923
20924SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20925 return SWIG_Python_InitShadowInstance(args);
20926}
20927
20928SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20929 PyObject *resultobj = 0;
20930 wxWindow *arg1 = (wxWindow *) 0 ;
20931 int arg2 = (int) -1 ;
20932 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20933 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20934 wxSize const &arg4_defvalue = wxDefaultSize ;
20935 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20936 long arg5 = (long) 0 ;
20937 wxString const &arg6_defvalue = wxPyEmptyString ;
20938 wxString *arg6 = (wxString *) &arg6_defvalue ;
20939 wxListbook *result = 0 ;
20940 void *argp1 = 0 ;
20941 int res1 = 0 ;
20942 int val2 ;
20943 int ecode2 = 0 ;
20944 wxPoint temp3 ;
20945 wxSize temp4 ;
20946 long val5 ;
20947 int ecode5 = 0 ;
20948 bool temp6 = false ;
20949 PyObject * obj0 = 0 ;
20950 PyObject * obj1 = 0 ;
20951 PyObject * obj2 = 0 ;
20952 PyObject * obj3 = 0 ;
20953 PyObject * obj4 = 0 ;
20954 PyObject * obj5 = 0 ;
20955 char * kwnames[] = {
20956 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20957 };
20958
20959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20961 if (!SWIG_IsOK(res1)) {
20962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20963 }
20964 arg1 = reinterpret_cast< wxWindow * >(argp1);
20965 if (obj1) {
20966 ecode2 = SWIG_AsVal_int(obj1, &val2);
20967 if (!SWIG_IsOK(ecode2)) {
20968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20969 }
20970 arg2 = static_cast< int >(val2);
20971 }
20972 if (obj2) {
093d3ff1 20973 {
0085ce49
RD
20974 arg3 = &temp3;
20975 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20976 }
0085ce49
RD
20977 }
20978 if (obj3) {
093d3ff1 20979 {
0085ce49
RD
20980 arg4 = &temp4;
20981 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 20982 }
0085ce49
RD
20983 }
20984 if (obj4) {
20985 ecode5 = SWIG_AsVal_long(obj4, &val5);
20986 if (!SWIG_IsOK(ecode5)) {
20987 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20988 }
20989 arg5 = static_cast< long >(val5);
20990 }
20991 if (obj5) {
d14a1e28 20992 {
0085ce49
RD
20993 arg6 = wxString_in_helper(obj5);
20994 if (arg6 == NULL) SWIG_fail;
20995 temp6 = true;
d14a1e28 20996 }
0085ce49
RD
20997 }
20998 {
20999 if (!wxPyCheckForApp()) SWIG_fail;
21000 PyThreadState* __tstate = wxPyBeginAllowThreads();
21001 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21002 wxPyEndAllowThreads(__tstate);
21003 if (PyErr_Occurred()) SWIG_fail;
21004 }
21005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21006 {
21007 if (temp6)
21008 delete arg6;
21009 }
21010 return resultobj;
21011fail:
21012 {
21013 if (temp6)
21014 delete arg6;
21015 }
21016 return NULL;
d14a1e28
RD
21017}
21018
21019
0085ce49
RD
21020SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21021 PyObject *resultobj = 0;
21022 wxListbook *result = 0 ;
21023
21024 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21025 {
21026 if (!wxPyCheckForApp()) SWIG_fail;
21027 PyThreadState* __tstate = wxPyBeginAllowThreads();
21028 result = (wxListbook *)new wxListbook();
21029 wxPyEndAllowThreads(__tstate);
21030 if (PyErr_Occurred()) SWIG_fail;
21031 }
21032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21033 return resultobj;
21034fail:
21035 return NULL;
21036}
21037
21038
21039SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21040 PyObject *resultobj = 0;
21041 wxListbook *arg1 = (wxListbook *) 0 ;
21042 wxWindow *arg2 = (wxWindow *) 0 ;
21043 int arg3 = (int) -1 ;
21044 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21045 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21046 wxSize const &arg5_defvalue = wxDefaultSize ;
21047 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21048 long arg6 = (long) 0 ;
21049 wxString const &arg7_defvalue = wxPyEmptyString ;
21050 wxString *arg7 = (wxString *) &arg7_defvalue ;
21051 bool result;
21052 void *argp1 = 0 ;
21053 int res1 = 0 ;
21054 void *argp2 = 0 ;
21055 int res2 = 0 ;
21056 int val3 ;
21057 int ecode3 = 0 ;
21058 wxPoint temp4 ;
21059 wxSize temp5 ;
21060 long val6 ;
21061 int ecode6 = 0 ;
21062 bool temp7 = false ;
21063 PyObject * obj0 = 0 ;
21064 PyObject * obj1 = 0 ;
21065 PyObject * obj2 = 0 ;
21066 PyObject * obj3 = 0 ;
21067 PyObject * obj4 = 0 ;
21068 PyObject * obj5 = 0 ;
21069 PyObject * obj6 = 0 ;
21070 char * kwnames[] = {
21071 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21072 };
21073
21074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21076 if (!SWIG_IsOK(res1)) {
21077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21078 }
21079 arg1 = reinterpret_cast< wxListbook * >(argp1);
21080 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21081 if (!SWIG_IsOK(res2)) {
21082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21083 }
21084 arg2 = reinterpret_cast< wxWindow * >(argp2);
21085 if (obj2) {
21086 ecode3 = SWIG_AsVal_int(obj2, &val3);
21087 if (!SWIG_IsOK(ecode3)) {
21088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21089 }
21090 arg3 = static_cast< int >(val3);
21091 }
21092 if (obj3) {
22bfe96c 21093 {
0085ce49
RD
21094 arg4 = &temp4;
21095 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 21096 }
0085ce49
RD
21097 }
21098 if (obj4) {
22bfe96c 21099 {
0085ce49
RD
21100 arg5 = &temp5;
21101 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 21102 }
0085ce49
RD
21103 }
21104 if (obj5) {
21105 ecode6 = SWIG_AsVal_long(obj5, &val6);
21106 if (!SWIG_IsOK(ecode6)) {
21107 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21108 }
21109 arg6 = static_cast< long >(val6);
21110 }
21111 if (obj6) {
b2dc1044 21112 {
0085ce49
RD
21113 arg7 = wxString_in_helper(obj6);
21114 if (arg7 == NULL) SWIG_fail;
21115 temp7 = true;
b2dc1044 21116 }
0085ce49
RD
21117 }
21118 {
21119 PyThreadState* __tstate = wxPyBeginAllowThreads();
21120 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21121 wxPyEndAllowThreads(__tstate);
21122 if (PyErr_Occurred()) SWIG_fail;
21123 }
21124 {
21125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21126 }
21127 {
21128 if (temp7)
21129 delete arg7;
21130 }
21131 return resultobj;
21132fail:
21133 {
21134 if (temp7)
21135 delete arg7;
21136 }
21137 return NULL;
b2dc1044
RD
21138}
21139
21140
0085ce49
RD
21141SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21142 PyObject *resultobj = 0;
21143 wxListbook *arg1 = (wxListbook *) 0 ;
21144 wxListView *result = 0 ;
21145 void *argp1 = 0 ;
21146 int res1 = 0 ;
21147 PyObject *swig_obj[1] ;
21148
21149 if (!args) SWIG_fail;
21150 swig_obj[0] = args;
21151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21152 if (!SWIG_IsOK(res1)) {
21153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21154 }
21155 arg1 = reinterpret_cast< wxListbook * >(argp1);
21156 {
21157 PyThreadState* __tstate = wxPyBeginAllowThreads();
21158 result = (wxListView *)(arg1)->GetListView();
21159 wxPyEndAllowThreads(__tstate);
21160 if (PyErr_Occurred()) SWIG_fail;
21161 }
21162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21163 return resultobj;
21164fail:
21165 return NULL;
21166}
21167
21168
21169SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21170 PyObject *obj;
21171 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21172 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21173 return SWIG_Py_Void();
21174}
21175
21176SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21177 return SWIG_Python_InitShadowInstance(args);
21178}
21179
21180SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21181 PyObject *resultobj = 0;
21182 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21183 int arg2 = (int) 0 ;
21184 int arg3 = (int) -1 ;
21185 int arg4 = (int) -1 ;
21186 wxListbookEvent *result = 0 ;
21187 int val1 ;
21188 int ecode1 = 0 ;
21189 int val2 ;
21190 int ecode2 = 0 ;
21191 int val3 ;
21192 int ecode3 = 0 ;
21193 int val4 ;
21194 int ecode4 = 0 ;
21195 PyObject * obj0 = 0 ;
21196 PyObject * obj1 = 0 ;
21197 PyObject * obj2 = 0 ;
21198 PyObject * obj3 = 0 ;
21199 char * kwnames[] = {
21200 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21201 };
21202
21203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21204 if (obj0) {
21205 ecode1 = SWIG_AsVal_int(obj0, &val1);
21206 if (!SWIG_IsOK(ecode1)) {
21207 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21208 }
21209 arg1 = static_cast< wxEventType >(val1);
21210 }
21211 if (obj1) {
21212 ecode2 = SWIG_AsVal_int(obj1, &val2);
21213 if (!SWIG_IsOK(ecode2)) {
21214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21215 }
21216 arg2 = static_cast< int >(val2);
21217 }
21218 if (obj2) {
21219 ecode3 = SWIG_AsVal_int(obj2, &val3);
21220 if (!SWIG_IsOK(ecode3)) {
21221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21222 }
21223 arg3 = static_cast< int >(val3);
21224 }
21225 if (obj3) {
21226 ecode4 = SWIG_AsVal_int(obj3, &val4);
21227 if (!SWIG_IsOK(ecode4)) {
21228 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21229 }
21230 arg4 = static_cast< int >(val4);
21231 }
21232 {
21233 PyThreadState* __tstate = wxPyBeginAllowThreads();
21234 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21235 wxPyEndAllowThreads(__tstate);
21236 if (PyErr_Occurred()) SWIG_fail;
21237 }
21238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21239 return resultobj;
21240fail:
21241 return NULL;
21242}
21243
21244
21245SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21246 PyObject *obj;
21247 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21248 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21249 return SWIG_Py_Void();
21250}
21251
21252SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21253 return SWIG_Python_InitShadowInstance(args);
21254}
21255
21256SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21257 PyObject *resultobj = 0;
21258 wxWindow *arg1 = (wxWindow *) 0 ;
21259 int arg2 ;
21260 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21261 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21262 wxSize const &arg4_defvalue = wxDefaultSize ;
21263 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21264 long arg5 = (long) 0 ;
21265 wxString const &arg6_defvalue = wxPyEmptyString ;
21266 wxString *arg6 = (wxString *) &arg6_defvalue ;
21267 wxChoicebook *result = 0 ;
21268 void *argp1 = 0 ;
21269 int res1 = 0 ;
21270 int val2 ;
21271 int ecode2 = 0 ;
21272 wxPoint temp3 ;
21273 wxSize temp4 ;
21274 long val5 ;
21275 int ecode5 = 0 ;
21276 bool temp6 = false ;
21277 PyObject * obj0 = 0 ;
21278 PyObject * obj1 = 0 ;
21279 PyObject * obj2 = 0 ;
21280 PyObject * obj3 = 0 ;
21281 PyObject * obj4 = 0 ;
21282 PyObject * obj5 = 0 ;
21283 char * kwnames[] = {
21284 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21285 };
21286
21287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21289 if (!SWIG_IsOK(res1)) {
21290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21291 }
21292 arg1 = reinterpret_cast< wxWindow * >(argp1);
21293 ecode2 = SWIG_AsVal_int(obj1, &val2);
21294 if (!SWIG_IsOK(ecode2)) {
21295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21296 }
21297 arg2 = static_cast< int >(val2);
21298 if (obj2) {
d14a1e28 21299 {
0085ce49
RD
21300 arg3 = &temp3;
21301 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 21302 }
0085ce49
RD
21303 }
21304 if (obj3) {
d14a1e28 21305 {
0085ce49
RD
21306 arg4 = &temp4;
21307 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21308 }
0085ce49
RD
21309 }
21310 if (obj4) {
21311 ecode5 = SWIG_AsVal_long(obj4, &val5);
21312 if (!SWIG_IsOK(ecode5)) {
21313 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21314 }
21315 arg5 = static_cast< long >(val5);
21316 }
21317 if (obj5) {
d14a1e28 21318 {
0085ce49
RD
21319 arg6 = wxString_in_helper(obj5);
21320 if (arg6 == NULL) SWIG_fail;
21321 temp6 = true;
d14a1e28 21322 }
0085ce49
RD
21323 }
21324 {
21325 if (!wxPyCheckForApp()) SWIG_fail;
21326 PyThreadState* __tstate = wxPyBeginAllowThreads();
21327 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21328 wxPyEndAllowThreads(__tstate);
21329 if (PyErr_Occurred()) SWIG_fail;
21330 }
21331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21332 {
21333 if (temp6)
21334 delete arg6;
21335 }
21336 return resultobj;
21337fail:
21338 {
21339 if (temp6)
21340 delete arg6;
21341 }
21342 return NULL;
d14a1e28
RD
21343}
21344
21345
0085ce49
RD
21346SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21347 PyObject *resultobj = 0;
21348 wxChoicebook *result = 0 ;
21349
21350 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21351 {
21352 if (!wxPyCheckForApp()) SWIG_fail;
21353 PyThreadState* __tstate = wxPyBeginAllowThreads();
21354 result = (wxChoicebook *)new wxChoicebook();
21355 wxPyEndAllowThreads(__tstate);
21356 if (PyErr_Occurred()) SWIG_fail;
21357 }
21358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21359 return resultobj;
21360fail:
21361 return NULL;
21362}
21363
21364
21365SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21366 PyObject *resultobj = 0;
21367 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21368 wxWindow *arg2 = (wxWindow *) 0 ;
21369 int arg3 ;
21370 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21371 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21372 wxSize const &arg5_defvalue = wxDefaultSize ;
21373 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21374 long arg6 = (long) 0 ;
21375 wxString const &arg7_defvalue = wxPyEmptyString ;
21376 wxString *arg7 = (wxString *) &arg7_defvalue ;
21377 bool result;
21378 void *argp1 = 0 ;
21379 int res1 = 0 ;
21380 void *argp2 = 0 ;
21381 int res2 = 0 ;
21382 int val3 ;
21383 int ecode3 = 0 ;
21384 wxPoint temp4 ;
21385 wxSize temp5 ;
21386 long val6 ;
21387 int ecode6 = 0 ;
21388 bool temp7 = false ;
21389 PyObject * obj0 = 0 ;
21390 PyObject * obj1 = 0 ;
21391 PyObject * obj2 = 0 ;
21392 PyObject * obj3 = 0 ;
21393 PyObject * obj4 = 0 ;
21394 PyObject * obj5 = 0 ;
21395 PyObject * obj6 = 0 ;
21396 char * kwnames[] = {
21397 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21398 };
21399
21400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21402 if (!SWIG_IsOK(res1)) {
21403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21404 }
21405 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21406 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21407 if (!SWIG_IsOK(res2)) {
21408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21409 }
21410 arg2 = reinterpret_cast< wxWindow * >(argp2);
21411 ecode3 = SWIG_AsVal_int(obj2, &val3);
21412 if (!SWIG_IsOK(ecode3)) {
21413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21414 }
21415 arg3 = static_cast< int >(val3);
21416 if (obj3) {
4f89f6a3 21417 {
0085ce49
RD
21418 arg4 = &temp4;
21419 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 21420 }
0085ce49
RD
21421 }
21422 if (obj4) {
d14a1e28 21423 {
0085ce49
RD
21424 arg5 = &temp5;
21425 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 21426 }
0085ce49
RD
21427 }
21428 if (obj5) {
21429 ecode6 = SWIG_AsVal_long(obj5, &val6);
21430 if (!SWIG_IsOK(ecode6)) {
21431 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21432 }
21433 arg6 = static_cast< long >(val6);
21434 }
21435 if (obj6) {
d14a1e28 21436 {
0085ce49
RD
21437 arg7 = wxString_in_helper(obj6);
21438 if (arg7 == NULL) SWIG_fail;
21439 temp7 = true;
d14a1e28 21440 }
0085ce49
RD
21441 }
21442 {
21443 PyThreadState* __tstate = wxPyBeginAllowThreads();
21444 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21445 wxPyEndAllowThreads(__tstate);
21446 if (PyErr_Occurred()) SWIG_fail;
21447 }
21448 {
21449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21450 }
21451 {
21452 if (temp7)
21453 delete arg7;
21454 }
21455 return resultobj;
21456fail:
21457 {
21458 if (temp7)
21459 delete arg7;
21460 }
21461 return NULL;
d14a1e28
RD
21462}
21463
21464
0085ce49
RD
21465SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21466 PyObject *resultobj = 0;
21467 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21468 wxChoice *result = 0 ;
21469 void *argp1 = 0 ;
21470 int res1 = 0 ;
21471 PyObject *swig_obj[1] ;
21472
21473 if (!args) SWIG_fail;
21474 swig_obj[0] = args;
21475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21476 if (!SWIG_IsOK(res1)) {
21477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21478 }
21479 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21480 {
21481 PyThreadState* __tstate = wxPyBeginAllowThreads();
21482 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21483 wxPyEndAllowThreads(__tstate);
21484 if (PyErr_Occurred()) SWIG_fail;
21485 }
21486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21487 return resultobj;
21488fail:
21489 return NULL;
21490}
21491
21492
21493SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21494 PyObject *obj;
21495 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21496 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21497 return SWIG_Py_Void();
21498}
21499
21500SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21501 return SWIG_Python_InitShadowInstance(args);
21502}
21503
21504SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21505 PyObject *resultobj = 0;
21506 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21507 int arg2 = (int) 0 ;
21508 int arg3 = (int) -1 ;
21509 int arg4 = (int) -1 ;
21510 wxChoicebookEvent *result = 0 ;
21511 int val1 ;
21512 int ecode1 = 0 ;
21513 int val2 ;
21514 int ecode2 = 0 ;
21515 int val3 ;
21516 int ecode3 = 0 ;
21517 int val4 ;
21518 int ecode4 = 0 ;
21519 PyObject * obj0 = 0 ;
21520 PyObject * obj1 = 0 ;
21521 PyObject * obj2 = 0 ;
21522 PyObject * obj3 = 0 ;
21523 char * kwnames[] = {
21524 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21525 };
21526
21527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21528 if (obj0) {
21529 ecode1 = SWIG_AsVal_int(obj0, &val1);
21530 if (!SWIG_IsOK(ecode1)) {
21531 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21532 }
21533 arg1 = static_cast< wxEventType >(val1);
21534 }
21535 if (obj1) {
21536 ecode2 = SWIG_AsVal_int(obj1, &val2);
21537 if (!SWIG_IsOK(ecode2)) {
21538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21539 }
21540 arg2 = static_cast< int >(val2);
21541 }
21542 if (obj2) {
21543 ecode3 = SWIG_AsVal_int(obj2, &val3);
21544 if (!SWIG_IsOK(ecode3)) {
21545 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21546 }
21547 arg3 = static_cast< int >(val3);
21548 }
21549 if (obj3) {
21550 ecode4 = SWIG_AsVal_int(obj3, &val4);
21551 if (!SWIG_IsOK(ecode4)) {
21552 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21553 }
21554 arg4 = static_cast< int >(val4);
21555 }
21556 {
21557 PyThreadState* __tstate = wxPyBeginAllowThreads();
21558 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21559 wxPyEndAllowThreads(__tstate);
21560 if (PyErr_Occurred()) SWIG_fail;
21561 }
21562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21563 return resultobj;
21564fail:
21565 return NULL;
21566}
21567
21568
21569SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21570 PyObject *obj;
21571 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21572 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21573 return SWIG_Py_Void();
21574}
21575
21576SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21577 return SWIG_Python_InitShadowInstance(args);
21578}
21579
21580SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21581 PyObject *resultobj = 0;
21582 wxWindow *arg1 = (wxWindow *) 0 ;
21583 int arg2 ;
21584 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21585 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21586 wxSize const &arg4_defvalue = wxDefaultSize ;
21587 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21588 long arg5 = (long) wxBK_DEFAULT ;
21589 wxString const &arg6_defvalue = wxPyEmptyString ;
21590 wxString *arg6 = (wxString *) &arg6_defvalue ;
21591 wxTreebook *result = 0 ;
21592 void *argp1 = 0 ;
21593 int res1 = 0 ;
21594 int val2 ;
21595 int ecode2 = 0 ;
21596 wxPoint temp3 ;
21597 wxSize temp4 ;
21598 long val5 ;
21599 int ecode5 = 0 ;
21600 bool temp6 = false ;
21601 PyObject * obj0 = 0 ;
21602 PyObject * obj1 = 0 ;
21603 PyObject * obj2 = 0 ;
21604 PyObject * obj3 = 0 ;
21605 PyObject * obj4 = 0 ;
21606 PyObject * obj5 = 0 ;
21607 char * kwnames[] = {
21608 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21609 };
21610
21611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21613 if (!SWIG_IsOK(res1)) {
21614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21615 }
21616 arg1 = reinterpret_cast< wxWindow * >(argp1);
21617 ecode2 = SWIG_AsVal_int(obj1, &val2);
21618 if (!SWIG_IsOK(ecode2)) {
21619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21620 }
21621 arg2 = static_cast< int >(val2);
21622 if (obj2) {
093d3ff1 21623 {
0085ce49
RD
21624 arg3 = &temp3;
21625 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 21626 }
0085ce49
RD
21627 }
21628 if (obj3) {
d14a1e28 21629 {
0085ce49
RD
21630 arg4 = &temp4;
21631 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21632 }
0085ce49
RD
21633 }
21634 if (obj4) {
21635 ecode5 = SWIG_AsVal_long(obj4, &val5);
21636 if (!SWIG_IsOK(ecode5)) {
21637 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21638 }
21639 arg5 = static_cast< long >(val5);
21640 }
21641 if (obj5) {
093d3ff1 21642 {
0085ce49
RD
21643 arg6 = wxString_in_helper(obj5);
21644 if (arg6 == NULL) SWIG_fail;
21645 temp6 = true;
093d3ff1 21646 }
0085ce49
RD
21647 }
21648 {
21649 if (!wxPyCheckForApp()) SWIG_fail;
21650 PyThreadState* __tstate = wxPyBeginAllowThreads();
21651 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21652 wxPyEndAllowThreads(__tstate);
21653 if (PyErr_Occurred()) SWIG_fail;
21654 }
21655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21656 {
21657 if (temp6)
21658 delete arg6;
21659 }
21660 return resultobj;
21661fail:
21662 {
21663 if (temp6)
21664 delete arg6;
21665 }
21666 return NULL;
d14a1e28
RD
21667}
21668
21669
0085ce49
RD
21670SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21671 PyObject *resultobj = 0;
21672 wxTreebook *result = 0 ;
21673
21674 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21675 {
21676 if (!wxPyCheckForApp()) SWIG_fail;
21677 PyThreadState* __tstate = wxPyBeginAllowThreads();
21678 result = (wxTreebook *)new wxTreebook();
21679 wxPyEndAllowThreads(__tstate);
21680 if (PyErr_Occurred()) SWIG_fail;
21681 }
21682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21683 return resultobj;
21684fail:
21685 return NULL;
21686}
21687
21688
21689SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21690 PyObject *resultobj = 0;
21691 wxTreebook *arg1 = (wxTreebook *) 0 ;
21692 wxWindow *arg2 = (wxWindow *) 0 ;
21693 int arg3 ;
21694 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21695 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21696 wxSize const &arg5_defvalue = wxDefaultSize ;
21697 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21698 long arg6 = (long) wxBK_DEFAULT ;
21699 wxString const &arg7_defvalue = wxPyEmptyString ;
21700 wxString *arg7 = (wxString *) &arg7_defvalue ;
21701 bool result;
21702 void *argp1 = 0 ;
21703 int res1 = 0 ;
21704 void *argp2 = 0 ;
21705 int res2 = 0 ;
21706 int val3 ;
21707 int ecode3 = 0 ;
21708 wxPoint temp4 ;
21709 wxSize temp5 ;
21710 long val6 ;
21711 int ecode6 = 0 ;
21712 bool temp7 = false ;
21713 PyObject * obj0 = 0 ;
21714 PyObject * obj1 = 0 ;
21715 PyObject * obj2 = 0 ;
21716 PyObject * obj3 = 0 ;
21717 PyObject * obj4 = 0 ;
21718 PyObject * obj5 = 0 ;
21719 PyObject * obj6 = 0 ;
21720 char * kwnames[] = {
21721 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21722 };
21723
21724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21726 if (!SWIG_IsOK(res1)) {
21727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21728 }
21729 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21730 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21731 if (!SWIG_IsOK(res2)) {
21732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21733 }
21734 arg2 = reinterpret_cast< wxWindow * >(argp2);
21735 ecode3 = SWIG_AsVal_int(obj2, &val3);
21736 if (!SWIG_IsOK(ecode3)) {
21737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21738 }
21739 arg3 = static_cast< int >(val3);
21740 if (obj3) {
d14a1e28 21741 {
0085ce49
RD
21742 arg4 = &temp4;
21743 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21744 }
0085ce49
RD
21745 }
21746 if (obj4) {
093d3ff1 21747 {
0085ce49
RD
21748 arg5 = &temp5;
21749 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 21750 }
0085ce49
RD
21751 }
21752 if (obj5) {
21753 ecode6 = SWIG_AsVal_long(obj5, &val6);
21754 if (!SWIG_IsOK(ecode6)) {
21755 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21756 }
21757 arg6 = static_cast< long >(val6);
21758 }
21759 if (obj6) {
093d3ff1 21760 {
0085ce49
RD
21761 arg7 = wxString_in_helper(obj6);
21762 if (arg7 == NULL) SWIG_fail;
21763 temp7 = true;
093d3ff1 21764 }
0085ce49
RD
21765 }
21766 {
21767 PyThreadState* __tstate = wxPyBeginAllowThreads();
21768 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21769 wxPyEndAllowThreads(__tstate);
21770 if (PyErr_Occurred()) SWIG_fail;
21771 }
21772 {
21773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21774 }
21775 {
21776 if (temp7)
21777 delete arg7;
21778 }
21779 return resultobj;
21780fail:
21781 {
21782 if (temp7)
21783 delete arg7;
21784 }
21785 return NULL;
21786}
21787
21788
21789SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21790 PyObject *resultobj = 0;
21791 wxTreebook *arg1 = (wxTreebook *) 0 ;
21792 size_t arg2 ;
21793 wxWindow *arg3 = (wxWindow *) 0 ;
21794 wxString *arg4 = 0 ;
21795 bool arg5 = (bool) false ;
21796 int arg6 = (int) wxNOT_FOUND ;
21797 bool result;
21798 void *argp1 = 0 ;
21799 int res1 = 0 ;
21800 size_t val2 ;
21801 int ecode2 = 0 ;
21802 void *argp3 = 0 ;
21803 int res3 = 0 ;
21804 bool temp4 = false ;
21805 bool val5 ;
21806 int ecode5 = 0 ;
21807 int val6 ;
21808 int ecode6 = 0 ;
21809 PyObject * obj0 = 0 ;
21810 PyObject * obj1 = 0 ;
21811 PyObject * obj2 = 0 ;
21812 PyObject * obj3 = 0 ;
21813 PyObject * obj4 = 0 ;
21814 PyObject * obj5 = 0 ;
21815 char * kwnames[] = {
21816 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21817 };
21818
21819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21821 if (!SWIG_IsOK(res1)) {
21822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21823 }
21824 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21825 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21826 if (!SWIG_IsOK(ecode2)) {
21827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21828 }
21829 arg2 = static_cast< size_t >(val2);
21830 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21831 if (!SWIG_IsOK(res3)) {
21832 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21833 }
21834 arg3 = reinterpret_cast< wxWindow * >(argp3);
21835 {
21836 arg4 = wxString_in_helper(obj3);
21837 if (arg4 == NULL) SWIG_fail;
21838 temp4 = true;
21839 }
21840 if (obj4) {
21841 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21842 if (!SWIG_IsOK(ecode5)) {
21843 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21844 }
21845 arg5 = static_cast< bool >(val5);
21846 }
21847 if (obj5) {
21848 ecode6 = SWIG_AsVal_int(obj5, &val6);
21849 if (!SWIG_IsOK(ecode6)) {
21850 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21851 }
21852 arg6 = static_cast< int >(val6);
21853 }
21854 {
21855 PyThreadState* __tstate = wxPyBeginAllowThreads();
21856 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21857 wxPyEndAllowThreads(__tstate);
21858 if (PyErr_Occurred()) SWIG_fail;
21859 }
21860 {
21861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21862 }
21863 {
21864 if (temp4)
21865 delete arg4;
21866 }
21867 return resultobj;
21868fail:
21869 {
21870 if (temp4)
21871 delete arg4;
21872 }
21873 return NULL;
21874}
21875
21876
21877SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21878 PyObject *resultobj = 0;
21879 wxTreebook *arg1 = (wxTreebook *) 0 ;
21880 wxWindow *arg2 = (wxWindow *) 0 ;
21881 wxString *arg3 = 0 ;
21882 bool arg4 = (bool) false ;
21883 int arg5 = (int) wxNOT_FOUND ;
21884 bool result;
21885 void *argp1 = 0 ;
21886 int res1 = 0 ;
21887 void *argp2 = 0 ;
21888 int res2 = 0 ;
21889 bool temp3 = false ;
21890 bool val4 ;
21891 int ecode4 = 0 ;
21892 int val5 ;
21893 int ecode5 = 0 ;
21894 PyObject * obj0 = 0 ;
21895 PyObject * obj1 = 0 ;
21896 PyObject * obj2 = 0 ;
21897 PyObject * obj3 = 0 ;
21898 PyObject * obj4 = 0 ;
21899 char * kwnames[] = {
21900 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21901 };
21902
21903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21905 if (!SWIG_IsOK(res1)) {
21906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21907 }
21908 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21909 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21910 if (!SWIG_IsOK(res2)) {
21911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21912 }
21913 arg2 = reinterpret_cast< wxWindow * >(argp2);
21914 {
21915 arg3 = wxString_in_helper(obj2);
21916 if (arg3 == NULL) SWIG_fail;
21917 temp3 = true;
21918 }
21919 if (obj3) {
21920 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21921 if (!SWIG_IsOK(ecode4)) {
21922 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21923 }
21924 arg4 = static_cast< bool >(val4);
21925 }
21926 if (obj4) {
21927 ecode5 = SWIG_AsVal_int(obj4, &val5);
21928 if (!SWIG_IsOK(ecode5)) {
21929 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21930 }
21931 arg5 = static_cast< int >(val5);
21932 }
21933 {
21934 PyThreadState* __tstate = wxPyBeginAllowThreads();
21935 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21936 wxPyEndAllowThreads(__tstate);
21937 if (PyErr_Occurred()) SWIG_fail;
21938 }
21939 {
21940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21941 }
21942 {
21943 if (temp3)
21944 delete arg3;
21945 }
21946 return resultobj;
21947fail:
21948 {
21949 if (temp3)
21950 delete arg3;
21951 }
21952 return NULL;
21953}
21954
21955
21956SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21957 PyObject *resultobj = 0;
21958 wxTreebook *arg1 = (wxTreebook *) 0 ;
21959 size_t arg2 ;
21960 bool result;
21961 void *argp1 = 0 ;
21962 int res1 = 0 ;
21963 size_t val2 ;
21964 int ecode2 = 0 ;
21965 PyObject * obj0 = 0 ;
21966 PyObject * obj1 = 0 ;
21967 char * kwnames[] = {
21968 (char *) "self",(char *) "pos", NULL
21969 };
21970
21971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21973 if (!SWIG_IsOK(res1)) {
21974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21975 }
21976 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21977 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21978 if (!SWIG_IsOK(ecode2)) {
21979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21980 }
21981 arg2 = static_cast< size_t >(val2);
21982 {
21983 PyThreadState* __tstate = wxPyBeginAllowThreads();
21984 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21985 wxPyEndAllowThreads(__tstate);
21986 if (PyErr_Occurred()) SWIG_fail;
21987 }
21988 {
21989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21990 }
21991 return resultobj;
21992fail:
21993 return NULL;
21994}
21995
21996
21997SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21998 PyObject *resultobj = 0;
21999 wxTreebook *arg1 = (wxTreebook *) 0 ;
22000 size_t arg2 ;
22001 bool arg3 = (bool) true ;
22002 bool result;
22003 void *argp1 = 0 ;
22004 int res1 = 0 ;
22005 size_t val2 ;
22006 int ecode2 = 0 ;
22007 bool val3 ;
22008 int ecode3 = 0 ;
22009 PyObject * obj0 = 0 ;
22010 PyObject * obj1 = 0 ;
22011 PyObject * obj2 = 0 ;
22012 char * kwnames[] = {
22013 (char *) "self",(char *) "pos",(char *) "expand", NULL
22014 };
22015
22016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22018 if (!SWIG_IsOK(res1)) {
22019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22020 }
22021 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22022 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22023 if (!SWIG_IsOK(ecode2)) {
22024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22025 }
22026 arg2 = static_cast< size_t >(val2);
22027 if (obj2) {
22028 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22029 if (!SWIG_IsOK(ecode3)) {
22030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22031 }
22032 arg3 = static_cast< bool >(val3);
22033 }
22034 {
22035 PyThreadState* __tstate = wxPyBeginAllowThreads();
22036 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22037 wxPyEndAllowThreads(__tstate);
22038 if (PyErr_Occurred()) SWIG_fail;
22039 }
22040 {
22041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22042 }
22043 return resultobj;
22044fail:
22045 return NULL;
22046}
22047
22048
22049SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22050 PyObject *resultobj = 0;
22051 wxTreebook *arg1 = (wxTreebook *) 0 ;
22052 size_t arg2 ;
22053 bool result;
22054 void *argp1 = 0 ;
22055 int res1 = 0 ;
22056 size_t val2 ;
22057 int ecode2 = 0 ;
22058 PyObject * obj0 = 0 ;
22059 PyObject * obj1 = 0 ;
22060 char * kwnames[] = {
22061 (char *) "self",(char *) "pos", NULL
22062 };
22063
22064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22066 if (!SWIG_IsOK(res1)) {
22067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22068 }
22069 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22070 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22071 if (!SWIG_IsOK(ecode2)) {
22072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22073 }
22074 arg2 = static_cast< size_t >(val2);
22075 {
22076 PyThreadState* __tstate = wxPyBeginAllowThreads();
22077 result = (bool)(arg1)->CollapseNode(arg2);
22078 wxPyEndAllowThreads(__tstate);
22079 if (PyErr_Occurred()) SWIG_fail;
22080 }
22081 {
22082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22083 }
22084 return resultobj;
22085fail:
22086 return NULL;
22087}
22088
22089
22090SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22091 PyObject *resultobj = 0;
22092 wxTreebook *arg1 = (wxTreebook *) 0 ;
22093 size_t arg2 ;
22094 int result;
22095 void *argp1 = 0 ;
22096 int res1 = 0 ;
22097 size_t val2 ;
22098 int ecode2 = 0 ;
22099 PyObject * obj0 = 0 ;
22100 PyObject * obj1 = 0 ;
22101 char * kwnames[] = {
22102 (char *) "self",(char *) "pos", NULL
22103 };
22104
22105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22107 if (!SWIG_IsOK(res1)) {
22108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22109 }
22110 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22111 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22112 if (!SWIG_IsOK(ecode2)) {
22113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22114 }
22115 arg2 = static_cast< size_t >(val2);
22116 {
22117 PyThreadState* __tstate = wxPyBeginAllowThreads();
22118 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22119 wxPyEndAllowThreads(__tstate);
22120 if (PyErr_Occurred()) SWIG_fail;
22121 }
22122 resultobj = SWIG_From_int(static_cast< int >(result));
22123 return resultobj;
22124fail:
22125 return NULL;
d14a1e28
RD
22126}
22127
22128
0085ce49
RD
22129SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22130 PyObject *resultobj = 0;
22131 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22132 wxPyTreeCtrl *result = 0 ;
0085ce49
RD
22133 void *argp1 = 0 ;
22134 int res1 = 0 ;
22135 PyObject *swig_obj[1] ;
22136
22137 if (!args) SWIG_fail;
22138 swig_obj[0] = args;
22139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22140 if (!SWIG_IsOK(res1)) {
22141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22142 }
22143 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22144 {
22145 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22146 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
0085ce49
RD
22147 wxPyEndAllowThreads(__tstate);
22148 if (PyErr_Occurred()) SWIG_fail;
22149 }
10044bf1
RD
22150 {
22151 resultobj = wxPyMake_wxObject(result, (bool)0);
22152 }
0085ce49
RD
22153 return resultobj;
22154fail:
22155 return NULL;
22156}
22157
22158
22159SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22160 PyObject *obj;
22161 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22162 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22163 return SWIG_Py_Void();
22164}
22165
22166SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22167 return SWIG_Python_InitShadowInstance(args);
22168}
22169
22170SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22171 PyObject *resultobj = 0;
22172 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22173 int arg2 = (int) 0 ;
22174 int arg3 = (int) wxNOT_FOUND ;
22175 int arg4 = (int) wxNOT_FOUND ;
22176 wxTreebookEvent *result = 0 ;
22177 int val1 ;
22178 int ecode1 = 0 ;
22179 int val2 ;
22180 int ecode2 = 0 ;
22181 int val3 ;
22182 int ecode3 = 0 ;
22183 int val4 ;
22184 int ecode4 = 0 ;
22185 PyObject * obj0 = 0 ;
22186 PyObject * obj1 = 0 ;
22187 PyObject * obj2 = 0 ;
22188 PyObject * obj3 = 0 ;
22189 char * kwnames[] = {
22190 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22191 };
22192
22193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22194 if (obj0) {
22195 ecode1 = SWIG_AsVal_int(obj0, &val1);
22196 if (!SWIG_IsOK(ecode1)) {
22197 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22198 }
22199 arg1 = static_cast< wxEventType >(val1);
22200 }
22201 if (obj1) {
22202 ecode2 = SWIG_AsVal_int(obj1, &val2);
22203 if (!SWIG_IsOK(ecode2)) {
22204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22205 }
22206 arg2 = static_cast< int >(val2);
22207 }
22208 if (obj2) {
22209 ecode3 = SWIG_AsVal_int(obj2, &val3);
22210 if (!SWIG_IsOK(ecode3)) {
22211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22212 }
22213 arg3 = static_cast< int >(val3);
22214 }
22215 if (obj3) {
22216 ecode4 = SWIG_AsVal_int(obj3, &val4);
22217 if (!SWIG_IsOK(ecode4)) {
22218 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22219 }
22220 arg4 = static_cast< int >(val4);
22221 }
22222 {
22223 PyThreadState* __tstate = wxPyBeginAllowThreads();
22224 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22225 wxPyEndAllowThreads(__tstate);
22226 if (PyErr_Occurred()) SWIG_fail;
22227 }
22228 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22229 return resultobj;
22230fail:
22231 return NULL;
22232}
22233
22234
22235SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22236 PyObject *obj;
22237 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22238 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22239 return SWIG_Py_Void();
22240}
22241
22242SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22243 return SWIG_Python_InitShadowInstance(args);
22244}
22245
22246SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22247 PyObject *resultobj = 0;
22248 wxWindow *arg1 = (wxWindow *) 0 ;
22249 int arg2 ;
22250 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22251 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22252 wxSize const &arg4_defvalue = wxDefaultSize ;
22253 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22254 long arg5 = (long) wxBK_DEFAULT ;
22255 wxString const &arg6_defvalue = wxPyEmptyString ;
22256 wxString *arg6 = (wxString *) &arg6_defvalue ;
22257 wxToolbook *result = 0 ;
22258 void *argp1 = 0 ;
22259 int res1 = 0 ;
22260 int val2 ;
22261 int ecode2 = 0 ;
22262 wxPoint temp3 ;
22263 wxSize temp4 ;
22264 long val5 ;
22265 int ecode5 = 0 ;
22266 bool temp6 = false ;
22267 PyObject * obj0 = 0 ;
22268 PyObject * obj1 = 0 ;
22269 PyObject * obj2 = 0 ;
22270 PyObject * obj3 = 0 ;
22271 PyObject * obj4 = 0 ;
22272 PyObject * obj5 = 0 ;
22273 char * kwnames[] = {
22274 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22275 };
22276
22277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22279 if (!SWIG_IsOK(res1)) {
22280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22281 }
22282 arg1 = reinterpret_cast< wxWindow * >(argp1);
22283 ecode2 = SWIG_AsVal_int(obj1, &val2);
22284 if (!SWIG_IsOK(ecode2)) {
22285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22286 }
22287 arg2 = static_cast< int >(val2);
22288 if (obj2) {
d14a1e28 22289 {
0085ce49
RD
22290 arg3 = &temp3;
22291 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 22292 }
0085ce49
RD
22293 }
22294 if (obj3) {
093d3ff1 22295 {
0085ce49
RD
22296 arg4 = &temp4;
22297 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22298 }
0085ce49
RD
22299 }
22300 if (obj4) {
22301 ecode5 = SWIG_AsVal_long(obj4, &val5);
22302 if (!SWIG_IsOK(ecode5)) {
22303 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22304 }
22305 arg5 = static_cast< long >(val5);
22306 }
22307 if (obj5) {
d14a1e28 22308 {
0085ce49
RD
22309 arg6 = wxString_in_helper(obj5);
22310 if (arg6 == NULL) SWIG_fail;
22311 temp6 = true;
d14a1e28 22312 }
0085ce49
RD
22313 }
22314 {
22315 PyThreadState* __tstate = wxPyBeginAllowThreads();
22316 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22317 wxPyEndAllowThreads(__tstate);
22318 if (PyErr_Occurred()) SWIG_fail;
22319 }
22320 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22321 {
22322 if (temp6)
22323 delete arg6;
22324 }
22325 return resultobj;
22326fail:
22327 {
22328 if (temp6)
22329 delete arg6;
22330 }
22331 return NULL;
d14a1e28
RD
22332}
22333
22334
0085ce49
RD
22335SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22336 PyObject *resultobj = 0;
22337 wxToolbook *result = 0 ;
22338
22339 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22340 {
22341 PyThreadState* __tstate = wxPyBeginAllowThreads();
22342 result = (wxToolbook *)new wxToolbook();
22343 wxPyEndAllowThreads(__tstate);
22344 if (PyErr_Occurred()) SWIG_fail;
22345 }
22346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22347 return resultobj;
22348fail:
22349 return NULL;
22350}
22351
22352
22353SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22354 PyObject *resultobj = 0;
22355 wxToolbook *arg1 = (wxToolbook *) 0 ;
22356 wxWindow *arg2 = (wxWindow *) 0 ;
22357 int arg3 ;
22358 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22359 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22360 wxSize const &arg5_defvalue = wxDefaultSize ;
22361 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22362 long arg6 = (long) 0 ;
22363 wxString const &arg7_defvalue = wxEmptyString ;
22364 wxString *arg7 = (wxString *) &arg7_defvalue ;
22365 bool result;
22366 void *argp1 = 0 ;
22367 int res1 = 0 ;
22368 void *argp2 = 0 ;
22369 int res2 = 0 ;
22370 int val3 ;
22371 int ecode3 = 0 ;
22372 wxPoint temp4 ;
22373 wxSize temp5 ;
22374 long val6 ;
22375 int ecode6 = 0 ;
22376 bool temp7 = false ;
22377 PyObject * obj0 = 0 ;
22378 PyObject * obj1 = 0 ;
22379 PyObject * obj2 = 0 ;
22380 PyObject * obj3 = 0 ;
22381 PyObject * obj4 = 0 ;
22382 PyObject * obj5 = 0 ;
22383 PyObject * obj6 = 0 ;
22384 char * kwnames[] = {
22385 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22386 };
22387
22388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22390 if (!SWIG_IsOK(res1)) {
22391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22392 }
22393 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22394 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22395 if (!SWIG_IsOK(res2)) {
22396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22397 }
22398 arg2 = reinterpret_cast< wxWindow * >(argp2);
22399 ecode3 = SWIG_AsVal_int(obj2, &val3);
22400 if (!SWIG_IsOK(ecode3)) {
22401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22402 }
22403 arg3 = static_cast< int >(val3);
22404 if (obj3) {
093d3ff1 22405 {
0085ce49
RD
22406 arg4 = &temp4;
22407 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22408 }
0085ce49
RD
22409 }
22410 if (obj4) {
093d3ff1 22411 {
0085ce49
RD
22412 arg5 = &temp5;
22413 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22414 }
0085ce49
RD
22415 }
22416 if (obj5) {
22417 ecode6 = SWIG_AsVal_long(obj5, &val6);
22418 if (!SWIG_IsOK(ecode6)) {
22419 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22420 }
22421 arg6 = static_cast< long >(val6);
22422 }
22423 if (obj6) {
994141e6 22424 {
0085ce49
RD
22425 arg7 = wxString_in_helper(obj6);
22426 if (arg7 == NULL) SWIG_fail;
22427 temp7 = true;
d14a1e28 22428 }
0085ce49
RD
22429 }
22430 {
22431 PyThreadState* __tstate = wxPyBeginAllowThreads();
22432 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22433 wxPyEndAllowThreads(__tstate);
22434 if (PyErr_Occurred()) SWIG_fail;
22435 }
22436 {
22437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22438 }
22439 {
22440 if (temp7)
22441 delete arg7;
22442 }
22443 return resultobj;
22444fail:
22445 {
22446 if (temp7)
22447 delete arg7;
22448 }
22449 return NULL;
22bfe96c
RD
22450}
22451
22452
0085ce49
RD
22453SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22454 PyObject *resultobj = 0;
22455 wxToolbook *arg1 = (wxToolbook *) 0 ;
22456 wxToolBarBase *result = 0 ;
22457 void *argp1 = 0 ;
22458 int res1 = 0 ;
22459 PyObject *swig_obj[1] ;
22460
22461 if (!args) SWIG_fail;
22462 swig_obj[0] = args;
22463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22464 if (!SWIG_IsOK(res1)) {
22465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22466 }
22467 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22468 {
22469 PyThreadState* __tstate = wxPyBeginAllowThreads();
22470 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22471 wxPyEndAllowThreads(__tstate);
22472 if (PyErr_Occurred()) SWIG_fail;
22473 }
22474 {
22475 resultobj = wxPyMake_wxObject(result, (bool)0);
22476 }
22477 return resultobj;
22478fail:
22479 return NULL;
d14a1e28
RD
22480}
22481
22482
0085ce49
RD
22483SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22484 PyObject *resultobj = 0;
22485 wxToolbook *arg1 = (wxToolbook *) 0 ;
22486 void *argp1 = 0 ;
22487 int res1 = 0 ;
22488 PyObject *swig_obj[1] ;
22489
22490 if (!args) SWIG_fail;
22491 swig_obj[0] = args;
22492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22493 if (!SWIG_IsOK(res1)) {
22494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22495 }
22496 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22497 {
22498 PyThreadState* __tstate = wxPyBeginAllowThreads();
22499 (arg1)->Realize();
22500 wxPyEndAllowThreads(__tstate);
22501 if (PyErr_Occurred()) SWIG_fail;
22502 }
22503 resultobj = SWIG_Py_Void();
22504 return resultobj;
22505fail:
22506 return NULL;
22507}
22508
22509
22510SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22511 PyObject *obj;
22512 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22513 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22514 return SWIG_Py_Void();
22515}
22516
22517SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22518 return SWIG_Python_InitShadowInstance(args);
22519}
22520
22521SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22522 PyObject *resultobj = 0;
22523 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22524 int arg2 = (int) 0 ;
22525 int arg3 = (int) wxNOT_FOUND ;
22526 int arg4 = (int) wxNOT_FOUND ;
22527 wxToolbookEvent *result = 0 ;
22528 int val1 ;
22529 int ecode1 = 0 ;
22530 int val2 ;
22531 int ecode2 = 0 ;
22532 int val3 ;
22533 int ecode3 = 0 ;
22534 int val4 ;
22535 int ecode4 = 0 ;
22536 PyObject * obj0 = 0 ;
22537 PyObject * obj1 = 0 ;
22538 PyObject * obj2 = 0 ;
22539 PyObject * obj3 = 0 ;
22540 char * kwnames[] = {
22541 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22542 };
22543
22544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22545 if (obj0) {
22546 ecode1 = SWIG_AsVal_int(obj0, &val1);
22547 if (!SWIG_IsOK(ecode1)) {
22548 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22549 }
22550 arg1 = static_cast< wxEventType >(val1);
22551 }
22552 if (obj1) {
22553 ecode2 = SWIG_AsVal_int(obj1, &val2);
22554 if (!SWIG_IsOK(ecode2)) {
22555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22556 }
22557 arg2 = static_cast< int >(val2);
22558 }
22559 if (obj2) {
22560 ecode3 = SWIG_AsVal_int(obj2, &val3);
22561 if (!SWIG_IsOK(ecode3)) {
22562 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22563 }
22564 arg3 = static_cast< int >(val3);
22565 }
22566 if (obj3) {
22567 ecode4 = SWIG_AsVal_int(obj3, &val4);
22568 if (!SWIG_IsOK(ecode4)) {
22569 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22570 }
22571 arg4 = static_cast< int >(val4);
22572 }
22573 {
22574 PyThreadState* __tstate = wxPyBeginAllowThreads();
22575 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22576 wxPyEndAllowThreads(__tstate);
22577 if (PyErr_Occurred()) SWIG_fail;
22578 }
22579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22580 return resultobj;
22581fail:
22582 return NULL;
d14a1e28
RD
22583}
22584
22585
0085ce49
RD
22586SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22587 PyObject *obj;
22588 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22589 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22590 return SWIG_Py_Void();
d14a1e28
RD
22591}
22592
0085ce49
RD
22593SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22594 return SWIG_Python_InitShadowInstance(args);
22595}
d14a1e28 22596
0085ce49
RD
22597SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22598 PyObject *resultobj = 0;
22599 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22600 int result;
22601 void *argp1 = 0 ;
22602 int res1 = 0 ;
22603 PyObject *swig_obj[1] ;
22604
22605 if (!args) SWIG_fail;
22606 swig_obj[0] = args;
22607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22608 if (!SWIG_IsOK(res1)) {
22609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22610 }
22611 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22612 {
22613 PyThreadState* __tstate = wxPyBeginAllowThreads();
22614 result = (int)(arg1)->GetId();
22615 wxPyEndAllowThreads(__tstate);
22616 if (PyErr_Occurred()) SWIG_fail;
22617 }
22618 resultobj = SWIG_From_int(static_cast< int >(result));
22619 return resultobj;
22620fail:
22621 return NULL;
d14a1e28
RD
22622}
22623
22624
0085ce49
RD
22625SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22626 PyObject *resultobj = 0;
22627 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22628 wxControl *result = 0 ;
22629 void *argp1 = 0 ;
22630 int res1 = 0 ;
22631 PyObject *swig_obj[1] ;
22632
22633 if (!args) SWIG_fail;
22634 swig_obj[0] = args;
22635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22636 if (!SWIG_IsOK(res1)) {
22637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22638 }
22639 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22640 {
22641 PyThreadState* __tstate = wxPyBeginAllowThreads();
22642 result = (wxControl *)(arg1)->GetControl();
22643 wxPyEndAllowThreads(__tstate);
22644 if (PyErr_Occurred()) SWIG_fail;
22645 }
22646 {
22647 resultobj = wxPyMake_wxObject(result, 0);
22648 }
22649 return resultobj;
22650fail:
22651 return NULL;
d14a1e28
RD
22652}
22653
22654
0085ce49
RD
22655SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22656 PyObject *resultobj = 0;
22657 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22658 wxToolBarBase *result = 0 ;
22659 void *argp1 = 0 ;
22660 int res1 = 0 ;
22661 PyObject *swig_obj[1] ;
22662
22663 if (!args) SWIG_fail;
22664 swig_obj[0] = args;
22665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22666 if (!SWIG_IsOK(res1)) {
22667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22668 }
22669 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22670 {
22671 PyThreadState* __tstate = wxPyBeginAllowThreads();
22672 result = (wxToolBarBase *)(arg1)->GetToolBar();
22673 wxPyEndAllowThreads(__tstate);
22674 if (PyErr_Occurred()) SWIG_fail;
22675 }
22676 {
22677 resultobj = wxPyMake_wxObject(result, (bool)0);
22678 }
22679 return resultobj;
22680fail:
22681 return NULL;
d14a1e28
RD
22682}
22683
22684
0085ce49
RD
22685SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22686 PyObject *resultobj = 0;
22687 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22688 int result;
22689 void *argp1 = 0 ;
22690 int res1 = 0 ;
22691 PyObject *swig_obj[1] ;
22692
22693 if (!args) SWIG_fail;
22694 swig_obj[0] = args;
22695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22696 if (!SWIG_IsOK(res1)) {
22697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22698 }
22699 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22700 {
22701 PyThreadState* __tstate = wxPyBeginAllowThreads();
22702 result = (int)(arg1)->IsButton();
22703 wxPyEndAllowThreads(__tstate);
22704 if (PyErr_Occurred()) SWIG_fail;
22705 }
22706 resultobj = SWIG_From_int(static_cast< int >(result));
22707 return resultobj;
22708fail:
22709 return NULL;
d14a1e28
RD
22710}
22711
22712
0085ce49
RD
22713SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22714 PyObject *resultobj = 0;
22715 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22716 int result;
22717 void *argp1 = 0 ;
22718 int res1 = 0 ;
22719 PyObject *swig_obj[1] ;
22720
22721 if (!args) SWIG_fail;
22722 swig_obj[0] = args;
22723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22724 if (!SWIG_IsOK(res1)) {
22725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22726 }
22727 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22728 {
22729 PyThreadState* __tstate = wxPyBeginAllowThreads();
22730 result = (int)(arg1)->IsControl();
22731 wxPyEndAllowThreads(__tstate);
22732 if (PyErr_Occurred()) SWIG_fail;
22733 }
22734 resultobj = SWIG_From_int(static_cast< int >(result));
22735 return resultobj;
22736fail:
22737 return NULL;
d14a1e28
RD
22738}
22739
22740
0085ce49
RD
22741SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22742 PyObject *resultobj = 0;
22743 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22744 int result;
22745 void *argp1 = 0 ;
22746 int res1 = 0 ;
22747 PyObject *swig_obj[1] ;
22748
22749 if (!args) SWIG_fail;
22750 swig_obj[0] = args;
22751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22752 if (!SWIG_IsOK(res1)) {
22753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22754 }
22755 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22756 {
22757 PyThreadState* __tstate = wxPyBeginAllowThreads();
22758 result = (int)(arg1)->IsSeparator();
22759 wxPyEndAllowThreads(__tstate);
22760 if (PyErr_Occurred()) SWIG_fail;
22761 }
22762 resultobj = SWIG_From_int(static_cast< int >(result));
22763 return resultobj;
22764fail:
22765 return NULL;
d14a1e28
RD
22766}
22767
22768
0085ce49
RD
22769SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22770 PyObject *resultobj = 0;
22771 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22772 int result;
22773 void *argp1 = 0 ;
22774 int res1 = 0 ;
22775 PyObject *swig_obj[1] ;
22776
22777 if (!args) SWIG_fail;
22778 swig_obj[0] = args;
22779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22780 if (!SWIG_IsOK(res1)) {
22781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22782 }
22783 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22784 {
22785 PyThreadState* __tstate = wxPyBeginAllowThreads();
22786 result = (int)(arg1)->GetStyle();
22787 wxPyEndAllowThreads(__tstate);
22788 if (PyErr_Occurred()) SWIG_fail;
22789 }
22790 resultobj = SWIG_From_int(static_cast< int >(result));
22791 return resultobj;
22792fail:
22793 return NULL;
d14a1e28
RD
22794}
22795
22796
0085ce49
RD
22797SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22798 PyObject *resultobj = 0;
22799 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22800 wxItemKind result;
22801 void *argp1 = 0 ;
22802 int res1 = 0 ;
22803 PyObject *swig_obj[1] ;
22804
22805 if (!args) SWIG_fail;
22806 swig_obj[0] = args;
22807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22808 if (!SWIG_IsOK(res1)) {
22809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22810 }
22811 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22812 {
22813 PyThreadState* __tstate = wxPyBeginAllowThreads();
22814 result = (wxItemKind)(arg1)->GetKind();
22815 wxPyEndAllowThreads(__tstate);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 }
22818 resultobj = SWIG_From_int(static_cast< int >(result));
22819 return resultobj;
22820fail:
22821 return NULL;
d14a1e28
RD
22822}
22823
22824
0085ce49
RD
22825SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22826 PyObject *resultobj = 0;
22827 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22828 bool result;
22829 void *argp1 = 0 ;
22830 int res1 = 0 ;
22831 PyObject *swig_obj[1] ;
22832
22833 if (!args) SWIG_fail;
22834 swig_obj[0] = args;
22835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22836 if (!SWIG_IsOK(res1)) {
22837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22838 }
22839 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22840 {
22841 PyThreadState* __tstate = wxPyBeginAllowThreads();
22842 result = (bool)(arg1)->IsEnabled();
22843 wxPyEndAllowThreads(__tstate);
22844 if (PyErr_Occurred()) SWIG_fail;
22845 }
22846 {
22847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22848 }
22849 return resultobj;
22850fail:
22851 return NULL;
d14a1e28
RD
22852}
22853
22854
0085ce49
RD
22855SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22856 PyObject *resultobj = 0;
22857 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22858 bool result;
22859 void *argp1 = 0 ;
22860 int res1 = 0 ;
22861 PyObject *swig_obj[1] ;
22862
22863 if (!args) SWIG_fail;
22864 swig_obj[0] = args;
22865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22866 if (!SWIG_IsOK(res1)) {
22867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22868 }
22869 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22870 {
22871 PyThreadState* __tstate = wxPyBeginAllowThreads();
22872 result = (bool)(arg1)->IsToggled();
22873 wxPyEndAllowThreads(__tstate);
22874 if (PyErr_Occurred()) SWIG_fail;
22875 }
22876 {
22877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22878 }
22879 return resultobj;
22880fail:
22881 return NULL;
22bfe96c
RD
22882}
22883
22884
0085ce49
RD
22885SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22886 PyObject *resultobj = 0;
22887 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22888 bool result;
22889 void *argp1 = 0 ;
22890 int res1 = 0 ;
22891 PyObject *swig_obj[1] ;
22892
22893 if (!args) SWIG_fail;
22894 swig_obj[0] = args;
22895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22896 if (!SWIG_IsOK(res1)) {
22897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22898 }
22899 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22900 {
22901 PyThreadState* __tstate = wxPyBeginAllowThreads();
22902 result = (bool)(arg1)->CanBeToggled();
22903 wxPyEndAllowThreads(__tstate);
22904 if (PyErr_Occurred()) SWIG_fail;
22905 }
22906 {
22907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22908 }
22909 return resultobj;
22910fail:
22911 return NULL;
d1e20054
RD
22912}
22913
22914
0085ce49
RD
22915SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22916 PyObject *resultobj = 0;
22917 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22918 wxBitmap *result = 0 ;
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_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22928 }
22929 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22930 {
22931 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22932 {
0085ce49
RD
22933 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22934 result = (wxBitmap *) &_result_ref;
093d3ff1 22935 }
0085ce49
RD
22936 wxPyEndAllowThreads(__tstate);
22937 if (PyErr_Occurred()) SWIG_fail;
22938 }
22939 {
22940 wxBitmap* resultptr = new wxBitmap(*result);
22941 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22942 }
22943 return resultobj;
22944fail:
22945 return NULL;
d1e20054
RD
22946}
22947
22948
0085ce49
RD
22949SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22950 PyObject *resultobj = 0;
22951 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22952 wxBitmap *result = 0 ;
22953 void *argp1 = 0 ;
22954 int res1 = 0 ;
22955 PyObject *swig_obj[1] ;
22956
22957 if (!args) SWIG_fail;
22958 swig_obj[0] = args;
22959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22960 if (!SWIG_IsOK(res1)) {
22961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22962 }
22963 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22964 {
22965 PyThreadState* __tstate = wxPyBeginAllowThreads();
d1e20054 22966 {
0085ce49
RD
22967 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22968 result = (wxBitmap *) &_result_ref;
d1e20054 22969 }
0085ce49
RD
22970 wxPyEndAllowThreads(__tstate);
22971 if (PyErr_Occurred()) SWIG_fail;
22972 }
22973 {
22974 wxBitmap* resultptr = new wxBitmap(*result);
22975 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22976 }
22977 return resultobj;
22978fail:
22979 return NULL;
d1e20054
RD
22980}
22981
22982
0085ce49
RD
22983SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22984 PyObject *resultobj = 0;
22985 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22986 wxBitmap result;
22987 void *argp1 = 0 ;
22988 int res1 = 0 ;
22989 PyObject *swig_obj[1] ;
22990
22991 if (!args) SWIG_fail;
22992 swig_obj[0] = args;
22993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22994 if (!SWIG_IsOK(res1)) {
22995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22996 }
22997 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22998 {
22999 PyThreadState* __tstate = wxPyBeginAllowThreads();
23000 result = (arg1)->GetBitmap();
23001 wxPyEndAllowThreads(__tstate);
23002 if (PyErr_Occurred()) SWIG_fail;
23003 }
23004 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23005 return resultobj;
23006fail:
23007 return NULL;
b2dc1044
RD
23008}
23009
23010
0085ce49
RD
23011SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23012 PyObject *resultobj = 0;
23013 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23014 wxString result;
23015 void *argp1 = 0 ;
23016 int res1 = 0 ;
23017 PyObject *swig_obj[1] ;
23018
23019 if (!args) SWIG_fail;
23020 swig_obj[0] = args;
23021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23022 if (!SWIG_IsOK(res1)) {
23023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23024 }
23025 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23026 {
23027 PyThreadState* __tstate = wxPyBeginAllowThreads();
23028 result = (arg1)->GetLabel();
23029 wxPyEndAllowThreads(__tstate);
23030 if (PyErr_Occurred()) SWIG_fail;
23031 }
23032 {
b2dc1044 23033#if wxUSE_UNICODE
0085ce49 23034 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 23035#else
0085ce49 23036 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 23037#endif
0085ce49
RD
23038 }
23039 return resultobj;
23040fail:
23041 return NULL;
b2dc1044
RD
23042}
23043
23044
0085ce49
RD
23045SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23046 PyObject *resultobj = 0;
23047 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23048 wxString result;
23049 void *argp1 = 0 ;
23050 int res1 = 0 ;
23051 PyObject *swig_obj[1] ;
23052
23053 if (!args) SWIG_fail;
23054 swig_obj[0] = args;
23055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23056 if (!SWIG_IsOK(res1)) {
23057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23058 }
23059 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23060 {
23061 PyThreadState* __tstate = wxPyBeginAllowThreads();
23062 result = (arg1)->GetShortHelp();
23063 wxPyEndAllowThreads(__tstate);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 {
b2dc1044 23067#if wxUSE_UNICODE
0085ce49 23068 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 23069#else
0085ce49 23070 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 23071#endif
0085ce49
RD
23072 }
23073 return resultobj;
23074fail:
23075 return NULL;
d14a1e28
RD
23076}
23077
23078
0085ce49
RD
23079SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23080 PyObject *resultobj = 0;
23081 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23082 wxString result;
23083 void *argp1 = 0 ;
23084 int res1 = 0 ;
23085 PyObject *swig_obj[1] ;
23086
23087 if (!args) SWIG_fail;
23088 swig_obj[0] = args;
23089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23090 if (!SWIG_IsOK(res1)) {
23091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23092 }
23093 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23094 {
23095 PyThreadState* __tstate = wxPyBeginAllowThreads();
23096 result = (arg1)->GetLongHelp();
23097 wxPyEndAllowThreads(__tstate);
23098 if (PyErr_Occurred()) SWIG_fail;
23099 }
23100 {
23101#if wxUSE_UNICODE
23102 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23103#else
23104 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23105#endif
23106 }
23107 return resultobj;
23108fail:
23109 return NULL;
23110}
23111
23112
23113SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23114 PyObject *resultobj = 0;
23115 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23116 bool arg2 ;
23117 bool result;
23118 void *argp1 = 0 ;
23119 int res1 = 0 ;
23120 bool val2 ;
23121 int ecode2 = 0 ;
23122 PyObject * obj0 = 0 ;
23123 PyObject * obj1 = 0 ;
23124 char * kwnames[] = {
23125 (char *) "self",(char *) "enable", NULL
23126 };
23127
23128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23130 if (!SWIG_IsOK(res1)) {
23131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23132 }
23133 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23134 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23135 if (!SWIG_IsOK(ecode2)) {
23136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23137 }
23138 arg2 = static_cast< bool >(val2);
23139 {
23140 PyThreadState* __tstate = wxPyBeginAllowThreads();
23141 result = (bool)(arg1)->Enable(arg2);
23142 wxPyEndAllowThreads(__tstate);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 }
23145 {
23146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23147 }
23148 return resultobj;
23149fail:
23150 return NULL;
d14a1e28
RD
23151}
23152
23153
0085ce49
RD
23154SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23155 PyObject *resultobj = 0;
23156 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23157 void *argp1 = 0 ;
23158 int res1 = 0 ;
23159 PyObject *swig_obj[1] ;
23160
23161 if (!args) SWIG_fail;
23162 swig_obj[0] = args;
23163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23164 if (!SWIG_IsOK(res1)) {
23165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23166 }
23167 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23168 {
23169 PyThreadState* __tstate = wxPyBeginAllowThreads();
23170 (arg1)->Toggle();
23171 wxPyEndAllowThreads(__tstate);
23172 if (PyErr_Occurred()) SWIG_fail;
23173 }
23174 resultobj = SWIG_Py_Void();
23175 return resultobj;
23176fail:
23177 return NULL;
23178}
23179
23180
23181SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23182 PyObject *resultobj = 0;
23183 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23184 bool arg2 ;
23185 bool result;
23186 void *argp1 = 0 ;
23187 int res1 = 0 ;
23188 bool val2 ;
23189 int ecode2 = 0 ;
23190 PyObject * obj0 = 0 ;
23191 PyObject * obj1 = 0 ;
23192 char * kwnames[] = {
23193 (char *) "self",(char *) "toggle", NULL
23194 };
23195
23196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23198 if (!SWIG_IsOK(res1)) {
23199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23200 }
23201 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23202 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23203 if (!SWIG_IsOK(ecode2)) {
23204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23205 }
23206 arg2 = static_cast< bool >(val2);
23207 {
23208 PyThreadState* __tstate = wxPyBeginAllowThreads();
23209 result = (bool)(arg1)->SetToggle(arg2);
23210 wxPyEndAllowThreads(__tstate);
23211 if (PyErr_Occurred()) SWIG_fail;
23212 }
23213 {
23214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23215 }
23216 return resultobj;
23217fail:
23218 return NULL;
23219}
23220
23221
23222SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23223 PyObject *resultobj = 0;
23224 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23225 wxString *arg2 = 0 ;
23226 bool result;
23227 void *argp1 = 0 ;
23228 int res1 = 0 ;
23229 bool temp2 = false ;
23230 PyObject * obj0 = 0 ;
23231 PyObject * obj1 = 0 ;
23232 char * kwnames[] = {
23233 (char *) "self",(char *) "help", NULL
23234 };
23235
23236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23238 if (!SWIG_IsOK(res1)) {
23239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23240 }
23241 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23242 {
23243 arg2 = wxString_in_helper(obj1);
23244 if (arg2 == NULL) SWIG_fail;
23245 temp2 = true;
23246 }
23247 {
23248 PyThreadState* __tstate = wxPyBeginAllowThreads();
23249 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23250 wxPyEndAllowThreads(__tstate);
23251 if (PyErr_Occurred()) SWIG_fail;
23252 }
23253 {
23254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23255 }
23256 {
23257 if (temp2)
23258 delete arg2;
23259 }
23260 return resultobj;
23261fail:
23262 {
23263 if (temp2)
23264 delete arg2;
23265 }
23266 return NULL;
23267}
23268
23269
23270SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23271 PyObject *resultobj = 0;
23272 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23273 wxString *arg2 = 0 ;
23274 bool result;
23275 void *argp1 = 0 ;
23276 int res1 = 0 ;
23277 bool temp2 = false ;
23278 PyObject * obj0 = 0 ;
23279 PyObject * obj1 = 0 ;
23280 char * kwnames[] = {
23281 (char *) "self",(char *) "help", NULL
23282 };
23283
23284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23286 if (!SWIG_IsOK(res1)) {
23287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23288 }
23289 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23290 {
23291 arg2 = wxString_in_helper(obj1);
23292 if (arg2 == NULL) SWIG_fail;
23293 temp2 = true;
23294 }
23295 {
23296 PyThreadState* __tstate = wxPyBeginAllowThreads();
23297 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23298 wxPyEndAllowThreads(__tstate);
23299 if (PyErr_Occurred()) SWIG_fail;
23300 }
23301 {
23302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23303 }
23304 {
23305 if (temp2)
23306 delete arg2;
23307 }
23308 return resultobj;
23309fail:
23310 {
23311 if (temp2)
23312 delete arg2;
23313 }
23314 return NULL;
23315}
23316
23317
23318SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23319 PyObject *resultobj = 0;
23320 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23321 wxBitmap *arg2 = 0 ;
23322 void *argp1 = 0 ;
23323 int res1 = 0 ;
23324 void *argp2 = 0 ;
23325 int res2 = 0 ;
23326 PyObject * obj0 = 0 ;
23327 PyObject * obj1 = 0 ;
23328 char * kwnames[] = {
23329 (char *) "self",(char *) "bmp", NULL
23330 };
23331
23332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23334 if (!SWIG_IsOK(res1)) {
23335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23336 }
23337 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23338 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23339 if (!SWIG_IsOK(res2)) {
23340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23341 }
23342 if (!argp2) {
23343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23344 }
23345 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23346 {
23347 PyThreadState* __tstate = wxPyBeginAllowThreads();
23348 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23349 wxPyEndAllowThreads(__tstate);
23350 if (PyErr_Occurred()) SWIG_fail;
23351 }
23352 resultobj = SWIG_Py_Void();
23353 return resultobj;
23354fail:
23355 return NULL;
23356}
23357
23358
23359SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23360 PyObject *resultobj = 0;
23361 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23362 wxBitmap *arg2 = 0 ;
23363 void *argp1 = 0 ;
23364 int res1 = 0 ;
23365 void *argp2 = 0 ;
23366 int res2 = 0 ;
23367 PyObject * obj0 = 0 ;
23368 PyObject * obj1 = 0 ;
23369 char * kwnames[] = {
23370 (char *) "self",(char *) "bmp", NULL
23371 };
23372
23373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23375 if (!SWIG_IsOK(res1)) {
23376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23377 }
23378 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23379 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23380 if (!SWIG_IsOK(res2)) {
23381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23382 }
23383 if (!argp2) {
23384 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23385 }
23386 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23387 {
23388 PyThreadState* __tstate = wxPyBeginAllowThreads();
23389 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23390 wxPyEndAllowThreads(__tstate);
23391 if (PyErr_Occurred()) SWIG_fail;
23392 }
23393 resultobj = SWIG_Py_Void();
23394 return resultobj;
23395fail:
23396 return NULL;
23397}
23398
23399
23400SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23401 PyObject *resultobj = 0;
23402 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23403 wxString *arg2 = 0 ;
23404 void *argp1 = 0 ;
23405 int res1 = 0 ;
23406 bool temp2 = false ;
23407 PyObject * obj0 = 0 ;
23408 PyObject * obj1 = 0 ;
23409 char * kwnames[] = {
23410 (char *) "self",(char *) "label", NULL
23411 };
23412
23413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23415 if (!SWIG_IsOK(res1)) {
23416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23417 }
23418 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23419 {
23420 arg2 = wxString_in_helper(obj1);
23421 if (arg2 == NULL) SWIG_fail;
23422 temp2 = true;
23423 }
23424 {
23425 PyThreadState* __tstate = wxPyBeginAllowThreads();
23426 (arg1)->SetLabel((wxString const &)*arg2);
23427 wxPyEndAllowThreads(__tstate);
23428 if (PyErr_Occurred()) SWIG_fail;
23429 }
23430 resultobj = SWIG_Py_Void();
23431 {
23432 if (temp2)
23433 delete arg2;
23434 }
23435 return resultobj;
23436fail:
23437 {
23438 if (temp2)
23439 delete arg2;
23440 }
23441 return NULL;
d14a1e28
RD
23442}
23443
23444
0085ce49
RD
23445SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23446 PyObject *resultobj = 0;
23447 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23448 void *argp1 = 0 ;
23449 int res1 = 0 ;
23450 PyObject *swig_obj[1] ;
23451
23452 if (!args) SWIG_fail;
23453 swig_obj[0] = args;
23454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23455 if (!SWIG_IsOK(res1)) {
23456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23457 }
23458 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23459 {
23460 PyThreadState* __tstate = wxPyBeginAllowThreads();
23461 (arg1)->Detach();
23462 wxPyEndAllowThreads(__tstate);
23463 if (PyErr_Occurred()) SWIG_fail;
23464 }
23465 resultobj = SWIG_Py_Void();
23466 return resultobj;
23467fail:
23468 return NULL;
23469}
23470
23471
23472SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23473 PyObject *resultobj = 0;
23474 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23475 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23476 void *argp1 = 0 ;
23477 int res1 = 0 ;
23478 void *argp2 = 0 ;
23479 int res2 = 0 ;
23480 PyObject * obj0 = 0 ;
23481 PyObject * obj1 = 0 ;
23482 char * kwnames[] = {
23483 (char *) "self",(char *) "tbar", NULL
23484 };
23485
23486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23488 if (!SWIG_IsOK(res1)) {
23489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23490 }
23491 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23492 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23493 if (!SWIG_IsOK(res2)) {
23494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23495 }
23496 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23497 {
23498 PyThreadState* __tstate = wxPyBeginAllowThreads();
23499 (arg1)->Attach(arg2);
23500 wxPyEndAllowThreads(__tstate);
23501 if (PyErr_Occurred()) SWIG_fail;
23502 }
23503 resultobj = SWIG_Py_Void();
23504 return resultobj;
23505fail:
23506 return NULL;
d14a1e28
RD
23507}
23508
23509
0085ce49
RD
23510SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23511 PyObject *resultobj = 0;
23512 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23513 PyObject *result = 0 ;
23514 void *argp1 = 0 ;
23515 int res1 = 0 ;
23516 PyObject *swig_obj[1] ;
23517
23518 if (!args) SWIG_fail;
23519 swig_obj[0] = args;
23520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23521 if (!SWIG_IsOK(res1)) {
23522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23523 }
23524 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23525 {
23526 PyThreadState* __tstate = wxPyBeginAllowThreads();
23527 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23528 wxPyEndAllowThreads(__tstate);
23529 if (PyErr_Occurred()) SWIG_fail;
23530 }
23531 resultobj = result;
23532 return resultobj;
23533fail:
23534 return NULL;
23535}
23536
23537
23538SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23539 PyObject *resultobj = 0;
23540 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23541 PyObject *arg2 = (PyObject *) 0 ;
23542 void *argp1 = 0 ;
23543 int res1 = 0 ;
23544 PyObject * obj0 = 0 ;
23545 PyObject * obj1 = 0 ;
23546 char * kwnames[] = {
23547 (char *) "self",(char *) "clientData", NULL
23548 };
23549
23550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23552 if (!SWIG_IsOK(res1)) {
23553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23554 }
23555 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23556 arg2 = obj1;
23557 {
23558 PyThreadState* __tstate = wxPyBeginAllowThreads();
23559 wxToolBarToolBase_SetClientData(arg1,arg2);
23560 wxPyEndAllowThreads(__tstate);
23561 if (PyErr_Occurred()) SWIG_fail;
23562 }
23563 resultobj = SWIG_Py_Void();
23564 return resultobj;
23565fail:
23566 return NULL;
23567}
23568
23569
23570SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23571 PyObject *obj;
23572 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23573 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23574 return SWIG_Py_Void();
23575}
23576
23577SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23578 PyObject *resultobj = 0;
23579 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23580 int arg2 ;
23581 wxString *arg3 = 0 ;
23582 wxBitmap *arg4 = 0 ;
23583 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23584 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23585 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23586 wxString const &arg7_defvalue = wxPyEmptyString ;
23587 wxString *arg7 = (wxString *) &arg7_defvalue ;
23588 wxString const &arg8_defvalue = wxPyEmptyString ;
23589 wxString *arg8 = (wxString *) &arg8_defvalue ;
23590 PyObject *arg9 = (PyObject *) NULL ;
23591 wxToolBarToolBase *result = 0 ;
23592 void *argp1 = 0 ;
23593 int res1 = 0 ;
23594 int val2 ;
23595 int ecode2 = 0 ;
23596 bool temp3 = false ;
23597 void *argp4 = 0 ;
23598 int res4 = 0 ;
23599 void *argp5 = 0 ;
23600 int res5 = 0 ;
23601 int val6 ;
23602 int ecode6 = 0 ;
23603 bool temp7 = false ;
23604 bool temp8 = false ;
23605 PyObject * obj0 = 0 ;
23606 PyObject * obj1 = 0 ;
23607 PyObject * obj2 = 0 ;
23608 PyObject * obj3 = 0 ;
23609 PyObject * obj4 = 0 ;
23610 PyObject * obj5 = 0 ;
23611 PyObject * obj6 = 0 ;
23612 PyObject * obj7 = 0 ;
23613 PyObject * obj8 = 0 ;
23614 char * kwnames[] = {
23615 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23616 };
23617
23618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23620 if (!SWIG_IsOK(res1)) {
23621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23622 }
23623 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23624 ecode2 = SWIG_AsVal_int(obj1, &val2);
23625 if (!SWIG_IsOK(ecode2)) {
23626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23627 }
23628 arg2 = static_cast< int >(val2);
23629 {
23630 arg3 = wxString_in_helper(obj2);
23631 if (arg3 == NULL) SWIG_fail;
23632 temp3 = true;
23633 }
23634 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23635 if (!SWIG_IsOK(res4)) {
23636 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23637 }
23638 if (!argp4) {
23639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23640 }
23641 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23642 if (obj4) {
23643 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23644 if (!SWIG_IsOK(res5)) {
23645 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23646 }
0085ce49
RD
23647 if (!argp5) {
23648 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23649 }
0085ce49
RD
23650 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23651 }
23652 if (obj5) {
23653 ecode6 = SWIG_AsVal_int(obj5, &val6);
23654 if (!SWIG_IsOK(ecode6)) {
23655 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23656 }
23657 arg6 = static_cast< wxItemKind >(val6);
23658 }
23659 if (obj6) {
093d3ff1 23660 {
0085ce49
RD
23661 arg7 = wxString_in_helper(obj6);
23662 if (arg7 == NULL) SWIG_fail;
23663 temp7 = true;
093d3ff1 23664 }
0085ce49
RD
23665 }
23666 if (obj7) {
d14a1e28 23667 {
0085ce49
RD
23668 arg8 = wxString_in_helper(obj7);
23669 if (arg8 == NULL) SWIG_fail;
23670 temp8 = true;
d14a1e28 23671 }
0085ce49
RD
23672 }
23673 if (obj8) {
23674 arg9 = obj8;
23675 }
23676 {
23677 PyThreadState* __tstate = wxPyBeginAllowThreads();
23678 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23679 wxPyEndAllowThreads(__tstate);
23680 if (PyErr_Occurred()) SWIG_fail;
23681 }
23682 {
23683 resultobj = wxPyMake_wxObject(result, (bool)0);
23684 }
23685 {
23686 if (temp3)
23687 delete arg3;
23688 }
23689 {
23690 if (temp7)
23691 delete arg7;
23692 }
23693 {
23694 if (temp8)
23695 delete arg8;
23696 }
23697 return resultobj;
23698fail:
23699 {
23700 if (temp3)
23701 delete arg3;
23702 }
23703 {
23704 if (temp7)
23705 delete arg7;
23706 }
23707 {
23708 if (temp8)
23709 delete arg8;
23710 }
23711 return NULL;
23712}
23713
23714
23715SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23716 PyObject *resultobj = 0;
23717 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23718 size_t arg2 ;
23719 int arg3 ;
23720 wxString *arg4 = 0 ;
23721 wxBitmap *arg5 = 0 ;
23722 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23723 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23724 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23725 wxString const &arg8_defvalue = wxPyEmptyString ;
23726 wxString *arg8 = (wxString *) &arg8_defvalue ;
23727 wxString const &arg9_defvalue = wxPyEmptyString ;
23728 wxString *arg9 = (wxString *) &arg9_defvalue ;
23729 PyObject *arg10 = (PyObject *) NULL ;
23730 wxToolBarToolBase *result = 0 ;
23731 void *argp1 = 0 ;
23732 int res1 = 0 ;
23733 size_t val2 ;
23734 int ecode2 = 0 ;
23735 int val3 ;
23736 int ecode3 = 0 ;
23737 bool temp4 = false ;
23738 void *argp5 = 0 ;
23739 int res5 = 0 ;
23740 void *argp6 = 0 ;
23741 int res6 = 0 ;
23742 int val7 ;
23743 int ecode7 = 0 ;
23744 bool temp8 = false ;
23745 bool temp9 = false ;
23746 PyObject * obj0 = 0 ;
23747 PyObject * obj1 = 0 ;
23748 PyObject * obj2 = 0 ;
23749 PyObject * obj3 = 0 ;
23750 PyObject * obj4 = 0 ;
23751 PyObject * obj5 = 0 ;
23752 PyObject * obj6 = 0 ;
23753 PyObject * obj7 = 0 ;
23754 PyObject * obj8 = 0 ;
23755 PyObject * obj9 = 0 ;
23756 char * kwnames[] = {
23757 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23758 };
23759
23760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23762 if (!SWIG_IsOK(res1)) {
23763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23764 }
23765 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23766 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23767 if (!SWIG_IsOK(ecode2)) {
23768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23769 }
23770 arg2 = static_cast< size_t >(val2);
23771 ecode3 = SWIG_AsVal_int(obj2, &val3);
23772 if (!SWIG_IsOK(ecode3)) {
23773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23774 }
23775 arg3 = static_cast< int >(val3);
23776 {
23777 arg4 = wxString_in_helper(obj3);
23778 if (arg4 == NULL) SWIG_fail;
23779 temp4 = true;
23780 }
23781 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23782 if (!SWIG_IsOK(res5)) {
23783 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23784 }
23785 if (!argp5) {
23786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23787 }
23788 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23789 if (obj5) {
23790 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23791 if (!SWIG_IsOK(res6)) {
23792 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d14a1e28 23793 }
0085ce49
RD
23794 if (!argp6) {
23795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
093d3ff1 23796 }
0085ce49
RD
23797 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23798 }
23799 if (obj6) {
23800 ecode7 = SWIG_AsVal_int(obj6, &val7);
23801 if (!SWIG_IsOK(ecode7)) {
23802 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23803 }
23804 arg7 = static_cast< wxItemKind >(val7);
23805 }
23806 if (obj7) {
d14a1e28 23807 {
0085ce49
RD
23808 arg8 = wxString_in_helper(obj7);
23809 if (arg8 == NULL) SWIG_fail;
23810 temp8 = true;
d14a1e28 23811 }
0085ce49
RD
23812 }
23813 if (obj8) {
d14a1e28 23814 {
0085ce49
RD
23815 arg9 = wxString_in_helper(obj8);
23816 if (arg9 == NULL) SWIG_fail;
23817 temp9 = true;
d14a1e28 23818 }
0085ce49
RD
23819 }
23820 if (obj9) {
23821 arg10 = obj9;
23822 }
23823 {
23824 PyThreadState* __tstate = wxPyBeginAllowThreads();
23825 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23826 wxPyEndAllowThreads(__tstate);
23827 if (PyErr_Occurred()) SWIG_fail;
23828 }
23829 {
23830 resultobj = wxPyMake_wxObject(result, (bool)0);
23831 }
23832 {
23833 if (temp4)
23834 delete arg4;
23835 }
23836 {
23837 if (temp8)
23838 delete arg8;
23839 }
23840 {
23841 if (temp9)
23842 delete arg9;
23843 }
23844 return resultobj;
23845fail:
23846 {
23847 if (temp4)
23848 delete arg4;
23849 }
23850 {
23851 if (temp8)
23852 delete arg8;
23853 }
23854 {
23855 if (temp9)
23856 delete arg9;
23857 }
23858 return NULL;
23859}
23860
23861
23862SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23863 PyObject *resultobj = 0;
23864 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23865 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23866 wxToolBarToolBase *result = 0 ;
23867 void *argp1 = 0 ;
23868 int res1 = 0 ;
23869 void *argp2 = 0 ;
23870 int res2 = 0 ;
23871 PyObject * obj0 = 0 ;
23872 PyObject * obj1 = 0 ;
23873 char * kwnames[] = {
23874 (char *) "self",(char *) "tool", NULL
23875 };
23876
23877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23879 if (!SWIG_IsOK(res1)) {
23880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23881 }
23882 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23883 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23884 if (!SWIG_IsOK(res2)) {
23885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23886 }
23887 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23888 {
23889 PyThreadState* __tstate = wxPyBeginAllowThreads();
23890 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23891 wxPyEndAllowThreads(__tstate);
23892 if (PyErr_Occurred()) SWIG_fail;
23893 }
23894 {
23895 resultobj = wxPyMake_wxObject(result, (bool)0);
23896 }
23897 return resultobj;
23898fail:
23899 return NULL;
23900}
23901
23902
23903SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23904 PyObject *resultobj = 0;
23905 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23906 size_t arg2 ;
23907 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23908 wxToolBarToolBase *result = 0 ;
23909 void *argp1 = 0 ;
23910 int res1 = 0 ;
23911 size_t val2 ;
23912 int ecode2 = 0 ;
23913 void *argp3 = 0 ;
23914 int res3 = 0 ;
23915 PyObject * obj0 = 0 ;
23916 PyObject * obj1 = 0 ;
23917 PyObject * obj2 = 0 ;
23918 char * kwnames[] = {
23919 (char *) "self",(char *) "pos",(char *) "tool", NULL
23920 };
23921
23922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23924 if (!SWIG_IsOK(res1)) {
23925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23926 }
23927 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23928 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23929 if (!SWIG_IsOK(ecode2)) {
23930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23931 }
23932 arg2 = static_cast< size_t >(val2);
23933 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23934 if (!SWIG_IsOK(res3)) {
23935 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23936 }
23937 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23938 {
23939 PyThreadState* __tstate = wxPyBeginAllowThreads();
23940 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23941 wxPyEndAllowThreads(__tstate);
23942 if (PyErr_Occurred()) SWIG_fail;
23943 }
23944 {
23945 resultobj = wxPyMake_wxObject(result, (bool)0);
23946 }
23947 return resultobj;
23948fail:
23949 return NULL;
23950}
23951
23952
23953SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23954 PyObject *resultobj = 0;
23955 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23956 wxControl *arg2 = (wxControl *) 0 ;
23957 wxToolBarToolBase *result = 0 ;
23958 void *argp1 = 0 ;
23959 int res1 = 0 ;
23960 void *argp2 = 0 ;
23961 int res2 = 0 ;
23962 PyObject * obj0 = 0 ;
23963 PyObject * obj1 = 0 ;
23964 char * kwnames[] = {
23965 (char *) "self",(char *) "control", NULL
23966 };
23967
23968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23970 if (!SWIG_IsOK(res1)) {
23971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23972 }
23973 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23974 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23975 if (!SWIG_IsOK(res2)) {
23976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23977 }
23978 arg2 = reinterpret_cast< wxControl * >(argp2);
23979 {
23980 PyThreadState* __tstate = wxPyBeginAllowThreads();
23981 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23982 wxPyEndAllowThreads(__tstate);
23983 if (PyErr_Occurred()) SWIG_fail;
23984 }
23985 {
23986 resultobj = wxPyMake_wxObject(result, (bool)0);
23987 }
23988 return resultobj;
23989fail:
23990 return NULL;
23991}
23992
23993
23994SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23995 PyObject *resultobj = 0;
23996 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23997 size_t arg2 ;
23998 wxControl *arg3 = (wxControl *) 0 ;
23999 wxToolBarToolBase *result = 0 ;
24000 void *argp1 = 0 ;
24001 int res1 = 0 ;
24002 size_t val2 ;
24003 int ecode2 = 0 ;
24004 void *argp3 = 0 ;
24005 int res3 = 0 ;
24006 PyObject * obj0 = 0 ;
24007 PyObject * obj1 = 0 ;
24008 PyObject * obj2 = 0 ;
24009 char * kwnames[] = {
24010 (char *) "self",(char *) "pos",(char *) "control", NULL
24011 };
24012
24013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24015 if (!SWIG_IsOK(res1)) {
24016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24017 }
24018 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24019 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24020 if (!SWIG_IsOK(ecode2)) {
24021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24022 }
24023 arg2 = static_cast< size_t >(val2);
24024 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24025 if (!SWIG_IsOK(res3)) {
24026 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24027 }
24028 arg3 = reinterpret_cast< wxControl * >(argp3);
24029 {
24030 PyThreadState* __tstate = wxPyBeginAllowThreads();
24031 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24032 wxPyEndAllowThreads(__tstate);
24033 if (PyErr_Occurred()) SWIG_fail;
24034 }
24035 {
24036 resultobj = wxPyMake_wxObject(result, (bool)0);
24037 }
24038 return resultobj;
24039fail:
24040 return NULL;
24041}
24042
24043
24044SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24045 PyObject *resultobj = 0;
24046 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24047 int arg2 ;
24048 wxControl *result = 0 ;
24049 void *argp1 = 0 ;
24050 int res1 = 0 ;
24051 int val2 ;
24052 int ecode2 = 0 ;
24053 PyObject * obj0 = 0 ;
24054 PyObject * obj1 = 0 ;
24055 char * kwnames[] = {
24056 (char *) "self",(char *) "id", NULL
24057 };
24058
24059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24061 if (!SWIG_IsOK(res1)) {
24062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24063 }
24064 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24065 ecode2 = SWIG_AsVal_int(obj1, &val2);
24066 if (!SWIG_IsOK(ecode2)) {
24067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24068 }
24069 arg2 = static_cast< int >(val2);
24070 {
24071 PyThreadState* __tstate = wxPyBeginAllowThreads();
24072 result = (wxControl *)(arg1)->FindControl(arg2);
24073 wxPyEndAllowThreads(__tstate);
24074 if (PyErr_Occurred()) SWIG_fail;
24075 }
24076 {
24077 resultobj = wxPyMake_wxObject(result, 0);
24078 }
24079 return resultobj;
24080fail:
24081 return NULL;
d14a1e28
RD
24082}
24083
24084
0085ce49
RD
24085SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24086 PyObject *resultobj = 0;
24087 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24088 wxToolBarToolBase *result = 0 ;
24089 void *argp1 = 0 ;
24090 int res1 = 0 ;
24091 PyObject *swig_obj[1] ;
24092
24093 if (!args) SWIG_fail;
24094 swig_obj[0] = args;
24095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24096 if (!SWIG_IsOK(res1)) {
24097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24098 }
24099 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24100 {
24101 PyThreadState* __tstate = wxPyBeginAllowThreads();
24102 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24103 wxPyEndAllowThreads(__tstate);
24104 if (PyErr_Occurred()) SWIG_fail;
24105 }
24106 {
24107 resultobj = wxPyMake_wxObject(result, (bool)0);
24108 }
24109 return resultobj;
24110fail:
24111 return NULL;
24112}
24113
24114
24115SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24116 PyObject *resultobj = 0;
24117 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24118 size_t arg2 ;
24119 wxToolBarToolBase *result = 0 ;
24120 void *argp1 = 0 ;
24121 int res1 = 0 ;
24122 size_t val2 ;
24123 int ecode2 = 0 ;
24124 PyObject * obj0 = 0 ;
24125 PyObject * obj1 = 0 ;
24126 char * kwnames[] = {
24127 (char *) "self",(char *) "pos", NULL
24128 };
24129
24130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24132 if (!SWIG_IsOK(res1)) {
24133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24134 }
24135 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24136 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24137 if (!SWIG_IsOK(ecode2)) {
24138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24139 }
24140 arg2 = static_cast< size_t >(val2);
24141 {
24142 PyThreadState* __tstate = wxPyBeginAllowThreads();
24143 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24144 wxPyEndAllowThreads(__tstate);
24145 if (PyErr_Occurred()) SWIG_fail;
24146 }
24147 {
24148 resultobj = wxPyMake_wxObject(result, (bool)0);
24149 }
24150 return resultobj;
24151fail:
24152 return NULL;
24153}
24154
24155
24156SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24157 PyObject *resultobj = 0;
24158 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24159 int arg2 ;
24160 wxToolBarToolBase *result = 0 ;
24161 void *argp1 = 0 ;
24162 int res1 = 0 ;
24163 int val2 ;
24164 int ecode2 = 0 ;
24165 PyObject * obj0 = 0 ;
24166 PyObject * obj1 = 0 ;
24167 char * kwnames[] = {
24168 (char *) "self",(char *) "id", NULL
24169 };
24170
24171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24173 if (!SWIG_IsOK(res1)) {
24174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24175 }
24176 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24177 ecode2 = SWIG_AsVal_int(obj1, &val2);
24178 if (!SWIG_IsOK(ecode2)) {
24179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24180 }
24181 arg2 = static_cast< int >(val2);
24182 {
24183 PyThreadState* __tstate = wxPyBeginAllowThreads();
24184 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24185 wxPyEndAllowThreads(__tstate);
24186 if (PyErr_Occurred()) SWIG_fail;
24187 }
24188 {
24189 resultobj = wxPyMake_wxObject(result, (bool)0);
24190 }
24191 return resultobj;
24192fail:
24193 return NULL;
24194}
24195
24196
24197SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24198 PyObject *resultobj = 0;
24199 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24200 size_t arg2 ;
24201 bool result;
24202 void *argp1 = 0 ;
24203 int res1 = 0 ;
24204 size_t val2 ;
24205 int ecode2 = 0 ;
24206 PyObject * obj0 = 0 ;
24207 PyObject * obj1 = 0 ;
24208 char * kwnames[] = {
24209 (char *) "self",(char *) "pos", NULL
24210 };
24211
24212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24214 if (!SWIG_IsOK(res1)) {
24215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24216 }
24217 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24218 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24219 if (!SWIG_IsOK(ecode2)) {
24220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24221 }
24222 arg2 = static_cast< size_t >(val2);
24223 {
24224 PyThreadState* __tstate = wxPyBeginAllowThreads();
24225 result = (bool)(arg1)->DeleteToolByPos(arg2);
24226 wxPyEndAllowThreads(__tstate);
24227 if (PyErr_Occurred()) SWIG_fail;
24228 }
24229 {
24230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24231 }
24232 return resultobj;
24233fail:
24234 return NULL;
24235}
24236
24237
24238SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24239 PyObject *resultobj = 0;
24240 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24241 int arg2 ;
24242 bool result;
24243 void *argp1 = 0 ;
24244 int res1 = 0 ;
24245 int val2 ;
24246 int ecode2 = 0 ;
24247 PyObject * obj0 = 0 ;
24248 PyObject * obj1 = 0 ;
24249 char * kwnames[] = {
24250 (char *) "self",(char *) "id", NULL
24251 };
24252
24253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24255 if (!SWIG_IsOK(res1)) {
24256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24257 }
24258 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24259 ecode2 = SWIG_AsVal_int(obj1, &val2);
24260 if (!SWIG_IsOK(ecode2)) {
24261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24262 }
24263 arg2 = static_cast< int >(val2);
24264 {
24265 PyThreadState* __tstate = wxPyBeginAllowThreads();
24266 result = (bool)(arg1)->DeleteTool(arg2);
24267 wxPyEndAllowThreads(__tstate);
24268 if (PyErr_Occurred()) SWIG_fail;
24269 }
24270 {
24271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24272 }
24273 return resultobj;
24274fail:
24275 return NULL;
d14a1e28
RD
24276}
24277
24278
0085ce49
RD
24279SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24280 PyObject *resultobj = 0;
24281 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24282 void *argp1 = 0 ;
24283 int res1 = 0 ;
24284 PyObject *swig_obj[1] ;
24285
24286 if (!args) SWIG_fail;
24287 swig_obj[0] = args;
24288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24289 if (!SWIG_IsOK(res1)) {
24290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24291 }
24292 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24293 {
24294 PyThreadState* __tstate = wxPyBeginAllowThreads();
24295 (arg1)->ClearTools();
24296 wxPyEndAllowThreads(__tstate);
24297 if (PyErr_Occurred()) SWIG_fail;
24298 }
24299 resultobj = SWIG_Py_Void();
24300 return resultobj;
24301fail:
24302 return NULL;
d14a1e28
RD
24303}
24304
24305
0085ce49
RD
24306SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24307 PyObject *resultobj = 0;
24308 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24309 bool result;
24310 void *argp1 = 0 ;
24311 int res1 = 0 ;
24312 PyObject *swig_obj[1] ;
24313
24314 if (!args) SWIG_fail;
24315 swig_obj[0] = args;
24316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24317 if (!SWIG_IsOK(res1)) {
24318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24319 }
24320 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24321 {
24322 PyThreadState* __tstate = wxPyBeginAllowThreads();
24323 result = (bool)(arg1)->Realize();
24324 wxPyEndAllowThreads(__tstate);
24325 if (PyErr_Occurred()) SWIG_fail;
24326 }
24327 {
24328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24329 }
24330 return resultobj;
24331fail:
24332 return NULL;
24333}
24334
24335
24336SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24337 PyObject *resultobj = 0;
24338 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24339 int arg2 ;
24340 bool arg3 ;
24341 void *argp1 = 0 ;
24342 int res1 = 0 ;
24343 int val2 ;
24344 int ecode2 = 0 ;
24345 bool val3 ;
24346 int ecode3 = 0 ;
24347 PyObject * obj0 = 0 ;
24348 PyObject * obj1 = 0 ;
24349 PyObject * obj2 = 0 ;
24350 char * kwnames[] = {
24351 (char *) "self",(char *) "id",(char *) "enable", NULL
24352 };
24353
24354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24356 if (!SWIG_IsOK(res1)) {
24357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24358 }
24359 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24360 ecode2 = SWIG_AsVal_int(obj1, &val2);
24361 if (!SWIG_IsOK(ecode2)) {
24362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24363 }
24364 arg2 = static_cast< int >(val2);
24365 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24366 if (!SWIG_IsOK(ecode3)) {
24367 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24368 }
24369 arg3 = static_cast< bool >(val3);
24370 {
24371 PyThreadState* __tstate = wxPyBeginAllowThreads();
24372 (arg1)->EnableTool(arg2,arg3);
24373 wxPyEndAllowThreads(__tstate);
24374 if (PyErr_Occurred()) SWIG_fail;
24375 }
24376 resultobj = SWIG_Py_Void();
24377 return resultobj;
24378fail:
24379 return NULL;
24380}
24381
24382
24383SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24384 PyObject *resultobj = 0;
24385 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24386 int arg2 ;
24387 bool arg3 ;
24388 void *argp1 = 0 ;
24389 int res1 = 0 ;
24390 int val2 ;
24391 int ecode2 = 0 ;
24392 bool val3 ;
24393 int ecode3 = 0 ;
24394 PyObject * obj0 = 0 ;
24395 PyObject * obj1 = 0 ;
24396 PyObject * obj2 = 0 ;
24397 char * kwnames[] = {
24398 (char *) "self",(char *) "id",(char *) "toggle", NULL
24399 };
24400
24401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24403 if (!SWIG_IsOK(res1)) {
24404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24405 }
24406 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24407 ecode2 = SWIG_AsVal_int(obj1, &val2);
24408 if (!SWIG_IsOK(ecode2)) {
24409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24410 }
24411 arg2 = static_cast< int >(val2);
24412 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24413 if (!SWIG_IsOK(ecode3)) {
24414 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24415 }
24416 arg3 = static_cast< bool >(val3);
24417 {
24418 PyThreadState* __tstate = wxPyBeginAllowThreads();
24419 (arg1)->ToggleTool(arg2,arg3);
24420 wxPyEndAllowThreads(__tstate);
24421 if (PyErr_Occurred()) SWIG_fail;
24422 }
24423 resultobj = SWIG_Py_Void();
24424 return resultobj;
24425fail:
24426 return NULL;
24427}
24428
24429
24430SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24431 PyObject *resultobj = 0;
24432 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24433 int arg2 ;
24434 bool arg3 ;
24435 void *argp1 = 0 ;
24436 int res1 = 0 ;
24437 int val2 ;
24438 int ecode2 = 0 ;
24439 bool val3 ;
24440 int ecode3 = 0 ;
24441 PyObject * obj0 = 0 ;
24442 PyObject * obj1 = 0 ;
24443 PyObject * obj2 = 0 ;
24444 char * kwnames[] = {
24445 (char *) "self",(char *) "id",(char *) "toggle", NULL
24446 };
24447
24448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) 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_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24452 }
24453 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24454 ecode2 = SWIG_AsVal_int(obj1, &val2);
24455 if (!SWIG_IsOK(ecode2)) {
24456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24457 }
24458 arg2 = static_cast< int >(val2);
24459 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24460 if (!SWIG_IsOK(ecode3)) {
24461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24462 }
24463 arg3 = static_cast< bool >(val3);
24464 {
24465 PyThreadState* __tstate = wxPyBeginAllowThreads();
24466 (arg1)->SetToggle(arg2,arg3);
24467 wxPyEndAllowThreads(__tstate);
24468 if (PyErr_Occurred()) SWIG_fail;
24469 }
24470 resultobj = SWIG_Py_Void();
24471 return resultobj;
24472fail:
24473 return NULL;
24474}
24475
24476
24477SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24478 PyObject *resultobj = 0;
24479 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24480 int arg2 ;
24481 PyObject *result = 0 ;
24482 void *argp1 = 0 ;
24483 int res1 = 0 ;
24484 int val2 ;
24485 int ecode2 = 0 ;
24486 PyObject * obj0 = 0 ;
24487 PyObject * obj1 = 0 ;
24488 char * kwnames[] = {
24489 (char *) "self",(char *) "id", NULL
24490 };
24491
24492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24494 if (!SWIG_IsOK(res1)) {
24495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24496 }
24497 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24498 ecode2 = SWIG_AsVal_int(obj1, &val2);
24499 if (!SWIG_IsOK(ecode2)) {
24500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24501 }
24502 arg2 = static_cast< int >(val2);
24503 {
24504 PyThreadState* __tstate = wxPyBeginAllowThreads();
24505 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24506 wxPyEndAllowThreads(__tstate);
24507 if (PyErr_Occurred()) SWIG_fail;
24508 }
24509 resultobj = result;
24510 return resultobj;
24511fail:
24512 return NULL;
24513}
24514
24515
24516SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24517 PyObject *resultobj = 0;
24518 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24519 int arg2 ;
24520 PyObject *arg3 = (PyObject *) 0 ;
24521 void *argp1 = 0 ;
24522 int res1 = 0 ;
24523 int val2 ;
24524 int ecode2 = 0 ;
24525 PyObject * obj0 = 0 ;
24526 PyObject * obj1 = 0 ;
24527 PyObject * obj2 = 0 ;
24528 char * kwnames[] = {
24529 (char *) "self",(char *) "id",(char *) "clientData", NULL
24530 };
24531
24532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24534 if (!SWIG_IsOK(res1)) {
24535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24536 }
24537 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24538 ecode2 = SWIG_AsVal_int(obj1, &val2);
24539 if (!SWIG_IsOK(ecode2)) {
24540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24541 }
24542 arg2 = static_cast< int >(val2);
24543 arg3 = obj2;
24544 {
24545 PyThreadState* __tstate = wxPyBeginAllowThreads();
24546 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24547 wxPyEndAllowThreads(__tstate);
24548 if (PyErr_Occurred()) SWIG_fail;
24549 }
24550 resultobj = SWIG_Py_Void();
24551 return resultobj;
24552fail:
24553 return NULL;
24554}
24555
24556
24557SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24558 PyObject *resultobj = 0;
24559 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24560 int arg2 ;
24561 int result;
24562 void *argp1 = 0 ;
24563 int res1 = 0 ;
24564 int val2 ;
24565 int ecode2 = 0 ;
24566 PyObject * obj0 = 0 ;
24567 PyObject * obj1 = 0 ;
24568 char * kwnames[] = {
24569 (char *) "self",(char *) "id", NULL
24570 };
24571
24572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24574 if (!SWIG_IsOK(res1)) {
24575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24576 }
24577 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24578 ecode2 = SWIG_AsVal_int(obj1, &val2);
24579 if (!SWIG_IsOK(ecode2)) {
24580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24581 }
24582 arg2 = static_cast< int >(val2);
24583 {
24584 PyThreadState* __tstate = wxPyBeginAllowThreads();
24585 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24586 wxPyEndAllowThreads(__tstate);
24587 if (PyErr_Occurred()) SWIG_fail;
24588 }
24589 resultobj = SWIG_From_int(static_cast< int >(result));
24590 return resultobj;
24591fail:
24592 return NULL;
24593}
24594
24595
24596SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24597 PyObject *resultobj = 0;
24598 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24599 int arg2 ;
24600 bool result;
24601 void *argp1 = 0 ;
24602 int res1 = 0 ;
24603 int val2 ;
24604 int ecode2 = 0 ;
24605 PyObject * obj0 = 0 ;
24606 PyObject * obj1 = 0 ;
24607 char * kwnames[] = {
24608 (char *) "self",(char *) "id", NULL
24609 };
24610
24611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24613 if (!SWIG_IsOK(res1)) {
24614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24615 }
24616 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24617 ecode2 = SWIG_AsVal_int(obj1, &val2);
24618 if (!SWIG_IsOK(ecode2)) {
24619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24620 }
24621 arg2 = static_cast< int >(val2);
24622 {
24623 PyThreadState* __tstate = wxPyBeginAllowThreads();
24624 result = (bool)(arg1)->GetToolState(arg2);
24625 wxPyEndAllowThreads(__tstate);
24626 if (PyErr_Occurred()) SWIG_fail;
24627 }
24628 {
24629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24630 }
24631 return resultobj;
24632fail:
24633 return NULL;
24634}
24635
24636
24637SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24638 PyObject *resultobj = 0;
24639 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24640 int arg2 ;
24641 bool result;
24642 void *argp1 = 0 ;
24643 int res1 = 0 ;
24644 int val2 ;
24645 int ecode2 = 0 ;
24646 PyObject * obj0 = 0 ;
24647 PyObject * obj1 = 0 ;
24648 char * kwnames[] = {
24649 (char *) "self",(char *) "id", NULL
24650 };
24651
24652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24654 if (!SWIG_IsOK(res1)) {
24655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24656 }
24657 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24658 ecode2 = SWIG_AsVal_int(obj1, &val2);
24659 if (!SWIG_IsOK(ecode2)) {
24660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24661 }
24662 arg2 = static_cast< int >(val2);
24663 {
24664 PyThreadState* __tstate = wxPyBeginAllowThreads();
24665 result = (bool)(arg1)->GetToolEnabled(arg2);
24666 wxPyEndAllowThreads(__tstate);
24667 if (PyErr_Occurred()) SWIG_fail;
24668 }
24669 {
24670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24671 }
24672 return resultobj;
24673fail:
24674 return NULL;
24675}
24676
24677
24678SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24679 PyObject *resultobj = 0;
24680 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24681 int arg2 ;
24682 wxString *arg3 = 0 ;
24683 void *argp1 = 0 ;
24684 int res1 = 0 ;
24685 int val2 ;
24686 int ecode2 = 0 ;
24687 bool temp3 = false ;
24688 PyObject * obj0 = 0 ;
24689 PyObject * obj1 = 0 ;
24690 PyObject * obj2 = 0 ;
24691 char * kwnames[] = {
24692 (char *) "self",(char *) "id",(char *) "helpString", NULL
24693 };
24694
24695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24697 if (!SWIG_IsOK(res1)) {
24698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24699 }
24700 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24701 ecode2 = SWIG_AsVal_int(obj1, &val2);
24702 if (!SWIG_IsOK(ecode2)) {
24703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24704 }
24705 arg2 = static_cast< int >(val2);
24706 {
24707 arg3 = wxString_in_helper(obj2);
24708 if (arg3 == NULL) SWIG_fail;
24709 temp3 = true;
24710 }
24711 {
24712 PyThreadState* __tstate = wxPyBeginAllowThreads();
24713 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24714 wxPyEndAllowThreads(__tstate);
24715 if (PyErr_Occurred()) SWIG_fail;
24716 }
24717 resultobj = SWIG_Py_Void();
24718 {
24719 if (temp3)
24720 delete arg3;
24721 }
24722 return resultobj;
24723fail:
24724 {
24725 if (temp3)
24726 delete arg3;
24727 }
24728 return NULL;
24729}
24730
24731
24732SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24733 PyObject *resultobj = 0;
24734 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24735 int arg2 ;
24736 wxString result;
24737 void *argp1 = 0 ;
24738 int res1 = 0 ;
24739 int val2 ;
24740 int ecode2 = 0 ;
24741 PyObject * obj0 = 0 ;
24742 PyObject * obj1 = 0 ;
24743 char * kwnames[] = {
24744 (char *) "self",(char *) "id", NULL
24745 };
24746
24747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24749 if (!SWIG_IsOK(res1)) {
24750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24751 }
24752 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24753 ecode2 = SWIG_AsVal_int(obj1, &val2);
24754 if (!SWIG_IsOK(ecode2)) {
24755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24756 }
24757 arg2 = static_cast< int >(val2);
24758 {
24759 PyThreadState* __tstate = wxPyBeginAllowThreads();
24760 result = (arg1)->GetToolShortHelp(arg2);
24761 wxPyEndAllowThreads(__tstate);
24762 if (PyErr_Occurred()) SWIG_fail;
24763 }
24764 {
24765#if wxUSE_UNICODE
24766 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24767#else
24768 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24769#endif
24770 }
24771 return resultobj;
24772fail:
24773 return NULL;
24774}
24775
24776
24777SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24778 PyObject *resultobj = 0;
24779 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24780 int arg2 ;
24781 wxString *arg3 = 0 ;
24782 void *argp1 = 0 ;
24783 int res1 = 0 ;
24784 int val2 ;
24785 int ecode2 = 0 ;
24786 bool temp3 = false ;
24787 PyObject * obj0 = 0 ;
24788 PyObject * obj1 = 0 ;
24789 PyObject * obj2 = 0 ;
24790 char * kwnames[] = {
24791 (char *) "self",(char *) "id",(char *) "helpString", NULL
24792 };
24793
24794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24796 if (!SWIG_IsOK(res1)) {
24797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24798 }
24799 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24800 ecode2 = SWIG_AsVal_int(obj1, &val2);
24801 if (!SWIG_IsOK(ecode2)) {
24802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24803 }
24804 arg2 = static_cast< int >(val2);
24805 {
24806 arg3 = wxString_in_helper(obj2);
24807 if (arg3 == NULL) SWIG_fail;
24808 temp3 = true;
24809 }
24810 {
24811 PyThreadState* __tstate = wxPyBeginAllowThreads();
24812 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24813 wxPyEndAllowThreads(__tstate);
24814 if (PyErr_Occurred()) SWIG_fail;
24815 }
24816 resultobj = SWIG_Py_Void();
24817 {
24818 if (temp3)
24819 delete arg3;
24820 }
24821 return resultobj;
24822fail:
24823 {
24824 if (temp3)
24825 delete arg3;
24826 }
24827 return NULL;
24828}
24829
24830
24831SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24832 PyObject *resultobj = 0;
24833 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24834 int arg2 ;
24835 wxString result;
24836 void *argp1 = 0 ;
24837 int res1 = 0 ;
24838 int val2 ;
24839 int ecode2 = 0 ;
24840 PyObject * obj0 = 0 ;
24841 PyObject * obj1 = 0 ;
24842 char * kwnames[] = {
24843 (char *) "self",(char *) "id", NULL
24844 };
24845
24846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24848 if (!SWIG_IsOK(res1)) {
24849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24850 }
24851 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24852 ecode2 = SWIG_AsVal_int(obj1, &val2);
24853 if (!SWIG_IsOK(ecode2)) {
24854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24855 }
24856 arg2 = static_cast< int >(val2);
24857 {
24858 PyThreadState* __tstate = wxPyBeginAllowThreads();
24859 result = (arg1)->GetToolLongHelp(arg2);
24860 wxPyEndAllowThreads(__tstate);
24861 if (PyErr_Occurred()) SWIG_fail;
24862 }
24863 {
24864#if wxUSE_UNICODE
24865 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24866#else
24867 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24868#endif
24869 }
24870 return resultobj;
24871fail:
24872 return NULL;
24873}
24874
24875
24876SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24877 PyObject *resultobj = 0;
24878 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24879 int arg2 ;
24880 int arg3 ;
24881 void *argp1 = 0 ;
24882 int res1 = 0 ;
24883 int val2 ;
24884 int ecode2 = 0 ;
24885 int val3 ;
24886 int ecode3 = 0 ;
24887 PyObject * obj0 = 0 ;
24888 PyObject * obj1 = 0 ;
24889 PyObject * obj2 = 0 ;
24890 char * kwnames[] = {
24891 (char *) "self",(char *) "x",(char *) "y", NULL
24892 };
24893
24894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24896 if (!SWIG_IsOK(res1)) {
24897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24898 }
24899 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24900 ecode2 = SWIG_AsVal_int(obj1, &val2);
24901 if (!SWIG_IsOK(ecode2)) {
24902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24903 }
24904 arg2 = static_cast< int >(val2);
24905 ecode3 = SWIG_AsVal_int(obj2, &val3);
24906 if (!SWIG_IsOK(ecode3)) {
24907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24908 }
24909 arg3 = static_cast< int >(val3);
24910 {
24911 PyThreadState* __tstate = wxPyBeginAllowThreads();
24912 (arg1)->SetMargins(arg2,arg3);
24913 wxPyEndAllowThreads(__tstate);
24914 if (PyErr_Occurred()) SWIG_fail;
24915 }
24916 resultobj = SWIG_Py_Void();
24917 return resultobj;
24918fail:
24919 return NULL;
24920}
24921
24922
24923SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24924 PyObject *resultobj = 0;
24925 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24926 wxSize *arg2 = 0 ;
24927 void *argp1 = 0 ;
24928 int res1 = 0 ;
24929 wxSize temp2 ;
24930 PyObject * obj0 = 0 ;
24931 PyObject * obj1 = 0 ;
24932 char * kwnames[] = {
24933 (char *) "self",(char *) "size", NULL
24934 };
24935
24936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24938 if (!SWIG_IsOK(res1)) {
24939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24940 }
24941 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24942 {
24943 arg2 = &temp2;
24944 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24945 }
24946 {
24947 PyThreadState* __tstate = wxPyBeginAllowThreads();
24948 (arg1)->SetMargins((wxSize const &)*arg2);
24949 wxPyEndAllowThreads(__tstate);
24950 if (PyErr_Occurred()) SWIG_fail;
24951 }
24952 resultobj = SWIG_Py_Void();
24953 return resultobj;
24954fail:
24955 return NULL;
24956}
24957
24958
24959SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24960 PyObject *resultobj = 0;
24961 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24962 int arg2 ;
24963 void *argp1 = 0 ;
24964 int res1 = 0 ;
24965 int val2 ;
24966 int ecode2 = 0 ;
24967 PyObject * obj0 = 0 ;
24968 PyObject * obj1 = 0 ;
24969 char * kwnames[] = {
24970 (char *) "self",(char *) "packing", NULL
24971 };
24972
24973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24975 if (!SWIG_IsOK(res1)) {
24976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24977 }
24978 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24979 ecode2 = SWIG_AsVal_int(obj1, &val2);
24980 if (!SWIG_IsOK(ecode2)) {
24981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24982 }
24983 arg2 = static_cast< int >(val2);
24984 {
24985 PyThreadState* __tstate = wxPyBeginAllowThreads();
24986 (arg1)->SetToolPacking(arg2);
24987 wxPyEndAllowThreads(__tstate);
24988 if (PyErr_Occurred()) SWIG_fail;
24989 }
24990 resultobj = SWIG_Py_Void();
24991 return resultobj;
24992fail:
24993 return NULL;
24994}
24995
24996
24997SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24998 PyObject *resultobj = 0;
24999 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25000 int arg2 ;
25001 void *argp1 = 0 ;
25002 int res1 = 0 ;
25003 int val2 ;
25004 int ecode2 = 0 ;
25005 PyObject * obj0 = 0 ;
25006 PyObject * obj1 = 0 ;
25007 char * kwnames[] = {
25008 (char *) "self",(char *) "separation", NULL
25009 };
25010
25011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25013 if (!SWIG_IsOK(res1)) {
25014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25015 }
25016 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25017 ecode2 = SWIG_AsVal_int(obj1, &val2);
25018 if (!SWIG_IsOK(ecode2)) {
25019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25020 }
25021 arg2 = static_cast< int >(val2);
25022 {
25023 PyThreadState* __tstate = wxPyBeginAllowThreads();
25024 (arg1)->SetToolSeparation(arg2);
25025 wxPyEndAllowThreads(__tstate);
25026 if (PyErr_Occurred()) SWIG_fail;
25027 }
25028 resultobj = SWIG_Py_Void();
25029 return resultobj;
25030fail:
25031 return NULL;
d14a1e28
RD
25032}
25033
25034
0085ce49
RD
25035SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25036 PyObject *resultobj = 0;
25037 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25038 wxSize result;
25039 void *argp1 = 0 ;
25040 int res1 = 0 ;
25041 PyObject *swig_obj[1] ;
25042
25043 if (!args) SWIG_fail;
25044 swig_obj[0] = args;
25045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25046 if (!SWIG_IsOK(res1)) {
25047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25048 }
25049 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25050 {
25051 PyThreadState* __tstate = wxPyBeginAllowThreads();
25052 result = (arg1)->GetToolMargins();
25053 wxPyEndAllowThreads(__tstate);
25054 if (PyErr_Occurred()) SWIG_fail;
25055 }
25056 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25057 return resultobj;
25058fail:
25059 return NULL;
d14a1e28
RD
25060}
25061
25062
0085ce49
RD
25063SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25064 PyObject *resultobj = 0;
25065 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25066 wxSize result;
25067 void *argp1 = 0 ;
25068 int res1 = 0 ;
25069 PyObject *swig_obj[1] ;
25070
25071 if (!args) SWIG_fail;
25072 swig_obj[0] = args;
25073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25074 if (!SWIG_IsOK(res1)) {
25075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25076 }
25077 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25078 {
25079 PyThreadState* __tstate = wxPyBeginAllowThreads();
25080 result = (arg1)->GetMargins();
25081 wxPyEndAllowThreads(__tstate);
25082 if (PyErr_Occurred()) SWIG_fail;
25083 }
25084 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25085 return resultobj;
25086fail:
25087 return NULL;
d14a1e28
RD
25088}
25089
25090
0085ce49
RD
25091SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25092 PyObject *resultobj = 0;
25093 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25094 int result;
25095 void *argp1 = 0 ;
25096 int res1 = 0 ;
25097 PyObject *swig_obj[1] ;
25098
25099 if (!args) SWIG_fail;
25100 swig_obj[0] = args;
25101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25102 if (!SWIG_IsOK(res1)) {
25103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25104 }
25105 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25106 {
25107 PyThreadState* __tstate = wxPyBeginAllowThreads();
25108 result = (int)(arg1)->GetToolPacking();
25109 wxPyEndAllowThreads(__tstate);
25110 if (PyErr_Occurred()) SWIG_fail;
25111 }
25112 resultobj = SWIG_From_int(static_cast< int >(result));
25113 return resultobj;
25114fail:
25115 return NULL;
d14a1e28
RD
25116}
25117
25118
0085ce49
RD
25119SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25120 PyObject *resultobj = 0;
25121 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25122 int result;
25123 void *argp1 = 0 ;
25124 int res1 = 0 ;
25125 PyObject *swig_obj[1] ;
25126
25127 if (!args) SWIG_fail;
25128 swig_obj[0] = args;
25129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25130 if (!SWIG_IsOK(res1)) {
25131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25132 }
25133 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25134 {
25135 PyThreadState* __tstate = wxPyBeginAllowThreads();
25136 result = (int)(arg1)->GetToolSeparation();
25137 wxPyEndAllowThreads(__tstate);
25138 if (PyErr_Occurred()) SWIG_fail;
25139 }
25140 resultobj = SWIG_From_int(static_cast< int >(result));
25141 return resultobj;
25142fail:
25143 return NULL;
25144}
25145
25146
25147SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25148 PyObject *resultobj = 0;
25149 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25150 int arg2 ;
25151 void *argp1 = 0 ;
25152 int res1 = 0 ;
25153 int val2 ;
25154 int ecode2 = 0 ;
25155 PyObject * obj0 = 0 ;
25156 PyObject * obj1 = 0 ;
25157 char * kwnames[] = {
25158 (char *) "self",(char *) "nRows", NULL
25159 };
25160
25161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25163 if (!SWIG_IsOK(res1)) {
25164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25165 }
25166 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25167 ecode2 = SWIG_AsVal_int(obj1, &val2);
25168 if (!SWIG_IsOK(ecode2)) {
25169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25170 }
25171 arg2 = static_cast< int >(val2);
25172 {
25173 PyThreadState* __tstate = wxPyBeginAllowThreads();
25174 (arg1)->SetRows(arg2);
25175 wxPyEndAllowThreads(__tstate);
25176 if (PyErr_Occurred()) SWIG_fail;
25177 }
25178 resultobj = SWIG_Py_Void();
25179 return resultobj;
25180fail:
25181 return NULL;
25182}
25183
25184
25185SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25186 PyObject *resultobj = 0;
25187 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25188 int arg2 ;
25189 int arg3 ;
25190 void *argp1 = 0 ;
25191 int res1 = 0 ;
25192 int val2 ;
25193 int ecode2 = 0 ;
25194 int val3 ;
25195 int ecode3 = 0 ;
25196 PyObject * obj0 = 0 ;
25197 PyObject * obj1 = 0 ;
25198 PyObject * obj2 = 0 ;
25199 char * kwnames[] = {
25200 (char *) "self",(char *) "rows",(char *) "cols", NULL
25201 };
25202
25203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25205 if (!SWIG_IsOK(res1)) {
25206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25207 }
25208 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25209 ecode2 = SWIG_AsVal_int(obj1, &val2);
25210 if (!SWIG_IsOK(ecode2)) {
25211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25212 }
25213 arg2 = static_cast< int >(val2);
25214 ecode3 = SWIG_AsVal_int(obj2, &val3);
25215 if (!SWIG_IsOK(ecode3)) {
25216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25217 }
25218 arg3 = static_cast< int >(val3);
25219 {
25220 PyThreadState* __tstate = wxPyBeginAllowThreads();
25221 (arg1)->SetMaxRowsCols(arg2,arg3);
25222 wxPyEndAllowThreads(__tstate);
25223 if (PyErr_Occurred()) SWIG_fail;
25224 }
25225 resultobj = SWIG_Py_Void();
25226 return resultobj;
25227fail:
25228 return NULL;
22bfe96c
RD
25229}
25230
25231
0085ce49
RD
25232SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25233 PyObject *resultobj = 0;
25234 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25235 int result;
25236 void *argp1 = 0 ;
25237 int res1 = 0 ;
25238 PyObject *swig_obj[1] ;
25239
25240 if (!args) SWIG_fail;
25241 swig_obj[0] = args;
25242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25243 if (!SWIG_IsOK(res1)) {
25244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25245 }
25246 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25247 {
25248 PyThreadState* __tstate = wxPyBeginAllowThreads();
25249 result = (int)(arg1)->GetMaxRows();
25250 wxPyEndAllowThreads(__tstate);
25251 if (PyErr_Occurred()) SWIG_fail;
25252 }
25253 resultobj = SWIG_From_int(static_cast< int >(result));
25254 return resultobj;
25255fail:
25256 return NULL;
d14a1e28
RD
25257}
25258
25259
0085ce49
RD
25260SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25261 PyObject *resultobj = 0;
25262 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25263 int result;
25264 void *argp1 = 0 ;
25265 int res1 = 0 ;
25266 PyObject *swig_obj[1] ;
25267
25268 if (!args) SWIG_fail;
25269 swig_obj[0] = args;
25270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25271 if (!SWIG_IsOK(res1)) {
25272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25273 }
25274 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25275 {
25276 PyThreadState* __tstate = wxPyBeginAllowThreads();
25277 result = (int)(arg1)->GetMaxCols();
25278 wxPyEndAllowThreads(__tstate);
25279 if (PyErr_Occurred()) SWIG_fail;
25280 }
25281 resultobj = SWIG_From_int(static_cast< int >(result));
25282 return resultobj;
25283fail:
25284 return NULL;
25285}
25286
25287
25288SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25289 PyObject *resultobj = 0;
25290 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25291 wxSize *arg2 = 0 ;
25292 void *argp1 = 0 ;
25293 int res1 = 0 ;
25294 wxSize temp2 ;
25295 PyObject * obj0 = 0 ;
25296 PyObject * obj1 = 0 ;
25297 char * kwnames[] = {
25298 (char *) "self",(char *) "size", NULL
25299 };
25300
25301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25303 if (!SWIG_IsOK(res1)) {
25304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25305 }
25306 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25307 {
25308 arg2 = &temp2;
25309 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25310 }
25311 {
25312 PyThreadState* __tstate = wxPyBeginAllowThreads();
25313 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25314 wxPyEndAllowThreads(__tstate);
25315 if (PyErr_Occurred()) SWIG_fail;
25316 }
25317 resultobj = SWIG_Py_Void();
25318 return resultobj;
25319fail:
25320 return NULL;
d14a1e28
RD
25321}
25322
25323
0085ce49
RD
25324SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25325 PyObject *resultobj = 0;
25326 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25327 wxSize result;
25328 void *argp1 = 0 ;
25329 int res1 = 0 ;
25330 PyObject *swig_obj[1] ;
25331
25332 if (!args) SWIG_fail;
25333 swig_obj[0] = args;
25334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25335 if (!SWIG_IsOK(res1)) {
25336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25337 }
25338 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25339 {
25340 PyThreadState* __tstate = wxPyBeginAllowThreads();
25341 result = (arg1)->GetToolBitmapSize();
25342 wxPyEndAllowThreads(__tstate);
25343 if (PyErr_Occurred()) SWIG_fail;
25344 }
25345 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25346 return resultobj;
25347fail:
25348 return NULL;
d14a1e28
RD
25349}
25350
25351
0085ce49
RD
25352SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25353 PyObject *resultobj = 0;
25354 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25355 wxSize result;
25356 void *argp1 = 0 ;
25357 int res1 = 0 ;
25358 PyObject *swig_obj[1] ;
25359
25360 if (!args) SWIG_fail;
25361 swig_obj[0] = args;
25362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25363 if (!SWIG_IsOK(res1)) {
25364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25365 }
25366 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25367 {
25368 PyThreadState* __tstate = wxPyBeginAllowThreads();
25369 result = (arg1)->GetToolSize();
25370 wxPyEndAllowThreads(__tstate);
25371 if (PyErr_Occurred()) SWIG_fail;
25372 }
25373 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25374 return resultobj;
25375fail:
25376 return NULL;
25377}
25378
25379
25380SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25381 PyObject *resultobj = 0;
25382 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25383 int arg2 ;
25384 int arg3 ;
25385 wxToolBarToolBase *result = 0 ;
25386 void *argp1 = 0 ;
25387 int res1 = 0 ;
25388 int val2 ;
25389 int ecode2 = 0 ;
25390 int val3 ;
25391 int ecode3 = 0 ;
25392 PyObject * obj0 = 0 ;
25393 PyObject * obj1 = 0 ;
25394 PyObject * obj2 = 0 ;
25395 char * kwnames[] = {
25396 (char *) "self",(char *) "x",(char *) "y", NULL
25397 };
25398
25399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25401 if (!SWIG_IsOK(res1)) {
25402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25403 }
25404 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25405 ecode2 = SWIG_AsVal_int(obj1, &val2);
25406 if (!SWIG_IsOK(ecode2)) {
25407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25408 }
25409 arg2 = static_cast< int >(val2);
25410 ecode3 = SWIG_AsVal_int(obj2, &val3);
25411 if (!SWIG_IsOK(ecode3)) {
25412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25413 }
25414 arg3 = static_cast< int >(val3);
25415 {
25416 PyThreadState* __tstate = wxPyBeginAllowThreads();
25417 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25418 wxPyEndAllowThreads(__tstate);
25419 if (PyErr_Occurred()) SWIG_fail;
25420 }
25421 {
25422 resultobj = wxPyMake_wxObject(result, (bool)0);
25423 }
25424 return resultobj;
25425fail:
25426 return NULL;
25427}
25428
25429
25430SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25431 PyObject *resultobj = 0;
25432 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25433 int arg2 ;
25434 wxToolBarToolBase *result = 0 ;
25435 void *argp1 = 0 ;
25436 int res1 = 0 ;
25437 int val2 ;
25438 int ecode2 = 0 ;
25439 PyObject * obj0 = 0 ;
25440 PyObject * obj1 = 0 ;
25441 char * kwnames[] = {
25442 (char *) "self",(char *) "toolid", NULL
25443 };
25444
25445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25447 if (!SWIG_IsOK(res1)) {
25448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25449 }
25450 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25451 ecode2 = SWIG_AsVal_int(obj1, &val2);
25452 if (!SWIG_IsOK(ecode2)) {
25453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25454 }
25455 arg2 = static_cast< int >(val2);
25456 {
25457 PyThreadState* __tstate = wxPyBeginAllowThreads();
25458 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25459 wxPyEndAllowThreads(__tstate);
25460 if (PyErr_Occurred()) SWIG_fail;
25461 }
25462 {
25463 resultobj = wxPyMake_wxObject(result, (bool)0);
25464 }
25465 return resultobj;
25466fail:
25467 return NULL;
d14a1e28
RD
25468}
25469
25470
0085ce49
RD
25471SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25472 PyObject *resultobj = 0;
25473 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25474 bool result;
25475 void *argp1 = 0 ;
25476 int res1 = 0 ;
25477 PyObject *swig_obj[1] ;
25478
25479 if (!args) SWIG_fail;
25480 swig_obj[0] = args;
25481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25482 if (!SWIG_IsOK(res1)) {
25483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25484 }
25485 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25486 {
25487 PyThreadState* __tstate = wxPyBeginAllowThreads();
25488 result = (bool)(arg1)->IsVertical();
25489 wxPyEndAllowThreads(__tstate);
25490 if (PyErr_Occurred()) SWIG_fail;
25491 }
25492 {
25493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25494 }
25495 return resultobj;
25496fail:
25497 return NULL;
25498}
25499
25500
25501SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25502 PyObject *resultobj = 0;
25503 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25504 size_t result;
25505 void *argp1 = 0 ;
25506 int res1 = 0 ;
25507 PyObject *swig_obj[1] ;
25508
25509 if (!args) SWIG_fail;
25510 swig_obj[0] = args;
25511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25512 if (!SWIG_IsOK(res1)) {
25513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25514 }
25515 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25516 {
25517 PyThreadState* __tstate = wxPyBeginAllowThreads();
25518 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25519 wxPyEndAllowThreads(__tstate);
25520 if (PyErr_Occurred()) SWIG_fail;
25521 }
25522 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25523 return resultobj;
25524fail:
25525 return NULL;
25526}
25527
25528
25529SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25530 PyObject *obj;
25531 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25532 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25533 return SWIG_Py_Void();
25534}
25535
25536SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25537 PyObject *resultobj = 0;
25538 wxWindow *arg1 = (wxWindow *) 0 ;
25539 int arg2 = (int) -1 ;
25540 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25541 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25542 wxSize const &arg4_defvalue = wxDefaultSize ;
25543 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25544 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25545 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25546 wxString *arg6 = (wxString *) &arg6_defvalue ;
25547 wxToolBar *result = 0 ;
25548 void *argp1 = 0 ;
25549 int res1 = 0 ;
25550 int val2 ;
25551 int ecode2 = 0 ;
25552 wxPoint temp3 ;
25553 wxSize temp4 ;
25554 long val5 ;
25555 int ecode5 = 0 ;
25556 bool temp6 = false ;
25557 PyObject * obj0 = 0 ;
25558 PyObject * obj1 = 0 ;
25559 PyObject * obj2 = 0 ;
25560 PyObject * obj3 = 0 ;
25561 PyObject * obj4 = 0 ;
25562 PyObject * obj5 = 0 ;
25563 char * kwnames[] = {
25564 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25565 };
25566
25567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25569 if (!SWIG_IsOK(res1)) {
25570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25571 }
25572 arg1 = reinterpret_cast< wxWindow * >(argp1);
25573 if (obj1) {
25574 ecode2 = SWIG_AsVal_int(obj1, &val2);
25575 if (!SWIG_IsOK(ecode2)) {
25576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25577 }
25578 arg2 = static_cast< int >(val2);
25579 }
25580 if (obj2) {
25581 {
25582 arg3 = &temp3;
25583 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25584 }
25585 }
25586 if (obj3) {
093d3ff1 25587 {
0085ce49
RD
25588 arg4 = &temp4;
25589 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 25590 }
0085ce49
RD
25591 }
25592 if (obj4) {
25593 ecode5 = SWIG_AsVal_long(obj4, &val5);
25594 if (!SWIG_IsOK(ecode5)) {
25595 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25596 }
25597 arg5 = static_cast< long >(val5);
25598 }
25599 if (obj5) {
d14a1e28 25600 {
0085ce49
RD
25601 arg6 = wxString_in_helper(obj5);
25602 if (arg6 == NULL) SWIG_fail;
25603 temp6 = true;
d14a1e28 25604 }
0085ce49
RD
25605 }
25606 {
25607 if (!wxPyCheckForApp()) SWIG_fail;
25608 PyThreadState* __tstate = wxPyBeginAllowThreads();
25609 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25610 wxPyEndAllowThreads(__tstate);
25611 if (PyErr_Occurred()) SWIG_fail;
25612 }
25613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25614 {
25615 if (temp6)
25616 delete arg6;
25617 }
25618 return resultobj;
25619fail:
25620 {
25621 if (temp6)
25622 delete arg6;
25623 }
25624 return NULL;
d14a1e28
RD
25625}
25626
25627
0085ce49
RD
25628SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25629 PyObject *resultobj = 0;
25630 wxToolBar *result = 0 ;
25631
25632 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25633 {
25634 if (!wxPyCheckForApp()) SWIG_fail;
25635 PyThreadState* __tstate = wxPyBeginAllowThreads();
25636 result = (wxToolBar *)new wxToolBar();
25637 wxPyEndAllowThreads(__tstate);
25638 if (PyErr_Occurred()) SWIG_fail;
25639 }
25640 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25641 return resultobj;
25642fail:
25643 return NULL;
25644}
25645
25646
25647SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25648 PyObject *resultobj = 0;
25649 wxToolBar *arg1 = (wxToolBar *) 0 ;
25650 wxWindow *arg2 = (wxWindow *) 0 ;
25651 int arg3 = (int) -1 ;
25652 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25653 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25654 wxSize const &arg5_defvalue = wxDefaultSize ;
25655 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25656 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25657 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25658 wxString *arg7 = (wxString *) &arg7_defvalue ;
25659 bool result;
25660 void *argp1 = 0 ;
25661 int res1 = 0 ;
25662 void *argp2 = 0 ;
25663 int res2 = 0 ;
25664 int val3 ;
25665 int ecode3 = 0 ;
25666 wxPoint temp4 ;
25667 wxSize temp5 ;
25668 long val6 ;
25669 int ecode6 = 0 ;
25670 bool temp7 = false ;
25671 PyObject * obj0 = 0 ;
25672 PyObject * obj1 = 0 ;
25673 PyObject * obj2 = 0 ;
25674 PyObject * obj3 = 0 ;
25675 PyObject * obj4 = 0 ;
25676 PyObject * obj5 = 0 ;
25677 PyObject * obj6 = 0 ;
25678 char * kwnames[] = {
25679 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25680 };
25681
25682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25684 if (!SWIG_IsOK(res1)) {
25685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25686 }
25687 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25688 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25689 if (!SWIG_IsOK(res2)) {
25690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25691 }
25692 arg2 = reinterpret_cast< wxWindow * >(argp2);
25693 if (obj2) {
25694 ecode3 = SWIG_AsVal_int(obj2, &val3);
25695 if (!SWIG_IsOK(ecode3)) {
25696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25697 }
25698 arg3 = static_cast< int >(val3);
25699 }
25700 if (obj3) {
25701 {
25702 arg4 = &temp4;
25703 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 25704 }
0085ce49
RD
25705 }
25706 if (obj4) {
22bfe96c 25707 {
0085ce49
RD
25708 arg5 = &temp5;
25709 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 25710 }
0085ce49
RD
25711 }
25712 if (obj5) {
25713 ecode6 = SWIG_AsVal_long(obj5, &val6);
25714 if (!SWIG_IsOK(ecode6)) {
25715 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25716 }
25717 arg6 = static_cast< long >(val6);
25718 }
25719 if (obj6) {
22bfe96c 25720 {
0085ce49
RD
25721 arg7 = wxString_in_helper(obj6);
25722 if (arg7 == NULL) SWIG_fail;
25723 temp7 = true;
22bfe96c 25724 }
0085ce49
RD
25725 }
25726 {
25727 PyThreadState* __tstate = wxPyBeginAllowThreads();
25728 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25729 wxPyEndAllowThreads(__tstate);
25730 if (PyErr_Occurred()) SWIG_fail;
25731 }
25732 {
25733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25734 }
25735 {
25736 if (temp7)
25737 delete arg7;
25738 }
25739 return resultobj;
25740fail:
25741 {
25742 if (temp7)
25743 delete arg7;
25744 }
25745 return NULL;
25746}
25747
25748
0085ce49
RD
25749SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25750 PyObject *resultobj = 0;
25751 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25752 SwigValueWrapper<wxVisualAttributes > result;
25753 int val1 ;
25754 int ecode1 = 0 ;
25755 PyObject * obj0 = 0 ;
25756 char * kwnames[] = {
25757 (char *) "variant", NULL
25758 };
25759
25760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25761 if (obj0) {
25762 ecode1 = SWIG_AsVal_int(obj0, &val1);
25763 if (!SWIG_IsOK(ecode1)) {
25764 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25765 }
25766 arg1 = static_cast< wxWindowVariant >(val1);
25767 }
25768 {
25769 if (!wxPyCheckForApp()) SWIG_fail;
25770 PyThreadState* __tstate = wxPyBeginAllowThreads();
25771 result = wxToolBar::GetClassDefaultAttributes(arg1);
25772 wxPyEndAllowThreads(__tstate);
25773 if (PyErr_Occurred()) SWIG_fail;
25774 }
25775 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25776 return resultobj;
25777fail:
25778 return NULL;
22bfe96c
RD
25779}
25780
25781
0085ce49
RD
25782SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25783 PyObject *obj;
25784 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25785 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25786 return SWIG_Py_Void();
d14a1e28 25787}
0085ce49
RD
25788
25789SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25790 return SWIG_Python_InitShadowInstance(args);
b2dc1044
RD
25791}
25792
0085ce49
RD
25793SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25794 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25795 return 1;
25796}
b2dc1044 25797
0085ce49
RD
25798
25799SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25800 PyObject *pyobj = 0;
25801
25802 {
b2dc1044 25803#if wxUSE_UNICODE
0085ce49 25804 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 25805#else
0085ce49 25806 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 25807#endif
0085ce49
RD
25808 }
25809 return pyobj;
25810}
25811
25812
25813SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25814 PyObject *resultobj = 0;
25815 wxColour const &arg1_defvalue = wxNullColour ;
25816 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25817 wxColour const &arg2_defvalue = wxNullColour ;
25818 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25819 wxFont const &arg3_defvalue = wxNullFont ;
25820 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25821 wxListItemAttr *result = 0 ;
25822 wxColour temp1 ;
25823 wxColour temp2 ;
25824 void *argp3 = 0 ;
25825 int res3 = 0 ;
25826 PyObject * obj0 = 0 ;
25827 PyObject * obj1 = 0 ;
25828 PyObject * obj2 = 0 ;
25829 char * kwnames[] = {
25830 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25831 };
25832
25833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25834 if (obj0) {
d14a1e28 25835 {
0085ce49
RD
25836 arg1 = &temp1;
25837 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 25838 }
0085ce49
RD
25839 }
25840 if (obj1) {
d14a1e28 25841 {
0085ce49
RD
25842 arg2 = &temp2;
25843 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 25844 }
0085ce49
RD
25845 }
25846 if (obj2) {
25847 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25848 if (!SWIG_IsOK(res3)) {
25849 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 25850 }
0085ce49
RD
25851 if (!argp3) {
25852 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 25853 }
0085ce49
RD
25854 arg3 = reinterpret_cast< wxFont * >(argp3);
25855 }
25856 {
25857 PyThreadState* __tstate = wxPyBeginAllowThreads();
25858 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25859 wxPyEndAllowThreads(__tstate);
25860 if (PyErr_Occurred()) SWIG_fail;
25861 }
25862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25863 return resultobj;
25864fail:
25865 return NULL;
d14a1e28
RD
25866}
25867
25868
0085ce49
RD
25869SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25870 PyObject *resultobj = 0;
25871 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25872 void *argp1 = 0 ;
25873 int res1 = 0 ;
25874 PyObject *swig_obj[1] ;
25875
25876 if (!args) SWIG_fail;
25877 swig_obj[0] = args;
25878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25879 if (!SWIG_IsOK(res1)) {
25880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25881 }
25882 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25883 {
25884 PyThreadState* __tstate = wxPyBeginAllowThreads();
25885 delete arg1;
d14a1e28 25886
0085ce49
RD
25887 wxPyEndAllowThreads(__tstate);
25888 if (PyErr_Occurred()) SWIG_fail;
25889 }
25890 resultobj = SWIG_Py_Void();
25891 return resultobj;
25892fail:
25893 return NULL;
25894}
25895
25896
25897SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25898 PyObject *resultobj = 0;
25899 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25900 wxColour *arg2 = 0 ;
25901 void *argp1 = 0 ;
25902 int res1 = 0 ;
25903 wxColour temp2 ;
25904 PyObject * obj0 = 0 ;
25905 PyObject * obj1 = 0 ;
25906 char * kwnames[] = {
25907 (char *) "self",(char *) "colText", NULL
25908 };
25909
25910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25912 if (!SWIG_IsOK(res1)) {
25913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25914 }
25915 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25916 {
25917 arg2 = &temp2;
25918 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25919 }
25920 {
25921 PyThreadState* __tstate = wxPyBeginAllowThreads();
25922 (arg1)->SetTextColour((wxColour const &)*arg2);
25923 wxPyEndAllowThreads(__tstate);
25924 if (PyErr_Occurred()) SWIG_fail;
25925 }
25926 resultobj = SWIG_Py_Void();
25927 return resultobj;
25928fail:
25929 return NULL;
25930}
25931
25932
25933SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25934 PyObject *resultobj = 0;
25935 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25936 wxColour *arg2 = 0 ;
25937 void *argp1 = 0 ;
25938 int res1 = 0 ;
25939 wxColour temp2 ;
25940 PyObject * obj0 = 0 ;
25941 PyObject * obj1 = 0 ;
25942 char * kwnames[] = {
25943 (char *) "self",(char *) "colBack", NULL
25944 };
25945
25946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25948 if (!SWIG_IsOK(res1)) {
25949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25950 }
25951 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25952 {
25953 arg2 = &temp2;
25954 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25955 }
25956 {
25957 PyThreadState* __tstate = wxPyBeginAllowThreads();
25958 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25959 wxPyEndAllowThreads(__tstate);
25960 if (PyErr_Occurred()) SWIG_fail;
25961 }
25962 resultobj = SWIG_Py_Void();
25963 return resultobj;
25964fail:
25965 return NULL;
25966}
25967
25968
25969SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25970 PyObject *resultobj = 0;
25971 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25972 wxFont *arg2 = 0 ;
25973 void *argp1 = 0 ;
25974 int res1 = 0 ;
25975 void *argp2 = 0 ;
25976 int res2 = 0 ;
25977 PyObject * obj0 = 0 ;
25978 PyObject * obj1 = 0 ;
25979 char * kwnames[] = {
25980 (char *) "self",(char *) "font", NULL
25981 };
25982
25983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25985 if (!SWIG_IsOK(res1)) {
25986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25987 }
25988 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25989 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25990 if (!SWIG_IsOK(res2)) {
25991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25992 }
25993 if (!argp2) {
25994 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25995 }
25996 arg2 = reinterpret_cast< wxFont * >(argp2);
25997 {
25998 PyThreadState* __tstate = wxPyBeginAllowThreads();
25999 (arg1)->SetFont((wxFont const &)*arg2);
26000 wxPyEndAllowThreads(__tstate);
26001 if (PyErr_Occurred()) SWIG_fail;
26002 }
26003 resultobj = SWIG_Py_Void();
26004 return resultobj;
26005fail:
26006 return NULL;
d14a1e28
RD
26007}
26008
26009
0085ce49
RD
26010SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26011 PyObject *resultobj = 0;
26012 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26013 bool result;
26014 void *argp1 = 0 ;
26015 int res1 = 0 ;
26016 PyObject *swig_obj[1] ;
26017
26018 if (!args) SWIG_fail;
26019 swig_obj[0] = args;
26020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26021 if (!SWIG_IsOK(res1)) {
26022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26023 }
26024 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26025 {
26026 PyThreadState* __tstate = wxPyBeginAllowThreads();
26027 result = (bool)(arg1)->HasTextColour();
26028 wxPyEndAllowThreads(__tstate);
26029 if (PyErr_Occurred()) SWIG_fail;
26030 }
26031 {
26032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26033 }
26034 return resultobj;
26035fail:
26036 return NULL;
d14a1e28
RD
26037}
26038
26039
0085ce49
RD
26040SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26041 PyObject *resultobj = 0;
26042 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26043 bool result;
26044 void *argp1 = 0 ;
26045 int res1 = 0 ;
26046 PyObject *swig_obj[1] ;
26047
26048 if (!args) SWIG_fail;
26049 swig_obj[0] = args;
26050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26051 if (!SWIG_IsOK(res1)) {
26052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26053 }
26054 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26055 {
26056 PyThreadState* __tstate = wxPyBeginAllowThreads();
26057 result = (bool)(arg1)->HasBackgroundColour();
26058 wxPyEndAllowThreads(__tstate);
26059 if (PyErr_Occurred()) SWIG_fail;
26060 }
26061 {
26062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26063 }
26064 return resultobj;
26065fail:
26066 return NULL;
d14a1e28
RD
26067}
26068
26069
0085ce49
RD
26070SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26071 PyObject *resultobj = 0;
26072 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26073 bool result;
26074 void *argp1 = 0 ;
26075 int res1 = 0 ;
26076 PyObject *swig_obj[1] ;
26077
26078 if (!args) SWIG_fail;
26079 swig_obj[0] = args;
26080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26081 if (!SWIG_IsOK(res1)) {
26082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26083 }
26084 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26085 {
26086 PyThreadState* __tstate = wxPyBeginAllowThreads();
26087 result = (bool)(arg1)->HasFont();
26088 wxPyEndAllowThreads(__tstate);
26089 if (PyErr_Occurred()) SWIG_fail;
26090 }
26091 {
26092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26093 }
26094 return resultobj;
26095fail:
26096 return NULL;
d14a1e28
RD
26097}
26098
26099
0085ce49
RD
26100SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26101 PyObject *resultobj = 0;
26102 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26103 wxColour result;
26104 void *argp1 = 0 ;
26105 int res1 = 0 ;
26106 PyObject *swig_obj[1] ;
26107
26108 if (!args) SWIG_fail;
26109 swig_obj[0] = args;
26110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26111 if (!SWIG_IsOK(res1)) {
26112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26113 }
26114 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26115 {
26116 PyThreadState* __tstate = wxPyBeginAllowThreads();
26117 result = (arg1)->GetTextColour();
26118 wxPyEndAllowThreads(__tstate);
26119 if (PyErr_Occurred()) SWIG_fail;
26120 }
26121 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26122 return resultobj;
26123fail:
26124 return NULL;
d14a1e28
RD
26125}
26126
26127
0085ce49
RD
26128SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26129 PyObject *resultobj = 0;
26130 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26131 wxColour result;
26132 void *argp1 = 0 ;
26133 int res1 = 0 ;
26134 PyObject *swig_obj[1] ;
26135
26136 if (!args) SWIG_fail;
26137 swig_obj[0] = args;
26138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26139 if (!SWIG_IsOK(res1)) {
26140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26141 }
26142 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26143 {
26144 PyThreadState* __tstate = wxPyBeginAllowThreads();
26145 result = (arg1)->GetBackgroundColour();
26146 wxPyEndAllowThreads(__tstate);
26147 if (PyErr_Occurred()) SWIG_fail;
26148 }
26149 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26150 return resultobj;
26151fail:
26152 return NULL;
d14a1e28
RD
26153}
26154
26155
0085ce49
RD
26156SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26157 PyObject *resultobj = 0;
26158 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26159 wxFont result;
26160 void *argp1 = 0 ;
26161 int res1 = 0 ;
26162 PyObject *swig_obj[1] ;
26163
26164 if (!args) SWIG_fail;
26165 swig_obj[0] = args;
26166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26167 if (!SWIG_IsOK(res1)) {
26168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26169 }
26170 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26171 {
26172 PyThreadState* __tstate = wxPyBeginAllowThreads();
26173 result = (arg1)->GetFont();
26174 wxPyEndAllowThreads(__tstate);
26175 if (PyErr_Occurred()) SWIG_fail;
26176 }
26177 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26178 return resultobj;
26179fail:
26180 return NULL;
26181}
26182
26183
26184SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26185 PyObject *resultobj = 0;
26186 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26187 wxListItemAttr *arg2 = 0 ;
26188 void *argp1 = 0 ;
26189 int res1 = 0 ;
26190 void *argp2 = 0 ;
26191 int res2 = 0 ;
26192 PyObject * obj0 = 0 ;
26193 PyObject * obj1 = 0 ;
26194 char * kwnames[] = {
26195 (char *) "self",(char *) "source", NULL
26196 };
26197
26198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26200 if (!SWIG_IsOK(res1)) {
26201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26202 }
26203 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26205 if (!SWIG_IsOK(res2)) {
26206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26207 }
26208 if (!argp2) {
26209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26210 }
26211 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26212 {
26213 PyThreadState* __tstate = wxPyBeginAllowThreads();
26214 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26215 wxPyEndAllowThreads(__tstate);
26216 if (PyErr_Occurred()) SWIG_fail;
26217 }
26218 resultobj = SWIG_Py_Void();
26219 return resultobj;
26220fail:
26221 return NULL;
d14a1e28
RD
26222}
26223
26224
0085ce49
RD
26225SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26226 PyObject *resultobj = 0;
26227 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26228 void *argp1 = 0 ;
26229 int res1 = 0 ;
26230 PyObject *swig_obj[1] ;
26231
26232 if (!args) SWIG_fail;
26233 swig_obj[0] = args;
26234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26235 if (!SWIG_IsOK(res1)) {
26236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26237 }
26238 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26239 {
26240 PyThreadState* __tstate = wxPyBeginAllowThreads();
26241 wxListItemAttr_Destroy(arg1);
26242 wxPyEndAllowThreads(__tstate);
26243 if (PyErr_Occurred()) SWIG_fail;
26244 }
26245 resultobj = SWIG_Py_Void();
26246 return resultobj;
26247fail:
26248 return NULL;
d14a1e28
RD
26249}
26250
26251
0085ce49
RD
26252SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26253 PyObject *obj;
26254 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26255 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26256 return SWIG_Py_Void();
d14a1e28
RD
26257}
26258
0085ce49
RD
26259SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26260 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
26261}
26262
0085ce49
RD
26263SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26264 PyObject *resultobj = 0;
26265 wxListItem *result = 0 ;
26266
26267 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26268 {
26269 PyThreadState* __tstate = wxPyBeginAllowThreads();
26270 result = (wxListItem *)new wxListItem();
26271 wxPyEndAllowThreads(__tstate);
26272 if (PyErr_Occurred()) SWIG_fail;
26273 }
26274 {
26275 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26276 }
26277 return resultobj;
26278fail:
26279 return NULL;
d14a1e28
RD
26280}
26281
26282
0085ce49
RD
26283SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26284 PyObject *resultobj = 0;
26285 wxListItem *arg1 = (wxListItem *) 0 ;
26286 void *argp1 = 0 ;
26287 int res1 = 0 ;
26288 PyObject *swig_obj[1] ;
26289
26290 if (!args) SWIG_fail;
26291 swig_obj[0] = args;
26292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26293 if (!SWIG_IsOK(res1)) {
26294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26295 }
26296 arg1 = reinterpret_cast< wxListItem * >(argp1);
26297 {
26298 PyThreadState* __tstate = wxPyBeginAllowThreads();
26299 delete arg1;
d14a1e28 26300
0085ce49
RD
26301 wxPyEndAllowThreads(__tstate);
26302 if (PyErr_Occurred()) SWIG_fail;
26303 }
26304 resultobj = SWIG_Py_Void();
26305 return resultobj;
26306fail:
26307 return NULL;
d14a1e28
RD
26308}
26309
26310
0085ce49
RD
26311SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26312 PyObject *resultobj = 0;
26313 wxListItem *arg1 = (wxListItem *) 0 ;
26314 void *argp1 = 0 ;
26315 int res1 = 0 ;
26316 PyObject *swig_obj[1] ;
26317
26318 if (!args) SWIG_fail;
26319 swig_obj[0] = args;
26320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26321 if (!SWIG_IsOK(res1)) {
26322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26323 }
26324 arg1 = reinterpret_cast< wxListItem * >(argp1);
26325 {
26326 PyThreadState* __tstate = wxPyBeginAllowThreads();
26327 (arg1)->Clear();
26328 wxPyEndAllowThreads(__tstate);
26329 if (PyErr_Occurred()) SWIG_fail;
26330 }
26331 resultobj = SWIG_Py_Void();
26332 return resultobj;
26333fail:
26334 return NULL;
d14a1e28
RD
26335}
26336
26337
0085ce49
RD
26338SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26339 PyObject *resultobj = 0;
26340 wxListItem *arg1 = (wxListItem *) 0 ;
26341 void *argp1 = 0 ;
26342 int res1 = 0 ;
26343 PyObject *swig_obj[1] ;
26344
26345 if (!args) SWIG_fail;
26346 swig_obj[0] = args;
26347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26348 if (!SWIG_IsOK(res1)) {
26349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26350 }
26351 arg1 = reinterpret_cast< wxListItem * >(argp1);
26352 {
26353 PyThreadState* __tstate = wxPyBeginAllowThreads();
26354 (arg1)->ClearAttributes();
26355 wxPyEndAllowThreads(__tstate);
26356 if (PyErr_Occurred()) SWIG_fail;
26357 }
26358 resultobj = SWIG_Py_Void();
26359 return resultobj;
26360fail:
26361 return NULL;
26362}
26363
26364
26365SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26366 PyObject *resultobj = 0;
26367 wxListItem *arg1 = (wxListItem *) 0 ;
26368 long arg2 ;
26369 void *argp1 = 0 ;
26370 int res1 = 0 ;
26371 long val2 ;
26372 int ecode2 = 0 ;
26373 PyObject * obj0 = 0 ;
26374 PyObject * obj1 = 0 ;
26375 char * kwnames[] = {
26376 (char *) "self",(char *) "mask", NULL
26377 };
26378
26379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26381 if (!SWIG_IsOK(res1)) {
26382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26383 }
26384 arg1 = reinterpret_cast< wxListItem * >(argp1);
26385 ecode2 = SWIG_AsVal_long(obj1, &val2);
26386 if (!SWIG_IsOK(ecode2)) {
26387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26388 }
26389 arg2 = static_cast< long >(val2);
26390 {
26391 PyThreadState* __tstate = wxPyBeginAllowThreads();
26392 (arg1)->SetMask(arg2);
26393 wxPyEndAllowThreads(__tstate);
26394 if (PyErr_Occurred()) SWIG_fail;
26395 }
26396 resultobj = SWIG_Py_Void();
26397 return resultobj;
26398fail:
26399 return NULL;
26400}
26401
26402
26403SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26404 PyObject *resultobj = 0;
26405 wxListItem *arg1 = (wxListItem *) 0 ;
26406 long arg2 ;
26407 void *argp1 = 0 ;
26408 int res1 = 0 ;
26409 long val2 ;
26410 int ecode2 = 0 ;
26411 PyObject * obj0 = 0 ;
26412 PyObject * obj1 = 0 ;
26413 char * kwnames[] = {
26414 (char *) "self",(char *) "id", NULL
26415 };
26416
26417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26419 if (!SWIG_IsOK(res1)) {
26420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26421 }
26422 arg1 = reinterpret_cast< wxListItem * >(argp1);
26423 ecode2 = SWIG_AsVal_long(obj1, &val2);
26424 if (!SWIG_IsOK(ecode2)) {
26425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26426 }
26427 arg2 = static_cast< long >(val2);
26428 {
26429 PyThreadState* __tstate = wxPyBeginAllowThreads();
26430 (arg1)->SetId(arg2);
26431 wxPyEndAllowThreads(__tstate);
26432 if (PyErr_Occurred()) SWIG_fail;
26433 }
26434 resultobj = SWIG_Py_Void();
26435 return resultobj;
26436fail:
26437 return NULL;
26438}
26439
26440
26441SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26442 PyObject *resultobj = 0;
26443 wxListItem *arg1 = (wxListItem *) 0 ;
26444 int arg2 ;
26445 void *argp1 = 0 ;
26446 int res1 = 0 ;
26447 int val2 ;
26448 int ecode2 = 0 ;
26449 PyObject * obj0 = 0 ;
26450 PyObject * obj1 = 0 ;
26451 char * kwnames[] = {
26452 (char *) "self",(char *) "col", NULL
26453 };
26454
26455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26457 if (!SWIG_IsOK(res1)) {
26458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26459 }
26460 arg1 = reinterpret_cast< wxListItem * >(argp1);
26461 ecode2 = SWIG_AsVal_int(obj1, &val2);
26462 if (!SWIG_IsOK(ecode2)) {
26463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26464 }
26465 arg2 = static_cast< int >(val2);
26466 {
26467 PyThreadState* __tstate = wxPyBeginAllowThreads();
26468 (arg1)->SetColumn(arg2);
26469 wxPyEndAllowThreads(__tstate);
26470 if (PyErr_Occurred()) SWIG_fail;
26471 }
26472 resultobj = SWIG_Py_Void();
26473 return resultobj;
26474fail:
26475 return NULL;
26476}
26477
26478
26479SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26480 PyObject *resultobj = 0;
26481 wxListItem *arg1 = (wxListItem *) 0 ;
26482 long arg2 ;
26483 void *argp1 = 0 ;
26484 int res1 = 0 ;
26485 long val2 ;
26486 int ecode2 = 0 ;
26487 PyObject * obj0 = 0 ;
26488 PyObject * obj1 = 0 ;
26489 char * kwnames[] = {
26490 (char *) "self",(char *) "state", NULL
26491 };
26492
26493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26495 if (!SWIG_IsOK(res1)) {
26496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26497 }
26498 arg1 = reinterpret_cast< wxListItem * >(argp1);
26499 ecode2 = SWIG_AsVal_long(obj1, &val2);
26500 if (!SWIG_IsOK(ecode2)) {
26501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26502 }
26503 arg2 = static_cast< long >(val2);
26504 {
26505 PyThreadState* __tstate = wxPyBeginAllowThreads();
26506 (arg1)->SetState(arg2);
26507 wxPyEndAllowThreads(__tstate);
26508 if (PyErr_Occurred()) SWIG_fail;
26509 }
26510 resultobj = SWIG_Py_Void();
26511 return resultobj;
26512fail:
26513 return NULL;
26514}
26515
26516
26517SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26518 PyObject *resultobj = 0;
26519 wxListItem *arg1 = (wxListItem *) 0 ;
26520 long arg2 ;
26521 void *argp1 = 0 ;
26522 int res1 = 0 ;
26523 long val2 ;
26524 int ecode2 = 0 ;
26525 PyObject * obj0 = 0 ;
26526 PyObject * obj1 = 0 ;
26527 char * kwnames[] = {
26528 (char *) "self",(char *) "stateMask", NULL
26529 };
26530
26531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26533 if (!SWIG_IsOK(res1)) {
26534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26535 }
26536 arg1 = reinterpret_cast< wxListItem * >(argp1);
26537 ecode2 = SWIG_AsVal_long(obj1, &val2);
26538 if (!SWIG_IsOK(ecode2)) {
26539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26540 }
26541 arg2 = static_cast< long >(val2);
26542 {
26543 PyThreadState* __tstate = wxPyBeginAllowThreads();
26544 (arg1)->SetStateMask(arg2);
26545 wxPyEndAllowThreads(__tstate);
26546 if (PyErr_Occurred()) SWIG_fail;
26547 }
26548 resultobj = SWIG_Py_Void();
26549 return resultobj;
26550fail:
26551 return NULL;
26552}
26553
26554
26555SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26556 PyObject *resultobj = 0;
26557 wxListItem *arg1 = (wxListItem *) 0 ;
26558 wxString *arg2 = 0 ;
26559 void *argp1 = 0 ;
26560 int res1 = 0 ;
26561 bool temp2 = false ;
26562 PyObject * obj0 = 0 ;
26563 PyObject * obj1 = 0 ;
26564 char * kwnames[] = {
26565 (char *) "self",(char *) "text", NULL
26566 };
26567
26568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26570 if (!SWIG_IsOK(res1)) {
26571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26572 }
26573 arg1 = reinterpret_cast< wxListItem * >(argp1);
26574 {
26575 arg2 = wxString_in_helper(obj1);
26576 if (arg2 == NULL) SWIG_fail;
26577 temp2 = true;
26578 }
26579 {
26580 PyThreadState* __tstate = wxPyBeginAllowThreads();
26581 (arg1)->SetText((wxString const &)*arg2);
26582 wxPyEndAllowThreads(__tstate);
26583 if (PyErr_Occurred()) SWIG_fail;
26584 }
26585 resultobj = SWIG_Py_Void();
26586 {
26587 if (temp2)
26588 delete arg2;
26589 }
26590 return resultobj;
26591fail:
26592 {
26593 if (temp2)
26594 delete arg2;
26595 }
26596 return NULL;
26597}
26598
26599
26600SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26601 PyObject *resultobj = 0;
26602 wxListItem *arg1 = (wxListItem *) 0 ;
26603 int arg2 ;
26604 void *argp1 = 0 ;
26605 int res1 = 0 ;
26606 int val2 ;
26607 int ecode2 = 0 ;
26608 PyObject * obj0 = 0 ;
26609 PyObject * obj1 = 0 ;
26610 char * kwnames[] = {
26611 (char *) "self",(char *) "image", NULL
26612 };
26613
26614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26616 if (!SWIG_IsOK(res1)) {
26617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26618 }
26619 arg1 = reinterpret_cast< wxListItem * >(argp1);
26620 ecode2 = SWIG_AsVal_int(obj1, &val2);
26621 if (!SWIG_IsOK(ecode2)) {
26622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26623 }
26624 arg2 = static_cast< int >(val2);
26625 {
26626 PyThreadState* __tstate = wxPyBeginAllowThreads();
26627 (arg1)->SetImage(arg2);
26628 wxPyEndAllowThreads(__tstate);
26629 if (PyErr_Occurred()) SWIG_fail;
26630 }
26631 resultobj = SWIG_Py_Void();
26632 return resultobj;
26633fail:
26634 return NULL;
26635}
26636
26637
26638SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26639 PyObject *resultobj = 0;
26640 wxListItem *arg1 = (wxListItem *) 0 ;
26641 long arg2 ;
26642 void *argp1 = 0 ;
26643 int res1 = 0 ;
26644 long val2 ;
26645 int ecode2 = 0 ;
26646 PyObject * obj0 = 0 ;
26647 PyObject * obj1 = 0 ;
26648 char * kwnames[] = {
26649 (char *) "self",(char *) "data", NULL
26650 };
26651
26652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26654 if (!SWIG_IsOK(res1)) {
26655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26656 }
26657 arg1 = reinterpret_cast< wxListItem * >(argp1);
26658 ecode2 = SWIG_AsVal_long(obj1, &val2);
26659 if (!SWIG_IsOK(ecode2)) {
26660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26661 }
26662 arg2 = static_cast< long >(val2);
26663 {
26664 PyThreadState* __tstate = wxPyBeginAllowThreads();
26665 (arg1)->SetData(arg2);
26666 wxPyEndAllowThreads(__tstate);
26667 if (PyErr_Occurred()) SWIG_fail;
26668 }
26669 resultobj = SWIG_Py_Void();
26670 return resultobj;
26671fail:
26672 return NULL;
26673}
26674
26675
26676SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26677 PyObject *resultobj = 0;
26678 wxListItem *arg1 = (wxListItem *) 0 ;
26679 int arg2 ;
26680 void *argp1 = 0 ;
26681 int res1 = 0 ;
26682 int val2 ;
26683 int ecode2 = 0 ;
26684 PyObject * obj0 = 0 ;
26685 PyObject * obj1 = 0 ;
26686 char * kwnames[] = {
26687 (char *) "self",(char *) "width", NULL
26688 };
26689
26690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26692 if (!SWIG_IsOK(res1)) {
26693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26694 }
26695 arg1 = reinterpret_cast< wxListItem * >(argp1);
26696 ecode2 = SWIG_AsVal_int(obj1, &val2);
26697 if (!SWIG_IsOK(ecode2)) {
26698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26699 }
26700 arg2 = static_cast< int >(val2);
26701 {
26702 PyThreadState* __tstate = wxPyBeginAllowThreads();
26703 (arg1)->SetWidth(arg2);
26704 wxPyEndAllowThreads(__tstate);
26705 if (PyErr_Occurred()) SWIG_fail;
26706 }
26707 resultobj = SWIG_Py_Void();
26708 return resultobj;
26709fail:
26710 return NULL;
26711}
26712
26713
26714SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26715 PyObject *resultobj = 0;
26716 wxListItem *arg1 = (wxListItem *) 0 ;
26717 wxListColumnFormat arg2 ;
26718 void *argp1 = 0 ;
26719 int res1 = 0 ;
26720 int val2 ;
26721 int ecode2 = 0 ;
26722 PyObject * obj0 = 0 ;
26723 PyObject * obj1 = 0 ;
26724 char * kwnames[] = {
26725 (char *) "self",(char *) "align", NULL
26726 };
26727
26728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26730 if (!SWIG_IsOK(res1)) {
26731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26732 }
26733 arg1 = reinterpret_cast< wxListItem * >(argp1);
26734 ecode2 = SWIG_AsVal_int(obj1, &val2);
26735 if (!SWIG_IsOK(ecode2)) {
26736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26737 }
26738 arg2 = static_cast< wxListColumnFormat >(val2);
26739 {
26740 PyThreadState* __tstate = wxPyBeginAllowThreads();
26741 (arg1)->SetAlign(arg2);
26742 wxPyEndAllowThreads(__tstate);
26743 if (PyErr_Occurred()) SWIG_fail;
26744 }
26745 resultobj = SWIG_Py_Void();
26746 return resultobj;
26747fail:
26748 return NULL;
26749}
26750
26751
26752SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26753 PyObject *resultobj = 0;
26754 wxListItem *arg1 = (wxListItem *) 0 ;
26755 wxColour *arg2 = 0 ;
26756 void *argp1 = 0 ;
26757 int res1 = 0 ;
26758 wxColour temp2 ;
26759 PyObject * obj0 = 0 ;
26760 PyObject * obj1 = 0 ;
26761 char * kwnames[] = {
26762 (char *) "self",(char *) "colText", NULL
26763 };
26764
26765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26767 if (!SWIG_IsOK(res1)) {
26768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26769 }
26770 arg1 = reinterpret_cast< wxListItem * >(argp1);
26771 {
26772 arg2 = &temp2;
26773 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26774 }
26775 {
26776 PyThreadState* __tstate = wxPyBeginAllowThreads();
26777 (arg1)->SetTextColour((wxColour const &)*arg2);
26778 wxPyEndAllowThreads(__tstate);
26779 if (PyErr_Occurred()) SWIG_fail;
26780 }
26781 resultobj = SWIG_Py_Void();
26782 return resultobj;
26783fail:
26784 return NULL;
26785}
26786
26787
26788SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26789 PyObject *resultobj = 0;
26790 wxListItem *arg1 = (wxListItem *) 0 ;
26791 wxColour *arg2 = 0 ;
26792 void *argp1 = 0 ;
26793 int res1 = 0 ;
26794 wxColour temp2 ;
26795 PyObject * obj0 = 0 ;
26796 PyObject * obj1 = 0 ;
26797 char * kwnames[] = {
26798 (char *) "self",(char *) "colBack", NULL
26799 };
26800
26801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26803 if (!SWIG_IsOK(res1)) {
26804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26805 }
26806 arg1 = reinterpret_cast< wxListItem * >(argp1);
26807 {
26808 arg2 = &temp2;
26809 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26810 }
26811 {
26812 PyThreadState* __tstate = wxPyBeginAllowThreads();
26813 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26814 wxPyEndAllowThreads(__tstate);
26815 if (PyErr_Occurred()) SWIG_fail;
26816 }
26817 resultobj = SWIG_Py_Void();
26818 return resultobj;
26819fail:
26820 return NULL;
26821}
26822
26823
26824SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26825 PyObject *resultobj = 0;
26826 wxListItem *arg1 = (wxListItem *) 0 ;
26827 wxFont *arg2 = 0 ;
26828 void *argp1 = 0 ;
26829 int res1 = 0 ;
26830 void *argp2 = 0 ;
26831 int res2 = 0 ;
26832 PyObject * obj0 = 0 ;
26833 PyObject * obj1 = 0 ;
26834 char * kwnames[] = {
26835 (char *) "self",(char *) "font", NULL
26836 };
26837
26838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26840 if (!SWIG_IsOK(res1)) {
26841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26842 }
26843 arg1 = reinterpret_cast< wxListItem * >(argp1);
26844 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26845 if (!SWIG_IsOK(res2)) {
26846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26847 }
26848 if (!argp2) {
26849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26850 }
26851 arg2 = reinterpret_cast< wxFont * >(argp2);
26852 {
26853 PyThreadState* __tstate = wxPyBeginAllowThreads();
26854 (arg1)->SetFont((wxFont const &)*arg2);
26855 wxPyEndAllowThreads(__tstate);
26856 if (PyErr_Occurred()) SWIG_fail;
26857 }
26858 resultobj = SWIG_Py_Void();
26859 return resultobj;
26860fail:
26861 return NULL;
d14a1e28
RD
26862}
26863
26864
0085ce49
RD
26865SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26866 PyObject *resultobj = 0;
26867 wxListItem *arg1 = (wxListItem *) 0 ;
26868 long result;
26869 void *argp1 = 0 ;
26870 int res1 = 0 ;
26871 PyObject *swig_obj[1] ;
26872
26873 if (!args) SWIG_fail;
26874 swig_obj[0] = args;
26875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26876 if (!SWIG_IsOK(res1)) {
26877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26878 }
26879 arg1 = reinterpret_cast< wxListItem * >(argp1);
26880 {
26881 PyThreadState* __tstate = wxPyBeginAllowThreads();
26882 result = (long)(arg1)->GetMask();
26883 wxPyEndAllowThreads(__tstate);
26884 if (PyErr_Occurred()) SWIG_fail;
26885 }
26886 resultobj = SWIG_From_long(static_cast< long >(result));
26887 return resultobj;
26888fail:
26889 return NULL;
d14a1e28
RD
26890}
26891
26892
0085ce49
RD
26893SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26894 PyObject *resultobj = 0;
26895 wxListItem *arg1 = (wxListItem *) 0 ;
26896 long result;
26897 void *argp1 = 0 ;
26898 int res1 = 0 ;
26899 PyObject *swig_obj[1] ;
26900
26901 if (!args) SWIG_fail;
26902 swig_obj[0] = args;
26903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26904 if (!SWIG_IsOK(res1)) {
26905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26906 }
26907 arg1 = reinterpret_cast< wxListItem * >(argp1);
26908 {
26909 PyThreadState* __tstate = wxPyBeginAllowThreads();
26910 result = (long)(arg1)->GetId();
26911 wxPyEndAllowThreads(__tstate);
26912 if (PyErr_Occurred()) SWIG_fail;
26913 }
26914 resultobj = SWIG_From_long(static_cast< long >(result));
26915 return resultobj;
26916fail:
26917 return NULL;
d14a1e28
RD
26918}
26919
26920
0085ce49
RD
26921SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26922 PyObject *resultobj = 0;
26923 wxListItem *arg1 = (wxListItem *) 0 ;
26924 int result;
26925 void *argp1 = 0 ;
26926 int res1 = 0 ;
26927 PyObject *swig_obj[1] ;
26928
26929 if (!args) SWIG_fail;
26930 swig_obj[0] = args;
26931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26932 if (!SWIG_IsOK(res1)) {
26933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26934 }
26935 arg1 = reinterpret_cast< wxListItem * >(argp1);
26936 {
26937 PyThreadState* __tstate = wxPyBeginAllowThreads();
26938 result = (int)(arg1)->GetColumn();
26939 wxPyEndAllowThreads(__tstate);
26940 if (PyErr_Occurred()) SWIG_fail;
26941 }
26942 resultobj = SWIG_From_int(static_cast< int >(result));
26943 return resultobj;
26944fail:
26945 return NULL;
22bfe96c
RD
26946}
26947
26948
0085ce49
RD
26949SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26950 PyObject *resultobj = 0;
26951 wxListItem *arg1 = (wxListItem *) 0 ;
26952 long result;
26953 void *argp1 = 0 ;
26954 int res1 = 0 ;
26955 PyObject *swig_obj[1] ;
26956
26957 if (!args) SWIG_fail;
26958 swig_obj[0] = args;
26959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26960 if (!SWIG_IsOK(res1)) {
26961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26962 }
26963 arg1 = reinterpret_cast< wxListItem * >(argp1);
26964 {
26965 PyThreadState* __tstate = wxPyBeginAllowThreads();
26966 result = (long)(arg1)->GetState();
26967 wxPyEndAllowThreads(__tstate);
26968 if (PyErr_Occurred()) SWIG_fail;
26969 }
26970 resultobj = SWIG_From_long(static_cast< long >(result));
26971 return resultobj;
26972fail:
26973 return NULL;
b2dc1044
RD
26974}
26975
26976
0085ce49
RD
26977SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26978 PyObject *resultobj = 0;
26979 wxListItem *arg1 = (wxListItem *) 0 ;
26980 wxString *result = 0 ;
26981 void *argp1 = 0 ;
26982 int res1 = 0 ;
26983 PyObject *swig_obj[1] ;
26984
26985 if (!args) SWIG_fail;
26986 swig_obj[0] = args;
26987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26988 if (!SWIG_IsOK(res1)) {
26989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26990 }
26991 arg1 = reinterpret_cast< wxListItem * >(argp1);
26992 {
26993 PyThreadState* __tstate = wxPyBeginAllowThreads();
b2dc1044 26994 {
0085ce49
RD
26995 wxString const &_result_ref = (arg1)->GetText();
26996 result = (wxString *) &_result_ref;
26997 }
26998 wxPyEndAllowThreads(__tstate);
26999 if (PyErr_Occurred()) SWIG_fail;
27000 }
27001 {
b2dc1044 27002#if wxUSE_UNICODE
0085ce49 27003 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
b2dc1044 27004#else
0085ce49 27005 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
b2dc1044 27006#endif
0085ce49
RD
27007 }
27008 return resultobj;
27009fail:
27010 return NULL;
d14a1e28
RD
27011}
27012
27013
0085ce49
RD
27014SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27015 PyObject *resultobj = 0;
27016 wxListItem *arg1 = (wxListItem *) 0 ;
27017 int result;
27018 void *argp1 = 0 ;
27019 int res1 = 0 ;
27020 PyObject *swig_obj[1] ;
27021
27022 if (!args) SWIG_fail;
27023 swig_obj[0] = args;
27024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27025 if (!SWIG_IsOK(res1)) {
27026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27027 }
27028 arg1 = reinterpret_cast< wxListItem * >(argp1);
27029 {
27030 PyThreadState* __tstate = wxPyBeginAllowThreads();
27031 result = (int)(arg1)->GetImage();
27032 wxPyEndAllowThreads(__tstate);
27033 if (PyErr_Occurred()) SWIG_fail;
27034 }
27035 resultobj = SWIG_From_int(static_cast< int >(result));
27036 return resultobj;
27037fail:
27038 return NULL;
d14a1e28
RD
27039}
27040
27041
0085ce49
RD
27042SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27043 PyObject *resultobj = 0;
27044 wxListItem *arg1 = (wxListItem *) 0 ;
27045 long result;
27046 void *argp1 = 0 ;
27047 int res1 = 0 ;
27048 PyObject *swig_obj[1] ;
27049
27050 if (!args) SWIG_fail;
27051 swig_obj[0] = args;
27052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27053 if (!SWIG_IsOK(res1)) {
27054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27055 }
27056 arg1 = reinterpret_cast< wxListItem * >(argp1);
27057 {
27058 PyThreadState* __tstate = wxPyBeginAllowThreads();
27059 result = (long)(arg1)->GetData();
27060 wxPyEndAllowThreads(__tstate);
27061 if (PyErr_Occurred()) SWIG_fail;
27062 }
27063 resultobj = SWIG_From_long(static_cast< long >(result));
27064 return resultobj;
27065fail:
27066 return NULL;
d14a1e28
RD
27067}
27068
27069
0085ce49
RD
27070SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27071 PyObject *resultobj = 0;
27072 wxListItem *arg1 = (wxListItem *) 0 ;
27073 int result;
27074 void *argp1 = 0 ;
27075 int res1 = 0 ;
27076 PyObject *swig_obj[1] ;
27077
27078 if (!args) SWIG_fail;
27079 swig_obj[0] = args;
27080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27081 if (!SWIG_IsOK(res1)) {
27082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27083 }
27084 arg1 = reinterpret_cast< wxListItem * >(argp1);
27085 {
27086 PyThreadState* __tstate = wxPyBeginAllowThreads();
27087 result = (int)(arg1)->GetWidth();
27088 wxPyEndAllowThreads(__tstate);
27089 if (PyErr_Occurred()) SWIG_fail;
27090 }
27091 resultobj = SWIG_From_int(static_cast< int >(result));
27092 return resultobj;
27093fail:
27094 return NULL;
d14a1e28
RD
27095}
27096
27097
0085ce49
RD
27098SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27099 PyObject *resultobj = 0;
27100 wxListItem *arg1 = (wxListItem *) 0 ;
27101 wxListColumnFormat result;
27102 void *argp1 = 0 ;
27103 int res1 = 0 ;
27104 PyObject *swig_obj[1] ;
27105
27106 if (!args) SWIG_fail;
27107 swig_obj[0] = args;
27108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27109 if (!SWIG_IsOK(res1)) {
27110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27111 }
27112 arg1 = reinterpret_cast< wxListItem * >(argp1);
27113 {
27114 PyThreadState* __tstate = wxPyBeginAllowThreads();
27115 result = (wxListColumnFormat)(arg1)->GetAlign();
27116 wxPyEndAllowThreads(__tstate);
27117 if (PyErr_Occurred()) SWIG_fail;
27118 }
27119 resultobj = SWIG_From_int(static_cast< int >(result));
27120 return resultobj;
27121fail:
27122 return NULL;
d14a1e28
RD
27123}
27124
27125
0085ce49
RD
27126SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27127 PyObject *resultobj = 0;
27128 wxListItem *arg1 = (wxListItem *) 0 ;
27129 wxListItemAttr *result = 0 ;
27130 void *argp1 = 0 ;
27131 int res1 = 0 ;
27132 PyObject *swig_obj[1] ;
27133
27134 if (!args) SWIG_fail;
27135 swig_obj[0] = args;
27136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27137 if (!SWIG_IsOK(res1)) {
27138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27139 }
27140 arg1 = reinterpret_cast< wxListItem * >(argp1);
27141 {
27142 PyThreadState* __tstate = wxPyBeginAllowThreads();
27143 result = (wxListItemAttr *)(arg1)->GetAttributes();
27144 wxPyEndAllowThreads(__tstate);
27145 if (PyErr_Occurred()) SWIG_fail;
27146 }
27147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27148 return resultobj;
27149fail:
27150 return NULL;
d14a1e28
RD
27151}
27152
27153
0085ce49
RD
27154SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27155 PyObject *resultobj = 0;
27156 wxListItem *arg1 = (wxListItem *) 0 ;
27157 bool result;
27158 void *argp1 = 0 ;
27159 int res1 = 0 ;
27160 PyObject *swig_obj[1] ;
27161
27162 if (!args) SWIG_fail;
27163 swig_obj[0] = args;
27164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27165 if (!SWIG_IsOK(res1)) {
27166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27167 }
27168 arg1 = reinterpret_cast< wxListItem * >(argp1);
27169 {
27170 PyThreadState* __tstate = wxPyBeginAllowThreads();
27171 result = (bool)(arg1)->HasAttributes();
27172 wxPyEndAllowThreads(__tstate);
27173 if (PyErr_Occurred()) SWIG_fail;
27174 }
27175 {
27176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27177 }
27178 return resultobj;
27179fail:
27180 return NULL;
22bfe96c
RD
27181}
27182
27183
0085ce49
RD
27184SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27185 PyObject *resultobj = 0;
27186 wxListItem *arg1 = (wxListItem *) 0 ;
27187 wxColour result;
27188 void *argp1 = 0 ;
27189 int res1 = 0 ;
27190 PyObject *swig_obj[1] ;
27191
27192 if (!args) SWIG_fail;
27193 swig_obj[0] = args;
27194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27195 if (!SWIG_IsOK(res1)) {
27196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27197 }
27198 arg1 = reinterpret_cast< wxListItem * >(argp1);
27199 {
27200 PyThreadState* __tstate = wxPyBeginAllowThreads();
27201 result = ((wxListItem const *)arg1)->GetTextColour();
27202 wxPyEndAllowThreads(__tstate);
27203 if (PyErr_Occurred()) SWIG_fail;
27204 }
27205 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27206 return resultobj;
27207fail:
27208 return NULL;
d14a1e28 27209}
0085ce49
RD
27210
27211
27212SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27213 PyObject *resultobj = 0;
27214 wxListItem *arg1 = (wxListItem *) 0 ;
27215 wxColour result;
27216 void *argp1 = 0 ;
27217 int res1 = 0 ;
27218 PyObject *swig_obj[1] ;
27219
27220 if (!args) SWIG_fail;
27221 swig_obj[0] = args;
27222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27223 if (!SWIG_IsOK(res1)) {
27224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27225 }
27226 arg1 = reinterpret_cast< wxListItem * >(argp1);
27227 {
27228 PyThreadState* __tstate = wxPyBeginAllowThreads();
27229 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27230 wxPyEndAllowThreads(__tstate);
27231 if (PyErr_Occurred()) SWIG_fail;
27232 }
27233 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27234 return resultobj;
27235fail:
27236 return NULL;
b2dc1044
RD
27237}
27238
27239
0085ce49
RD
27240SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27241 PyObject *resultobj = 0;
27242 wxListItem *arg1 = (wxListItem *) 0 ;
27243 wxFont result;
27244 void *argp1 = 0 ;
27245 int res1 = 0 ;
27246 PyObject *swig_obj[1] ;
27247
27248 if (!args) SWIG_fail;
27249 swig_obj[0] = args;
27250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27251 if (!SWIG_IsOK(res1)) {
27252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27253 }
27254 arg1 = reinterpret_cast< wxListItem * >(argp1);
27255 {
27256 PyThreadState* __tstate = wxPyBeginAllowThreads();
27257 result = ((wxListItem const *)arg1)->GetFont();
27258 wxPyEndAllowThreads(__tstate);
27259 if (PyErr_Occurred()) SWIG_fail;
27260 }
27261 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27262 return resultobj;
27263fail:
27264 return NULL;
27265}
27266
27267
27268SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27269 PyObject *resultobj = 0;
27270 wxListItem *arg1 = (wxListItem *) 0 ;
27271 long arg2 ;
27272 void *argp1 = 0 ;
27273 int res1 = 0 ;
27274 long val2 ;
27275 int ecode2 = 0 ;
27276 PyObject *swig_obj[2] ;
27277
27278 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27280 if (!SWIG_IsOK(res1)) {
27281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27282 }
27283 arg1 = reinterpret_cast< wxListItem * >(argp1);
27284 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27285 if (!SWIG_IsOK(ecode2)) {
27286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27287 }
27288 arg2 = static_cast< long >(val2);
27289 if (arg1) (arg1)->m_mask = arg2;
27290
27291 resultobj = SWIG_Py_Void();
27292 return resultobj;
27293fail:
27294 return NULL;
b2dc1044
RD
27295}
27296
27297
0085ce49
RD
27298SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27299 PyObject *resultobj = 0;
27300 wxListItem *arg1 = (wxListItem *) 0 ;
27301 long result;
27302 void *argp1 = 0 ;
27303 int res1 = 0 ;
27304 PyObject *swig_obj[1] ;
27305
27306 if (!args) SWIG_fail;
27307 swig_obj[0] = args;
27308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27309 if (!SWIG_IsOK(res1)) {
27310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27311 }
27312 arg1 = reinterpret_cast< wxListItem * >(argp1);
27313 result = (long) ((arg1)->m_mask);
27314 resultobj = SWIG_From_long(static_cast< long >(result));
27315 return resultobj;
27316fail:
27317 return NULL;
27318}
27319
27320
27321SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27322 PyObject *resultobj = 0;
27323 wxListItem *arg1 = (wxListItem *) 0 ;
27324 long arg2 ;
27325 void *argp1 = 0 ;
27326 int res1 = 0 ;
27327 long val2 ;
27328 int ecode2 = 0 ;
27329 PyObject *swig_obj[2] ;
27330
27331 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27333 if (!SWIG_IsOK(res1)) {
27334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27335 }
27336 arg1 = reinterpret_cast< wxListItem * >(argp1);
27337 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27338 if (!SWIG_IsOK(ecode2)) {
27339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27340 }
27341 arg2 = static_cast< long >(val2);
27342 if (arg1) (arg1)->m_itemId = arg2;
27343
27344 resultobj = SWIG_Py_Void();
27345 return resultobj;
27346fail:
27347 return NULL;
d14a1e28
RD
27348}
27349
27350
0085ce49
RD
27351SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27352 PyObject *resultobj = 0;
27353 wxListItem *arg1 = (wxListItem *) 0 ;
27354 long result;
27355 void *argp1 = 0 ;
27356 int res1 = 0 ;
27357 PyObject *swig_obj[1] ;
27358
27359 if (!args) SWIG_fail;
27360 swig_obj[0] = args;
27361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27362 if (!SWIG_IsOK(res1)) {
27363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27364 }
27365 arg1 = reinterpret_cast< wxListItem * >(argp1);
27366 result = (long) ((arg1)->m_itemId);
27367 resultobj = SWIG_From_long(static_cast< long >(result));
27368 return resultobj;
27369fail:
27370 return NULL;
27371}
27372
27373
27374SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27375 PyObject *resultobj = 0;
27376 wxListItem *arg1 = (wxListItem *) 0 ;
27377 int arg2 ;
27378 void *argp1 = 0 ;
27379 int res1 = 0 ;
27380 int val2 ;
27381 int ecode2 = 0 ;
27382 PyObject *swig_obj[2] ;
27383
27384 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27386 if (!SWIG_IsOK(res1)) {
27387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27388 }
27389 arg1 = reinterpret_cast< wxListItem * >(argp1);
27390 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27391 if (!SWIG_IsOK(ecode2)) {
27392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27393 }
27394 arg2 = static_cast< int >(val2);
27395 if (arg1) (arg1)->m_col = arg2;
27396
27397 resultobj = SWIG_Py_Void();
27398 return resultobj;
27399fail:
27400 return NULL;
d14a1e28
RD
27401}
27402
27403
0085ce49
RD
27404SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27405 PyObject *resultobj = 0;
27406 wxListItem *arg1 = (wxListItem *) 0 ;
27407 int result;
27408 void *argp1 = 0 ;
27409 int res1 = 0 ;
27410 PyObject *swig_obj[1] ;
27411
27412 if (!args) SWIG_fail;
27413 swig_obj[0] = args;
27414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27415 if (!SWIG_IsOK(res1)) {
27416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27417 }
27418 arg1 = reinterpret_cast< wxListItem * >(argp1);
27419 result = (int) ((arg1)->m_col);
27420 resultobj = SWIG_From_int(static_cast< int >(result));
27421 return resultobj;
27422fail:
27423 return NULL;
27424}
27425
27426
27427SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27428 PyObject *resultobj = 0;
27429 wxListItem *arg1 = (wxListItem *) 0 ;
27430 long arg2 ;
27431 void *argp1 = 0 ;
27432 int res1 = 0 ;
27433 long val2 ;
27434 int ecode2 = 0 ;
27435 PyObject *swig_obj[2] ;
27436
27437 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27439 if (!SWIG_IsOK(res1)) {
27440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27441 }
27442 arg1 = reinterpret_cast< wxListItem * >(argp1);
27443 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27444 if (!SWIG_IsOK(ecode2)) {
27445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27446 }
27447 arg2 = static_cast< long >(val2);
27448 if (arg1) (arg1)->m_state = arg2;
27449
27450 resultobj = SWIG_Py_Void();
27451 return resultobj;
27452fail:
27453 return NULL;
8fb0e70a
RD
27454}
27455
27456
0085ce49
RD
27457SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27458 PyObject *resultobj = 0;
27459 wxListItem *arg1 = (wxListItem *) 0 ;
27460 long result;
27461 void *argp1 = 0 ;
27462 int res1 = 0 ;
27463 PyObject *swig_obj[1] ;
27464
27465 if (!args) SWIG_fail;
27466 swig_obj[0] = args;
27467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27468 if (!SWIG_IsOK(res1)) {
27469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27470 }
27471 arg1 = reinterpret_cast< wxListItem * >(argp1);
27472 result = (long) ((arg1)->m_state);
27473 resultobj = SWIG_From_long(static_cast< long >(result));
27474 return resultobj;
27475fail:
27476 return NULL;
27477}
27478
27479
27480SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27481 PyObject *resultobj = 0;
27482 wxListItem *arg1 = (wxListItem *) 0 ;
27483 long arg2 ;
27484 void *argp1 = 0 ;
27485 int res1 = 0 ;
27486 long val2 ;
27487 int ecode2 = 0 ;
27488 PyObject *swig_obj[2] ;
27489
27490 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27492 if (!SWIG_IsOK(res1)) {
27493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27494 }
27495 arg1 = reinterpret_cast< wxListItem * >(argp1);
27496 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27497 if (!SWIG_IsOK(ecode2)) {
27498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27499 }
27500 arg2 = static_cast< long >(val2);
27501 if (arg1) (arg1)->m_stateMask = arg2;
27502
27503 resultobj = SWIG_Py_Void();
27504 return resultobj;
27505fail:
27506 return NULL;
d14a1e28
RD
27507}
27508
27509
0085ce49
RD
27510SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27511 PyObject *resultobj = 0;
27512 wxListItem *arg1 = (wxListItem *) 0 ;
27513 long result;
27514 void *argp1 = 0 ;
27515 int res1 = 0 ;
27516 PyObject *swig_obj[1] ;
27517
27518 if (!args) SWIG_fail;
27519 swig_obj[0] = args;
27520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27521 if (!SWIG_IsOK(res1)) {
27522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27523 }
27524 arg1 = reinterpret_cast< wxListItem * >(argp1);
27525 result = (long) ((arg1)->m_stateMask);
27526 resultobj = SWIG_From_long(static_cast< long >(result));
27527 return resultobj;
27528fail:
27529 return NULL;
27530}
27531
27532
27533SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27534 PyObject *resultobj = 0;
27535 wxListItem *arg1 = (wxListItem *) 0 ;
27536 wxString *arg2 = (wxString *) 0 ;
27537 void *argp1 = 0 ;
27538 int res1 = 0 ;
27539 bool temp2 = false ;
27540 PyObject *swig_obj[2] ;
27541
27542 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27544 if (!SWIG_IsOK(res1)) {
27545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27546 }
27547 arg1 = reinterpret_cast< wxListItem * >(argp1);
27548 {
27549 arg2 = wxString_in_helper(swig_obj[1]);
27550 if (arg2 == NULL) SWIG_fail;
27551 temp2 = true;
27552 }
27553 if (arg1) (arg1)->m_text = *arg2;
27554
27555 resultobj = SWIG_Py_Void();
27556 {
27557 if (temp2)
27558 delete arg2;
27559 }
27560 return resultobj;
27561fail:
27562 {
27563 if (temp2)
27564 delete arg2;
27565 }
27566 return NULL;
d14a1e28
RD
27567}
27568
27569
0085ce49
RD
27570SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27571 PyObject *resultobj = 0;
27572 wxListItem *arg1 = (wxListItem *) 0 ;
27573 wxString *result = 0 ;
27574 void *argp1 = 0 ;
27575 int res1 = 0 ;
27576 PyObject *swig_obj[1] ;
27577
27578 if (!args) SWIG_fail;
27579 swig_obj[0] = args;
27580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27581 if (!SWIG_IsOK(res1)) {
27582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27583 }
27584 arg1 = reinterpret_cast< wxListItem * >(argp1);
27585 result = (wxString *)& ((arg1)->m_text);
27586 {
d14a1e28 27587#if wxUSE_UNICODE
0085ce49 27588 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 27589#else
0085ce49 27590 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 27591#endif
0085ce49
RD
27592 }
27593 return resultobj;
27594fail:
27595 return NULL;
d14a1e28
RD
27596}
27597
27598
0085ce49
RD
27599SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27600 PyObject *resultobj = 0;
27601 wxListItem *arg1 = (wxListItem *) 0 ;
27602 int arg2 ;
27603 void *argp1 = 0 ;
27604 int res1 = 0 ;
27605 int val2 ;
27606 int ecode2 = 0 ;
27607 PyObject *swig_obj[2] ;
27608
27609 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27611 if (!SWIG_IsOK(res1)) {
27612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27613 }
27614 arg1 = reinterpret_cast< wxListItem * >(argp1);
27615 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27616 if (!SWIG_IsOK(ecode2)) {
27617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27618 }
27619 arg2 = static_cast< int >(val2);
27620 if (arg1) (arg1)->m_image = arg2;
27621
27622 resultobj = SWIG_Py_Void();
27623 return resultobj;
27624fail:
27625 return NULL;
d14a1e28
RD
27626}
27627
27628
0085ce49
RD
27629SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27630 PyObject *resultobj = 0;
27631 wxListItem *arg1 = (wxListItem *) 0 ;
27632 int result;
27633 void *argp1 = 0 ;
27634 int res1 = 0 ;
27635 PyObject *swig_obj[1] ;
27636
27637 if (!args) SWIG_fail;
27638 swig_obj[0] = args;
27639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27640 if (!SWIG_IsOK(res1)) {
27641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27642 }
27643 arg1 = reinterpret_cast< wxListItem * >(argp1);
27644 result = (int) ((arg1)->m_image);
27645 resultobj = SWIG_From_int(static_cast< int >(result));
27646 return resultobj;
27647fail:
27648 return NULL;
27649}
27650
27651
27652SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27653 PyObject *resultobj = 0;
27654 wxListItem *arg1 = (wxListItem *) 0 ;
27655 long arg2 ;
27656 void *argp1 = 0 ;
27657 int res1 = 0 ;
27658 long val2 ;
27659 int ecode2 = 0 ;
27660 PyObject *swig_obj[2] ;
27661
27662 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27664 if (!SWIG_IsOK(res1)) {
27665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27666 }
27667 arg1 = reinterpret_cast< wxListItem * >(argp1);
27668 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27669 if (!SWIG_IsOK(ecode2)) {
27670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27671 }
27672 arg2 = static_cast< long >(val2);
27673 if (arg1) (arg1)->m_data = arg2;
27674
27675 resultobj = SWIG_Py_Void();
27676 return resultobj;
27677fail:
27678 return NULL;
d14a1e28
RD
27679}
27680
27681
0085ce49
RD
27682SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27683 PyObject *resultobj = 0;
27684 wxListItem *arg1 = (wxListItem *) 0 ;
27685 long result;
27686 void *argp1 = 0 ;
27687 int res1 = 0 ;
27688 PyObject *swig_obj[1] ;
27689
27690 if (!args) SWIG_fail;
27691 swig_obj[0] = args;
27692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27693 if (!SWIG_IsOK(res1)) {
27694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27695 }
27696 arg1 = reinterpret_cast< wxListItem * >(argp1);
27697 result = (long) ((arg1)->m_data);
27698 resultobj = SWIG_From_long(static_cast< long >(result));
27699 return resultobj;
27700fail:
27701 return NULL;
27702}
27703
27704
27705SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27706 PyObject *resultobj = 0;
27707 wxListItem *arg1 = (wxListItem *) 0 ;
27708 int arg2 ;
27709 void *argp1 = 0 ;
27710 int res1 = 0 ;
27711 int val2 ;
27712 int ecode2 = 0 ;
27713 PyObject *swig_obj[2] ;
27714
27715 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27717 if (!SWIG_IsOK(res1)) {
27718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27719 }
27720 arg1 = reinterpret_cast< wxListItem * >(argp1);
27721 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27722 if (!SWIG_IsOK(ecode2)) {
27723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27724 }
27725 arg2 = static_cast< int >(val2);
27726 if (arg1) (arg1)->m_format = arg2;
27727
27728 resultobj = SWIG_Py_Void();
27729 return resultobj;
27730fail:
27731 return NULL;
d14a1e28
RD
27732}
27733
27734
0085ce49
RD
27735SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27736 PyObject *resultobj = 0;
27737 wxListItem *arg1 = (wxListItem *) 0 ;
27738 int result;
27739 void *argp1 = 0 ;
27740 int res1 = 0 ;
27741 PyObject *swig_obj[1] ;
27742
27743 if (!args) SWIG_fail;
27744 swig_obj[0] = args;
27745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27746 if (!SWIG_IsOK(res1)) {
27747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27748 }
27749 arg1 = reinterpret_cast< wxListItem * >(argp1);
27750 result = (int) ((arg1)->m_format);
27751 resultobj = SWIG_From_int(static_cast< int >(result));
27752 return resultobj;
27753fail:
27754 return NULL;
27755}
27756
27757
27758SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27759 PyObject *resultobj = 0;
27760 wxListItem *arg1 = (wxListItem *) 0 ;
27761 int arg2 ;
27762 void *argp1 = 0 ;
27763 int res1 = 0 ;
27764 int val2 ;
27765 int ecode2 = 0 ;
27766 PyObject *swig_obj[2] ;
27767
27768 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27770 if (!SWIG_IsOK(res1)) {
27771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27772 }
27773 arg1 = reinterpret_cast< wxListItem * >(argp1);
27774 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27775 if (!SWIG_IsOK(ecode2)) {
27776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27777 }
27778 arg2 = static_cast< int >(val2);
27779 if (arg1) (arg1)->m_width = arg2;
27780
27781 resultobj = SWIG_Py_Void();
27782 return resultobj;
27783fail:
27784 return NULL;
d14a1e28
RD
27785}
27786
27787
0085ce49
RD
27788SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27789 PyObject *resultobj = 0;
27790 wxListItem *arg1 = (wxListItem *) 0 ;
27791 int result;
27792 void *argp1 = 0 ;
27793 int res1 = 0 ;
27794 PyObject *swig_obj[1] ;
27795
27796 if (!args) SWIG_fail;
27797 swig_obj[0] = args;
27798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27799 if (!SWIG_IsOK(res1)) {
27800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27801 }
27802 arg1 = reinterpret_cast< wxListItem * >(argp1);
27803 result = (int) ((arg1)->m_width);
27804 resultobj = SWIG_From_int(static_cast< int >(result));
27805 return resultobj;
27806fail:
27807 return NULL;
27808}
27809
27810
27811SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27812 PyObject *obj;
27813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27814 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27815 return SWIG_Py_Void();
27816}
27817
27818SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27819 return SWIG_Python_InitShadowInstance(args);
27820}
27821
27822SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27823 PyObject *resultobj = 0;
27824 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27825 int arg2 = (int) 0 ;
27826 wxListEvent *result = 0 ;
27827 int val1 ;
27828 int ecode1 = 0 ;
27829 int val2 ;
27830 int ecode2 = 0 ;
27831 PyObject * obj0 = 0 ;
27832 PyObject * obj1 = 0 ;
27833 char * kwnames[] = {
27834 (char *) "commandType",(char *) "id", NULL
27835 };
27836
27837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27838 if (obj0) {
27839 ecode1 = SWIG_AsVal_int(obj0, &val1);
27840 if (!SWIG_IsOK(ecode1)) {
27841 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27842 }
27843 arg1 = static_cast< wxEventType >(val1);
27844 }
27845 if (obj1) {
27846 ecode2 = SWIG_AsVal_int(obj1, &val2);
27847 if (!SWIG_IsOK(ecode2)) {
27848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27849 }
27850 arg2 = static_cast< int >(val2);
27851 }
27852 {
27853 PyThreadState* __tstate = wxPyBeginAllowThreads();
27854 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27855 wxPyEndAllowThreads(__tstate);
27856 if (PyErr_Occurred()) SWIG_fail;
27857 }
27858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27859 return resultobj;
27860fail:
27861 return NULL;
27862}
27863
27864
27865SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27866 PyObject *resultobj = 0;
27867 wxListEvent *arg1 = (wxListEvent *) 0 ;
27868 int arg2 ;
27869 void *argp1 = 0 ;
27870 int res1 = 0 ;
27871 int val2 ;
27872 int ecode2 = 0 ;
27873 PyObject *swig_obj[2] ;
27874
27875 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27877 if (!SWIG_IsOK(res1)) {
27878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27879 }
27880 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27881 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27882 if (!SWIG_IsOK(ecode2)) {
27883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27884 }
27885 arg2 = static_cast< int >(val2);
27886 if (arg1) (arg1)->m_code = arg2;
27887
27888 resultobj = SWIG_Py_Void();
27889 return resultobj;
27890fail:
27891 return NULL;
d14a1e28
RD
27892}
27893
27894
0085ce49
RD
27895SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27896 PyObject *resultobj = 0;
27897 wxListEvent *arg1 = (wxListEvent *) 0 ;
27898 int result;
27899 void *argp1 = 0 ;
27900 int res1 = 0 ;
27901 PyObject *swig_obj[1] ;
27902
27903 if (!args) SWIG_fail;
27904 swig_obj[0] = args;
27905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27906 if (!SWIG_IsOK(res1)) {
27907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27908 }
27909 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27910 result = (int) ((arg1)->m_code);
27911 resultobj = SWIG_From_int(static_cast< int >(result));
27912 return resultobj;
27913fail:
27914 return NULL;
27915}
27916
27917
27918SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27919 PyObject *resultobj = 0;
27920 wxListEvent *arg1 = (wxListEvent *) 0 ;
27921 long arg2 ;
27922 void *argp1 = 0 ;
27923 int res1 = 0 ;
27924 long val2 ;
27925 int ecode2 = 0 ;
27926 PyObject *swig_obj[2] ;
27927
27928 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27930 if (!SWIG_IsOK(res1)) {
27931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27932 }
27933 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27934 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27935 if (!SWIG_IsOK(ecode2)) {
27936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27937 }
27938 arg2 = static_cast< long >(val2);
27939 if (arg1) (arg1)->m_oldItemIndex = arg2;
27940
27941 resultobj = SWIG_Py_Void();
27942 return resultobj;
27943fail:
27944 return NULL;
d14a1e28
RD
27945}
27946
27947
0085ce49
RD
27948SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27949 PyObject *resultobj = 0;
27950 wxListEvent *arg1 = (wxListEvent *) 0 ;
27951 long result;
27952 void *argp1 = 0 ;
27953 int res1 = 0 ;
27954 PyObject *swig_obj[1] ;
27955
27956 if (!args) SWIG_fail;
27957 swig_obj[0] = args;
27958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27959 if (!SWIG_IsOK(res1)) {
27960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27961 }
27962 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27963 result = (long) ((arg1)->m_oldItemIndex);
27964 resultobj = SWIG_From_long(static_cast< long >(result));
27965 return resultobj;
27966fail:
27967 return NULL;
27968}
27969
27970
27971SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27972 PyObject *resultobj = 0;
27973 wxListEvent *arg1 = (wxListEvent *) 0 ;
27974 long arg2 ;
27975 void *argp1 = 0 ;
27976 int res1 = 0 ;
27977 long val2 ;
27978 int ecode2 = 0 ;
27979 PyObject *swig_obj[2] ;
27980
27981 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27983 if (!SWIG_IsOK(res1)) {
27984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27985 }
27986 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27987 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27988 if (!SWIG_IsOK(ecode2)) {
27989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27990 }
27991 arg2 = static_cast< long >(val2);
27992 if (arg1) (arg1)->m_itemIndex = arg2;
27993
27994 resultobj = SWIG_Py_Void();
27995 return resultobj;
27996fail:
27997 return NULL;
d14a1e28
RD
27998}
27999
28000
0085ce49
RD
28001SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28002 PyObject *resultobj = 0;
28003 wxListEvent *arg1 = (wxListEvent *) 0 ;
28004 long result;
28005 void *argp1 = 0 ;
28006 int res1 = 0 ;
28007 PyObject *swig_obj[1] ;
28008
28009 if (!args) SWIG_fail;
28010 swig_obj[0] = args;
28011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28012 if (!SWIG_IsOK(res1)) {
28013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28014 }
28015 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28016 result = (long) ((arg1)->m_itemIndex);
28017 resultobj = SWIG_From_long(static_cast< long >(result));
28018 return resultobj;
28019fail:
28020 return NULL;
28021}
28022
28023
28024SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28025 PyObject *resultobj = 0;
28026 wxListEvent *arg1 = (wxListEvent *) 0 ;
28027 int arg2 ;
28028 void *argp1 = 0 ;
28029 int res1 = 0 ;
28030 int val2 ;
28031 int ecode2 = 0 ;
28032 PyObject *swig_obj[2] ;
28033
28034 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28036 if (!SWIG_IsOK(res1)) {
28037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28038 }
28039 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28040 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28041 if (!SWIG_IsOK(ecode2)) {
28042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28043 }
28044 arg2 = static_cast< int >(val2);
28045 if (arg1) (arg1)->m_col = arg2;
28046
28047 resultobj = SWIG_Py_Void();
28048 return resultobj;
28049fail:
28050 return NULL;
7e08d4ef
RD
28051}
28052
28053
0085ce49
RD
28054SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28055 PyObject *resultobj = 0;
28056 wxListEvent *arg1 = (wxListEvent *) 0 ;
28057 int result;
28058 void *argp1 = 0 ;
28059 int res1 = 0 ;
28060 PyObject *swig_obj[1] ;
28061
28062 if (!args) SWIG_fail;
28063 swig_obj[0] = args;
28064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28065 if (!SWIG_IsOK(res1)) {
28066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28067 }
28068 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28069 result = (int) ((arg1)->m_col);
28070 resultobj = SWIG_From_int(static_cast< int >(result));
28071 return resultobj;
28072fail:
28073 return NULL;
28074}
28075
28076
28077SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28078 PyObject *resultobj = 0;
28079 wxListEvent *arg1 = (wxListEvent *) 0 ;
28080 wxPoint *arg2 = (wxPoint *) 0 ;
28081 void *argp1 = 0 ;
28082 int res1 = 0 ;
28083 void *argp2 = 0 ;
28084 int res2 = 0 ;
28085 PyObject *swig_obj[2] ;
28086
28087 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28089 if (!SWIG_IsOK(res1)) {
28090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28091 }
28092 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28093 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28094 if (!SWIG_IsOK(res2)) {
28095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28096 }
28097 arg2 = reinterpret_cast< wxPoint * >(argp2);
28098 if (arg1) (arg1)->m_pointDrag = *arg2;
28099
28100 resultobj = SWIG_Py_Void();
28101 return resultobj;
28102fail:
28103 return NULL;
7e08d4ef
RD
28104}
28105
28106
0085ce49
RD
28107SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28108 PyObject *resultobj = 0;
28109 wxListEvent *arg1 = (wxListEvent *) 0 ;
28110 wxPoint *result = 0 ;
28111 void *argp1 = 0 ;
28112 int res1 = 0 ;
28113 PyObject *swig_obj[1] ;
28114
28115 if (!args) SWIG_fail;
28116 swig_obj[0] = args;
28117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28118 if (!SWIG_IsOK(res1)) {
28119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28120 }
28121 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28122 result = (wxPoint *)& ((arg1)->m_pointDrag);
28123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28124 return resultobj;
28125fail:
28126 return NULL;
28127}
28128
28129
28130SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28131 PyObject *resultobj = 0;
28132 wxListEvent *arg1 = (wxListEvent *) 0 ;
28133 wxListItem *result = 0 ;
28134 void *argp1 = 0 ;
28135 int res1 = 0 ;
28136 PyObject *swig_obj[1] ;
28137
28138 if (!args) SWIG_fail;
28139 swig_obj[0] = args;
28140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28141 if (!SWIG_IsOK(res1)) {
28142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28143 }
28144 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28145 result = (wxListItem *)& ((arg1)->m_item);
28146 {
28147 resultobj = wxPyMake_wxObject(result, (bool)0);
28148 }
28149 return resultobj;
28150fail:
28151 return NULL;
7e08d4ef
RD
28152}
28153
28154
0085ce49
RD
28155SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28156 PyObject *resultobj = 0;
28157 wxListEvent *arg1 = (wxListEvent *) 0 ;
28158 int result;
28159 void *argp1 = 0 ;
28160 int res1 = 0 ;
28161 PyObject *swig_obj[1] ;
28162
28163 if (!args) SWIG_fail;
28164 swig_obj[0] = args;
28165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28166 if (!SWIG_IsOK(res1)) {
28167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28168 }
28169 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28170 {
28171 PyThreadState* __tstate = wxPyBeginAllowThreads();
28172 result = (int)(arg1)->GetKeyCode();
28173 wxPyEndAllowThreads(__tstate);
28174 if (PyErr_Occurred()) SWIG_fail;
28175 }
28176 resultobj = SWIG_From_int(static_cast< int >(result));
28177 return resultobj;
28178fail:
28179 return NULL;
7e08d4ef
RD
28180}
28181
28182
0085ce49
RD
28183SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28184 PyObject *resultobj = 0;
28185 wxListEvent *arg1 = (wxListEvent *) 0 ;
28186 long result;
28187 void *argp1 = 0 ;
28188 int res1 = 0 ;
28189 PyObject *swig_obj[1] ;
28190
28191 if (!args) SWIG_fail;
28192 swig_obj[0] = args;
28193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28194 if (!SWIG_IsOK(res1)) {
28195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28196 }
28197 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28198 {
28199 PyThreadState* __tstate = wxPyBeginAllowThreads();
28200 result = (long)(arg1)->GetIndex();
28201 wxPyEndAllowThreads(__tstate);
28202 if (PyErr_Occurred()) SWIG_fail;
28203 }
28204 resultobj = SWIG_From_long(static_cast< long >(result));
28205 return resultobj;
28206fail:
28207 return NULL;
7e08d4ef
RD
28208}
28209
28210
0085ce49
RD
28211SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28212 PyObject *resultobj = 0;
28213 wxListEvent *arg1 = (wxListEvent *) 0 ;
28214 int result;
28215 void *argp1 = 0 ;
28216 int res1 = 0 ;
28217 PyObject *swig_obj[1] ;
28218
28219 if (!args) SWIG_fail;
28220 swig_obj[0] = args;
28221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28222 if (!SWIG_IsOK(res1)) {
28223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28224 }
28225 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28226 {
28227 PyThreadState* __tstate = wxPyBeginAllowThreads();
28228 result = (int)(arg1)->GetColumn();
28229 wxPyEndAllowThreads(__tstate);
28230 if (PyErr_Occurred()) SWIG_fail;
28231 }
28232 resultobj = SWIG_From_int(static_cast< int >(result));
28233 return resultobj;
28234fail:
28235 return NULL;
d14a1e28
RD
28236}
28237
28238
0085ce49
RD
28239SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28240 PyObject *resultobj = 0;
28241 wxListEvent *arg1 = (wxListEvent *) 0 ;
28242 wxPoint result;
28243 void *argp1 = 0 ;
28244 int res1 = 0 ;
28245 PyObject *swig_obj[1] ;
28246
28247 if (!args) SWIG_fail;
28248 swig_obj[0] = args;
28249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28250 if (!SWIG_IsOK(res1)) {
28251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28252 }
28253 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28254 {
28255 PyThreadState* __tstate = wxPyBeginAllowThreads();
28256 result = (arg1)->GetPoint();
28257 wxPyEndAllowThreads(__tstate);
28258 if (PyErr_Occurred()) SWIG_fail;
28259 }
28260 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28261 return resultobj;
28262fail:
28263 return NULL;
d14a1e28
RD
28264}
28265
28266
0085ce49
RD
28267SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28268 PyObject *resultobj = 0;
28269 wxListEvent *arg1 = (wxListEvent *) 0 ;
28270 wxString *result = 0 ;
28271 void *argp1 = 0 ;
28272 int res1 = 0 ;
28273 PyObject *swig_obj[1] ;
28274
28275 if (!args) SWIG_fail;
28276 swig_obj[0] = args;
28277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28278 if (!SWIG_IsOK(res1)) {
28279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28280 }
28281 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28282 {
28283 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 28284 {
0085ce49
RD
28285 wxString const &_result_ref = (arg1)->GetLabel();
28286 result = (wxString *) &_result_ref;
4f89f6a3 28287 }
0085ce49
RD
28288 wxPyEndAllowThreads(__tstate);
28289 if (PyErr_Occurred()) SWIG_fail;
28290 }
28291 {
28292#if wxUSE_UNICODE
28293 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28294#else
28295 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28296#endif
28297 }
28298 return resultobj;
28299fail:
28300 return NULL;
d14a1e28
RD
28301}
28302
28303
0085ce49
RD
28304SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28305 PyObject *resultobj = 0;
28306 wxListEvent *arg1 = (wxListEvent *) 0 ;
28307 wxString *result = 0 ;
28308 void *argp1 = 0 ;
28309 int res1 = 0 ;
28310 PyObject *swig_obj[1] ;
28311
28312 if (!args) SWIG_fail;
28313 swig_obj[0] = args;
28314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28315 if (!SWIG_IsOK(res1)) {
28316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28317 }
28318 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28319 {
28320 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 28321 {
0085ce49
RD
28322 wxString const &_result_ref = (arg1)->GetText();
28323 result = (wxString *) &_result_ref;
d14a1e28 28324 }
0085ce49
RD
28325 wxPyEndAllowThreads(__tstate);
28326 if (PyErr_Occurred()) SWIG_fail;
28327 }
28328 {
28329#if wxUSE_UNICODE
28330 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28331#else
28332 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28333#endif
28334 }
28335 return resultobj;
28336fail:
28337 return NULL;
d14a1e28
RD
28338}
28339
28340
0085ce49
RD
28341SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28342 PyObject *resultobj = 0;
28343 wxListEvent *arg1 = (wxListEvent *) 0 ;
28344 int result;
28345 void *argp1 = 0 ;
28346 int res1 = 0 ;
28347 PyObject *swig_obj[1] ;
28348
28349 if (!args) SWIG_fail;
28350 swig_obj[0] = args;
28351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28352 if (!SWIG_IsOK(res1)) {
28353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28354 }
28355 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28356 {
28357 PyThreadState* __tstate = wxPyBeginAllowThreads();
28358 result = (int)(arg1)->GetImage();
28359 wxPyEndAllowThreads(__tstate);
28360 if (PyErr_Occurred()) SWIG_fail;
28361 }
28362 resultobj = SWIG_From_int(static_cast< int >(result));
28363 return resultobj;
28364fail:
28365 return NULL;
d14a1e28
RD
28366}
28367
28368
0085ce49
RD
28369SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28370 PyObject *resultobj = 0;
28371 wxListEvent *arg1 = (wxListEvent *) 0 ;
28372 long result;
28373 void *argp1 = 0 ;
28374 int res1 = 0 ;
28375 PyObject *swig_obj[1] ;
28376
28377 if (!args) SWIG_fail;
28378 swig_obj[0] = args;
28379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28380 if (!SWIG_IsOK(res1)) {
28381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28382 }
28383 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28384 {
28385 PyThreadState* __tstate = wxPyBeginAllowThreads();
28386 result = (long)(arg1)->GetData();
28387 wxPyEndAllowThreads(__tstate);
28388 if (PyErr_Occurred()) SWIG_fail;
28389 }
28390 resultobj = SWIG_From_long(static_cast< long >(result));
28391 return resultobj;
28392fail:
28393 return NULL;
d14a1e28
RD
28394}
28395
28396
0085ce49
RD
28397SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28398 PyObject *resultobj = 0;
28399 wxListEvent *arg1 = (wxListEvent *) 0 ;
28400 long result;
28401 void *argp1 = 0 ;
28402 int res1 = 0 ;
28403 PyObject *swig_obj[1] ;
28404
28405 if (!args) SWIG_fail;
28406 swig_obj[0] = args;
28407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28408 if (!SWIG_IsOK(res1)) {
28409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28410 }
28411 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28412 {
28413 PyThreadState* __tstate = wxPyBeginAllowThreads();
28414 result = (long)(arg1)->GetMask();
28415 wxPyEndAllowThreads(__tstate);
28416 if (PyErr_Occurred()) SWIG_fail;
28417 }
28418 resultobj = SWIG_From_long(static_cast< long >(result));
28419 return resultobj;
28420fail:
28421 return NULL;
d14a1e28
RD
28422}
28423
28424
0085ce49
RD
28425SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28426 PyObject *resultobj = 0;
28427 wxListEvent *arg1 = (wxListEvent *) 0 ;
28428 wxListItem *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_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28438 }
28439 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28440 {
28441 PyThreadState* __tstate = wxPyBeginAllowThreads();
22bfe96c 28442 {
0085ce49
RD
28443 wxListItem const &_result_ref = (arg1)->GetItem();
28444 result = (wxListItem *) &_result_ref;
22bfe96c 28445 }
0085ce49
RD
28446 wxPyEndAllowThreads(__tstate);
28447 if (PyErr_Occurred()) SWIG_fail;
28448 }
28449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28450 return resultobj;
28451fail:
28452 return NULL;
22bfe96c
RD
28453}
28454
28455
0085ce49
RD
28456SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28457 PyObject *resultobj = 0;
28458 wxListEvent *arg1 = (wxListEvent *) 0 ;
28459 long result;
28460 void *argp1 = 0 ;
28461 int res1 = 0 ;
28462 PyObject *swig_obj[1] ;
28463
28464 if (!args) SWIG_fail;
28465 swig_obj[0] = args;
28466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28467 if (!SWIG_IsOK(res1)) {
28468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28469 }
28470 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28471 {
28472 PyThreadState* __tstate = wxPyBeginAllowThreads();
28473 result = (long)(arg1)->GetCacheFrom();
28474 wxPyEndAllowThreads(__tstate);
28475 if (PyErr_Occurred()) SWIG_fail;
28476 }
28477 resultobj = SWIG_From_long(static_cast< long >(result));
28478 return resultobj;
28479fail:
28480 return NULL;
d14a1e28
RD
28481}
28482
28483
0085ce49
RD
28484SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28485 PyObject *resultobj = 0;
28486 wxListEvent *arg1 = (wxListEvent *) 0 ;
28487 long result;
28488 void *argp1 = 0 ;
28489 int res1 = 0 ;
28490 PyObject *swig_obj[1] ;
28491
28492 if (!args) SWIG_fail;
28493 swig_obj[0] = args;
28494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28495 if (!SWIG_IsOK(res1)) {
28496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28497 }
28498 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28499 {
28500 PyThreadState* __tstate = wxPyBeginAllowThreads();
28501 result = (long)(arg1)->GetCacheTo();
28502 wxPyEndAllowThreads(__tstate);
28503 if (PyErr_Occurred()) SWIG_fail;
28504 }
28505 resultobj = SWIG_From_long(static_cast< long >(result));
28506 return resultobj;
28507fail:
28508 return NULL;
d14a1e28
RD
28509}
28510
28511
0085ce49
RD
28512SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28513 PyObject *resultobj = 0;
28514 wxListEvent *arg1 = (wxListEvent *) 0 ;
28515 bool result;
28516 void *argp1 = 0 ;
28517 int res1 = 0 ;
28518 PyObject *swig_obj[1] ;
28519
28520 if (!args) SWIG_fail;
28521 swig_obj[0] = args;
28522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28523 if (!SWIG_IsOK(res1)) {
28524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28525 }
28526 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28527 {
28528 PyThreadState* __tstate = wxPyBeginAllowThreads();
28529 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28530 wxPyEndAllowThreads(__tstate);
28531 if (PyErr_Occurred()) SWIG_fail;
28532 }
28533 {
28534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28535 }
28536 return resultobj;
28537fail:
28538 return NULL;
28539}
28540
28541
28542SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28543 PyObject *resultobj = 0;
28544 wxListEvent *arg1 = (wxListEvent *) 0 ;
28545 bool arg2 ;
28546 void *argp1 = 0 ;
28547 int res1 = 0 ;
28548 bool val2 ;
28549 int ecode2 = 0 ;
28550 PyObject * obj0 = 0 ;
28551 PyObject * obj1 = 0 ;
28552 char * kwnames[] = {
28553 (char *) "self",(char *) "editCancelled", NULL
28554 };
28555
28556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28558 if (!SWIG_IsOK(res1)) {
28559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28560 }
28561 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28562 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28563 if (!SWIG_IsOK(ecode2)) {
28564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28565 }
28566 arg2 = static_cast< bool >(val2);
28567 {
28568 PyThreadState* __tstate = wxPyBeginAllowThreads();
28569 (arg1)->SetEditCanceled(arg2);
28570 wxPyEndAllowThreads(__tstate);
28571 if (PyErr_Occurred()) SWIG_fail;
28572 }
28573 resultobj = SWIG_Py_Void();
28574 return resultobj;
28575fail:
28576 return NULL;
28577}
28578
28579
28580SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28581 PyObject *obj;
28582 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28583 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28584 return SWIG_Py_Void();
28585}
28586
28587SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28588 return SWIG_Python_InitShadowInstance(args);
28589}
28590
28591SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28592 PyObject *resultobj = 0;
28593 wxWindow *arg1 = (wxWindow *) 0 ;
28594 int arg2 = (int) -1 ;
28595 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28596 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28597 wxSize const &arg4_defvalue = wxDefaultSize ;
28598 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28599 long arg5 = (long) wxLC_ICON ;
28600 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28601 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28602 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28603 wxString *arg7 = (wxString *) &arg7_defvalue ;
28604 wxPyListCtrl *result = 0 ;
28605 void *argp1 = 0 ;
28606 int res1 = 0 ;
28607 int val2 ;
28608 int ecode2 = 0 ;
28609 wxPoint temp3 ;
28610 wxSize temp4 ;
28611 long val5 ;
28612 int ecode5 = 0 ;
28613 void *argp6 = 0 ;
28614 int res6 = 0 ;
28615 bool temp7 = false ;
28616 PyObject * obj0 = 0 ;
28617 PyObject * obj1 = 0 ;
28618 PyObject * obj2 = 0 ;
28619 PyObject * obj3 = 0 ;
28620 PyObject * obj4 = 0 ;
28621 PyObject * obj5 = 0 ;
28622 PyObject * obj6 = 0 ;
28623 char * kwnames[] = {
28624 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28625 };
28626
28627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28629 if (!SWIG_IsOK(res1)) {
28630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28631 }
28632 arg1 = reinterpret_cast< wxWindow * >(argp1);
28633 if (obj1) {
28634 ecode2 = SWIG_AsVal_int(obj1, &val2);
28635 if (!SWIG_IsOK(ecode2)) {
28636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28637 }
28638 arg2 = static_cast< int >(val2);
28639 }
28640 if (obj2) {
093d3ff1 28641 {
0085ce49
RD
28642 arg3 = &temp3;
28643 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 28644 }
0085ce49
RD
28645 }
28646 if (obj3) {
d14a1e28 28647 {
0085ce49
RD
28648 arg4 = &temp4;
28649 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 28650 }
0085ce49
RD
28651 }
28652 if (obj4) {
28653 ecode5 = SWIG_AsVal_long(obj4, &val5);
28654 if (!SWIG_IsOK(ecode5)) {
28655 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28656 }
28657 arg5 = static_cast< long >(val5);
28658 }
28659 if (obj5) {
28660 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28661 if (!SWIG_IsOK(res6)) {
28662 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 28663 }
0085ce49
RD
28664 if (!argp6) {
28665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28666 }
28667 arg6 = reinterpret_cast< wxValidator * >(argp6);
28668 }
28669 if (obj6) {
093d3ff1 28670 {
0085ce49
RD
28671 arg7 = wxString_in_helper(obj6);
28672 if (arg7 == NULL) SWIG_fail;
28673 temp7 = true;
093d3ff1 28674 }
0085ce49
RD
28675 }
28676 {
28677 if (!wxPyCheckForApp()) SWIG_fail;
28678 PyThreadState* __tstate = wxPyBeginAllowThreads();
28679 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28680 wxPyEndAllowThreads(__tstate);
28681 if (PyErr_Occurred()) SWIG_fail;
28682 }
28683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28684 {
28685 if (temp7)
28686 delete arg7;
28687 }
28688 return resultobj;
28689fail:
28690 {
28691 if (temp7)
28692 delete arg7;
28693 }
28694 return NULL;
d14a1e28
RD
28695}
28696
28697
0085ce49
RD
28698SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28699 PyObject *resultobj = 0;
28700 wxPyListCtrl *result = 0 ;
28701
28702 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28703 {
28704 if (!wxPyCheckForApp()) SWIG_fail;
28705 PyThreadState* __tstate = wxPyBeginAllowThreads();
28706 result = (wxPyListCtrl *)new wxPyListCtrl();
28707 wxPyEndAllowThreads(__tstate);
28708 if (PyErr_Occurred()) SWIG_fail;
28709 }
28710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28711 return resultobj;
28712fail:
28713 return NULL;
28714}
28715
28716
28717SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28718 PyObject *resultobj = 0;
28719 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28720 wxWindow *arg2 = (wxWindow *) 0 ;
28721 int arg3 = (int) -1 ;
28722 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28723 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28724 wxSize const &arg5_defvalue = wxDefaultSize ;
28725 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28726 long arg6 = (long) wxLC_ICON ;
28727 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28728 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28729 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28730 wxString *arg8 = (wxString *) &arg8_defvalue ;
28731 bool result;
28732 void *argp1 = 0 ;
28733 int res1 = 0 ;
28734 void *argp2 = 0 ;
28735 int res2 = 0 ;
28736 int val3 ;
28737 int ecode3 = 0 ;
28738 wxPoint temp4 ;
28739 wxSize temp5 ;
28740 long val6 ;
28741 int ecode6 = 0 ;
28742 void *argp7 = 0 ;
28743 int res7 = 0 ;
28744 bool temp8 = false ;
28745 PyObject * obj0 = 0 ;
28746 PyObject * obj1 = 0 ;
28747 PyObject * obj2 = 0 ;
28748 PyObject * obj3 = 0 ;
28749 PyObject * obj4 = 0 ;
28750 PyObject * obj5 = 0 ;
28751 PyObject * obj6 = 0 ;
28752 PyObject * obj7 = 0 ;
28753 char * kwnames[] = {
28754 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28755 };
28756
28757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28759 if (!SWIG_IsOK(res1)) {
28760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28761 }
28762 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28763 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28764 if (!SWIG_IsOK(res2)) {
28765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28766 }
28767 arg2 = reinterpret_cast< wxWindow * >(argp2);
28768 if (obj2) {
28769 ecode3 = SWIG_AsVal_int(obj2, &val3);
28770 if (!SWIG_IsOK(ecode3)) {
28771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28772 }
28773 arg3 = static_cast< int >(val3);
28774 }
28775 if (obj3) {
093d3ff1 28776 {
0085ce49
RD
28777 arg4 = &temp4;
28778 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 28779 }
0085ce49
RD
28780 }
28781 if (obj4) {
d14a1e28 28782 {
0085ce49
RD
28783 arg5 = &temp5;
28784 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 28785 }
0085ce49
RD
28786 }
28787 if (obj5) {
28788 ecode6 = SWIG_AsVal_long(obj5, &val6);
28789 if (!SWIG_IsOK(ecode6)) {
28790 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28791 }
28792 arg6 = static_cast< long >(val6);
28793 }
28794 if (obj6) {
28795 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28796 if (!SWIG_IsOK(res7)) {
28797 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 28798 }
0085ce49
RD
28799 if (!argp7) {
28800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 28801 }
0085ce49
RD
28802 arg7 = reinterpret_cast< wxValidator * >(argp7);
28803 }
28804 if (obj7) {
d14a1e28 28805 {
0085ce49
RD
28806 arg8 = wxString_in_helper(obj7);
28807 if (arg8 == NULL) SWIG_fail;
28808 temp8 = true;
d14a1e28 28809 }
0085ce49
RD
28810 }
28811 {
28812 PyThreadState* __tstate = wxPyBeginAllowThreads();
28813 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28814 wxPyEndAllowThreads(__tstate);
28815 if (PyErr_Occurred()) SWIG_fail;
28816 }
28817 {
28818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28819 }
28820 {
28821 if (temp8)
28822 delete arg8;
28823 }
28824 return resultobj;
28825fail:
28826 {
28827 if (temp8)
28828 delete arg8;
28829 }
28830 return NULL;
28831}
28832
28833
28834SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28835 PyObject *resultobj = 0;
28836 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28837 PyObject *arg2 = (PyObject *) 0 ;
28838 PyObject *arg3 = (PyObject *) 0 ;
28839 void *argp1 = 0 ;
28840 int res1 = 0 ;
28841 PyObject * obj0 = 0 ;
28842 PyObject * obj1 = 0 ;
28843 PyObject * obj2 = 0 ;
28844 char * kwnames[] = {
28845 (char *) "self",(char *) "self",(char *) "_class", NULL
28846 };
28847
28848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28850 if (!SWIG_IsOK(res1)) {
28851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28852 }
28853 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28854 arg2 = obj1;
28855 arg3 = obj2;
28856 {
28857 PyThreadState* __tstate = wxPyBeginAllowThreads();
28858 (arg1)->_setCallbackInfo(arg2,arg3);
28859 wxPyEndAllowThreads(__tstate);
28860 if (PyErr_Occurred()) SWIG_fail;
28861 }
28862 resultobj = SWIG_Py_Void();
28863 return resultobj;
28864fail:
28865 return NULL;
28866}
28867
28868
28869SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28870 PyObject *resultobj = 0;
28871 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28872 int arg2 ;
28873 wxListItem *result = 0 ;
28874 void *argp1 = 0 ;
28875 int res1 = 0 ;
28876 int val2 ;
28877 int ecode2 = 0 ;
28878 PyObject * obj0 = 0 ;
28879 PyObject * obj1 = 0 ;
28880 char * kwnames[] = {
28881 (char *) "self",(char *) "col", NULL
28882 };
28883
28884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28886 if (!SWIG_IsOK(res1)) {
28887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28888 }
28889 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28890 ecode2 = SWIG_AsVal_int(obj1, &val2);
28891 if (!SWIG_IsOK(ecode2)) {
28892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28893 }
28894 arg2 = static_cast< int >(val2);
28895 {
28896 PyThreadState* __tstate = wxPyBeginAllowThreads();
28897 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28898 wxPyEndAllowThreads(__tstate);
28899 if (PyErr_Occurred()) SWIG_fail;
28900 }
28901 {
28902 resultobj = wxPyMake_wxObject(result, (bool)0);
28903 }
28904 return resultobj;
28905fail:
28906 return NULL;
28907}
28908
28909
28910SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28911 PyObject *resultobj = 0;
28912 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28913 int arg2 ;
28914 wxListItem *arg3 = 0 ;
28915 bool result;
28916 void *argp1 = 0 ;
28917 int res1 = 0 ;
28918 int val2 ;
28919 int ecode2 = 0 ;
28920 void *argp3 = 0 ;
28921 int res3 = 0 ;
28922 PyObject * obj0 = 0 ;
28923 PyObject * obj1 = 0 ;
28924 PyObject * obj2 = 0 ;
28925 char * kwnames[] = {
28926 (char *) "self",(char *) "col",(char *) "item", NULL
28927 };
28928
28929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28931 if (!SWIG_IsOK(res1)) {
28932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28933 }
28934 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28935 ecode2 = SWIG_AsVal_int(obj1, &val2);
28936 if (!SWIG_IsOK(ecode2)) {
28937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28938 }
28939 arg2 = static_cast< int >(val2);
28940 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28941 if (!SWIG_IsOK(res3)) {
28942 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28943 }
28944 if (!argp3) {
28945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28946 }
28947 arg3 = reinterpret_cast< wxListItem * >(argp3);
28948 {
28949 PyThreadState* __tstate = wxPyBeginAllowThreads();
28950 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28951 wxPyEndAllowThreads(__tstate);
28952 if (PyErr_Occurred()) SWIG_fail;
28953 }
28954 {
28955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28956 }
28957 return resultobj;
28958fail:
28959 return NULL;
28960}
28961
28962
28963SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28964 PyObject *resultobj = 0;
28965 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28966 int arg2 ;
28967 int result;
28968 void *argp1 = 0 ;
28969 int res1 = 0 ;
28970 int val2 ;
28971 int ecode2 = 0 ;
28972 PyObject * obj0 = 0 ;
28973 PyObject * obj1 = 0 ;
28974 char * kwnames[] = {
28975 (char *) "self",(char *) "col", NULL
28976 };
28977
28978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28980 if (!SWIG_IsOK(res1)) {
28981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28982 }
28983 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28984 ecode2 = SWIG_AsVal_int(obj1, &val2);
28985 if (!SWIG_IsOK(ecode2)) {
28986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28987 }
28988 arg2 = static_cast< int >(val2);
28989 {
28990 PyThreadState* __tstate = wxPyBeginAllowThreads();
28991 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28992 wxPyEndAllowThreads(__tstate);
28993 if (PyErr_Occurred()) SWIG_fail;
28994 }
28995 resultobj = SWIG_From_int(static_cast< int >(result));
28996 return resultobj;
28997fail:
28998 return NULL;
28999}
29000
29001
29002SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29003 PyObject *resultobj = 0;
29004 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29005 int arg2 ;
29006 int arg3 ;
29007 bool result;
29008 void *argp1 = 0 ;
29009 int res1 = 0 ;
29010 int val2 ;
29011 int ecode2 = 0 ;
29012 int val3 ;
29013 int ecode3 = 0 ;
29014 PyObject * obj0 = 0 ;
29015 PyObject * obj1 = 0 ;
29016 PyObject * obj2 = 0 ;
29017 char * kwnames[] = {
29018 (char *) "self",(char *) "col",(char *) "width", NULL
29019 };
29020
29021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29023 if (!SWIG_IsOK(res1)) {
29024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29025 }
29026 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29027 ecode2 = SWIG_AsVal_int(obj1, &val2);
29028 if (!SWIG_IsOK(ecode2)) {
29029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29030 }
29031 arg2 = static_cast< int >(val2);
29032 ecode3 = SWIG_AsVal_int(obj2, &val3);
29033 if (!SWIG_IsOK(ecode3)) {
29034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29035 }
29036 arg3 = static_cast< int >(val3);
29037 {
29038 PyThreadState* __tstate = wxPyBeginAllowThreads();
29039 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29040 wxPyEndAllowThreads(__tstate);
29041 if (PyErr_Occurred()) SWIG_fail;
29042 }
29043 {
29044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29045 }
29046 return resultobj;
29047fail:
29048 return NULL;
d14a1e28
RD
29049}
29050
29051
0085ce49
RD
29052SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29053 PyObject *resultobj = 0;
29054 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29055 int result;
29056 void *argp1 = 0 ;
29057 int res1 = 0 ;
29058 PyObject *swig_obj[1] ;
29059
29060 if (!args) SWIG_fail;
29061 swig_obj[0] = args;
29062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29063 if (!SWIG_IsOK(res1)) {
29064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29065 }
29066 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29067 {
29068 PyThreadState* __tstate = wxPyBeginAllowThreads();
29069 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29070 wxPyEndAllowThreads(__tstate);
29071 if (PyErr_Occurred()) SWIG_fail;
29072 }
29073 resultobj = SWIG_From_int(static_cast< int >(result));
29074 return resultobj;
29075fail:
29076 return NULL;
d14a1e28
RD
29077}
29078
29079
0085ce49
RD
29080SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29081 PyObject *resultobj = 0;
29082 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29083 wxRect result;
29084 void *argp1 = 0 ;
29085 int res1 = 0 ;
29086 PyObject *swig_obj[1] ;
29087
29088 if (!args) SWIG_fail;
29089 swig_obj[0] = args;
29090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29091 if (!SWIG_IsOK(res1)) {
29092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29093 }
29094 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29095 {
29096 PyThreadState* __tstate = wxPyBeginAllowThreads();
29097 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29098 wxPyEndAllowThreads(__tstate);
29099 if (PyErr_Occurred()) SWIG_fail;
29100 }
29101 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29102 return resultobj;
29103fail:
29104 return NULL;
d14a1e28
RD
29105}
29106
29107
0085ce49
RD
29108SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29109 PyObject *resultobj = 0;
29110 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29111 wxTextCtrl *result = 0 ;
29112 void *argp1 = 0 ;
29113 int res1 = 0 ;
29114 PyObject *swig_obj[1] ;
29115
29116 if (!args) SWIG_fail;
29117 swig_obj[0] = args;
29118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29119 if (!SWIG_IsOK(res1)) {
29120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29121 }
29122 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29123 {
29124 PyThreadState* __tstate = wxPyBeginAllowThreads();
29125 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29126 wxPyEndAllowThreads(__tstate);
29127 if (PyErr_Occurred()) SWIG_fail;
29128 }
29129 {
29130 resultobj = wxPyMake_wxObject(result, 0);
29131 }
29132 return resultobj;
29133fail:
29134 return NULL;
29135}
29136
29137
29138SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29139 PyObject *resultobj = 0;
29140 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29141 long arg2 ;
29142 int arg3 = (int) 0 ;
29143 wxListItem *result = 0 ;
29144 void *argp1 = 0 ;
29145 int res1 = 0 ;
29146 long val2 ;
29147 int ecode2 = 0 ;
29148 int val3 ;
29149 int ecode3 = 0 ;
29150 PyObject * obj0 = 0 ;
29151 PyObject * obj1 = 0 ;
29152 PyObject * obj2 = 0 ;
29153 char * kwnames[] = {
29154 (char *) "self",(char *) "itemId",(char *) "col", NULL
29155 };
29156
29157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29159 if (!SWIG_IsOK(res1)) {
29160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29161 }
29162 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29163 ecode2 = SWIG_AsVal_long(obj1, &val2);
29164 if (!SWIG_IsOK(ecode2)) {
29165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29166 }
29167 arg2 = static_cast< long >(val2);
29168 if (obj2) {
29169 ecode3 = SWIG_AsVal_int(obj2, &val3);
29170 if (!SWIG_IsOK(ecode3)) {
29171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29172 }
29173 arg3 = static_cast< int >(val3);
29174 }
29175 {
29176 PyThreadState* __tstate = wxPyBeginAllowThreads();
29177 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29178 wxPyEndAllowThreads(__tstate);
29179 if (PyErr_Occurred()) SWIG_fail;
29180 }
29181 {
29182 resultobj = wxPyMake_wxObject(result, (bool)0);
29183 }
29184 return resultobj;
29185fail:
29186 return NULL;
29187}
29188
29189
29190SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29191 PyObject *resultobj = 0;
29192 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29193 wxListItem *arg2 = 0 ;
29194 bool result;
29195 void *argp1 = 0 ;
29196 int res1 = 0 ;
29197 void *argp2 = 0 ;
29198 int res2 = 0 ;
29199 PyObject * obj0 = 0 ;
29200 PyObject * obj1 = 0 ;
29201 char * kwnames[] = {
29202 (char *) "self",(char *) "info", NULL
29203 };
29204
29205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29207 if (!SWIG_IsOK(res1)) {
29208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29209 }
29210 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29212 if (!SWIG_IsOK(res2)) {
29213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29214 }
29215 if (!argp2) {
29216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29217 }
29218 arg2 = reinterpret_cast< wxListItem * >(argp2);
29219 {
29220 PyThreadState* __tstate = wxPyBeginAllowThreads();
29221 result = (bool)(arg1)->SetItem(*arg2);
29222 wxPyEndAllowThreads(__tstate);
29223 if (PyErr_Occurred()) SWIG_fail;
29224 }
29225 {
29226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29227 }
29228 return resultobj;
29229fail:
29230 return NULL;
29231}
29232
29233
29234SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29235 PyObject *resultobj = 0;
29236 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29237 long arg2 ;
29238 int arg3 ;
29239 wxString *arg4 = 0 ;
29240 int arg5 = (int) -1 ;
29241 long result;
29242 void *argp1 = 0 ;
29243 int res1 = 0 ;
29244 long val2 ;
29245 int ecode2 = 0 ;
29246 int val3 ;
29247 int ecode3 = 0 ;
29248 bool temp4 = false ;
29249 int val5 ;
29250 int ecode5 = 0 ;
29251 PyObject * obj0 = 0 ;
29252 PyObject * obj1 = 0 ;
29253 PyObject * obj2 = 0 ;
29254 PyObject * obj3 = 0 ;
29255 PyObject * obj4 = 0 ;
29256 char * kwnames[] = {
29257 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29258 };
29259
29260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29262 if (!SWIG_IsOK(res1)) {
29263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29264 }
29265 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29266 ecode2 = SWIG_AsVal_long(obj1, &val2);
29267 if (!SWIG_IsOK(ecode2)) {
29268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29269 }
29270 arg2 = static_cast< long >(val2);
29271 ecode3 = SWIG_AsVal_int(obj2, &val3);
29272 if (!SWIG_IsOK(ecode3)) {
29273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29274 }
29275 arg3 = static_cast< int >(val3);
29276 {
29277 arg4 = wxString_in_helper(obj3);
29278 if (arg4 == NULL) SWIG_fail;
29279 temp4 = true;
29280 }
29281 if (obj4) {
29282 ecode5 = SWIG_AsVal_int(obj4, &val5);
29283 if (!SWIG_IsOK(ecode5)) {
29284 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29285 }
29286 arg5 = static_cast< int >(val5);
29287 }
29288 {
29289 PyThreadState* __tstate = wxPyBeginAllowThreads();
29290 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29291 wxPyEndAllowThreads(__tstate);
29292 if (PyErr_Occurred()) SWIG_fail;
29293 }
29294 resultobj = SWIG_From_long(static_cast< long >(result));
29295 {
29296 if (temp4)
29297 delete arg4;
29298 }
29299 return resultobj;
29300fail:
29301 {
29302 if (temp4)
29303 delete arg4;
29304 }
29305 return NULL;
29306}
29307
29308
29309SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29310 PyObject *resultobj = 0;
29311 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29312 long arg2 ;
29313 long arg3 ;
29314 int result;
29315 void *argp1 = 0 ;
29316 int res1 = 0 ;
29317 long val2 ;
29318 int ecode2 = 0 ;
29319 long val3 ;
29320 int ecode3 = 0 ;
29321 PyObject * obj0 = 0 ;
29322 PyObject * obj1 = 0 ;
29323 PyObject * obj2 = 0 ;
29324 char * kwnames[] = {
29325 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29326 };
29327
29328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29330 if (!SWIG_IsOK(res1)) {
29331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29332 }
29333 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29334 ecode2 = SWIG_AsVal_long(obj1, &val2);
29335 if (!SWIG_IsOK(ecode2)) {
29336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29337 }
29338 arg2 = static_cast< long >(val2);
29339 ecode3 = SWIG_AsVal_long(obj2, &val3);
29340 if (!SWIG_IsOK(ecode3)) {
29341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29342 }
29343 arg3 = static_cast< long >(val3);
29344 {
29345 PyThreadState* __tstate = wxPyBeginAllowThreads();
29346 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29347 wxPyEndAllowThreads(__tstate);
29348 if (PyErr_Occurred()) SWIG_fail;
29349 }
29350 resultobj = SWIG_From_int(static_cast< int >(result));
29351 return resultobj;
29352fail:
29353 return NULL;
29354}
29355
29356
29357SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29358 PyObject *resultobj = 0;
29359 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29360 long arg2 ;
29361 long arg3 ;
29362 long arg4 ;
29363 bool result;
29364 void *argp1 = 0 ;
29365 int res1 = 0 ;
29366 long val2 ;
29367 int ecode2 = 0 ;
29368 long val3 ;
29369 int ecode3 = 0 ;
29370 long val4 ;
29371 int ecode4 = 0 ;
29372 PyObject * obj0 = 0 ;
29373 PyObject * obj1 = 0 ;
29374 PyObject * obj2 = 0 ;
29375 PyObject * obj3 = 0 ;
29376 char * kwnames[] = {
29377 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29378 };
29379
29380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29382 if (!SWIG_IsOK(res1)) {
29383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29384 }
29385 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29386 ecode2 = SWIG_AsVal_long(obj1, &val2);
29387 if (!SWIG_IsOK(ecode2)) {
29388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29389 }
29390 arg2 = static_cast< long >(val2);
29391 ecode3 = SWIG_AsVal_long(obj2, &val3);
29392 if (!SWIG_IsOK(ecode3)) {
29393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29394 }
29395 arg3 = static_cast< long >(val3);
29396 ecode4 = SWIG_AsVal_long(obj3, &val4);
29397 if (!SWIG_IsOK(ecode4)) {
29398 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29399 }
29400 arg4 = static_cast< long >(val4);
29401 {
29402 PyThreadState* __tstate = wxPyBeginAllowThreads();
29403 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29404 wxPyEndAllowThreads(__tstate);
29405 if (PyErr_Occurred()) SWIG_fail;
29406 }
29407 {
29408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29409 }
29410 return resultobj;
29411fail:
29412 return NULL;
29413}
29414
29415
29416SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29417 PyObject *resultobj = 0;
29418 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29419 long arg2 ;
29420 int arg3 ;
29421 int arg4 = (int) -1 ;
29422 bool result;
29423 void *argp1 = 0 ;
29424 int res1 = 0 ;
29425 long val2 ;
29426 int ecode2 = 0 ;
29427 int val3 ;
29428 int ecode3 = 0 ;
29429 int val4 ;
29430 int ecode4 = 0 ;
29431 PyObject * obj0 = 0 ;
29432 PyObject * obj1 = 0 ;
29433 PyObject * obj2 = 0 ;
29434 PyObject * obj3 = 0 ;
29435 char * kwnames[] = {
29436 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29437 };
29438
29439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29441 if (!SWIG_IsOK(res1)) {
29442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29443 }
29444 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29445 ecode2 = SWIG_AsVal_long(obj1, &val2);
29446 if (!SWIG_IsOK(ecode2)) {
29447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29448 }
29449 arg2 = static_cast< long >(val2);
29450 ecode3 = SWIG_AsVal_int(obj2, &val3);
29451 if (!SWIG_IsOK(ecode3)) {
29452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29453 }
29454 arg3 = static_cast< int >(val3);
29455 if (obj3) {
29456 ecode4 = SWIG_AsVal_int(obj3, &val4);
29457 if (!SWIG_IsOK(ecode4)) {
29458 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29459 }
29460 arg4 = static_cast< int >(val4);
29461 }
29462 {
29463 PyThreadState* __tstate = wxPyBeginAllowThreads();
29464 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29465 wxPyEndAllowThreads(__tstate);
29466 if (PyErr_Occurred()) SWIG_fail;
29467 }
29468 {
29469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29470 }
29471 return resultobj;
29472fail:
29473 return NULL;
29474}
29475
29476
29477SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29478 PyObject *resultobj = 0;
29479 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29480 long arg2 ;
29481 long arg3 ;
29482 int arg4 ;
29483 bool result;
29484 void *argp1 = 0 ;
29485 int res1 = 0 ;
29486 long val2 ;
29487 int ecode2 = 0 ;
29488 long val3 ;
29489 int ecode3 = 0 ;
29490 int val4 ;
29491 int ecode4 = 0 ;
29492 PyObject * obj0 = 0 ;
29493 PyObject * obj1 = 0 ;
29494 PyObject * obj2 = 0 ;
29495 PyObject * obj3 = 0 ;
29496 char * kwnames[] = {
29497 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29498 };
29499
29500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29502 if (!SWIG_IsOK(res1)) {
29503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29504 }
29505 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29506 ecode2 = SWIG_AsVal_long(obj1, &val2);
29507 if (!SWIG_IsOK(ecode2)) {
29508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29509 }
29510 arg2 = static_cast< long >(val2);
29511 ecode3 = SWIG_AsVal_long(obj2, &val3);
29512 if (!SWIG_IsOK(ecode3)) {
29513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29514 }
29515 arg3 = static_cast< long >(val3);
29516 ecode4 = SWIG_AsVal_int(obj3, &val4);
29517 if (!SWIG_IsOK(ecode4)) {
29518 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29519 }
29520 arg4 = static_cast< int >(val4);
29521 {
29522 PyThreadState* __tstate = wxPyBeginAllowThreads();
29523 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29524 wxPyEndAllowThreads(__tstate);
29525 if (PyErr_Occurred()) SWIG_fail;
29526 }
29527 {
29528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29529 }
29530 return resultobj;
29531fail:
29532 return NULL;
29533}
29534
29535
29536SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29537 PyObject *resultobj = 0;
29538 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29539 long arg2 ;
29540 wxString result;
29541 void *argp1 = 0 ;
29542 int res1 = 0 ;
29543 long val2 ;
29544 int ecode2 = 0 ;
29545 PyObject * obj0 = 0 ;
29546 PyObject * obj1 = 0 ;
29547 char * kwnames[] = {
29548 (char *) "self",(char *) "item", NULL
29549 };
29550
29551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29553 if (!SWIG_IsOK(res1)) {
29554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29555 }
29556 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29557 ecode2 = SWIG_AsVal_long(obj1, &val2);
29558 if (!SWIG_IsOK(ecode2)) {
29559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29560 }
29561 arg2 = static_cast< long >(val2);
29562 {
29563 PyThreadState* __tstate = wxPyBeginAllowThreads();
29564 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29565 wxPyEndAllowThreads(__tstate);
29566 if (PyErr_Occurred()) SWIG_fail;
29567 }
29568 {
29569#if wxUSE_UNICODE
29570 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29571#else
29572 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29573#endif
29574 }
29575 return resultobj;
29576fail:
29577 return NULL;
29578}
29579
29580
29581SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29582 PyObject *resultobj = 0;
29583 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29584 long arg2 ;
29585 wxString *arg3 = 0 ;
29586 void *argp1 = 0 ;
29587 int res1 = 0 ;
29588 long val2 ;
29589 int ecode2 = 0 ;
29590 bool temp3 = false ;
29591 PyObject * obj0 = 0 ;
29592 PyObject * obj1 = 0 ;
29593 PyObject * obj2 = 0 ;
29594 char * kwnames[] = {
29595 (char *) "self",(char *) "item",(char *) "str", NULL
29596 };
29597
29598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29600 if (!SWIG_IsOK(res1)) {
29601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29602 }
29603 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29604 ecode2 = SWIG_AsVal_long(obj1, &val2);
29605 if (!SWIG_IsOK(ecode2)) {
29606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29607 }
29608 arg2 = static_cast< long >(val2);
29609 {
29610 arg3 = wxString_in_helper(obj2);
29611 if (arg3 == NULL) SWIG_fail;
29612 temp3 = true;
29613 }
29614 {
29615 PyThreadState* __tstate = wxPyBeginAllowThreads();
29616 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29617 wxPyEndAllowThreads(__tstate);
29618 if (PyErr_Occurred()) SWIG_fail;
29619 }
29620 resultobj = SWIG_Py_Void();
29621 {
29622 if (temp3)
29623 delete arg3;
29624 }
29625 return resultobj;
29626fail:
29627 {
29628 if (temp3)
29629 delete arg3;
29630 }
29631 return NULL;
29632}
29633
29634
29635SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29636 PyObject *resultobj = 0;
29637 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29638 long arg2 ;
29639 long result;
29640 void *argp1 = 0 ;
29641 int res1 = 0 ;
29642 long val2 ;
29643 int ecode2 = 0 ;
29644 PyObject * obj0 = 0 ;
29645 PyObject * obj1 = 0 ;
29646 char * kwnames[] = {
29647 (char *) "self",(char *) "item", NULL
29648 };
29649
29650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29652 if (!SWIG_IsOK(res1)) {
29653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29654 }
29655 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29656 ecode2 = SWIG_AsVal_long(obj1, &val2);
29657 if (!SWIG_IsOK(ecode2)) {
29658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29659 }
29660 arg2 = static_cast< long >(val2);
29661 {
29662 PyThreadState* __tstate = wxPyBeginAllowThreads();
29663 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29664 wxPyEndAllowThreads(__tstate);
29665 if (PyErr_Occurred()) SWIG_fail;
29666 }
29667 resultobj = SWIG_From_long(static_cast< long >(result));
29668 return resultobj;
29669fail:
29670 return NULL;
29671}
29672
29673
29674SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29675 PyObject *resultobj = 0;
29676 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29677 long arg2 ;
29678 long arg3 ;
29679 bool result;
29680 void *argp1 = 0 ;
29681 int res1 = 0 ;
29682 long val2 ;
29683 int ecode2 = 0 ;
29684 long val3 ;
29685 int ecode3 = 0 ;
29686 PyObject * obj0 = 0 ;
29687 PyObject * obj1 = 0 ;
29688 PyObject * obj2 = 0 ;
29689 char * kwnames[] = {
29690 (char *) "self",(char *) "item",(char *) "data", NULL
29691 };
29692
29693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29695 if (!SWIG_IsOK(res1)) {
29696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29697 }
29698 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29699 ecode2 = SWIG_AsVal_long(obj1, &val2);
29700 if (!SWIG_IsOK(ecode2)) {
29701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29702 }
29703 arg2 = static_cast< long >(val2);
29704 ecode3 = SWIG_AsVal_long(obj2, &val3);
29705 if (!SWIG_IsOK(ecode3)) {
29706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29707 }
29708 arg3 = static_cast< long >(val3);
29709 {
29710 PyThreadState* __tstate = wxPyBeginAllowThreads();
29711 result = (bool)(arg1)->SetItemData(arg2,arg3);
29712 wxPyEndAllowThreads(__tstate);
29713 if (PyErr_Occurred()) SWIG_fail;
29714 }
29715 {
29716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29717 }
29718 return resultobj;
29719fail:
29720 return NULL;
29721}
29722
29723
29724SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29725 PyObject *resultobj = 0;
29726 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29727 long arg2 ;
29728 wxPoint result;
29729 void *argp1 = 0 ;
29730 int res1 = 0 ;
29731 long val2 ;
29732 int ecode2 = 0 ;
29733 PyObject * obj0 = 0 ;
29734 PyObject * obj1 = 0 ;
29735 char * kwnames[] = {
29736 (char *) "self",(char *) "item", NULL
29737 };
29738
29739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29741 if (!SWIG_IsOK(res1)) {
29742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29743 }
29744 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29745 ecode2 = SWIG_AsVal_long(obj1, &val2);
29746 if (!SWIG_IsOK(ecode2)) {
29747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29748 }
29749 arg2 = static_cast< long >(val2);
29750 {
29751 PyThreadState* __tstate = wxPyBeginAllowThreads();
29752 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29753 wxPyEndAllowThreads(__tstate);
29754 if (PyErr_Occurred()) SWIG_fail;
29755 }
29756 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29757 return resultobj;
29758fail:
29759 return NULL;
29760}
29761
29762
29763SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29764 PyObject *resultobj = 0;
29765 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29766 long arg2 ;
29767 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29768 wxRect result;
29769 void *argp1 = 0 ;
29770 int res1 = 0 ;
29771 long val2 ;
29772 int ecode2 = 0 ;
29773 int val3 ;
29774 int ecode3 = 0 ;
29775 PyObject * obj0 = 0 ;
29776 PyObject * obj1 = 0 ;
29777 PyObject * obj2 = 0 ;
29778 char * kwnames[] = {
29779 (char *) "self",(char *) "item",(char *) "code", NULL
29780 };
29781
29782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29784 if (!SWIG_IsOK(res1)) {
29785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29786 }
29787 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29788 ecode2 = SWIG_AsVal_long(obj1, &val2);
29789 if (!SWIG_IsOK(ecode2)) {
29790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29791 }
29792 arg2 = static_cast< long >(val2);
29793 if (obj2) {
29794 ecode3 = SWIG_AsVal_int(obj2, &val3);
29795 if (!SWIG_IsOK(ecode3)) {
29796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29797 }
29798 arg3 = static_cast< int >(val3);
29799 }
29800 {
29801 PyThreadState* __tstate = wxPyBeginAllowThreads();
29802 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29803 wxPyEndAllowThreads(__tstate);
29804 if (PyErr_Occurred()) SWIG_fail;
29805 }
29806 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29807 return resultobj;
29808fail:
29809 return NULL;
29810}
29811
29812
29813SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29814 PyObject *resultobj = 0;
29815 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29816 long arg2 ;
29817 wxPoint *arg3 = 0 ;
29818 bool result;
29819 void *argp1 = 0 ;
29820 int res1 = 0 ;
29821 long val2 ;
29822 int ecode2 = 0 ;
29823 wxPoint temp3 ;
29824 PyObject * obj0 = 0 ;
29825 PyObject * obj1 = 0 ;
29826 PyObject * obj2 = 0 ;
29827 char * kwnames[] = {
29828 (char *) "self",(char *) "item",(char *) "pos", NULL
29829 };
29830
29831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29833 if (!SWIG_IsOK(res1)) {
29834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29835 }
29836 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29837 ecode2 = SWIG_AsVal_long(obj1, &val2);
29838 if (!SWIG_IsOK(ecode2)) {
29839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29840 }
29841 arg2 = static_cast< long >(val2);
29842 {
29843 arg3 = &temp3;
29844 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29845 }
29846 {
29847 PyThreadState* __tstate = wxPyBeginAllowThreads();
29848 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29849 wxPyEndAllowThreads(__tstate);
29850 if (PyErr_Occurred()) SWIG_fail;
29851 }
29852 {
29853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29854 }
29855 return resultobj;
29856fail:
29857 return NULL;
d14a1e28
RD
29858}
29859
29860
0085ce49
RD
29861SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29862 PyObject *resultobj = 0;
29863 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29864 int result;
29865 void *argp1 = 0 ;
29866 int res1 = 0 ;
29867 PyObject *swig_obj[1] ;
29868
29869 if (!args) SWIG_fail;
29870 swig_obj[0] = args;
29871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29872 if (!SWIG_IsOK(res1)) {
29873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29874 }
29875 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29876 {
29877 PyThreadState* __tstate = wxPyBeginAllowThreads();
29878 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29879 wxPyEndAllowThreads(__tstate);
29880 if (PyErr_Occurred()) SWIG_fail;
29881 }
29882 resultobj = SWIG_From_int(static_cast< int >(result));
29883 return resultobj;
29884fail:
29885 return NULL;
d14a1e28
RD
29886}
29887
29888
0085ce49
RD
29889SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29890 PyObject *resultobj = 0;
29891 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29892 int result;
29893 void *argp1 = 0 ;
29894 int res1 = 0 ;
29895 PyObject *swig_obj[1] ;
29896
29897 if (!args) SWIG_fail;
29898 swig_obj[0] = args;
29899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29900 if (!SWIG_IsOK(res1)) {
29901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29902 }
29903 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29904 {
29905 PyThreadState* __tstate = wxPyBeginAllowThreads();
29906 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29907 wxPyEndAllowThreads(__tstate);
29908 if (PyErr_Occurred()) SWIG_fail;
29909 }
29910 resultobj = SWIG_From_int(static_cast< int >(result));
29911 return resultobj;
29912fail:
29913 return NULL;
d14a1e28
RD
29914}
29915
29916
0085ce49
RD
29917SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29918 PyObject *resultobj = 0;
29919 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29920 wxSize result;
29921 void *argp1 = 0 ;
29922 int res1 = 0 ;
29923 PyObject *swig_obj[1] ;
29924
29925 if (!args) SWIG_fail;
29926 swig_obj[0] = args;
29927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29928 if (!SWIG_IsOK(res1)) {
29929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29930 }
29931 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29932 {
29933 PyThreadState* __tstate = wxPyBeginAllowThreads();
29934 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29935 wxPyEndAllowThreads(__tstate);
29936 if (PyErr_Occurred()) SWIG_fail;
29937 }
29938 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29939 return resultobj;
29940fail:
29941 return NULL;
29942}
29943
29944
29945SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29946 PyObject *resultobj = 0;
29947 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29948 int arg2 ;
29949 bool arg3 = (bool) false ;
29950 void *argp1 = 0 ;
29951 int res1 = 0 ;
29952 int val2 ;
29953 int ecode2 = 0 ;
29954 bool val3 ;
29955 int ecode3 = 0 ;
29956 PyObject * obj0 = 0 ;
29957 PyObject * obj1 = 0 ;
29958 PyObject * obj2 = 0 ;
29959 char * kwnames[] = {
29960 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29961 };
29962
29963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29965 if (!SWIG_IsOK(res1)) {
29966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29967 }
29968 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29969 ecode2 = SWIG_AsVal_int(obj1, &val2);
29970 if (!SWIG_IsOK(ecode2)) {
29971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29972 }
29973 arg2 = static_cast< int >(val2);
29974 if (obj2) {
29975 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29976 if (!SWIG_IsOK(ecode3)) {
29977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29978 }
29979 arg3 = static_cast< bool >(val3);
29980 }
29981 {
29982 PyThreadState* __tstate = wxPyBeginAllowThreads();
29983 (arg1)->SetItemSpacing(arg2,arg3);
29984 wxPyEndAllowThreads(__tstate);
29985 if (PyErr_Occurred()) SWIG_fail;
29986 }
29987 resultobj = SWIG_Py_Void();
29988 return resultobj;
29989fail:
29990 return NULL;
22bfe96c
RD
29991}
29992
29993
0085ce49
RD
29994SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29995 PyObject *resultobj = 0;
29996 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29997 int result;
29998 void *argp1 = 0 ;
29999 int res1 = 0 ;
30000 PyObject *swig_obj[1] ;
30001
30002 if (!args) SWIG_fail;
30003 swig_obj[0] = args;
30004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30005 if (!SWIG_IsOK(res1)) {
30006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30007 }
30008 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30009 {
30010 PyThreadState* __tstate = wxPyBeginAllowThreads();
30011 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30012 wxPyEndAllowThreads(__tstate);
30013 if (PyErr_Occurred()) SWIG_fail;
30014 }
30015 resultobj = SWIG_From_int(static_cast< int >(result));
30016 return resultobj;
30017fail:
30018 return NULL;
d14a1e28
RD
30019}
30020
30021
0085ce49
RD
30022SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30023 PyObject *resultobj = 0;
30024 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30025 wxColour result;
30026 void *argp1 = 0 ;
30027 int res1 = 0 ;
30028 PyObject *swig_obj[1] ;
30029
30030 if (!args) SWIG_fail;
30031 swig_obj[0] = args;
30032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30033 if (!SWIG_IsOK(res1)) {
30034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30035 }
30036 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30037 {
30038 PyThreadState* __tstate = wxPyBeginAllowThreads();
30039 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30040 wxPyEndAllowThreads(__tstate);
30041 if (PyErr_Occurred()) SWIG_fail;
30042 }
30043 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30044 return resultobj;
30045fail:
30046 return NULL;
30047}
30048
30049
30050SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30051 PyObject *resultobj = 0;
30052 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30053 wxColour *arg2 = 0 ;
30054 void *argp1 = 0 ;
30055 int res1 = 0 ;
30056 wxColour temp2 ;
30057 PyObject * obj0 = 0 ;
30058 PyObject * obj1 = 0 ;
30059 char * kwnames[] = {
30060 (char *) "self",(char *) "col", NULL
30061 };
30062
30063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30065 if (!SWIG_IsOK(res1)) {
30066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30067 }
30068 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30069 {
30070 arg2 = &temp2;
30071 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30072 }
30073 {
30074 PyThreadState* __tstate = wxPyBeginAllowThreads();
30075 (arg1)->SetTextColour((wxColour const &)*arg2);
30076 wxPyEndAllowThreads(__tstate);
30077 if (PyErr_Occurred()) SWIG_fail;
30078 }
30079 resultobj = SWIG_Py_Void();
30080 return resultobj;
30081fail:
30082 return NULL;
d14a1e28
RD
30083}
30084
30085
0085ce49
RD
30086SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30087 PyObject *resultobj = 0;
30088 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30089 long result;
30090 void *argp1 = 0 ;
30091 int res1 = 0 ;
30092 PyObject *swig_obj[1] ;
30093
30094 if (!args) SWIG_fail;
30095 swig_obj[0] = args;
30096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30097 if (!SWIG_IsOK(res1)) {
30098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30099 }
30100 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30101 {
30102 PyThreadState* __tstate = wxPyBeginAllowThreads();
30103 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30104 wxPyEndAllowThreads(__tstate);
30105 if (PyErr_Occurred()) SWIG_fail;
30106 }
30107 resultobj = SWIG_From_long(static_cast< long >(result));
30108 return resultobj;
30109fail:
30110 return NULL;
30111}
30112
30113
30114SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30115 PyObject *resultobj = 0;
30116 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30117 long arg2 ;
30118 bool arg3 = (bool) true ;
30119 void *argp1 = 0 ;
30120 int res1 = 0 ;
30121 long val2 ;
30122 int ecode2 = 0 ;
30123 bool val3 ;
30124 int ecode3 = 0 ;
30125 PyObject * obj0 = 0 ;
30126 PyObject * obj1 = 0 ;
30127 PyObject * obj2 = 0 ;
30128 char * kwnames[] = {
30129 (char *) "self",(char *) "style",(char *) "add", NULL
30130 };
30131
30132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30134 if (!SWIG_IsOK(res1)) {
30135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30136 }
30137 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30138 ecode2 = SWIG_AsVal_long(obj1, &val2);
30139 if (!SWIG_IsOK(ecode2)) {
30140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30141 }
30142 arg2 = static_cast< long >(val2);
30143 if (obj2) {
30144 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30145 if (!SWIG_IsOK(ecode3)) {
30146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30147 }
30148 arg3 = static_cast< bool >(val3);
30149 }
30150 {
30151 PyThreadState* __tstate = wxPyBeginAllowThreads();
30152 (arg1)->SetSingleStyle(arg2,arg3);
30153 wxPyEndAllowThreads(__tstate);
30154 if (PyErr_Occurred()) SWIG_fail;
30155 }
30156 resultobj = SWIG_Py_Void();
30157 return resultobj;
30158fail:
30159 return NULL;
30160}
30161
30162
30163SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30164 PyObject *resultobj = 0;
30165 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30166 long arg2 ;
30167 int arg3 = (int) wxLIST_NEXT_ALL ;
30168 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30169 long result;
30170 void *argp1 = 0 ;
30171 int res1 = 0 ;
30172 long val2 ;
30173 int ecode2 = 0 ;
30174 int val3 ;
30175 int ecode3 = 0 ;
30176 int val4 ;
30177 int ecode4 = 0 ;
30178 PyObject * obj0 = 0 ;
30179 PyObject * obj1 = 0 ;
30180 PyObject * obj2 = 0 ;
30181 PyObject * obj3 = 0 ;
30182 char * kwnames[] = {
30183 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30184 };
30185
30186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30188 if (!SWIG_IsOK(res1)) {
30189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30190 }
30191 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30192 ecode2 = SWIG_AsVal_long(obj1, &val2);
30193 if (!SWIG_IsOK(ecode2)) {
30194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30195 }
30196 arg2 = static_cast< long >(val2);
30197 if (obj2) {
30198 ecode3 = SWIG_AsVal_int(obj2, &val3);
30199 if (!SWIG_IsOK(ecode3)) {
30200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30201 }
30202 arg3 = static_cast< int >(val3);
30203 }
30204 if (obj3) {
30205 ecode4 = SWIG_AsVal_int(obj3, &val4);
30206 if (!SWIG_IsOK(ecode4)) {
30207 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30208 }
30209 arg4 = static_cast< int >(val4);
30210 }
30211 {
30212 PyThreadState* __tstate = wxPyBeginAllowThreads();
30213 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30214 wxPyEndAllowThreads(__tstate);
30215 if (PyErr_Occurred()) SWIG_fail;
30216 }
30217 resultobj = SWIG_From_long(static_cast< long >(result));
30218 return resultobj;
30219fail:
30220 return NULL;
30221}
30222
30223
30224SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30225 PyObject *resultobj = 0;
30226 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30227 int arg2 ;
30228 wxImageList *result = 0 ;
30229 void *argp1 = 0 ;
30230 int res1 = 0 ;
30231 int val2 ;
30232 int ecode2 = 0 ;
30233 PyObject * obj0 = 0 ;
30234 PyObject * obj1 = 0 ;
30235 char * kwnames[] = {
30236 (char *) "self",(char *) "which", NULL
30237 };
30238
30239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30241 if (!SWIG_IsOK(res1)) {
30242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30243 }
30244 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30245 ecode2 = SWIG_AsVal_int(obj1, &val2);
30246 if (!SWIG_IsOK(ecode2)) {
30247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30248 }
30249 arg2 = static_cast< int >(val2);
30250 {
30251 PyThreadState* __tstate = wxPyBeginAllowThreads();
30252 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30253 wxPyEndAllowThreads(__tstate);
30254 if (PyErr_Occurred()) SWIG_fail;
30255 }
30256 {
30257 resultobj = wxPyMake_wxObject(result, (bool)0);
30258 }
30259 return resultobj;
30260fail:
30261 return NULL;
30262}
30263
30264
30265SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30266 PyObject *resultobj = 0;
30267 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30268 wxImageList *arg2 = (wxImageList *) 0 ;
30269 int arg3 ;
30270 void *argp1 = 0 ;
30271 int res1 = 0 ;
30272 void *argp2 = 0 ;
30273 int res2 = 0 ;
30274 int val3 ;
30275 int ecode3 = 0 ;
30276 PyObject * obj0 = 0 ;
30277 PyObject * obj1 = 0 ;
30278 PyObject * obj2 = 0 ;
30279 char * kwnames[] = {
30280 (char *) "self",(char *) "imageList",(char *) "which", NULL
30281 };
30282
30283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30285 if (!SWIG_IsOK(res1)) {
30286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30287 }
30288 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30289 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30290 if (!SWIG_IsOK(res2)) {
30291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30292 }
30293 arg2 = reinterpret_cast< wxImageList * >(argp2);
30294 ecode3 = SWIG_AsVal_int(obj2, &val3);
30295 if (!SWIG_IsOK(ecode3)) {
30296 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30297 }
30298 arg3 = static_cast< int >(val3);
30299 {
30300 PyThreadState* __tstate = wxPyBeginAllowThreads();
30301 (arg1)->SetImageList(arg2,arg3);
30302 wxPyEndAllowThreads(__tstate);
30303 if (PyErr_Occurred()) SWIG_fail;
30304 }
30305 resultobj = SWIG_Py_Void();
30306 return resultobj;
30307fail:
30308 return NULL;
30309}
30310
30311
30312SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30313 PyObject *resultobj = 0;
30314 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30315 wxImageList *arg2 = (wxImageList *) 0 ;
30316 int arg3 ;
30317 void *argp1 = 0 ;
30318 int res1 = 0 ;
30319 int res2 = 0 ;
30320 int val3 ;
30321 int ecode3 = 0 ;
30322 PyObject * obj0 = 0 ;
30323 PyObject * obj1 = 0 ;
30324 PyObject * obj2 = 0 ;
30325 char * kwnames[] = {
30326 (char *) "self",(char *) "imageList",(char *) "which", NULL
30327 };
30328
30329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30331 if (!SWIG_IsOK(res1)) {
30332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30333 }
30334 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30335 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30336 if (!SWIG_IsOK(res2)) {
30337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30338 }
30339 ecode3 = SWIG_AsVal_int(obj2, &val3);
30340 if (!SWIG_IsOK(ecode3)) {
30341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30342 }
30343 arg3 = static_cast< int >(val3);
30344 {
30345 PyThreadState* __tstate = wxPyBeginAllowThreads();
30346 (arg1)->AssignImageList(arg2,arg3);
30347 wxPyEndAllowThreads(__tstate);
30348 if (PyErr_Occurred()) SWIG_fail;
30349 }
30350 resultobj = SWIG_Py_Void();
30351 return resultobj;
30352fail:
30353 return NULL;
d14a1e28
RD
30354}
30355
30356
0085ce49
RD
30357SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30358 PyObject *resultobj = 0;
30359 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30360 bool result;
30361 void *argp1 = 0 ;
30362 int res1 = 0 ;
30363 PyObject *swig_obj[1] ;
30364
30365 if (!args) SWIG_fail;
30366 swig_obj[0] = args;
30367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30368 if (!SWIG_IsOK(res1)) {
30369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30370 }
30371 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30372 {
30373 PyThreadState* __tstate = wxPyBeginAllowThreads();
30374 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30375 wxPyEndAllowThreads(__tstate);
30376 if (PyErr_Occurred()) SWIG_fail;
30377 }
30378 {
30379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30380 }
30381 return resultobj;
30382fail:
30383 return NULL;
d14a1e28
RD
30384}
30385
30386
0085ce49
RD
30387SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30388 PyObject *resultobj = 0;
30389 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30390 bool result;
30391 void *argp1 = 0 ;
30392 int res1 = 0 ;
30393 PyObject *swig_obj[1] ;
30394
30395 if (!args) SWIG_fail;
30396 swig_obj[0] = args;
30397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30398 if (!SWIG_IsOK(res1)) {
30399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30400 }
30401 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30402 {
30403 PyThreadState* __tstate = wxPyBeginAllowThreads();
30404 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30405 wxPyEndAllowThreads(__tstate);
30406 if (PyErr_Occurred()) SWIG_fail;
30407 }
30408 {
30409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30410 }
30411 return resultobj;
30412fail:
30413 return NULL;
30414}
30415
30416
30417SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30418 PyObject *resultobj = 0;
30419 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30420 long arg2 ;
30421 void *argp1 = 0 ;
30422 int res1 = 0 ;
30423 long val2 ;
30424 int ecode2 = 0 ;
30425 PyObject * obj0 = 0 ;
30426 PyObject * obj1 = 0 ;
30427 char * kwnames[] = {
30428 (char *) "self",(char *) "item", NULL
30429 };
30430
30431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30433 if (!SWIG_IsOK(res1)) {
30434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30435 }
30436 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30437 ecode2 = SWIG_AsVal_long(obj1, &val2);
30438 if (!SWIG_IsOK(ecode2)) {
30439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30440 }
30441 arg2 = static_cast< long >(val2);
30442 {
30443 PyThreadState* __tstate = wxPyBeginAllowThreads();
30444 (arg1)->RefreshItem(arg2);
30445 wxPyEndAllowThreads(__tstate);
30446 if (PyErr_Occurred()) SWIG_fail;
30447 }
30448 resultobj = SWIG_Py_Void();
30449 return resultobj;
30450fail:
30451 return NULL;
30452}
30453
30454
30455SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30456 PyObject *resultobj = 0;
30457 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30458 long arg2 ;
30459 long arg3 ;
30460 void *argp1 = 0 ;
30461 int res1 = 0 ;
30462 long val2 ;
30463 int ecode2 = 0 ;
30464 long val3 ;
30465 int ecode3 = 0 ;
30466 PyObject * obj0 = 0 ;
30467 PyObject * obj1 = 0 ;
30468 PyObject * obj2 = 0 ;
30469 char * kwnames[] = {
30470 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30471 };
30472
30473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30475 if (!SWIG_IsOK(res1)) {
30476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30477 }
30478 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30479 ecode2 = SWIG_AsVal_long(obj1, &val2);
30480 if (!SWIG_IsOK(ecode2)) {
30481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30482 }
30483 arg2 = static_cast< long >(val2);
30484 ecode3 = SWIG_AsVal_long(obj2, &val3);
30485 if (!SWIG_IsOK(ecode3)) {
30486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30487 }
30488 arg3 = static_cast< long >(val3);
30489 {
30490 PyThreadState* __tstate = wxPyBeginAllowThreads();
30491 (arg1)->RefreshItems(arg2,arg3);
30492 wxPyEndAllowThreads(__tstate);
30493 if (PyErr_Occurred()) SWIG_fail;
30494 }
30495 resultobj = SWIG_Py_Void();
30496 return resultobj;
30497fail:
30498 return NULL;
30499}
30500
30501
30502SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30503 PyObject *resultobj = 0;
30504 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30505 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30506 bool result;
30507 void *argp1 = 0 ;
30508 int res1 = 0 ;
30509 int val2 ;
30510 int ecode2 = 0 ;
30511 PyObject * obj0 = 0 ;
30512 PyObject * obj1 = 0 ;
30513 char * kwnames[] = {
30514 (char *) "self",(char *) "flag", NULL
30515 };
30516
30517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30519 if (!SWIG_IsOK(res1)) {
30520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30521 }
30522 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30523 if (obj1) {
30524 ecode2 = SWIG_AsVal_int(obj1, &val2);
30525 if (!SWIG_IsOK(ecode2)) {
30526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30527 }
30528 arg2 = static_cast< int >(val2);
30529 }
30530 {
30531 PyThreadState* __tstate = wxPyBeginAllowThreads();
30532 result = (bool)(arg1)->Arrange(arg2);
30533 wxPyEndAllowThreads(__tstate);
30534 if (PyErr_Occurred()) SWIG_fail;
30535 }
30536 {
30537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30538 }
30539 return resultobj;
30540fail:
30541 return NULL;
30542}
30543
30544
30545SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30546 PyObject *resultobj = 0;
30547 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30548 long arg2 ;
30549 bool result;
30550 void *argp1 = 0 ;
30551 int res1 = 0 ;
30552 long val2 ;
30553 int ecode2 = 0 ;
30554 PyObject * obj0 = 0 ;
30555 PyObject * obj1 = 0 ;
30556 char * kwnames[] = {
30557 (char *) "self",(char *) "item", NULL
30558 };
30559
30560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30562 if (!SWIG_IsOK(res1)) {
30563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30564 }
30565 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30566 ecode2 = SWIG_AsVal_long(obj1, &val2);
30567 if (!SWIG_IsOK(ecode2)) {
30568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30569 }
30570 arg2 = static_cast< long >(val2);
30571 {
30572 PyThreadState* __tstate = wxPyBeginAllowThreads();
30573 result = (bool)(arg1)->DeleteItem(arg2);
30574 wxPyEndAllowThreads(__tstate);
30575 if (PyErr_Occurred()) SWIG_fail;
30576 }
30577 {
30578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30579 }
30580 return resultobj;
30581fail:
30582 return NULL;
7e08d4ef
RD
30583}
30584
30585
0085ce49
RD
30586SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30587 PyObject *resultobj = 0;
30588 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30589 bool result;
30590 void *argp1 = 0 ;
30591 int res1 = 0 ;
30592 PyObject *swig_obj[1] ;
30593
30594 if (!args) SWIG_fail;
30595 swig_obj[0] = args;
30596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30597 if (!SWIG_IsOK(res1)) {
30598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30599 }
30600 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30601 {
30602 PyThreadState* __tstate = wxPyBeginAllowThreads();
30603 result = (bool)(arg1)->DeleteAllItems();
30604 wxPyEndAllowThreads(__tstate);
30605 if (PyErr_Occurred()) SWIG_fail;
30606 }
30607 {
30608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30609 }
30610 return resultobj;
30611fail:
30612 return NULL;
30613}
30614
30615
30616SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30617 PyObject *resultobj = 0;
30618 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30619 int arg2 ;
30620 bool result;
30621 void *argp1 = 0 ;
30622 int res1 = 0 ;
30623 int val2 ;
30624 int ecode2 = 0 ;
30625 PyObject * obj0 = 0 ;
30626 PyObject * obj1 = 0 ;
30627 char * kwnames[] = {
30628 (char *) "self",(char *) "col", NULL
30629 };
30630
30631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30633 if (!SWIG_IsOK(res1)) {
30634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30635 }
30636 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30637 ecode2 = SWIG_AsVal_int(obj1, &val2);
30638 if (!SWIG_IsOK(ecode2)) {
30639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30640 }
30641 arg2 = static_cast< int >(val2);
30642 {
30643 PyThreadState* __tstate = wxPyBeginAllowThreads();
30644 result = (bool)(arg1)->DeleteColumn(arg2);
30645 wxPyEndAllowThreads(__tstate);
30646 if (PyErr_Occurred()) SWIG_fail;
30647 }
30648 {
30649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30650 }
30651 return resultobj;
30652fail:
30653 return NULL;
7e08d4ef
RD
30654}
30655
30656
0085ce49
RD
30657SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30658 PyObject *resultobj = 0;
30659 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30660 bool result;
30661 void *argp1 = 0 ;
30662 int res1 = 0 ;
30663 PyObject *swig_obj[1] ;
30664
30665 if (!args) SWIG_fail;
30666 swig_obj[0] = args;
30667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30668 if (!SWIG_IsOK(res1)) {
30669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30670 }
30671 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30672 {
30673 PyThreadState* __tstate = wxPyBeginAllowThreads();
30674 result = (bool)(arg1)->DeleteAllColumns();
30675 wxPyEndAllowThreads(__tstate);
30676 if (PyErr_Occurred()) SWIG_fail;
30677 }
30678 {
30679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30680 }
30681 return resultobj;
30682fail:
30683 return NULL;
7e08d4ef
RD
30684}
30685
30686
0085ce49
RD
30687SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30688 PyObject *resultobj = 0;
30689 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30690 void *argp1 = 0 ;
30691 int res1 = 0 ;
30692 PyObject *swig_obj[1] ;
30693
30694 if (!args) SWIG_fail;
30695 swig_obj[0] = args;
30696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30697 if (!SWIG_IsOK(res1)) {
30698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30699 }
30700 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30701 {
30702 PyThreadState* __tstate = wxPyBeginAllowThreads();
30703 (arg1)->ClearAll();
30704 wxPyEndAllowThreads(__tstate);
30705 if (PyErr_Occurred()) SWIG_fail;
30706 }
30707 resultobj = SWIG_Py_Void();
30708 return resultobj;
30709fail:
30710 return NULL;
30711}
30712
30713
30714SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30715 PyObject *resultobj = 0;
30716 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30717 long arg2 ;
30718 void *argp1 = 0 ;
30719 int res1 = 0 ;
30720 long val2 ;
30721 int ecode2 = 0 ;
30722 PyObject * obj0 = 0 ;
30723 PyObject * obj1 = 0 ;
30724 char * kwnames[] = {
30725 (char *) "self",(char *) "item", NULL
30726 };
30727
30728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30730 if (!SWIG_IsOK(res1)) {
30731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30732 }
30733 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30734 ecode2 = SWIG_AsVal_long(obj1, &val2);
30735 if (!SWIG_IsOK(ecode2)) {
30736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30737 }
30738 arg2 = static_cast< long >(val2);
30739 {
30740 PyThreadState* __tstate = wxPyBeginAllowThreads();
30741 (arg1)->EditLabel(arg2);
30742 wxPyEndAllowThreads(__tstate);
30743 if (PyErr_Occurred()) SWIG_fail;
30744 }
30745 resultobj = SWIG_Py_Void();
30746 return resultobj;
30747fail:
30748 return NULL;
30749}
30750
30751
30752SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30753 PyObject *resultobj = 0;
30754 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30755 long arg2 ;
30756 bool result;
30757 void *argp1 = 0 ;
30758 int res1 = 0 ;
30759 long val2 ;
30760 int ecode2 = 0 ;
30761 PyObject * obj0 = 0 ;
30762 PyObject * obj1 = 0 ;
30763 char * kwnames[] = {
30764 (char *) "self",(char *) "item", NULL
30765 };
30766
30767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30769 if (!SWIG_IsOK(res1)) {
30770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30771 }
30772 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30773 ecode2 = SWIG_AsVal_long(obj1, &val2);
30774 if (!SWIG_IsOK(ecode2)) {
30775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30776 }
30777 arg2 = static_cast< long >(val2);
30778 {
30779 PyThreadState* __tstate = wxPyBeginAllowThreads();
30780 result = (bool)(arg1)->EnsureVisible(arg2);
30781 wxPyEndAllowThreads(__tstate);
30782 if (PyErr_Occurred()) SWIG_fail;
30783 }
30784 {
30785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30786 }
30787 return resultobj;
30788fail:
30789 return NULL;
30790}
30791
30792
30793SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30794 PyObject *resultobj = 0;
30795 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30796 long arg2 ;
30797 wxString *arg3 = 0 ;
30798 bool arg4 = (bool) false ;
30799 long result;
30800 void *argp1 = 0 ;
30801 int res1 = 0 ;
30802 long val2 ;
30803 int ecode2 = 0 ;
30804 bool temp3 = false ;
30805 bool val4 ;
30806 int ecode4 = 0 ;
30807 PyObject * obj0 = 0 ;
30808 PyObject * obj1 = 0 ;
30809 PyObject * obj2 = 0 ;
30810 PyObject * obj3 = 0 ;
30811 char * kwnames[] = {
30812 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30813 };
30814
30815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30817 if (!SWIG_IsOK(res1)) {
30818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30819 }
30820 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30821 ecode2 = SWIG_AsVal_long(obj1, &val2);
30822 if (!SWIG_IsOK(ecode2)) {
30823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30824 }
30825 arg2 = static_cast< long >(val2);
30826 {
30827 arg3 = wxString_in_helper(obj2);
30828 if (arg3 == NULL) SWIG_fail;
30829 temp3 = true;
30830 }
30831 if (obj3) {
30832 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30833 if (!SWIG_IsOK(ecode4)) {
30834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30835 }
30836 arg4 = static_cast< bool >(val4);
30837 }
30838 {
30839 PyThreadState* __tstate = wxPyBeginAllowThreads();
30840 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30841 wxPyEndAllowThreads(__tstate);
30842 if (PyErr_Occurred()) SWIG_fail;
30843 }
30844 resultobj = SWIG_From_long(static_cast< long >(result));
30845 {
30846 if (temp3)
30847 delete arg3;
30848 }
30849 return resultobj;
30850fail:
30851 {
30852 if (temp3)
30853 delete arg3;
30854 }
30855 return NULL;
30856}
30857
30858
30859SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30860 PyObject *resultobj = 0;
30861 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30862 long arg2 ;
30863 long arg3 ;
30864 long result;
30865 void *argp1 = 0 ;
30866 int res1 = 0 ;
30867 long val2 ;
30868 int ecode2 = 0 ;
30869 long val3 ;
30870 int ecode3 = 0 ;
30871 PyObject * obj0 = 0 ;
30872 PyObject * obj1 = 0 ;
30873 PyObject * obj2 = 0 ;
30874 char * kwnames[] = {
30875 (char *) "self",(char *) "start",(char *) "data", NULL
30876 };
30877
30878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30880 if (!SWIG_IsOK(res1)) {
30881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30882 }
30883 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30884 ecode2 = SWIG_AsVal_long(obj1, &val2);
30885 if (!SWIG_IsOK(ecode2)) {
30886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30887 }
30888 arg2 = static_cast< long >(val2);
30889 ecode3 = SWIG_AsVal_long(obj2, &val3);
30890 if (!SWIG_IsOK(ecode3)) {
30891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30892 }
30893 arg3 = static_cast< long >(val3);
30894 {
30895 PyThreadState* __tstate = wxPyBeginAllowThreads();
30896 result = (long)(arg1)->FindItem(arg2,arg3);
30897 wxPyEndAllowThreads(__tstate);
30898 if (PyErr_Occurred()) SWIG_fail;
30899 }
30900 resultobj = SWIG_From_long(static_cast< long >(result));
30901 return resultobj;
30902fail:
30903 return NULL;
30904}
30905
30906
30907SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30908 PyObject *resultobj = 0;
30909 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30910 long arg2 ;
30911 wxPoint *arg3 = 0 ;
30912 int arg4 ;
30913 long result;
30914 void *argp1 = 0 ;
30915 int res1 = 0 ;
30916 long val2 ;
30917 int ecode2 = 0 ;
30918 wxPoint temp3 ;
30919 int val4 ;
30920 int ecode4 = 0 ;
30921 PyObject * obj0 = 0 ;
30922 PyObject * obj1 = 0 ;
30923 PyObject * obj2 = 0 ;
30924 PyObject * obj3 = 0 ;
30925 char * kwnames[] = {
30926 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30927 };
30928
30929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30931 if (!SWIG_IsOK(res1)) {
30932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30933 }
30934 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30935 ecode2 = SWIG_AsVal_long(obj1, &val2);
30936 if (!SWIG_IsOK(ecode2)) {
30937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30938 }
30939 arg2 = static_cast< long >(val2);
30940 {
30941 arg3 = &temp3;
30942 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30943 }
30944 ecode4 = SWIG_AsVal_int(obj3, &val4);
30945 if (!SWIG_IsOK(ecode4)) {
30946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30947 }
30948 arg4 = static_cast< int >(val4);
30949 {
30950 PyThreadState* __tstate = wxPyBeginAllowThreads();
30951 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30952 wxPyEndAllowThreads(__tstate);
30953 if (PyErr_Occurred()) SWIG_fail;
30954 }
30955 resultobj = SWIG_From_long(static_cast< long >(result));
30956 return resultobj;
30957fail:
30958 return NULL;
30959}
30960
30961
30962SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30963 PyObject *resultobj = 0;
30964 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30965 wxPoint *arg2 = 0 ;
30966 int *arg3 = 0 ;
30967 long result;
30968 void *argp1 = 0 ;
30969 int res1 = 0 ;
30970 wxPoint temp2 ;
30971 int temp3 ;
30972 int res3 = SWIG_TMPOBJ ;
30973 PyObject * obj0 = 0 ;
30974 PyObject * obj1 = 0 ;
30975 char * kwnames[] = {
30976 (char *) "self",(char *) "point", NULL
30977 };
30978
30979 arg3 = &temp3;
30980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30982 if (!SWIG_IsOK(res1)) {
30983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30984 }
30985 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30986 {
30987 arg2 = &temp2;
30988 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30989 }
30990 {
30991 PyThreadState* __tstate = wxPyBeginAllowThreads();
30992 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30993 wxPyEndAllowThreads(__tstate);
30994 if (PyErr_Occurred()) SWIG_fail;
30995 }
30996 resultobj = SWIG_From_long(static_cast< long >(result));
30997 if (SWIG_IsTmpObj(res3)) {
30998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30999 } else {
31000 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31001 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31002 }
31003 return resultobj;
31004fail:
31005 return NULL;
31006}
31007
31008
704eda0c
RD
31009SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31010 PyObject *resultobj = 0;
31011 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31012 wxPoint *arg2 = 0 ;
31013 int *arg3 = 0 ;
31014 long *arg4 = (long *) 0 ;
31015 long result;
31016 void *argp1 = 0 ;
31017 int res1 = 0 ;
31018 wxPoint temp2 ;
31019 int temp3 ;
31020 int res3 = SWIG_TMPOBJ ;
31021 long temp4 ;
31022 int res4 = SWIG_TMPOBJ ;
31023 PyObject * obj0 = 0 ;
31024 PyObject * obj1 = 0 ;
31025 char * kwnames[] = {
31026 (char *) "self",(char *) "point", NULL
31027 };
31028
31029 arg3 = &temp3;
31030 arg4 = &temp4;
31031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31033 if (!SWIG_IsOK(res1)) {
31034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31035 }
31036 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31037 {
31038 arg2 = &temp2;
31039 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31040 }
31041 {
31042 PyThreadState* __tstate = wxPyBeginAllowThreads();
31043 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31044 wxPyEndAllowThreads(__tstate);
31045 if (PyErr_Occurred()) SWIG_fail;
31046 }
31047 resultobj = SWIG_From_long(static_cast< long >(result));
31048 if (SWIG_IsTmpObj(res3)) {
31049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31050 } else {
31051 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31052 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31053 }
31054 if (SWIG_IsTmpObj(res4)) {
31055 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31056 } else {
31057 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31058 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31059 }
31060 return resultobj;
31061fail:
31062 return NULL;
31063}
31064
31065
0085ce49
RD
31066SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31067 PyObject *resultobj = 0;
31068 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31069 wxListItem *arg2 = 0 ;
31070 long result;
31071 void *argp1 = 0 ;
31072 int res1 = 0 ;
31073 void *argp2 = 0 ;
31074 int res2 = 0 ;
31075 PyObject * obj0 = 0 ;
31076 PyObject * obj1 = 0 ;
31077 char * kwnames[] = {
31078 (char *) "self",(char *) "info", NULL
31079 };
31080
31081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31083 if (!SWIG_IsOK(res1)) {
31084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31085 }
31086 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31087 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31088 if (!SWIG_IsOK(res2)) {
31089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31090 }
31091 if (!argp2) {
31092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31093 }
31094 arg2 = reinterpret_cast< wxListItem * >(argp2);
31095 {
31096 PyThreadState* __tstate = wxPyBeginAllowThreads();
31097 result = (long)(arg1)->InsertItem(*arg2);
31098 wxPyEndAllowThreads(__tstate);
31099 if (PyErr_Occurred()) SWIG_fail;
31100 }
31101 resultobj = SWIG_From_long(static_cast< long >(result));
31102 return resultobj;
31103fail:
31104 return NULL;
31105}
31106
31107
31108SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31109 PyObject *resultobj = 0;
31110 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31111 long arg2 ;
31112 wxString *arg3 = 0 ;
31113 int arg4 = (int) -1 ;
31114 long result;
31115 void *argp1 = 0 ;
31116 int res1 = 0 ;
31117 long val2 ;
31118 int ecode2 = 0 ;
31119 bool temp3 = false ;
31120 int val4 ;
31121 int ecode4 = 0 ;
31122 PyObject * obj0 = 0 ;
31123 PyObject * obj1 = 0 ;
31124 PyObject * obj2 = 0 ;
31125 PyObject * obj3 = 0 ;
31126 char * kwnames[] = {
31127 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31128 };
31129
31130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31132 if (!SWIG_IsOK(res1)) {
31133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31134 }
31135 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31136 ecode2 = SWIG_AsVal_long(obj1, &val2);
31137 if (!SWIG_IsOK(ecode2)) {
31138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31139 }
31140 arg2 = static_cast< long >(val2);
31141 {
31142 arg3 = wxString_in_helper(obj2);
31143 if (arg3 == NULL) SWIG_fail;
31144 temp3 = true;
31145 }
31146 if (obj3) {
31147 ecode4 = SWIG_AsVal_int(obj3, &val4);
31148 if (!SWIG_IsOK(ecode4)) {
31149 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31150 }
31151 arg4 = static_cast< int >(val4);
31152 }
31153 {
31154 PyThreadState* __tstate = wxPyBeginAllowThreads();
31155 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31156 wxPyEndAllowThreads(__tstate);
31157 if (PyErr_Occurred()) SWIG_fail;
31158 }
31159 resultobj = SWIG_From_long(static_cast< long >(result));
31160 {
31161 if (temp3)
31162 delete arg3;
31163 }
31164 return resultobj;
31165fail:
31166 {
31167 if (temp3)
31168 delete arg3;
31169 }
31170 return NULL;
31171}
31172
31173
31174SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31175 PyObject *resultobj = 0;
31176 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31177 long arg2 ;
31178 int arg3 ;
31179 long result;
31180 void *argp1 = 0 ;
31181 int res1 = 0 ;
31182 long val2 ;
31183 int ecode2 = 0 ;
31184 int val3 ;
31185 int ecode3 = 0 ;
31186 PyObject * obj0 = 0 ;
31187 PyObject * obj1 = 0 ;
31188 PyObject * obj2 = 0 ;
31189 char * kwnames[] = {
31190 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31191 };
31192
31193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31195 if (!SWIG_IsOK(res1)) {
31196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31197 }
31198 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31199 ecode2 = SWIG_AsVal_long(obj1, &val2);
31200 if (!SWIG_IsOK(ecode2)) {
31201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31202 }
31203 arg2 = static_cast< long >(val2);
31204 ecode3 = SWIG_AsVal_int(obj2, &val3);
31205 if (!SWIG_IsOK(ecode3)) {
31206 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31207 }
31208 arg3 = static_cast< int >(val3);
31209 {
31210 PyThreadState* __tstate = wxPyBeginAllowThreads();
31211 result = (long)(arg1)->InsertItem(arg2,arg3);
31212 wxPyEndAllowThreads(__tstate);
31213 if (PyErr_Occurred()) SWIG_fail;
31214 }
31215 resultobj = SWIG_From_long(static_cast< long >(result));
31216 return resultobj;
31217fail:
31218 return NULL;
31219}
31220
31221
31222SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31223 PyObject *resultobj = 0;
31224 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31225 long arg2 ;
31226 wxString *arg3 = 0 ;
31227 int arg4 ;
31228 long result;
31229 void *argp1 = 0 ;
31230 int res1 = 0 ;
31231 long val2 ;
31232 int ecode2 = 0 ;
31233 bool temp3 = false ;
31234 int val4 ;
31235 int ecode4 = 0 ;
31236 PyObject * obj0 = 0 ;
31237 PyObject * obj1 = 0 ;
31238 PyObject * obj2 = 0 ;
31239 PyObject * obj3 = 0 ;
31240 char * kwnames[] = {
31241 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31242 };
31243
31244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31246 if (!SWIG_IsOK(res1)) {
31247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31248 }
31249 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31250 ecode2 = SWIG_AsVal_long(obj1, &val2);
31251 if (!SWIG_IsOK(ecode2)) {
31252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31253 }
31254 arg2 = static_cast< long >(val2);
31255 {
31256 arg3 = wxString_in_helper(obj2);
31257 if (arg3 == NULL) SWIG_fail;
31258 temp3 = true;
31259 }
31260 ecode4 = SWIG_AsVal_int(obj3, &val4);
31261 if (!SWIG_IsOK(ecode4)) {
31262 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31263 }
31264 arg4 = static_cast< int >(val4);
31265 {
31266 PyThreadState* __tstate = wxPyBeginAllowThreads();
31267 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31268 wxPyEndAllowThreads(__tstate);
31269 if (PyErr_Occurred()) SWIG_fail;
31270 }
31271 resultobj = SWIG_From_long(static_cast< long >(result));
31272 {
31273 if (temp3)
31274 delete arg3;
31275 }
31276 return resultobj;
31277fail:
31278 {
31279 if (temp3)
31280 delete arg3;
31281 }
31282 return NULL;
31283}
31284
31285
31286SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31287 PyObject *resultobj = 0;
31288 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31289 long arg2 ;
31290 wxListItem *arg3 = 0 ;
31291 long result;
31292 void *argp1 = 0 ;
31293 int res1 = 0 ;
31294 long val2 ;
31295 int ecode2 = 0 ;
31296 void *argp3 = 0 ;
31297 int res3 = 0 ;
31298 PyObject * obj0 = 0 ;
31299 PyObject * obj1 = 0 ;
31300 PyObject * obj2 = 0 ;
31301 char * kwnames[] = {
31302 (char *) "self",(char *) "col",(char *) "info", NULL
31303 };
31304
31305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31307 if (!SWIG_IsOK(res1)) {
31308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31309 }
31310 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31311 ecode2 = SWIG_AsVal_long(obj1, &val2);
31312 if (!SWIG_IsOK(ecode2)) {
31313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31314 }
31315 arg2 = static_cast< long >(val2);
31316 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31317 if (!SWIG_IsOK(res3)) {
31318 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31319 }
31320 if (!argp3) {
31321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31322 }
31323 arg3 = reinterpret_cast< wxListItem * >(argp3);
31324 {
31325 PyThreadState* __tstate = wxPyBeginAllowThreads();
31326 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31327 wxPyEndAllowThreads(__tstate);
31328 if (PyErr_Occurred()) SWIG_fail;
31329 }
31330 resultobj = SWIG_From_long(static_cast< long >(result));
31331 return resultobj;
31332fail:
31333 return NULL;
31334}
31335
31336
31337SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31338 PyObject *resultobj = 0;
31339 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31340 long arg2 ;
31341 wxString *arg3 = 0 ;
31342 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31343 int arg5 = (int) -1 ;
31344 long result;
31345 void *argp1 = 0 ;
31346 int res1 = 0 ;
31347 long val2 ;
31348 int ecode2 = 0 ;
31349 bool temp3 = false ;
31350 int val4 ;
31351 int ecode4 = 0 ;
31352 int val5 ;
31353 int ecode5 = 0 ;
31354 PyObject * obj0 = 0 ;
31355 PyObject * obj1 = 0 ;
31356 PyObject * obj2 = 0 ;
31357 PyObject * obj3 = 0 ;
31358 PyObject * obj4 = 0 ;
31359 char * kwnames[] = {
31360 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31361 };
31362
31363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31365 if (!SWIG_IsOK(res1)) {
31366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31367 }
31368 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31369 ecode2 = SWIG_AsVal_long(obj1, &val2);
31370 if (!SWIG_IsOK(ecode2)) {
31371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31372 }
31373 arg2 = static_cast< long >(val2);
31374 {
31375 arg3 = wxString_in_helper(obj2);
31376 if (arg3 == NULL) SWIG_fail;
31377 temp3 = true;
31378 }
31379 if (obj3) {
31380 ecode4 = SWIG_AsVal_int(obj3, &val4);
31381 if (!SWIG_IsOK(ecode4)) {
31382 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31383 }
31384 arg4 = static_cast< int >(val4);
31385 }
31386 if (obj4) {
31387 ecode5 = SWIG_AsVal_int(obj4, &val5);
31388 if (!SWIG_IsOK(ecode5)) {
31389 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31390 }
31391 arg5 = static_cast< int >(val5);
31392 }
31393 {
31394 PyThreadState* __tstate = wxPyBeginAllowThreads();
31395 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31396 wxPyEndAllowThreads(__tstate);
31397 if (PyErr_Occurred()) SWIG_fail;
31398 }
31399 resultobj = SWIG_From_long(static_cast< long >(result));
31400 {
31401 if (temp3)
31402 delete arg3;
31403 }
31404 return resultobj;
31405fail:
31406 {
31407 if (temp3)
31408 delete arg3;
31409 }
31410 return NULL;
31411}
31412
31413
31414SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31415 PyObject *resultobj = 0;
31416 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31417 long arg2 ;
31418 void *argp1 = 0 ;
31419 int res1 = 0 ;
31420 long val2 ;
31421 int ecode2 = 0 ;
31422 PyObject * obj0 = 0 ;
31423 PyObject * obj1 = 0 ;
31424 char * kwnames[] = {
31425 (char *) "self",(char *) "count", NULL
31426 };
31427
31428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31430 if (!SWIG_IsOK(res1)) {
31431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31432 }
31433 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31434 ecode2 = SWIG_AsVal_long(obj1, &val2);
31435 if (!SWIG_IsOK(ecode2)) {
31436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31437 }
31438 arg2 = static_cast< long >(val2);
31439 {
31440 PyThreadState* __tstate = wxPyBeginAllowThreads();
31441 (arg1)->SetItemCount(arg2);
31442 wxPyEndAllowThreads(__tstate);
31443 if (PyErr_Occurred()) SWIG_fail;
31444 }
31445 resultobj = SWIG_Py_Void();
31446 return resultobj;
31447fail:
31448 return NULL;
31449}
31450
31451
31452SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31453 PyObject *resultobj = 0;
31454 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31455 int arg2 ;
31456 int arg3 ;
31457 bool result;
31458 void *argp1 = 0 ;
31459 int res1 = 0 ;
31460 int val2 ;
31461 int ecode2 = 0 ;
31462 int val3 ;
31463 int ecode3 = 0 ;
31464 PyObject * obj0 = 0 ;
31465 PyObject * obj1 = 0 ;
31466 PyObject * obj2 = 0 ;
31467 char * kwnames[] = {
31468 (char *) "self",(char *) "dx",(char *) "dy", NULL
31469 };
31470
31471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31473 if (!SWIG_IsOK(res1)) {
31474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31475 }
31476 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31477 ecode2 = SWIG_AsVal_int(obj1, &val2);
31478 if (!SWIG_IsOK(ecode2)) {
31479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31480 }
31481 arg2 = static_cast< int >(val2);
31482 ecode3 = SWIG_AsVal_int(obj2, &val3);
31483 if (!SWIG_IsOK(ecode3)) {
31484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31485 }
31486 arg3 = static_cast< int >(val3);
31487 {
31488 PyThreadState* __tstate = wxPyBeginAllowThreads();
31489 result = (bool)(arg1)->ScrollList(arg2,arg3);
31490 wxPyEndAllowThreads(__tstate);
31491 if (PyErr_Occurred()) SWIG_fail;
31492 }
31493 {
31494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31495 }
31496 return resultobj;
31497fail:
31498 return NULL;
31499}
31500
31501
31502SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31503 PyObject *resultobj = 0;
31504 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31505 long arg2 ;
31506 wxColour *arg3 = 0 ;
31507 void *argp1 = 0 ;
31508 int res1 = 0 ;
31509 long val2 ;
31510 int ecode2 = 0 ;
31511 wxColour temp3 ;
31512 PyObject * obj0 = 0 ;
31513 PyObject * obj1 = 0 ;
31514 PyObject * obj2 = 0 ;
31515 char * kwnames[] = {
31516 (char *) "self",(char *) "item",(char *) "col", NULL
31517 };
31518
31519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31521 if (!SWIG_IsOK(res1)) {
31522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31523 }
31524 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31525 ecode2 = SWIG_AsVal_long(obj1, &val2);
31526 if (!SWIG_IsOK(ecode2)) {
31527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31528 }
31529 arg2 = static_cast< long >(val2);
31530 {
31531 arg3 = &temp3;
31532 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31533 }
31534 {
31535 PyThreadState* __tstate = wxPyBeginAllowThreads();
31536 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31537 wxPyEndAllowThreads(__tstate);
31538 if (PyErr_Occurred()) SWIG_fail;
31539 }
31540 resultobj = SWIG_Py_Void();
31541 return resultobj;
31542fail:
31543 return NULL;
31544}
31545
31546
31547SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31548 PyObject *resultobj = 0;
31549 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31550 long arg2 ;
31551 wxColour result;
31552 void *argp1 = 0 ;
31553 int res1 = 0 ;
31554 long val2 ;
31555 int ecode2 = 0 ;
31556 PyObject * obj0 = 0 ;
31557 PyObject * obj1 = 0 ;
31558 char * kwnames[] = {
31559 (char *) "self",(char *) "item", NULL
31560 };
31561
31562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31564 if (!SWIG_IsOK(res1)) {
31565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31566 }
31567 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31568 ecode2 = SWIG_AsVal_long(obj1, &val2);
31569 if (!SWIG_IsOK(ecode2)) {
31570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31571 }
31572 arg2 = static_cast< long >(val2);
31573 {
31574 PyThreadState* __tstate = wxPyBeginAllowThreads();
31575 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31576 wxPyEndAllowThreads(__tstate);
31577 if (PyErr_Occurred()) SWIG_fail;
31578 }
31579 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31580 return resultobj;
31581fail:
31582 return NULL;
31583}
31584
31585
31586SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31587 PyObject *resultobj = 0;
31588 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31589 long arg2 ;
31590 wxColour *arg3 = 0 ;
31591 void *argp1 = 0 ;
31592 int res1 = 0 ;
31593 long val2 ;
31594 int ecode2 = 0 ;
31595 wxColour temp3 ;
31596 PyObject * obj0 = 0 ;
31597 PyObject * obj1 = 0 ;
31598 PyObject * obj2 = 0 ;
31599 char * kwnames[] = {
31600 (char *) "self",(char *) "item",(char *) "col", NULL
31601 };
31602
31603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31605 if (!SWIG_IsOK(res1)) {
31606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31607 }
31608 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31609 ecode2 = SWIG_AsVal_long(obj1, &val2);
31610 if (!SWIG_IsOK(ecode2)) {
31611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31612 }
31613 arg2 = static_cast< long >(val2);
31614 {
31615 arg3 = &temp3;
31616 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31617 }
31618 {
31619 PyThreadState* __tstate = wxPyBeginAllowThreads();
31620 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31621 wxPyEndAllowThreads(__tstate);
31622 if (PyErr_Occurred()) SWIG_fail;
31623 }
31624 resultobj = SWIG_Py_Void();
31625 return resultobj;
31626fail:
31627 return NULL;
31628}
31629
31630
31631SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31632 PyObject *resultobj = 0;
31633 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31634 long arg2 ;
31635 wxColour result;
31636 void *argp1 = 0 ;
31637 int res1 = 0 ;
31638 long val2 ;
31639 int ecode2 = 0 ;
31640 PyObject * obj0 = 0 ;
31641 PyObject * obj1 = 0 ;
31642 char * kwnames[] = {
31643 (char *) "self",(char *) "item", NULL
31644 };
31645
31646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31648 if (!SWIG_IsOK(res1)) {
31649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31650 }
31651 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31652 ecode2 = SWIG_AsVal_long(obj1, &val2);
31653 if (!SWIG_IsOK(ecode2)) {
31654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31655 }
31656 arg2 = static_cast< long >(val2);
31657 {
31658 PyThreadState* __tstate = wxPyBeginAllowThreads();
31659 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31660 wxPyEndAllowThreads(__tstate);
31661 if (PyErr_Occurred()) SWIG_fail;
31662 }
31663 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31664 return resultobj;
31665fail:
31666 return NULL;
31667}
31668
31669
31670SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31671 PyObject *resultobj = 0;
31672 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31673 long arg2 ;
31674 wxFont *arg3 = 0 ;
31675 void *argp1 = 0 ;
31676 int res1 = 0 ;
31677 long val2 ;
31678 int ecode2 = 0 ;
31679 void *argp3 = 0 ;
31680 int res3 = 0 ;
31681 PyObject * obj0 = 0 ;
31682 PyObject * obj1 = 0 ;
31683 PyObject * obj2 = 0 ;
31684 char * kwnames[] = {
31685 (char *) "self",(char *) "item",(char *) "f", NULL
31686 };
31687
31688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31690 if (!SWIG_IsOK(res1)) {
31691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31692 }
31693 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31694 ecode2 = SWIG_AsVal_long(obj1, &val2);
31695 if (!SWIG_IsOK(ecode2)) {
31696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31697 }
31698 arg2 = static_cast< long >(val2);
31699 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31700 if (!SWIG_IsOK(res3)) {
31701 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31702 }
31703 if (!argp3) {
31704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31705 }
31706 arg3 = reinterpret_cast< wxFont * >(argp3);
31707 {
31708 PyThreadState* __tstate = wxPyBeginAllowThreads();
31709 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31710 wxPyEndAllowThreads(__tstate);
31711 if (PyErr_Occurred()) SWIG_fail;
31712 }
31713 resultobj = SWIG_Py_Void();
31714 return resultobj;
31715fail:
31716 return NULL;
31717}
31718
31719
31720SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31721 PyObject *resultobj = 0;
31722 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31723 long arg2 ;
31724 wxFont result;
31725 void *argp1 = 0 ;
31726 int res1 = 0 ;
31727 long val2 ;
31728 int ecode2 = 0 ;
31729 PyObject * obj0 = 0 ;
31730 PyObject * obj1 = 0 ;
31731 char * kwnames[] = {
31732 (char *) "self",(char *) "item", NULL
31733 };
31734
31735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31737 if (!SWIG_IsOK(res1)) {
31738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31739 }
31740 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31741 ecode2 = SWIG_AsVal_long(obj1, &val2);
31742 if (!SWIG_IsOK(ecode2)) {
31743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31744 }
31745 arg2 = static_cast< long >(val2);
31746 {
31747 PyThreadState* __tstate = wxPyBeginAllowThreads();
31748 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31749 wxPyEndAllowThreads(__tstate);
31750 if (PyErr_Occurred()) SWIG_fail;
31751 }
31752 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31753 return resultobj;
31754fail:
31755 return NULL;
31756}
31757
31758
31759SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31760 PyObject *resultobj = 0;
31761 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31762 PyObject *arg2 = (PyObject *) 0 ;
31763 bool result;
31764 void *argp1 = 0 ;
31765 int res1 = 0 ;
31766 PyObject * obj0 = 0 ;
31767 PyObject * obj1 = 0 ;
31768 char * kwnames[] = {
31769 (char *) "self",(char *) "func", NULL
31770 };
31771
31772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31774 if (!SWIG_IsOK(res1)) {
31775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31776 }
31777 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31778 arg2 = obj1;
31779 {
31780 PyThreadState* __tstate = wxPyBeginAllowThreads();
31781 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31782 wxPyEndAllowThreads(__tstate);
31783 if (PyErr_Occurred()) SWIG_fail;
31784 }
31785 {
31786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31787 }
31788 return resultobj;
31789fail:
31790 return NULL;
7e08d4ef
RD
31791}
31792
31793
0085ce49
RD
31794SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31795 PyObject *resultobj = 0;
31796 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31797 wxWindow *result = 0 ;
31798 void *argp1 = 0 ;
31799 int res1 = 0 ;
31800 PyObject *swig_obj[1] ;
31801
31802 if (!args) SWIG_fail;
31803 swig_obj[0] = args;
31804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31805 if (!SWIG_IsOK(res1)) {
31806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31807 }
31808 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31809 {
31810 PyThreadState* __tstate = wxPyBeginAllowThreads();
31811 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31812 wxPyEndAllowThreads(__tstate);
31813 if (PyErr_Occurred()) SWIG_fail;
31814 }
31815 {
31816 resultobj = wxPyMake_wxObject(result, 0);
31817 }
31818 return resultobj;
31819fail:
31820 return NULL;
31821}
31822
31823
31824SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31825 PyObject *resultobj = 0;
31826 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31827 SwigValueWrapper<wxVisualAttributes > result;
31828 int val1 ;
31829 int ecode1 = 0 ;
31830 PyObject * obj0 = 0 ;
31831 char * kwnames[] = {
31832 (char *) "variant", NULL
31833 };
31834
31835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31836 if (obj0) {
31837 ecode1 = SWIG_AsVal_int(obj0, &val1);
31838 if (!SWIG_IsOK(ecode1)) {
31839 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31840 }
31841 arg1 = static_cast< wxWindowVariant >(val1);
31842 }
31843 {
31844 if (!wxPyCheckForApp()) SWIG_fail;
31845 PyThreadState* __tstate = wxPyBeginAllowThreads();
31846 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31847 wxPyEndAllowThreads(__tstate);
31848 if (PyErr_Occurred()) SWIG_fail;
31849 }
31850 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31851 return resultobj;
31852fail:
31853 return NULL;
31854}
31855
31856
31857SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31858 PyObject *obj;
31859 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31860 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31861 return SWIG_Py_Void();
31862}
31863
31864SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31865 return SWIG_Python_InitShadowInstance(args);
31866}
31867
31868SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31869 PyObject *resultobj = 0;
31870 wxWindow *arg1 = (wxWindow *) 0 ;
31871 int arg2 = (int) -1 ;
31872 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31873 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31874 wxSize const &arg4_defvalue = wxDefaultSize ;
31875 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31876 long arg5 = (long) wxLC_REPORT ;
31877 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31878 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31879 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31880 wxString *arg7 = (wxString *) &arg7_defvalue ;
31881 wxListView *result = 0 ;
31882 void *argp1 = 0 ;
31883 int res1 = 0 ;
31884 int val2 ;
31885 int ecode2 = 0 ;
31886 wxPoint temp3 ;
31887 wxSize temp4 ;
31888 long val5 ;
31889 int ecode5 = 0 ;
31890 void *argp6 = 0 ;
31891 int res6 = 0 ;
31892 bool temp7 = false ;
31893 PyObject * obj0 = 0 ;
31894 PyObject * obj1 = 0 ;
31895 PyObject * obj2 = 0 ;
31896 PyObject * obj3 = 0 ;
31897 PyObject * obj4 = 0 ;
31898 PyObject * obj5 = 0 ;
31899 PyObject * obj6 = 0 ;
31900 char * kwnames[] = {
31901 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31902 };
31903
31904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31906 if (!SWIG_IsOK(res1)) {
31907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31908 }
31909 arg1 = reinterpret_cast< wxWindow * >(argp1);
31910 if (obj1) {
31911 ecode2 = SWIG_AsVal_int(obj1, &val2);
31912 if (!SWIG_IsOK(ecode2)) {
31913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31914 }
31915 arg2 = static_cast< int >(val2);
31916 }
31917 if (obj2) {
7e08d4ef 31918 {
0085ce49
RD
31919 arg3 = &temp3;
31920 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 31921 }
0085ce49
RD
31922 }
31923 if (obj3) {
7e08d4ef 31924 {
0085ce49
RD
31925 arg4 = &temp4;
31926 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 31927 }
0085ce49
RD
31928 }
31929 if (obj4) {
31930 ecode5 = SWIG_AsVal_long(obj4, &val5);
31931 if (!SWIG_IsOK(ecode5)) {
31932 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31933 }
31934 arg5 = static_cast< long >(val5);
31935 }
31936 if (obj5) {
31937 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31938 if (!SWIG_IsOK(res6)) {
31939 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 31940 }
0085ce49
RD
31941 if (!argp6) {
31942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 31943 }
0085ce49
RD
31944 arg6 = reinterpret_cast< wxValidator * >(argp6);
31945 }
31946 if (obj6) {
7e08d4ef 31947 {
0085ce49
RD
31948 arg7 = wxString_in_helper(obj6);
31949 if (arg7 == NULL) SWIG_fail;
31950 temp7 = true;
7e08d4ef 31951 }
0085ce49
RD
31952 }
31953 {
31954 if (!wxPyCheckForApp()) SWIG_fail;
31955 PyThreadState* __tstate = wxPyBeginAllowThreads();
31956 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31957 wxPyEndAllowThreads(__tstate);
31958 if (PyErr_Occurred()) SWIG_fail;
31959 }
31960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31961 {
31962 if (temp7)
31963 delete arg7;
31964 }
31965 return resultobj;
31966fail:
31967 {
31968 if (temp7)
31969 delete arg7;
31970 }
31971 return NULL;
7e08d4ef
RD
31972}
31973
31974
0085ce49
RD
31975SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31976 PyObject *resultobj = 0;
31977 wxListView *result = 0 ;
31978
31979 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31980 {
31981 if (!wxPyCheckForApp()) SWIG_fail;
31982 PyThreadState* __tstate = wxPyBeginAllowThreads();
31983 result = (wxListView *)new wxListView();
31984 wxPyEndAllowThreads(__tstate);
31985 if (PyErr_Occurred()) SWIG_fail;
31986 }
31987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31988 return resultobj;
31989fail:
31990 return NULL;
31991}
31992
31993
31994SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31995 PyObject *resultobj = 0;
31996 wxListView *arg1 = (wxListView *) 0 ;
31997 wxWindow *arg2 = (wxWindow *) 0 ;
31998 int arg3 = (int) -1 ;
31999 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32000 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32001 wxSize const &arg5_defvalue = wxDefaultSize ;
32002 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32003 long arg6 = (long) wxLC_REPORT ;
32004 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32005 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32006 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32007 wxString *arg8 = (wxString *) &arg8_defvalue ;
32008 bool result;
32009 void *argp1 = 0 ;
32010 int res1 = 0 ;
32011 void *argp2 = 0 ;
32012 int res2 = 0 ;
32013 int val3 ;
32014 int ecode3 = 0 ;
32015 wxPoint temp4 ;
32016 wxSize temp5 ;
32017 long val6 ;
32018 int ecode6 = 0 ;
32019 void *argp7 = 0 ;
32020 int res7 = 0 ;
32021 bool temp8 = false ;
32022 PyObject * obj0 = 0 ;
32023 PyObject * obj1 = 0 ;
32024 PyObject * obj2 = 0 ;
32025 PyObject * obj3 = 0 ;
32026 PyObject * obj4 = 0 ;
32027 PyObject * obj5 = 0 ;
32028 PyObject * obj6 = 0 ;
32029 PyObject * obj7 = 0 ;
32030 char * kwnames[] = {
32031 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32032 };
32033
32034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32036 if (!SWIG_IsOK(res1)) {
32037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32038 }
32039 arg1 = reinterpret_cast< wxListView * >(argp1);
32040 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32041 if (!SWIG_IsOK(res2)) {
32042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32043 }
32044 arg2 = reinterpret_cast< wxWindow * >(argp2);
32045 if (obj2) {
32046 ecode3 = SWIG_AsVal_int(obj2, &val3);
32047 if (!SWIG_IsOK(ecode3)) {
32048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32049 }
32050 arg3 = static_cast< int >(val3);
32051 }
32052 if (obj3) {
7e08d4ef 32053 {
0085ce49
RD
32054 arg4 = &temp4;
32055 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 32056 }
0085ce49
RD
32057 }
32058 if (obj4) {
7e08d4ef 32059 {
0085ce49
RD
32060 arg5 = &temp5;
32061 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 32062 }
0085ce49
RD
32063 }
32064 if (obj5) {
32065 ecode6 = SWIG_AsVal_long(obj5, &val6);
32066 if (!SWIG_IsOK(ecode6)) {
32067 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32068 }
32069 arg6 = static_cast< long >(val6);
32070 }
32071 if (obj6) {
32072 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32073 if (!SWIG_IsOK(res7)) {
32074 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 32075 }
0085ce49
RD
32076 if (!argp7) {
32077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 32078 }
0085ce49
RD
32079 arg7 = reinterpret_cast< wxValidator * >(argp7);
32080 }
32081 if (obj7) {
7e08d4ef 32082 {
0085ce49
RD
32083 arg8 = wxString_in_helper(obj7);
32084 if (arg8 == NULL) SWIG_fail;
32085 temp8 = true;
7e08d4ef 32086 }
0085ce49
RD
32087 }
32088 {
32089 PyThreadState* __tstate = wxPyBeginAllowThreads();
32090 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32091 wxPyEndAllowThreads(__tstate);
32092 if (PyErr_Occurred()) SWIG_fail;
32093 }
32094 {
32095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32096 }
32097 {
32098 if (temp8)
32099 delete arg8;
32100 }
32101 return resultobj;
32102fail:
32103 {
32104 if (temp8)
32105 delete arg8;
32106 }
32107 return NULL;
32108}
32109
32110
32111SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32112 PyObject *resultobj = 0;
32113 wxListView *arg1 = (wxListView *) 0 ;
32114 long arg2 ;
32115 bool arg3 = (bool) true ;
32116 void *argp1 = 0 ;
32117 int res1 = 0 ;
32118 long val2 ;
32119 int ecode2 = 0 ;
32120 bool val3 ;
32121 int ecode3 = 0 ;
32122 PyObject * obj0 = 0 ;
32123 PyObject * obj1 = 0 ;
32124 PyObject * obj2 = 0 ;
32125 char * kwnames[] = {
32126 (char *) "self",(char *) "n",(char *) "on", NULL
32127 };
32128
32129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32131 if (!SWIG_IsOK(res1)) {
32132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32133 }
32134 arg1 = reinterpret_cast< wxListView * >(argp1);
32135 ecode2 = SWIG_AsVal_long(obj1, &val2);
32136 if (!SWIG_IsOK(ecode2)) {
32137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32138 }
32139 arg2 = static_cast< long >(val2);
32140 if (obj2) {
32141 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32142 if (!SWIG_IsOK(ecode3)) {
32143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32144 }
32145 arg3 = static_cast< bool >(val3);
32146 }
32147 {
32148 PyThreadState* __tstate = wxPyBeginAllowThreads();
32149 (arg1)->Select(arg2,arg3);
32150 wxPyEndAllowThreads(__tstate);
32151 if (PyErr_Occurred()) SWIG_fail;
32152 }
32153 resultobj = SWIG_Py_Void();
32154 return resultobj;
32155fail:
32156 return NULL;
32157}
32158
32159
32160SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32161 PyObject *resultobj = 0;
32162 wxListView *arg1 = (wxListView *) 0 ;
32163 long arg2 ;
32164 void *argp1 = 0 ;
32165 int res1 = 0 ;
32166 long val2 ;
32167 int ecode2 = 0 ;
32168 PyObject * obj0 = 0 ;
32169 PyObject * obj1 = 0 ;
32170 char * kwnames[] = {
32171 (char *) "self",(char *) "index", NULL
32172 };
32173
32174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32176 if (!SWIG_IsOK(res1)) {
32177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32178 }
32179 arg1 = reinterpret_cast< wxListView * >(argp1);
32180 ecode2 = SWIG_AsVal_long(obj1, &val2);
32181 if (!SWIG_IsOK(ecode2)) {
32182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32183 }
32184 arg2 = static_cast< long >(val2);
32185 {
32186 PyThreadState* __tstate = wxPyBeginAllowThreads();
32187 (arg1)->Focus(arg2);
32188 wxPyEndAllowThreads(__tstate);
32189 if (PyErr_Occurred()) SWIG_fail;
32190 }
32191 resultobj = SWIG_Py_Void();
32192 return resultobj;
32193fail:
32194 return NULL;
7e08d4ef
RD
32195}
32196
32197
0085ce49
RD
32198SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32199 PyObject *resultobj = 0;
32200 wxListView *arg1 = (wxListView *) 0 ;
32201 long result;
32202 void *argp1 = 0 ;
32203 int res1 = 0 ;
32204 PyObject *swig_obj[1] ;
32205
32206 if (!args) SWIG_fail;
32207 swig_obj[0] = args;
32208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32209 if (!SWIG_IsOK(res1)) {
32210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32211 }
32212 arg1 = reinterpret_cast< wxListView * >(argp1);
32213 {
32214 PyThreadState* __tstate = wxPyBeginAllowThreads();
32215 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32216 wxPyEndAllowThreads(__tstate);
32217 if (PyErr_Occurred()) SWIG_fail;
32218 }
32219 resultobj = SWIG_From_long(static_cast< long >(result));
32220 return resultobj;
32221fail:
32222 return NULL;
32223}
32224
32225
32226SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32227 PyObject *resultobj = 0;
32228 wxListView *arg1 = (wxListView *) 0 ;
32229 long arg2 ;
32230 long result;
32231 void *argp1 = 0 ;
32232 int res1 = 0 ;
32233 long val2 ;
32234 int ecode2 = 0 ;
32235 PyObject * obj0 = 0 ;
32236 PyObject * obj1 = 0 ;
32237 char * kwnames[] = {
32238 (char *) "self",(char *) "item", NULL
32239 };
32240
32241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32243 if (!SWIG_IsOK(res1)) {
32244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32245 }
32246 arg1 = reinterpret_cast< wxListView * >(argp1);
32247 ecode2 = SWIG_AsVal_long(obj1, &val2);
32248 if (!SWIG_IsOK(ecode2)) {
32249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32250 }
32251 arg2 = static_cast< long >(val2);
32252 {
32253 PyThreadState* __tstate = wxPyBeginAllowThreads();
32254 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32255 wxPyEndAllowThreads(__tstate);
32256 if (PyErr_Occurred()) SWIG_fail;
32257 }
32258 resultobj = SWIG_From_long(static_cast< long >(result));
32259 return resultobj;
32260fail:
32261 return NULL;
7e08d4ef
RD
32262}
32263
32264
0085ce49
RD
32265SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32266 PyObject *resultobj = 0;
32267 wxListView *arg1 = (wxListView *) 0 ;
32268 long result;
32269 void *argp1 = 0 ;
32270 int res1 = 0 ;
32271 PyObject *swig_obj[1] ;
32272
32273 if (!args) SWIG_fail;
32274 swig_obj[0] = args;
32275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32276 if (!SWIG_IsOK(res1)) {
32277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32278 }
32279 arg1 = reinterpret_cast< wxListView * >(argp1);
32280 {
32281 PyThreadState* __tstate = wxPyBeginAllowThreads();
32282 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32283 wxPyEndAllowThreads(__tstate);
32284 if (PyErr_Occurred()) SWIG_fail;
32285 }
32286 resultobj = SWIG_From_long(static_cast< long >(result));
32287 return resultobj;
32288fail:
32289 return NULL;
32290}
32291
32292
32293SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32294 PyObject *resultobj = 0;
32295 wxListView *arg1 = (wxListView *) 0 ;
32296 long arg2 ;
32297 bool result;
32298 void *argp1 = 0 ;
32299 int res1 = 0 ;
32300 long val2 ;
32301 int ecode2 = 0 ;
32302 PyObject * obj0 = 0 ;
32303 PyObject * obj1 = 0 ;
32304 char * kwnames[] = {
32305 (char *) "self",(char *) "index", NULL
32306 };
32307
32308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32310 if (!SWIG_IsOK(res1)) {
32311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32312 }
32313 arg1 = reinterpret_cast< wxListView * >(argp1);
32314 ecode2 = SWIG_AsVal_long(obj1, &val2);
32315 if (!SWIG_IsOK(ecode2)) {
32316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32317 }
32318 arg2 = static_cast< long >(val2);
32319 {
32320 PyThreadState* __tstate = wxPyBeginAllowThreads();
32321 result = (bool)(arg1)->IsSelected(arg2);
32322 wxPyEndAllowThreads(__tstate);
32323 if (PyErr_Occurred()) SWIG_fail;
32324 }
32325 {
32326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32327 }
32328 return resultobj;
32329fail:
32330 return NULL;
32331}
32332
32333
32334SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32335 PyObject *resultobj = 0;
32336 wxListView *arg1 = (wxListView *) 0 ;
32337 int arg2 ;
32338 int arg3 ;
32339 void *argp1 = 0 ;
32340 int res1 = 0 ;
32341 int val2 ;
32342 int ecode2 = 0 ;
32343 int val3 ;
32344 int ecode3 = 0 ;
32345 PyObject * obj0 = 0 ;
32346 PyObject * obj1 = 0 ;
32347 PyObject * obj2 = 0 ;
32348 char * kwnames[] = {
32349 (char *) "self",(char *) "col",(char *) "image", NULL
32350 };
32351
32352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32354 if (!SWIG_IsOK(res1)) {
32355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32356 }
32357 arg1 = reinterpret_cast< wxListView * >(argp1);
32358 ecode2 = SWIG_AsVal_int(obj1, &val2);
32359 if (!SWIG_IsOK(ecode2)) {
32360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32361 }
32362 arg2 = static_cast< int >(val2);
32363 ecode3 = SWIG_AsVal_int(obj2, &val3);
32364 if (!SWIG_IsOK(ecode3)) {
32365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32366 }
32367 arg3 = static_cast< int >(val3);
32368 {
32369 PyThreadState* __tstate = wxPyBeginAllowThreads();
32370 (arg1)->SetColumnImage(arg2,arg3);
32371 wxPyEndAllowThreads(__tstate);
32372 if (PyErr_Occurred()) SWIG_fail;
32373 }
32374 resultobj = SWIG_Py_Void();
32375 return resultobj;
32376fail:
32377 return NULL;
32378}
32379
32380
32381SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32382 PyObject *resultobj = 0;
32383 wxListView *arg1 = (wxListView *) 0 ;
32384 int arg2 ;
32385 void *argp1 = 0 ;
32386 int res1 = 0 ;
32387 int val2 ;
32388 int ecode2 = 0 ;
32389 PyObject * obj0 = 0 ;
32390 PyObject * obj1 = 0 ;
32391 char * kwnames[] = {
32392 (char *) "self",(char *) "col", NULL
32393 };
32394
32395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32397 if (!SWIG_IsOK(res1)) {
32398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32399 }
32400 arg1 = reinterpret_cast< wxListView * >(argp1);
32401 ecode2 = SWIG_AsVal_int(obj1, &val2);
32402 if (!SWIG_IsOK(ecode2)) {
32403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32404 }
32405 arg2 = static_cast< int >(val2);
32406 {
32407 PyThreadState* __tstate = wxPyBeginAllowThreads();
32408 (arg1)->ClearColumnImage(arg2);
32409 wxPyEndAllowThreads(__tstate);
32410 if (PyErr_Occurred()) SWIG_fail;
32411 }
32412 resultobj = SWIG_Py_Void();
32413 return resultobj;
32414fail:
32415 return NULL;
7e08d4ef
RD
32416}
32417
32418
0085ce49
RD
32419SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32420 PyObject *obj;
32421 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32422 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32423 return SWIG_Py_Void();
7e08d4ef
RD
32424}
32425
0085ce49
RD
32426SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32427 return SWIG_Python_InitShadowInstance(args);
32428}
7e08d4ef 32429
0085ce49
RD
32430SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32431 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32432 return 1;
7e08d4ef
RD
32433}
32434
32435
0085ce49
RD
32436SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32437 PyObject *pyobj = 0;
32438
32439 {
32440#if wxUSE_UNICODE
32441 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32442#else
32443 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32444#endif
32445 }
32446 return pyobj;
7e08d4ef
RD
32447}
32448
32449
0085ce49
RD
32450SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32451 PyObject *resultobj = 0;
32452 wxTreeItemId *result = 0 ;
32453
32454 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32455 {
32456 PyThreadState* __tstate = wxPyBeginAllowThreads();
32457 result = (wxTreeItemId *)new wxTreeItemId();
32458 wxPyEndAllowThreads(__tstate);
32459 if (PyErr_Occurred()) SWIG_fail;
32460 }
32461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32462 return resultobj;
32463fail:
32464 return NULL;
d14a1e28
RD
32465}
32466
32467
0085ce49
RD
32468SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32469 PyObject *resultobj = 0;
32470 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32471 void *argp1 = 0 ;
32472 int res1 = 0 ;
32473 PyObject *swig_obj[1] ;
32474
32475 if (!args) SWIG_fail;
32476 swig_obj[0] = args;
32477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32478 if (!SWIG_IsOK(res1)) {
32479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32480 }
32481 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32482 {
32483 PyThreadState* __tstate = wxPyBeginAllowThreads();
32484 delete arg1;
7e08d4ef 32485
0085ce49
RD
32486 wxPyEndAllowThreads(__tstate);
32487 if (PyErr_Occurred()) SWIG_fail;
32488 }
32489 resultobj = SWIG_Py_Void();
32490 return resultobj;
32491fail:
32492 return NULL;
7e08d4ef
RD
32493}
32494
32495
0085ce49
RD
32496SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32497 PyObject *resultobj = 0;
32498 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32499 bool result;
32500 void *argp1 = 0 ;
32501 int res1 = 0 ;
32502 PyObject *swig_obj[1] ;
32503
32504 if (!args) SWIG_fail;
32505 swig_obj[0] = args;
32506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32507 if (!SWIG_IsOK(res1)) {
32508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32509 }
32510 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32511 {
32512 PyThreadState* __tstate = wxPyBeginAllowThreads();
32513 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32514 wxPyEndAllowThreads(__tstate);
32515 if (PyErr_Occurred()) SWIG_fail;
32516 }
32517 {
32518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32519 }
32520 return resultobj;
32521fail:
32522 return NULL;
32523}
32524
32525
32526SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32527 PyObject *resultobj = 0;
32528 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32529 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32530 bool result;
32531 void *argp1 = 0 ;
32532 int res1 = 0 ;
32533 void *argp2 = 0 ;
32534 int res2 = 0 ;
32535 PyObject * obj0 = 0 ;
32536 PyObject * obj1 = 0 ;
32537 char * kwnames[] = {
32538 (char *) "self",(char *) "other", NULL
32539 };
32540
32541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32543 if (!SWIG_IsOK(res1)) {
32544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32545 }
32546 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32547 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32548 if (!SWIG_IsOK(res2)) {
32549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32550 }
32551 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32552 {
32553 PyThreadState* __tstate = wxPyBeginAllowThreads();
32554 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32555 wxPyEndAllowThreads(__tstate);
32556 if (PyErr_Occurred()) SWIG_fail;
32557 }
32558 {
32559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32560 }
32561 return resultobj;
32562fail:
32563 return NULL;
32564}
32565
32566
32567SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32568 PyObject *resultobj = 0;
32569 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32570 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32571 bool result;
32572 void *argp1 = 0 ;
32573 int res1 = 0 ;
32574 void *argp2 = 0 ;
32575 int res2 = 0 ;
32576 PyObject * obj0 = 0 ;
32577 PyObject * obj1 = 0 ;
32578 char * kwnames[] = {
32579 (char *) "self",(char *) "other", NULL
32580 };
32581
32582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32584 if (!SWIG_IsOK(res1)) {
32585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32586 }
32587 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32588 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32589 if (!SWIG_IsOK(res2)) {
32590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32591 }
32592 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32593 {
32594 PyThreadState* __tstate = wxPyBeginAllowThreads();
32595 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32596 wxPyEndAllowThreads(__tstate);
32597 if (PyErr_Occurred()) SWIG_fail;
32598 }
32599 {
32600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32601 }
32602 return resultobj;
32603fail:
32604 return NULL;
7e08d4ef
RD
32605}
32606
32607
0085ce49
RD
32608SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32609 PyObject *resultobj = 0;
32610 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32611 void *arg2 = (void *) 0 ;
32612 void *argp1 = 0 ;
32613 int res1 = 0 ;
32614 int res2 ;
32615 PyObject *swig_obj[2] ;
32616
32617 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32619 if (!SWIG_IsOK(res1)) {
32620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32621 }
32622 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32623 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32624 if (!SWIG_IsOK(res2)) {
32625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32626 }
32627 if (arg1) (arg1)->m_pItem = arg2;
32628
32629 resultobj = SWIG_Py_Void();
32630 return resultobj;
32631fail:
32632 return NULL;
7e08d4ef
RD
32633}
32634
32635
0085ce49
RD
32636SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32637 PyObject *resultobj = 0;
32638 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32639 void *result = 0 ;
32640 void *argp1 = 0 ;
32641 int res1 = 0 ;
32642 PyObject *swig_obj[1] ;
32643
32644 if (!args) SWIG_fail;
32645 swig_obj[0] = args;
32646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32647 if (!SWIG_IsOK(res1)) {
32648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32649 }
32650 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32651 result = (void *) ((arg1)->m_pItem);
32652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32653 return resultobj;
32654fail:
32655 return NULL;
7e08d4ef
RD
32656}
32657
32658
0085ce49
RD
32659SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32660 PyObject *obj;
32661 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32662 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32663 return SWIG_Py_Void();
7e08d4ef
RD
32664}
32665
0085ce49
RD
32666SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32667 return SWIG_Python_InitShadowInstance(args);
32668}
7e08d4ef 32669
0085ce49
RD
32670SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32671 PyObject *resultobj = 0;
32672 PyObject *arg1 = (PyObject *) NULL ;
32673 wxPyTreeItemData *result = 0 ;
32674 PyObject * obj0 = 0 ;
32675 char * kwnames[] = {
32676 (char *) "obj", NULL
32677 };
32678
32679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32680 if (obj0) {
32681 arg1 = obj0;
32682 }
32683 {
32684 PyThreadState* __tstate = wxPyBeginAllowThreads();
32685 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32686 wxPyEndAllowThreads(__tstate);
32687 if (PyErr_Occurred()) SWIG_fail;
32688 }
32689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32690 return resultobj;
32691fail:
32692 return NULL;
7e08d4ef
RD
32693}
32694
32695
0085ce49
RD
32696SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32697 PyObject *resultobj = 0;
32698 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32699 void *argp1 = 0 ;
32700 int res1 = 0 ;
32701 PyObject *swig_obj[1] ;
32702
32703 if (!args) SWIG_fail;
32704 swig_obj[0] = args;
32705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32706 if (!SWIG_IsOK(res1)) {
32707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32708 }
32709 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32710 {
32711 PyThreadState* __tstate = wxPyBeginAllowThreads();
32712 delete arg1;
1fbf26be 32713
0085ce49
RD
32714 wxPyEndAllowThreads(__tstate);
32715 if (PyErr_Occurred()) SWIG_fail;
32716 }
32717 resultobj = SWIG_Py_Void();
32718 return resultobj;
32719fail:
32720 return NULL;
1fbf26be
RD
32721}
32722
32723
0085ce49
RD
32724SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32725 PyObject *resultobj = 0;
32726 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32727 PyObject *result = 0 ;
32728 void *argp1 = 0 ;
32729 int res1 = 0 ;
32730 PyObject *swig_obj[1] ;
32731
32732 if (!args) SWIG_fail;
32733 swig_obj[0] = args;
32734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32735 if (!SWIG_IsOK(res1)) {
32736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32737 }
32738 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32739 {
32740 PyThreadState* __tstate = wxPyBeginAllowThreads();
32741 result = (PyObject *)(arg1)->GetData();
32742 wxPyEndAllowThreads(__tstate);
32743 if (PyErr_Occurred()) SWIG_fail;
32744 }
32745 resultobj = result;
32746 return resultobj;
32747fail:
32748 return NULL;
32749}
32750
32751
32752SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32753 PyObject *resultobj = 0;
32754 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32755 PyObject *arg2 = (PyObject *) 0 ;
32756 void *argp1 = 0 ;
32757 int res1 = 0 ;
32758 PyObject * obj0 = 0 ;
32759 PyObject * obj1 = 0 ;
32760 char * kwnames[] = {
32761 (char *) "self",(char *) "obj", NULL
32762 };
32763
32764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32766 if (!SWIG_IsOK(res1)) {
32767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32768 }
32769 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32770 arg2 = obj1;
32771 {
32772 PyThreadState* __tstate = wxPyBeginAllowThreads();
32773 (arg1)->SetData(arg2);
32774 wxPyEndAllowThreads(__tstate);
32775 if (PyErr_Occurred()) SWIG_fail;
32776 }
32777 resultobj = SWIG_Py_Void();
32778 return resultobj;
32779fail:
32780 return NULL;
d14a1e28
RD
32781}
32782
32783
0085ce49
RD
32784SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32785 PyObject *resultobj = 0;
32786 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32787 wxTreeItemId *result = 0 ;
32788 void *argp1 = 0 ;
32789 int res1 = 0 ;
32790 PyObject *swig_obj[1] ;
32791
32792 if (!args) SWIG_fail;
32793 swig_obj[0] = args;
32794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32795 if (!SWIG_IsOK(res1)) {
32796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32797 }
32798 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32799 {
32800 PyThreadState* __tstate = wxPyBeginAllowThreads();
2ef75293 32801 {
0085ce49
RD
32802 wxTreeItemId const &_result_ref = (arg1)->GetId();
32803 result = (wxTreeItemId *) &_result_ref;
2ef75293 32804 }
0085ce49
RD
32805 wxPyEndAllowThreads(__tstate);
32806 if (PyErr_Occurred()) SWIG_fail;
32807 }
32808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32809 return resultobj;
32810fail:
32811 return NULL;
32812}
32813
32814
32815SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32816 PyObject *resultobj = 0;
32817 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32818 wxTreeItemId *arg2 = 0 ;
32819 void *argp1 = 0 ;
32820 int res1 = 0 ;
32821 void *argp2 = 0 ;
32822 int res2 = 0 ;
32823 PyObject * obj0 = 0 ;
32824 PyObject * obj1 = 0 ;
32825 char * kwnames[] = {
32826 (char *) "self",(char *) "id", NULL
32827 };
32828
32829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32831 if (!SWIG_IsOK(res1)) {
32832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32833 }
32834 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32836 if (!SWIG_IsOK(res2)) {
32837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32838 }
32839 if (!argp2) {
32840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32841 }
32842 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32843 {
32844 PyThreadState* __tstate = wxPyBeginAllowThreads();
32845 (arg1)->SetId((wxTreeItemId const &)*arg2);
32846 wxPyEndAllowThreads(__tstate);
32847 if (PyErr_Occurred()) SWIG_fail;
32848 }
32849 resultobj = SWIG_Py_Void();
32850 return resultobj;
32851fail:
32852 return NULL;
2ef75293
RD
32853}
32854
32855
0085ce49
RD
32856SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32857 PyObject *resultobj = 0;
32858 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32859 void *argp1 = 0 ;
32860 int res1 = 0 ;
32861 PyObject *swig_obj[1] ;
32862
32863 if (!args) SWIG_fail;
32864 swig_obj[0] = args;
32865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32866 if (!SWIG_IsOK(res1)) {
32867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32868 }
32869 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32870 {
32871 PyThreadState* __tstate = wxPyBeginAllowThreads();
32872 wxPyTreeItemData_Destroy(arg1);
32873 wxPyEndAllowThreads(__tstate);
32874 if (PyErr_Occurred()) SWIG_fail;
32875 }
32876 resultobj = SWIG_Py_Void();
32877 return resultobj;
32878fail:
32879 return NULL;
2ef75293
RD
32880}
32881
32882
0085ce49
RD
32883SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32884 PyObject *obj;
32885 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32886 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32887 return SWIG_Py_Void();
2ef75293
RD
32888}
32889
0085ce49
RD
32890SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32891 return SWIG_Python_InitShadowInstance(args);
32892}
2ef75293 32893
b02396e8
RD
32894SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32895 {
32896 void *argp = 0;
32897 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32898 if (!SWIG_IsOK(res)) {
32899 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32900 }
32901 if (!argp) {
32902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32903 } else {
32904 wxTreeItemId * temp;
32905 temp = reinterpret_cast< wxTreeItemId * >(argp);
32906 wxNullTreeItemId = *temp;
32907 if (SWIG_IsNewObj(res)) delete temp;
32908 }
32909 }
32910 return 0;
32911fail:
32912 return 1;
32913}
32914
32915
32916SWIGINTERN PyObject *NullTreeItemId_get(void) {
32917 PyObject *pyobj = 0;
32918
32919 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32920 return pyobj;
32921}
32922
32923
32924SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
32925 PyObject *resultobj = 0;
32926 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32927 int arg2 = (int) 0 ;
32928 wxTreeEvent *result = 0 ;
32929 int val1 ;
32930 int ecode1 = 0 ;
32931 int val2 ;
32932 int ecode2 = 0 ;
0085ce49 32933
b02396e8
RD
32934 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32935 if (swig_obj[0]) {
32936 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
0085ce49
RD
32937 if (!SWIG_IsOK(ecode1)) {
32938 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32939 }
32940 arg1 = static_cast< wxEventType >(val1);
32941 }
b02396e8
RD
32942 if (swig_obj[1]) {
32943 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
0085ce49
RD
32944 if (!SWIG_IsOK(ecode2)) {
32945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32946 }
32947 arg2 = static_cast< int >(val2);
32948 }
32949 {
32950 PyThreadState* __tstate = wxPyBeginAllowThreads();
32951 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32952 wxPyEndAllowThreads(__tstate);
32953 if (PyErr_Occurred()) SWIG_fail;
32954 }
32955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32956 return resultobj;
32957fail:
32958 return NULL;
70b7a5fe
RD
32959}
32960
32961
b02396e8
RD
32962SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32963 PyObject *resultobj = 0;
32964 wxEventType arg1 ;
32965 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
32966 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
32967 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
32968 wxTreeEvent *result = 0 ;
32969 int val1 ;
32970 int ecode1 = 0 ;
32971 void *argp2 = 0 ;
32972 int res2 = 0 ;
32973 void *argp3 = 0 ;
32974 int res3 = 0 ;
32975
32976 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
32977 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32978 if (!SWIG_IsOK(ecode1)) {
32979 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32980 }
32981 arg1 = static_cast< wxEventType >(val1);
32982 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
32983 if (!SWIG_IsOK(res2)) {
32984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
32985 }
32986 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
32987 if (swig_obj[2]) {
32988 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
32989 if (!SWIG_IsOK(res3)) {
32990 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32991 }
32992 if (!argp3) {
32993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32994 }
32995 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
32996 }
32997 {
32998 PyThreadState* __tstate = wxPyBeginAllowThreads();
32999 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33000 wxPyEndAllowThreads(__tstate);
33001 if (PyErr_Occurred()) SWIG_fail;
33002 }
33003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33004 return resultobj;
33005fail:
33006 return NULL;
33007}
33008
33009
33010SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33011 int argc;
33012 PyObject *argv[4];
33013
33014 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33015 --argc;
33016 if ((argc >= 0) && (argc <= 2)) {
33017 int _v = 0;
33018 if (argc > 1) {
33019 {
33020 {
33021 int res = SWIG_AsVal_int(argv[1], NULL);
33022 _v = SWIG_CheckState(res);
33023 }
33024 }
33025 if (!_v) goto check_1;
33026 }
33027 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33028 }
33029check_1:
33030
33031 if ((argc >= 2) && (argc <= 3)) {
33032 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33033 }
33034
33035fail:
33036 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33037 return NULL;
33038}
33039
33040
0085ce49
RD
33041SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33042 PyObject *resultobj = 0;
33043 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33044 wxTreeItemId result;
33045 void *argp1 = 0 ;
33046 int res1 = 0 ;
33047 PyObject *swig_obj[1] ;
33048
33049 if (!args) SWIG_fail;
33050 swig_obj[0] = args;
33051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33052 if (!SWIG_IsOK(res1)) {
33053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33054 }
33055 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33056 {
33057 PyThreadState* __tstate = wxPyBeginAllowThreads();
33058 result = ((wxTreeEvent const *)arg1)->GetItem();
33059 wxPyEndAllowThreads(__tstate);
33060 if (PyErr_Occurred()) SWIG_fail;
33061 }
33062 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33063 return resultobj;
33064fail:
33065 return NULL;
33066}
33067
33068
33069SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33070 PyObject *resultobj = 0;
33071 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33072 wxTreeItemId *arg2 = 0 ;
33073 void *argp1 = 0 ;
33074 int res1 = 0 ;
33075 void *argp2 = 0 ;
33076 int res2 = 0 ;
33077 PyObject * obj0 = 0 ;
33078 PyObject * obj1 = 0 ;
33079 char * kwnames[] = {
33080 (char *) "self",(char *) "item", NULL
33081 };
33082
33083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33085 if (!SWIG_IsOK(res1)) {
33086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33087 }
33088 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33089 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33090 if (!SWIG_IsOK(res2)) {
33091 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33092 }
33093 if (!argp2) {
33094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33095 }
33096 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33097 {
33098 PyThreadState* __tstate = wxPyBeginAllowThreads();
33099 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33100 wxPyEndAllowThreads(__tstate);
33101 if (PyErr_Occurred()) SWIG_fail;
33102 }
33103 resultobj = SWIG_Py_Void();
33104 return resultobj;
33105fail:
33106 return NULL;
2ef75293
RD
33107}
33108
33109
0085ce49
RD
33110SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33111 PyObject *resultobj = 0;
33112 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33113 wxTreeItemId result;
33114 void *argp1 = 0 ;
33115 int res1 = 0 ;
33116 PyObject *swig_obj[1] ;
33117
33118 if (!args) SWIG_fail;
33119 swig_obj[0] = args;
33120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33121 if (!SWIG_IsOK(res1)) {
33122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33123 }
33124 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33125 {
33126 PyThreadState* __tstate = wxPyBeginAllowThreads();
33127 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33128 wxPyEndAllowThreads(__tstate);
33129 if (PyErr_Occurred()) SWIG_fail;
33130 }
33131 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33132 return resultobj;
33133fail:
33134 return NULL;
33135}
33136
33137
33138SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33139 PyObject *resultobj = 0;
33140 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33141 wxTreeItemId *arg2 = 0 ;
33142 void *argp1 = 0 ;
33143 int res1 = 0 ;
33144 void *argp2 = 0 ;
33145 int res2 = 0 ;
33146 PyObject * obj0 = 0 ;
33147 PyObject * obj1 = 0 ;
33148 char * kwnames[] = {
33149 (char *) "self",(char *) "item", NULL
33150 };
33151
33152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33154 if (!SWIG_IsOK(res1)) {
33155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33156 }
33157 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33159 if (!SWIG_IsOK(res2)) {
33160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33161 }
33162 if (!argp2) {
33163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33164 }
33165 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33166 {
33167 PyThreadState* __tstate = wxPyBeginAllowThreads();
33168 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33169 wxPyEndAllowThreads(__tstate);
33170 if (PyErr_Occurred()) SWIG_fail;
33171 }
33172 resultobj = SWIG_Py_Void();
33173 return resultobj;
33174fail:
33175 return NULL;
2ef75293
RD
33176}
33177
33178
0085ce49
RD
33179SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33180 PyObject *resultobj = 0;
33181 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33182 wxPoint result;
33183 void *argp1 = 0 ;
33184 int res1 = 0 ;
33185 PyObject *swig_obj[1] ;
33186
33187 if (!args) SWIG_fail;
33188 swig_obj[0] = args;
33189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33190 if (!SWIG_IsOK(res1)) {
33191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33192 }
33193 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33194 {
33195 PyThreadState* __tstate = wxPyBeginAllowThreads();
33196 result = ((wxTreeEvent const *)arg1)->GetPoint();
33197 wxPyEndAllowThreads(__tstate);
33198 if (PyErr_Occurred()) SWIG_fail;
33199 }
33200 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33201 return resultobj;
33202fail:
33203 return NULL;
33204}
33205
33206
33207SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33208 PyObject *resultobj = 0;
33209 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33210 wxPoint *arg2 = 0 ;
33211 void *argp1 = 0 ;
33212 int res1 = 0 ;
33213 wxPoint temp2 ;
33214 PyObject * obj0 = 0 ;
33215 PyObject * obj1 = 0 ;
33216 char * kwnames[] = {
33217 (char *) "self",(char *) "pt", NULL
33218 };
33219
33220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33222 if (!SWIG_IsOK(res1)) {
33223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33224 }
33225 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33226 {
33227 arg2 = &temp2;
33228 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33229 }
33230 {
33231 PyThreadState* __tstate = wxPyBeginAllowThreads();
33232 (arg1)->SetPoint((wxPoint const &)*arg2);
33233 wxPyEndAllowThreads(__tstate);
33234 if (PyErr_Occurred()) SWIG_fail;
33235 }
33236 resultobj = SWIG_Py_Void();
33237 return resultobj;
33238fail:
33239 return NULL;
d14a1e28
RD
33240}
33241
33242
0085ce49
RD
33243SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33244 PyObject *resultobj = 0;
33245 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33246 wxKeyEvent *result = 0 ;
33247 void *argp1 = 0 ;
33248 int res1 = 0 ;
33249 PyObject *swig_obj[1] ;
33250
33251 if (!args) SWIG_fail;
33252 swig_obj[0] = args;
33253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33254 if (!SWIG_IsOK(res1)) {
33255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33256 }
33257 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33258 {
33259 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 33260 {
0085ce49
RD
33261 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33262 result = (wxKeyEvent *) &_result_ref;
d14a1e28 33263 }
0085ce49
RD
33264 wxPyEndAllowThreads(__tstate);
33265 if (PyErr_Occurred()) SWIG_fail;
33266 }
33267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33268 return resultobj;
33269fail:
33270 return NULL;
d14a1e28
RD
33271}
33272
33273
0085ce49
RD
33274SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33275 PyObject *resultobj = 0;
33276 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33277 int result;
33278 void *argp1 = 0 ;
33279 int res1 = 0 ;
33280 PyObject *swig_obj[1] ;
33281
33282 if (!args) SWIG_fail;
33283 swig_obj[0] = args;
33284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33285 if (!SWIG_IsOK(res1)) {
33286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33287 }
33288 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33289 {
33290 PyThreadState* __tstate = wxPyBeginAllowThreads();
33291 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33292 wxPyEndAllowThreads(__tstate);
33293 if (PyErr_Occurred()) SWIG_fail;
33294 }
33295 resultobj = SWIG_From_int(static_cast< int >(result));
33296 return resultobj;
33297fail:
33298 return NULL;
33299}
33300
33301
33302SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33303 PyObject *resultobj = 0;
33304 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33305 wxKeyEvent *arg2 = 0 ;
33306 void *argp1 = 0 ;
33307 int res1 = 0 ;
33308 void *argp2 = 0 ;
33309 int res2 = 0 ;
33310 PyObject * obj0 = 0 ;
33311 PyObject * obj1 = 0 ;
33312 char * kwnames[] = {
33313 (char *) "self",(char *) "evt", NULL
33314 };
33315
33316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33318 if (!SWIG_IsOK(res1)) {
33319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33320 }
33321 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33322 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33323 if (!SWIG_IsOK(res2)) {
33324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33325 }
33326 if (!argp2) {
33327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33328 }
33329 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33330 {
33331 PyThreadState* __tstate = wxPyBeginAllowThreads();
33332 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33333 wxPyEndAllowThreads(__tstate);
33334 if (PyErr_Occurred()) SWIG_fail;
33335 }
33336 resultobj = SWIG_Py_Void();
33337 return resultobj;
33338fail:
33339 return NULL;
d14a1e28
RD
33340}
33341
33342
0085ce49
RD
33343SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33344 PyObject *resultobj = 0;
33345 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33346 wxString *result = 0 ;
33347 void *argp1 = 0 ;
33348 int res1 = 0 ;
33349 PyObject *swig_obj[1] ;
33350
33351 if (!args) SWIG_fail;
33352 swig_obj[0] = args;
33353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33354 if (!SWIG_IsOK(res1)) {
33355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33356 }
33357 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33358 {
33359 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 33360 {
0085ce49
RD
33361 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33362 result = (wxString *) &_result_ref;
093d3ff1 33363 }
0085ce49
RD
33364 wxPyEndAllowThreads(__tstate);
33365 if (PyErr_Occurred()) SWIG_fail;
33366 }
33367 {
33368#if wxUSE_UNICODE
33369 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33370#else
33371 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33372#endif
33373 }
33374 return resultobj;
33375fail:
33376 return NULL;
33377}
33378
33379
33380SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33381 PyObject *resultobj = 0;
33382 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33383 wxString *arg2 = 0 ;
33384 void *argp1 = 0 ;
33385 int res1 = 0 ;
33386 bool temp2 = false ;
33387 PyObject * obj0 = 0 ;
33388 PyObject * obj1 = 0 ;
33389 char * kwnames[] = {
33390 (char *) "self",(char *) "label", NULL
33391 };
33392
33393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33395 if (!SWIG_IsOK(res1)) {
33396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33397 }
33398 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33399 {
33400 arg2 = wxString_in_helper(obj1);
33401 if (arg2 == NULL) SWIG_fail;
33402 temp2 = true;
33403 }
33404 {
33405 PyThreadState* __tstate = wxPyBeginAllowThreads();
33406 (arg1)->SetLabel((wxString const &)*arg2);
33407 wxPyEndAllowThreads(__tstate);
33408 if (PyErr_Occurred()) SWIG_fail;
33409 }
33410 resultobj = SWIG_Py_Void();
33411 {
33412 if (temp2)
33413 delete arg2;
33414 }
33415 return resultobj;
33416fail:
33417 {
33418 if (temp2)
33419 delete arg2;
33420 }
33421 return NULL;
d14a1e28
RD
33422}
33423
33424
0085ce49
RD
33425SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33426 PyObject *resultobj = 0;
33427 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33428 bool result;
33429 void *argp1 = 0 ;
33430 int res1 = 0 ;
33431 PyObject *swig_obj[1] ;
33432
33433 if (!args) SWIG_fail;
33434 swig_obj[0] = args;
33435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33436 if (!SWIG_IsOK(res1)) {
33437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33438 }
33439 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33440 {
33441 PyThreadState* __tstate = wxPyBeginAllowThreads();
33442 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33443 wxPyEndAllowThreads(__tstate);
33444 if (PyErr_Occurred()) SWIG_fail;
33445 }
33446 {
33447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33448 }
33449 return resultobj;
33450fail:
33451 return NULL;
33452}
33453
33454
33455SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33456 PyObject *resultobj = 0;
33457 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33458 bool arg2 ;
33459 void *argp1 = 0 ;
33460 int res1 = 0 ;
33461 bool val2 ;
33462 int ecode2 = 0 ;
33463 PyObject * obj0 = 0 ;
33464 PyObject * obj1 = 0 ;
33465 char * kwnames[] = {
33466 (char *) "self",(char *) "editCancelled", NULL
33467 };
33468
33469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33471 if (!SWIG_IsOK(res1)) {
33472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33473 }
33474 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33475 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33476 if (!SWIG_IsOK(ecode2)) {
33477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33478 }
33479 arg2 = static_cast< bool >(val2);
33480 {
33481 PyThreadState* __tstate = wxPyBeginAllowThreads();
33482 (arg1)->SetEditCanceled(arg2);
33483 wxPyEndAllowThreads(__tstate);
33484 if (PyErr_Occurred()) SWIG_fail;
33485 }
33486 resultobj = SWIG_Py_Void();
33487 return resultobj;
33488fail:
33489 return NULL;
33490}
33491
33492
33493SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33494 PyObject *resultobj = 0;
33495 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33496 wxString *arg2 = 0 ;
33497 void *argp1 = 0 ;
33498 int res1 = 0 ;
33499 bool temp2 = false ;
33500 PyObject * obj0 = 0 ;
33501 PyObject * obj1 = 0 ;
33502 char * kwnames[] = {
33503 (char *) "self",(char *) "toolTip", NULL
33504 };
33505
33506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33508 if (!SWIG_IsOK(res1)) {
33509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33510 }
33511 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33512 {
33513 arg2 = wxString_in_helper(obj1);
33514 if (arg2 == NULL) SWIG_fail;
33515 temp2 = true;
33516 }
33517 {
33518 PyThreadState* __tstate = wxPyBeginAllowThreads();
33519 (arg1)->SetToolTip((wxString const &)*arg2);
33520 wxPyEndAllowThreads(__tstate);
33521 if (PyErr_Occurred()) SWIG_fail;
33522 }
33523 resultobj = SWIG_Py_Void();
33524 {
33525 if (temp2)
33526 delete arg2;
33527 }
33528 return resultobj;
33529fail:
33530 {
33531 if (temp2)
33532 delete arg2;
33533 }
33534 return NULL;
d14a1e28
RD
33535}
33536
33537
0085ce49
RD
33538SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33539 PyObject *resultobj = 0;
33540 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33541 wxString result;
33542 void *argp1 = 0 ;
33543 int res1 = 0 ;
33544 PyObject *swig_obj[1] ;
33545
33546 if (!args) SWIG_fail;
33547 swig_obj[0] = args;
33548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33549 if (!SWIG_IsOK(res1)) {
33550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33551 }
33552 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33553 {
33554 PyThreadState* __tstate = wxPyBeginAllowThreads();
33555 result = (arg1)->GetToolTip();
33556 wxPyEndAllowThreads(__tstate);
33557 if (PyErr_Occurred()) SWIG_fail;
33558 }
33559 {
33560#if wxUSE_UNICODE
33561 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33562#else
33563 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33564#endif
33565 }
33566 return resultobj;
33567fail:
33568 return NULL;
33569}
33570
33571
33572SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33573 PyObject *obj;
33574 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33575 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33576 return SWIG_Py_Void();
33577}
33578
33579SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33580 return SWIG_Python_InitShadowInstance(args);
33581}
33582
33583SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33584 PyObject *resultobj = 0;
33585 wxWindow *arg1 = (wxWindow *) 0 ;
33586 int arg2 = (int) -1 ;
33587 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33588 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33589 wxSize const &arg4_defvalue = wxDefaultSize ;
33590 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33591 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33592 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33593 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33594 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33595 wxString *arg7 = (wxString *) &arg7_defvalue ;
33596 wxPyTreeCtrl *result = 0 ;
33597 void *argp1 = 0 ;
33598 int res1 = 0 ;
33599 int val2 ;
33600 int ecode2 = 0 ;
33601 wxPoint temp3 ;
33602 wxSize temp4 ;
33603 long val5 ;
33604 int ecode5 = 0 ;
33605 void *argp6 = 0 ;
33606 int res6 = 0 ;
33607 bool temp7 = false ;
33608 PyObject * obj0 = 0 ;
33609 PyObject * obj1 = 0 ;
33610 PyObject * obj2 = 0 ;
33611 PyObject * obj3 = 0 ;
33612 PyObject * obj4 = 0 ;
33613 PyObject * obj5 = 0 ;
33614 PyObject * obj6 = 0 ;
33615 char * kwnames[] = {
33616 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33617 };
33618
33619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33621 if (!SWIG_IsOK(res1)) {
33622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33623 }
33624 arg1 = reinterpret_cast< wxWindow * >(argp1);
33625 if (obj1) {
33626 ecode2 = SWIG_AsVal_int(obj1, &val2);
33627 if (!SWIG_IsOK(ecode2)) {
33628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33629 }
33630 arg2 = static_cast< int >(val2);
33631 }
33632 if (obj2) {
d14a1e28 33633 {
0085ce49
RD
33634 arg3 = &temp3;
33635 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 33636 }
0085ce49
RD
33637 }
33638 if (obj3) {
093d3ff1 33639 {
0085ce49
RD
33640 arg4 = &temp4;
33641 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 33642 }
0085ce49
RD
33643 }
33644 if (obj4) {
33645 ecode5 = SWIG_AsVal_long(obj4, &val5);
33646 if (!SWIG_IsOK(ecode5)) {
33647 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33648 }
33649 arg5 = static_cast< long >(val5);
33650 }
33651 if (obj5) {
33652 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33653 if (!SWIG_IsOK(res6)) {
33654 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33655 }
0085ce49
RD
33656 if (!argp6) {
33657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33658 }
0085ce49
RD
33659 arg6 = reinterpret_cast< wxValidator * >(argp6);
33660 }
33661 if (obj6) {
4f89f6a3 33662 {
0085ce49
RD
33663 arg7 = wxString_in_helper(obj6);
33664 if (arg7 == NULL) SWIG_fail;
33665 temp7 = true;
4f89f6a3 33666 }
0085ce49
RD
33667 }
33668 {
33669 if (!wxPyCheckForApp()) SWIG_fail;
33670 PyThreadState* __tstate = wxPyBeginAllowThreads();
33671 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33672 wxPyEndAllowThreads(__tstate);
33673 if (PyErr_Occurred()) SWIG_fail;
33674 }
33675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33676 {
33677 if (temp7)
33678 delete arg7;
33679 }
33680 return resultobj;
33681fail:
33682 {
33683 if (temp7)
33684 delete arg7;
33685 }
33686 return NULL;
d14a1e28
RD
33687}
33688
33689
0085ce49
RD
33690SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33691 PyObject *resultobj = 0;
33692 wxPyTreeCtrl *result = 0 ;
33693
33694 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33695 {
33696 if (!wxPyCheckForApp()) SWIG_fail;
33697 PyThreadState* __tstate = wxPyBeginAllowThreads();
33698 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33699 wxPyEndAllowThreads(__tstate);
33700 if (PyErr_Occurred()) SWIG_fail;
33701 }
33702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33703 return resultobj;
33704fail:
33705 return NULL;
33706}
33707
33708
33709SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33710 PyObject *resultobj = 0;
33711 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33712 wxWindow *arg2 = (wxWindow *) 0 ;
33713 int arg3 = (int) -1 ;
33714 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33715 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33716 wxSize const &arg5_defvalue = wxDefaultSize ;
33717 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33718 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33719 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33720 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33721 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33722 wxString *arg8 = (wxString *) &arg8_defvalue ;
33723 bool result;
33724 void *argp1 = 0 ;
33725 int res1 = 0 ;
33726 void *argp2 = 0 ;
33727 int res2 = 0 ;
33728 int val3 ;
33729 int ecode3 = 0 ;
33730 wxPoint temp4 ;
33731 wxSize temp5 ;
33732 long val6 ;
33733 int ecode6 = 0 ;
33734 void *argp7 = 0 ;
33735 int res7 = 0 ;
33736 bool temp8 = false ;
33737 PyObject * obj0 = 0 ;
33738 PyObject * obj1 = 0 ;
33739 PyObject * obj2 = 0 ;
33740 PyObject * obj3 = 0 ;
33741 PyObject * obj4 = 0 ;
33742 PyObject * obj5 = 0 ;
33743 PyObject * obj6 = 0 ;
33744 PyObject * obj7 = 0 ;
33745 char * kwnames[] = {
33746 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33747 };
33748
33749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33751 if (!SWIG_IsOK(res1)) {
33752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33753 }
33754 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33755 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33756 if (!SWIG_IsOK(res2)) {
33757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33758 }
33759 arg2 = reinterpret_cast< wxWindow * >(argp2);
33760 if (obj2) {
33761 ecode3 = SWIG_AsVal_int(obj2, &val3);
33762 if (!SWIG_IsOK(ecode3)) {
33763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33764 }
33765 arg3 = static_cast< int >(val3);
33766 }
33767 if (obj3) {
4f89f6a3 33768 {
0085ce49
RD
33769 arg4 = &temp4;
33770 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 33771 }
0085ce49
RD
33772 }
33773 if (obj4) {
d14a1e28 33774 {
0085ce49
RD
33775 arg5 = &temp5;
33776 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 33777 }
0085ce49
RD
33778 }
33779 if (obj5) {
33780 ecode6 = SWIG_AsVal_long(obj5, &val6);
33781 if (!SWIG_IsOK(ecode6)) {
33782 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33783 }
33784 arg6 = static_cast< long >(val6);
33785 }
33786 if (obj6) {
33787 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33788 if (!SWIG_IsOK(res7)) {
33789 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 33790 }
0085ce49
RD
33791 if (!argp7) {
33792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 33793 }
0085ce49
RD
33794 arg7 = reinterpret_cast< wxValidator * >(argp7);
33795 }
33796 if (obj7) {
4276dc52 33797 {
0085ce49
RD
33798 arg8 = wxString_in_helper(obj7);
33799 if (arg8 == NULL) SWIG_fail;
33800 temp8 = true;
4276dc52 33801 }
0085ce49
RD
33802 }
33803 {
33804 PyThreadState* __tstate = wxPyBeginAllowThreads();
33805 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33806 wxPyEndAllowThreads(__tstate);
33807 if (PyErr_Occurred()) SWIG_fail;
33808 }
33809 {
33810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33811 }
33812 {
33813 if (temp8)
33814 delete arg8;
33815 }
33816 return resultobj;
33817fail:
33818 {
33819 if (temp8)
33820 delete arg8;
33821 }
33822 return NULL;
33823}
33824
33825
33826SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33827 PyObject *resultobj = 0;
33828 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33829 PyObject *arg2 = (PyObject *) 0 ;
33830 PyObject *arg3 = (PyObject *) 0 ;
33831 void *argp1 = 0 ;
33832 int res1 = 0 ;
33833 PyObject * obj0 = 0 ;
33834 PyObject * obj1 = 0 ;
33835 PyObject * obj2 = 0 ;
33836 char * kwnames[] = {
33837 (char *) "self",(char *) "self",(char *) "_class", NULL
33838 };
33839
33840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33842 if (!SWIG_IsOK(res1)) {
33843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33844 }
33845 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33846 arg2 = obj1;
33847 arg3 = obj2;
33848 {
33849 PyThreadState* __tstate = wxPyBeginAllowThreads();
33850 (arg1)->_setCallbackInfo(arg2,arg3);
33851 wxPyEndAllowThreads(__tstate);
33852 if (PyErr_Occurred()) SWIG_fail;
33853 }
33854 resultobj = SWIG_Py_Void();
33855 return resultobj;
33856fail:
33857 return NULL;
d14a1e28
RD
33858}
33859
33860
0085ce49
RD
33861SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33862 PyObject *resultobj = 0;
33863 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 33864 unsigned int result;
0085ce49
RD
33865 void *argp1 = 0 ;
33866 int res1 = 0 ;
33867 PyObject *swig_obj[1] ;
33868
33869 if (!args) SWIG_fail;
33870 swig_obj[0] = args;
33871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33872 if (!SWIG_IsOK(res1)) {
33873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33874 }
33875 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33876 {
33877 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 33878 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
0085ce49
RD
33879 wxPyEndAllowThreads(__tstate);
33880 if (PyErr_Occurred()) SWIG_fail;
33881 }
e9d6f3a4 33882 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
33883 return resultobj;
33884fail:
33885 return NULL;
d14a1e28
RD
33886}
33887
33888
0085ce49
RD
33889SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33890 PyObject *resultobj = 0;
33891 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33892 unsigned int result;
33893 void *argp1 = 0 ;
33894 int res1 = 0 ;
33895 PyObject *swig_obj[1] ;
33896
33897 if (!args) SWIG_fail;
33898 swig_obj[0] = args;
33899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33900 if (!SWIG_IsOK(res1)) {
33901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33902 }
33903 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33904 {
33905 PyThreadState* __tstate = wxPyBeginAllowThreads();
33906 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33907 wxPyEndAllowThreads(__tstate);
33908 if (PyErr_Occurred()) SWIG_fail;
33909 }
33910 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33911 return resultobj;
33912fail:
33913 return NULL;
33914}
33915
33916
33917SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33918 PyObject *resultobj = 0;
33919 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33920 unsigned int arg2 ;
33921 void *argp1 = 0 ;
33922 int res1 = 0 ;
33923 unsigned int val2 ;
33924 int ecode2 = 0 ;
33925 PyObject * obj0 = 0 ;
33926 PyObject * obj1 = 0 ;
33927 char * kwnames[] = {
33928 (char *) "self",(char *) "indent", NULL
33929 };
33930
33931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33933 if (!SWIG_IsOK(res1)) {
33934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33935 }
33936 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33937 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33938 if (!SWIG_IsOK(ecode2)) {
33939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33940 }
33941 arg2 = static_cast< unsigned int >(val2);
33942 {
33943 PyThreadState* __tstate = wxPyBeginAllowThreads();
33944 (arg1)->SetIndent(arg2);
33945 wxPyEndAllowThreads(__tstate);
33946 if (PyErr_Occurred()) SWIG_fail;
33947 }
33948 resultobj = SWIG_Py_Void();
33949 return resultobj;
33950fail:
33951 return NULL;
d14a1e28
RD
33952}
33953
33954
0085ce49
RD
33955SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33956 PyObject *resultobj = 0;
33957 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33958 unsigned int result;
33959 void *argp1 = 0 ;
33960 int res1 = 0 ;
33961 PyObject *swig_obj[1] ;
33962
33963 if (!args) SWIG_fail;
33964 swig_obj[0] = args;
33965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33966 if (!SWIG_IsOK(res1)) {
33967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33968 }
33969 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33970 {
33971 PyThreadState* __tstate = wxPyBeginAllowThreads();
33972 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33973 wxPyEndAllowThreads(__tstate);
33974 if (PyErr_Occurred()) SWIG_fail;
33975 }
33976 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33977 return resultobj;
33978fail:
33979 return NULL;
33980}
33981
33982
33983SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33984 PyObject *resultobj = 0;
33985 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33986 unsigned int arg2 ;
33987 void *argp1 = 0 ;
33988 int res1 = 0 ;
33989 unsigned int val2 ;
33990 int ecode2 = 0 ;
33991 PyObject * obj0 = 0 ;
33992 PyObject * obj1 = 0 ;
33993 char * kwnames[] = {
33994 (char *) "self",(char *) "spacing", NULL
33995 };
33996
33997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33999 if (!SWIG_IsOK(res1)) {
34000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34001 }
34002 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34003 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34004 if (!SWIG_IsOK(ecode2)) {
34005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34006 }
34007 arg2 = static_cast< unsigned int >(val2);
34008 {
34009 PyThreadState* __tstate = wxPyBeginAllowThreads();
34010 (arg1)->SetSpacing(arg2);
34011 wxPyEndAllowThreads(__tstate);
34012 if (PyErr_Occurred()) SWIG_fail;
34013 }
34014 resultobj = SWIG_Py_Void();
34015 return resultobj;
34016fail:
34017 return NULL;
d14a1e28
RD
34018}
34019
34020
0085ce49
RD
34021SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34022 PyObject *resultobj = 0;
34023 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34024 wxImageList *result = 0 ;
34025 void *argp1 = 0 ;
34026 int res1 = 0 ;
34027 PyObject *swig_obj[1] ;
34028
34029 if (!args) SWIG_fail;
34030 swig_obj[0] = args;
34031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34032 if (!SWIG_IsOK(res1)) {
34033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34034 }
34035 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34036 {
34037 PyThreadState* __tstate = wxPyBeginAllowThreads();
34038 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34039 wxPyEndAllowThreads(__tstate);
34040 if (PyErr_Occurred()) SWIG_fail;
34041 }
34042 {
34043 resultobj = wxPyMake_wxObject(result, (bool)0);
34044 }
34045 return resultobj;
34046fail:
34047 return NULL;
d14a1e28
RD
34048}
34049
34050
0085ce49
RD
34051SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34052 PyObject *resultobj = 0;
34053 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34054 wxImageList *result = 0 ;
34055 void *argp1 = 0 ;
34056 int res1 = 0 ;
34057 PyObject *swig_obj[1] ;
34058
34059 if (!args) SWIG_fail;
34060 swig_obj[0] = args;
34061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34062 if (!SWIG_IsOK(res1)) {
34063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34064 }
34065 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34066 {
34067 PyThreadState* __tstate = wxPyBeginAllowThreads();
34068 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34069 wxPyEndAllowThreads(__tstate);
34070 if (PyErr_Occurred()) SWIG_fail;
34071 }
34072 {
34073 resultobj = wxPyMake_wxObject(result, (bool)0);
34074 }
34075 return resultobj;
34076fail:
34077 return NULL;
34078}
34079
34080
34081SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34082 PyObject *resultobj = 0;
34083 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34084 wxImageList *arg2 = (wxImageList *) 0 ;
34085 void *argp1 = 0 ;
34086 int res1 = 0 ;
34087 void *argp2 = 0 ;
34088 int res2 = 0 ;
34089 PyObject * obj0 = 0 ;
34090 PyObject * obj1 = 0 ;
34091 char * kwnames[] = {
34092 (char *) "self",(char *) "imageList", NULL
34093 };
34094
34095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34097 if (!SWIG_IsOK(res1)) {
34098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34099 }
34100 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34101 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34102 if (!SWIG_IsOK(res2)) {
34103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34104 }
34105 arg2 = reinterpret_cast< wxImageList * >(argp2);
34106 {
34107 PyThreadState* __tstate = wxPyBeginAllowThreads();
34108 (arg1)->SetImageList(arg2);
34109 wxPyEndAllowThreads(__tstate);
34110 if (PyErr_Occurred()) SWIG_fail;
34111 }
34112 resultobj = SWIG_Py_Void();
34113 return resultobj;
34114fail:
34115 return NULL;
34116}
34117
34118
34119SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34120 PyObject *resultobj = 0;
34121 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34122 wxImageList *arg2 = (wxImageList *) 0 ;
34123 void *argp1 = 0 ;
34124 int res1 = 0 ;
34125 void *argp2 = 0 ;
34126 int res2 = 0 ;
34127 PyObject * obj0 = 0 ;
34128 PyObject * obj1 = 0 ;
34129 char * kwnames[] = {
34130 (char *) "self",(char *) "imageList", NULL
34131 };
34132
34133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34135 if (!SWIG_IsOK(res1)) {
34136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34137 }
34138 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34139 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34140 if (!SWIG_IsOK(res2)) {
34141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34142 }
34143 arg2 = reinterpret_cast< wxImageList * >(argp2);
34144 {
34145 PyThreadState* __tstate = wxPyBeginAllowThreads();
34146 (arg1)->SetStateImageList(arg2);
34147 wxPyEndAllowThreads(__tstate);
34148 if (PyErr_Occurred()) SWIG_fail;
34149 }
34150 resultobj = SWIG_Py_Void();
34151 return resultobj;
34152fail:
34153 return NULL;
34154}
34155
34156
34157SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34158 PyObject *resultobj = 0;
34159 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34160 wxImageList *arg2 = (wxImageList *) 0 ;
34161 void *argp1 = 0 ;
34162 int res1 = 0 ;
34163 int res2 = 0 ;
34164 PyObject * obj0 = 0 ;
34165 PyObject * obj1 = 0 ;
34166 char * kwnames[] = {
34167 (char *) "self",(char *) "imageList", NULL
34168 };
34169
34170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34172 if (!SWIG_IsOK(res1)) {
34173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34174 }
34175 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34176 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34177 if (!SWIG_IsOK(res2)) {
34178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34179 }
34180 {
34181 PyThreadState* __tstate = wxPyBeginAllowThreads();
34182 (arg1)->AssignImageList(arg2);
34183 wxPyEndAllowThreads(__tstate);
34184 if (PyErr_Occurred()) SWIG_fail;
34185 }
34186 resultobj = SWIG_Py_Void();
34187 return resultobj;
34188fail:
34189 return NULL;
34190}
34191
34192
34193SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34194 PyObject *resultobj = 0;
34195 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34196 wxImageList *arg2 = (wxImageList *) 0 ;
34197 void *argp1 = 0 ;
34198 int res1 = 0 ;
34199 int res2 = 0 ;
34200 PyObject * obj0 = 0 ;
34201 PyObject * obj1 = 0 ;
34202 char * kwnames[] = {
34203 (char *) "self",(char *) "imageList", NULL
34204 };
34205
34206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34208 if (!SWIG_IsOK(res1)) {
34209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34210 }
34211 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34212 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34213 if (!SWIG_IsOK(res2)) {
34214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34215 }
34216 {
34217 PyThreadState* __tstate = wxPyBeginAllowThreads();
34218 (arg1)->AssignStateImageList(arg2);
34219 wxPyEndAllowThreads(__tstate);
34220 if (PyErr_Occurred()) SWIG_fail;
34221 }
34222 resultobj = SWIG_Py_Void();
34223 return resultobj;
34224fail:
34225 return NULL;
34226}
34227
34228
34229SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34230 PyObject *resultobj = 0;
34231 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34232 wxTreeItemId *arg2 = 0 ;
34233 wxString result;
34234 void *argp1 = 0 ;
34235 int res1 = 0 ;
34236 void *argp2 = 0 ;
34237 int res2 = 0 ;
34238 PyObject * obj0 = 0 ;
34239 PyObject * obj1 = 0 ;
34240 char * kwnames[] = {
34241 (char *) "self",(char *) "item", NULL
34242 };
34243
34244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34246 if (!SWIG_IsOK(res1)) {
34247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34248 }
34249 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34250 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34251 if (!SWIG_IsOK(res2)) {
34252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34253 }
34254 if (!argp2) {
34255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34256 }
34257 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34258 {
34259 PyThreadState* __tstate = wxPyBeginAllowThreads();
34260 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34261 wxPyEndAllowThreads(__tstate);
34262 if (PyErr_Occurred()) SWIG_fail;
34263 }
34264 {
d14a1e28 34265#if wxUSE_UNICODE
0085ce49 34266 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 34267#else
0085ce49 34268 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 34269#endif
0085ce49
RD
34270 }
34271 return resultobj;
34272fail:
34273 return NULL;
34274}
34275
34276
34277SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34278 PyObject *resultobj = 0;
34279 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34280 wxTreeItemId *arg2 = 0 ;
34281 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34282 int result;
34283 void *argp1 = 0 ;
34284 int res1 = 0 ;
34285 void *argp2 = 0 ;
34286 int res2 = 0 ;
34287 int val3 ;
34288 int ecode3 = 0 ;
34289 PyObject * obj0 = 0 ;
34290 PyObject * obj1 = 0 ;
34291 PyObject * obj2 = 0 ;
34292 char * kwnames[] = {
34293 (char *) "self",(char *) "item",(char *) "which", NULL
34294 };
34295
34296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34298 if (!SWIG_IsOK(res1)) {
34299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34300 }
34301 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34302 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34303 if (!SWIG_IsOK(res2)) {
34304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34305 }
34306 if (!argp2) {
34307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34308 }
34309 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34310 if (obj2) {
34311 ecode3 = SWIG_AsVal_int(obj2, &val3);
34312 if (!SWIG_IsOK(ecode3)) {
34313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34314 }
34315 arg3 = static_cast< wxTreeItemIcon >(val3);
34316 }
34317 {
34318 PyThreadState* __tstate = wxPyBeginAllowThreads();
34319 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34320 wxPyEndAllowThreads(__tstate);
34321 if (PyErr_Occurred()) SWIG_fail;
34322 }
34323 resultobj = SWIG_From_int(static_cast< int >(result));
34324 return resultobj;
34325fail:
34326 return NULL;
34327}
34328
34329
34330SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34331 PyObject *resultobj = 0;
34332 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34333 wxTreeItemId *arg2 = 0 ;
34334 wxPyTreeItemData *result = 0 ;
34335 void *argp1 = 0 ;
34336 int res1 = 0 ;
34337 void *argp2 = 0 ;
34338 int res2 = 0 ;
34339 PyObject * obj0 = 0 ;
34340 PyObject * obj1 = 0 ;
34341 char * kwnames[] = {
34342 (char *) "self",(char *) "item", NULL
34343 };
34344
34345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34347 if (!SWIG_IsOK(res1)) {
34348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34349 }
34350 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34351 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34352 if (!SWIG_IsOK(res2)) {
34353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34354 }
34355 if (!argp2) {
34356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34357 }
34358 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34359 {
34360 PyThreadState* __tstate = wxPyBeginAllowThreads();
34361 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34362 wxPyEndAllowThreads(__tstate);
34363 if (PyErr_Occurred()) SWIG_fail;
34364 }
34365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34366 return resultobj;
34367fail:
34368 return NULL;
34369}
34370
34371
34372SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34373 PyObject *resultobj = 0;
34374 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34375 wxTreeItemId *arg2 = 0 ;
34376 PyObject *result = 0 ;
34377 void *argp1 = 0 ;
34378 int res1 = 0 ;
34379 void *argp2 = 0 ;
34380 int res2 = 0 ;
34381 PyObject * obj0 = 0 ;
34382 PyObject * obj1 = 0 ;
34383 char * kwnames[] = {
34384 (char *) "self",(char *) "item", NULL
34385 };
34386
34387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34389 if (!SWIG_IsOK(res1)) {
34390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34391 }
34392 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34393 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34394 if (!SWIG_IsOK(res2)) {
34395 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34396 }
34397 if (!argp2) {
34398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34399 }
34400 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34401 {
34402 PyThreadState* __tstate = wxPyBeginAllowThreads();
34403 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34404 wxPyEndAllowThreads(__tstate);
34405 if (PyErr_Occurred()) SWIG_fail;
34406 }
34407 resultobj = result;
34408 return resultobj;
34409fail:
34410 return NULL;
34411}
34412
34413
34414SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34415 PyObject *resultobj = 0;
34416 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34417 wxTreeItemId *arg2 = 0 ;
34418 wxColour result;
34419 void *argp1 = 0 ;
34420 int res1 = 0 ;
34421 void *argp2 = 0 ;
34422 int res2 = 0 ;
34423 PyObject * obj0 = 0 ;
34424 PyObject * obj1 = 0 ;
34425 char * kwnames[] = {
34426 (char *) "self",(char *) "item", NULL
34427 };
34428
34429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34431 if (!SWIG_IsOK(res1)) {
34432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34433 }
34434 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34435 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34436 if (!SWIG_IsOK(res2)) {
34437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34438 }
34439 if (!argp2) {
34440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34441 }
34442 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34443 {
34444 PyThreadState* __tstate = wxPyBeginAllowThreads();
34445 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34446 wxPyEndAllowThreads(__tstate);
34447 if (PyErr_Occurred()) SWIG_fail;
34448 }
34449 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34450 return resultobj;
34451fail:
34452 return NULL;
34453}
34454
34455
34456SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34457 PyObject *resultobj = 0;
34458 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34459 wxTreeItemId *arg2 = 0 ;
34460 wxColour result;
34461 void *argp1 = 0 ;
34462 int res1 = 0 ;
34463 void *argp2 = 0 ;
34464 int res2 = 0 ;
34465 PyObject * obj0 = 0 ;
34466 PyObject * obj1 = 0 ;
34467 char * kwnames[] = {
34468 (char *) "self",(char *) "item", NULL
34469 };
34470
34471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34473 if (!SWIG_IsOK(res1)) {
34474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34475 }
34476 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34477 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34478 if (!SWIG_IsOK(res2)) {
34479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34480 }
34481 if (!argp2) {
34482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34483 }
34484 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34485 {
34486 PyThreadState* __tstate = wxPyBeginAllowThreads();
34487 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34488 wxPyEndAllowThreads(__tstate);
34489 if (PyErr_Occurred()) SWIG_fail;
34490 }
34491 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34492 return resultobj;
34493fail:
34494 return NULL;
34495}
34496
34497
34498SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34499 PyObject *resultobj = 0;
34500 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34501 wxTreeItemId *arg2 = 0 ;
34502 wxFont result;
34503 void *argp1 = 0 ;
34504 int res1 = 0 ;
34505 void *argp2 = 0 ;
34506 int res2 = 0 ;
34507 PyObject * obj0 = 0 ;
34508 PyObject * obj1 = 0 ;
34509 char * kwnames[] = {
34510 (char *) "self",(char *) "item", NULL
34511 };
34512
34513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",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_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34517 }
34518 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34519 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34520 if (!SWIG_IsOK(res2)) {
34521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34522 }
34523 if (!argp2) {
34524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34525 }
34526 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34527 {
34528 PyThreadState* __tstate = wxPyBeginAllowThreads();
34529 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34530 wxPyEndAllowThreads(__tstate);
34531 if (PyErr_Occurred()) SWIG_fail;
34532 }
34533 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34534 return resultobj;
34535fail:
34536 return NULL;
34537}
34538
34539
34540SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34541 PyObject *resultobj = 0;
34542 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34543 wxTreeItemId *arg2 = 0 ;
34544 wxString *arg3 = 0 ;
34545 void *argp1 = 0 ;
34546 int res1 = 0 ;
34547 void *argp2 = 0 ;
34548 int res2 = 0 ;
34549 bool temp3 = false ;
34550 PyObject * obj0 = 0 ;
34551 PyObject * obj1 = 0 ;
34552 PyObject * obj2 = 0 ;
34553 char * kwnames[] = {
34554 (char *) "self",(char *) "item",(char *) "text", NULL
34555 };
34556
34557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34559 if (!SWIG_IsOK(res1)) {
34560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34561 }
34562 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34564 if (!SWIG_IsOK(res2)) {
34565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34566 }
34567 if (!argp2) {
34568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34569 }
34570 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34571 {
34572 arg3 = wxString_in_helper(obj2);
34573 if (arg3 == NULL) SWIG_fail;
34574 temp3 = true;
34575 }
34576 {
34577 PyThreadState* __tstate = wxPyBeginAllowThreads();
34578 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34579 wxPyEndAllowThreads(__tstate);
34580 if (PyErr_Occurred()) SWIG_fail;
34581 }
34582 resultobj = SWIG_Py_Void();
34583 {
34584 if (temp3)
34585 delete arg3;
34586 }
34587 return resultobj;
34588fail:
34589 {
34590 if (temp3)
34591 delete arg3;
34592 }
34593 return NULL;
34594}
34595
34596
34597SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34598 PyObject *resultobj = 0;
34599 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34600 wxTreeItemId *arg2 = 0 ;
34601 int arg3 ;
34602 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34603 void *argp1 = 0 ;
34604 int res1 = 0 ;
34605 void *argp2 = 0 ;
34606 int res2 = 0 ;
34607 int val3 ;
34608 int ecode3 = 0 ;
34609 int val4 ;
34610 int ecode4 = 0 ;
34611 PyObject * obj0 = 0 ;
34612 PyObject * obj1 = 0 ;
34613 PyObject * obj2 = 0 ;
34614 PyObject * obj3 = 0 ;
34615 char * kwnames[] = {
34616 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34617 };
34618
34619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34621 if (!SWIG_IsOK(res1)) {
34622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34623 }
34624 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34626 if (!SWIG_IsOK(res2)) {
34627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34628 }
34629 if (!argp2) {
34630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34631 }
34632 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34633 ecode3 = SWIG_AsVal_int(obj2, &val3);
34634 if (!SWIG_IsOK(ecode3)) {
34635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34636 }
34637 arg3 = static_cast< int >(val3);
34638 if (obj3) {
34639 ecode4 = SWIG_AsVal_int(obj3, &val4);
34640 if (!SWIG_IsOK(ecode4)) {
34641 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34642 }
34643 arg4 = static_cast< wxTreeItemIcon >(val4);
34644 }
34645 {
34646 PyThreadState* __tstate = wxPyBeginAllowThreads();
34647 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34648 wxPyEndAllowThreads(__tstate);
34649 if (PyErr_Occurred()) SWIG_fail;
34650 }
34651 resultobj = SWIG_Py_Void();
34652 return resultobj;
34653fail:
34654 return NULL;
34655}
34656
34657
34658SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34659 PyObject *resultobj = 0;
34660 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34661 wxTreeItemId *arg2 = 0 ;
34662 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34663 void *argp1 = 0 ;
34664 int res1 = 0 ;
34665 void *argp2 = 0 ;
34666 int res2 = 0 ;
34667 int res3 = 0 ;
34668 PyObject * obj0 = 0 ;
34669 PyObject * obj1 = 0 ;
34670 PyObject * obj2 = 0 ;
34671 char * kwnames[] = {
34672 (char *) "self",(char *) "item",(char *) "data", NULL
34673 };
34674
34675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34677 if (!SWIG_IsOK(res1)) {
34678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34679 }
34680 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34681 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34682 if (!SWIG_IsOK(res2)) {
34683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34684 }
34685 if (!argp2) {
34686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34687 }
34688 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34689 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34690 if (!SWIG_IsOK(res3)) {
34691 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34692 }
34693 {
34694 PyThreadState* __tstate = wxPyBeginAllowThreads();
34695 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34696 wxPyEndAllowThreads(__tstate);
34697 if (PyErr_Occurred()) SWIG_fail;
34698 }
34699 resultobj = SWIG_Py_Void();
34700 return resultobj;
34701fail:
34702 return NULL;
34703}
34704
34705
34706SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34707 PyObject *resultobj = 0;
34708 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34709 wxTreeItemId *arg2 = 0 ;
34710 PyObject *arg3 = (PyObject *) 0 ;
34711 void *argp1 = 0 ;
34712 int res1 = 0 ;
34713 void *argp2 = 0 ;
34714 int res2 = 0 ;
34715 PyObject * obj0 = 0 ;
34716 PyObject * obj1 = 0 ;
34717 PyObject * obj2 = 0 ;
34718 char * kwnames[] = {
34719 (char *) "self",(char *) "item",(char *) "obj", NULL
34720 };
34721
34722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34724 if (!SWIG_IsOK(res1)) {
34725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34726 }
34727 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34728 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34729 if (!SWIG_IsOK(res2)) {
34730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34731 }
34732 if (!argp2) {
34733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34734 }
34735 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34736 arg3 = obj2;
34737 {
34738 PyThreadState* __tstate = wxPyBeginAllowThreads();
34739 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34740 wxPyEndAllowThreads(__tstate);
34741 if (PyErr_Occurred()) SWIG_fail;
34742 }
34743 resultobj = SWIG_Py_Void();
34744 return resultobj;
34745fail:
34746 return NULL;
34747}
34748
34749
34750SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34751 PyObject *resultobj = 0;
34752 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34753 wxTreeItemId *arg2 = 0 ;
34754 bool arg3 = (bool) true ;
34755 void *argp1 = 0 ;
34756 int res1 = 0 ;
34757 void *argp2 = 0 ;
34758 int res2 = 0 ;
34759 bool val3 ;
34760 int ecode3 = 0 ;
34761 PyObject * obj0 = 0 ;
34762 PyObject * obj1 = 0 ;
34763 PyObject * obj2 = 0 ;
34764 char * kwnames[] = {
34765 (char *) "self",(char *) "item",(char *) "has", NULL
34766 };
34767
34768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34770 if (!SWIG_IsOK(res1)) {
34771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34772 }
34773 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34774 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34775 if (!SWIG_IsOK(res2)) {
34776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34777 }
34778 if (!argp2) {
34779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34780 }
34781 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34782 if (obj2) {
34783 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34784 if (!SWIG_IsOK(ecode3)) {
34785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34786 }
34787 arg3 = static_cast< bool >(val3);
34788 }
34789 {
34790 PyThreadState* __tstate = wxPyBeginAllowThreads();
34791 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34792 wxPyEndAllowThreads(__tstate);
34793 if (PyErr_Occurred()) SWIG_fail;
34794 }
34795 resultobj = SWIG_Py_Void();
34796 return resultobj;
34797fail:
34798 return NULL;
34799}
34800
34801
34802SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34803 PyObject *resultobj = 0;
34804 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34805 wxTreeItemId *arg2 = 0 ;
34806 bool arg3 = (bool) true ;
34807 void *argp1 = 0 ;
34808 int res1 = 0 ;
34809 void *argp2 = 0 ;
34810 int res2 = 0 ;
34811 bool val3 ;
34812 int ecode3 = 0 ;
34813 PyObject * obj0 = 0 ;
34814 PyObject * obj1 = 0 ;
34815 PyObject * obj2 = 0 ;
34816 char * kwnames[] = {
34817 (char *) "self",(char *) "item",(char *) "bold", NULL
34818 };
34819
34820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) 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_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
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_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34829 }
34830 if (!argp2) {
34831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34832 }
34833 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34834 if (obj2) {
34835 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34836 if (!SWIG_IsOK(ecode3)) {
34837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34838 }
34839 arg3 = static_cast< bool >(val3);
34840 }
34841 {
34842 PyThreadState* __tstate = wxPyBeginAllowThreads();
34843 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34844 wxPyEndAllowThreads(__tstate);
34845 if (PyErr_Occurred()) SWIG_fail;
34846 }
34847 resultobj = SWIG_Py_Void();
34848 return resultobj;
34849fail:
34850 return NULL;
34851}
34852
34853
34854SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34855 PyObject *resultobj = 0;
34856 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34857 wxTreeItemId *arg2 = 0 ;
34858 bool arg3 = (bool) true ;
34859 void *argp1 = 0 ;
34860 int res1 = 0 ;
34861 void *argp2 = 0 ;
34862 int res2 = 0 ;
34863 bool val3 ;
34864 int ecode3 = 0 ;
34865 PyObject * obj0 = 0 ;
34866 PyObject * obj1 = 0 ;
34867 PyObject * obj2 = 0 ;
34868 char * kwnames[] = {
34869 (char *) "self",(char *) "item",(char *) "highlight", NULL
34870 };
34871
34872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34874 if (!SWIG_IsOK(res1)) {
34875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34876 }
34877 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34878 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34879 if (!SWIG_IsOK(res2)) {
34880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34881 }
34882 if (!argp2) {
34883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34884 }
34885 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34886 if (obj2) {
34887 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34888 if (!SWIG_IsOK(ecode3)) {
34889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34890 }
34891 arg3 = static_cast< bool >(val3);
34892 }
34893 {
34894 PyThreadState* __tstate = wxPyBeginAllowThreads();
34895 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34896 wxPyEndAllowThreads(__tstate);
34897 if (PyErr_Occurred()) SWIG_fail;
34898 }
34899 resultobj = SWIG_Py_Void();
34900 return resultobj;
34901fail:
34902 return NULL;
34903}
34904
34905
34906SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34907 PyObject *resultobj = 0;
34908 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34909 wxTreeItemId *arg2 = 0 ;
34910 wxColour *arg3 = 0 ;
34911 void *argp1 = 0 ;
34912 int res1 = 0 ;
34913 void *argp2 = 0 ;
34914 int res2 = 0 ;
34915 wxColour temp3 ;
34916 PyObject * obj0 = 0 ;
34917 PyObject * obj1 = 0 ;
34918 PyObject * obj2 = 0 ;
34919 char * kwnames[] = {
34920 (char *) "self",(char *) "item",(char *) "col", NULL
34921 };
34922
34923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34925 if (!SWIG_IsOK(res1)) {
34926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34927 }
34928 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34929 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34930 if (!SWIG_IsOK(res2)) {
34931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34932 }
34933 if (!argp2) {
34934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34935 }
34936 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34937 {
34938 arg3 = &temp3;
34939 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34940 }
34941 {
34942 PyThreadState* __tstate = wxPyBeginAllowThreads();
34943 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34944 wxPyEndAllowThreads(__tstate);
34945 if (PyErr_Occurred()) SWIG_fail;
34946 }
34947 resultobj = SWIG_Py_Void();
34948 return resultobj;
34949fail:
34950 return NULL;
34951}
34952
34953
34954SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34955 PyObject *resultobj = 0;
34956 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34957 wxTreeItemId *arg2 = 0 ;
34958 wxColour *arg3 = 0 ;
34959 void *argp1 = 0 ;
34960 int res1 = 0 ;
34961 void *argp2 = 0 ;
34962 int res2 = 0 ;
34963 wxColour temp3 ;
34964 PyObject * obj0 = 0 ;
34965 PyObject * obj1 = 0 ;
34966 PyObject * obj2 = 0 ;
34967 char * kwnames[] = {
34968 (char *) "self",(char *) "item",(char *) "col", NULL
34969 };
34970
34971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34973 if (!SWIG_IsOK(res1)) {
34974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34975 }
34976 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34977 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34978 if (!SWIG_IsOK(res2)) {
34979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34980 }
34981 if (!argp2) {
34982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34983 }
34984 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34985 {
34986 arg3 = &temp3;
34987 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34988 }
34989 {
34990 PyThreadState* __tstate = wxPyBeginAllowThreads();
34991 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34992 wxPyEndAllowThreads(__tstate);
34993 if (PyErr_Occurred()) SWIG_fail;
34994 }
34995 resultobj = SWIG_Py_Void();
34996 return resultobj;
34997fail:
34998 return NULL;
34999}
35000
35001
35002SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35003 PyObject *resultobj = 0;
35004 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35005 wxTreeItemId *arg2 = 0 ;
35006 wxFont *arg3 = 0 ;
35007 void *argp1 = 0 ;
35008 int res1 = 0 ;
35009 void *argp2 = 0 ;
35010 int res2 = 0 ;
35011 void *argp3 = 0 ;
35012 int res3 = 0 ;
35013 PyObject * obj0 = 0 ;
35014 PyObject * obj1 = 0 ;
35015 PyObject * obj2 = 0 ;
35016 char * kwnames[] = {
35017 (char *) "self",(char *) "item",(char *) "font", NULL
35018 };
35019
35020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35022 if (!SWIG_IsOK(res1)) {
35023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35024 }
35025 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35026 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35027 if (!SWIG_IsOK(res2)) {
35028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35029 }
35030 if (!argp2) {
35031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35032 }
35033 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35034 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35035 if (!SWIG_IsOK(res3)) {
35036 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35037 }
35038 if (!argp3) {
35039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35040 }
35041 arg3 = reinterpret_cast< wxFont * >(argp3);
35042 {
35043 PyThreadState* __tstate = wxPyBeginAllowThreads();
35044 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35045 wxPyEndAllowThreads(__tstate);
35046 if (PyErr_Occurred()) SWIG_fail;
35047 }
35048 resultobj = SWIG_Py_Void();
35049 return resultobj;
35050fail:
35051 return NULL;
35052}
35053
35054
35055SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35056 PyObject *resultobj = 0;
35057 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35058 wxTreeItemId *arg2 = 0 ;
35059 bool result;
35060 void *argp1 = 0 ;
35061 int res1 = 0 ;
35062 void *argp2 = 0 ;
35063 int res2 = 0 ;
35064 PyObject * obj0 = 0 ;
35065 PyObject * obj1 = 0 ;
35066 char * kwnames[] = {
35067 (char *) "self",(char *) "item", NULL
35068 };
35069
35070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35072 if (!SWIG_IsOK(res1)) {
35073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35074 }
35075 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35076 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35077 if (!SWIG_IsOK(res2)) {
35078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35079 }
35080 if (!argp2) {
35081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35082 }
35083 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35084 {
35085 PyThreadState* __tstate = wxPyBeginAllowThreads();
35086 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35087 wxPyEndAllowThreads(__tstate);
35088 if (PyErr_Occurred()) SWIG_fail;
35089 }
35090 {
35091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35092 }
35093 return resultobj;
35094fail:
35095 return NULL;
35096}
35097
35098
35099SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35100 PyObject *resultobj = 0;
35101 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35102 wxTreeItemId *arg2 = 0 ;
35103 bool result;
35104 void *argp1 = 0 ;
35105 int res1 = 0 ;
35106 void *argp2 = 0 ;
35107 int res2 = 0 ;
35108 PyObject * obj0 = 0 ;
35109 PyObject * obj1 = 0 ;
35110 char * kwnames[] = {
35111 (char *) "self",(char *) "item", NULL
35112 };
35113
35114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35116 if (!SWIG_IsOK(res1)) {
35117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35118 }
35119 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35120 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35121 if (!SWIG_IsOK(res2)) {
35122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35123 }
35124 if (!argp2) {
35125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35126 }
35127 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35128 {
35129 PyThreadState* __tstate = wxPyBeginAllowThreads();
35130 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35131 wxPyEndAllowThreads(__tstate);
35132 if (PyErr_Occurred()) SWIG_fail;
35133 }
35134 {
35135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35136 }
35137 return resultobj;
35138fail:
35139 return NULL;
35140}
35141
35142
35143SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35144 PyObject *resultobj = 0;
35145 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35146 wxTreeItemId *arg2 = 0 ;
35147 bool result;
35148 void *argp1 = 0 ;
35149 int res1 = 0 ;
35150 void *argp2 = 0 ;
35151 int res2 = 0 ;
35152 PyObject * obj0 = 0 ;
35153 PyObject * obj1 = 0 ;
35154 char * kwnames[] = {
35155 (char *) "self",(char *) "item", NULL
35156 };
35157
35158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35160 if (!SWIG_IsOK(res1)) {
35161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35162 }
35163 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35164 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35165 if (!SWIG_IsOK(res2)) {
35166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35167 }
35168 if (!argp2) {
35169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35170 }
35171 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35172 {
35173 PyThreadState* __tstate = wxPyBeginAllowThreads();
35174 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35175 wxPyEndAllowThreads(__tstate);
35176 if (PyErr_Occurred()) SWIG_fail;
35177 }
35178 {
35179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35180 }
35181 return resultobj;
35182fail:
35183 return NULL;
35184}
35185
35186
35187SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35188 PyObject *resultobj = 0;
35189 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35190 wxTreeItemId *arg2 = 0 ;
35191 bool result;
35192 void *argp1 = 0 ;
35193 int res1 = 0 ;
35194 void *argp2 = 0 ;
35195 int res2 = 0 ;
35196 PyObject * obj0 = 0 ;
35197 PyObject * obj1 = 0 ;
35198 char * kwnames[] = {
35199 (char *) "self",(char *) "item", NULL
35200 };
35201
35202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35204 if (!SWIG_IsOK(res1)) {
35205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35206 }
35207 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35208 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35209 if (!SWIG_IsOK(res2)) {
35210 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35211 }
35212 if (!argp2) {
35213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35214 }
35215 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35216 {
35217 PyThreadState* __tstate = wxPyBeginAllowThreads();
35218 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35219 wxPyEndAllowThreads(__tstate);
35220 if (PyErr_Occurred()) SWIG_fail;
35221 }
35222 {
35223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35224 }
35225 return resultobj;
35226fail:
35227 return NULL;
35228}
35229
35230
35231SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35232 PyObject *resultobj = 0;
35233 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35234 wxTreeItemId *arg2 = 0 ;
35235 bool result;
35236 void *argp1 = 0 ;
35237 int res1 = 0 ;
35238 void *argp2 = 0 ;
35239 int res2 = 0 ;
35240 PyObject * obj0 = 0 ;
35241 PyObject * obj1 = 0 ;
35242 char * kwnames[] = {
35243 (char *) "self",(char *) "item", NULL
35244 };
35245
35246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35248 if (!SWIG_IsOK(res1)) {
35249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35250 }
35251 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35252 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35253 if (!SWIG_IsOK(res2)) {
35254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35255 }
35256 if (!argp2) {
35257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35258 }
35259 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35260 {
35261 PyThreadState* __tstate = wxPyBeginAllowThreads();
35262 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35263 wxPyEndAllowThreads(__tstate);
35264 if (PyErr_Occurred()) SWIG_fail;
35265 }
35266 {
35267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35268 }
35269 return resultobj;
35270fail:
35271 return NULL;
35272}
35273
35274
35275SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35276 PyObject *resultobj = 0;
35277 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35278 wxTreeItemId *arg2 = 0 ;
35279 bool arg3 = (bool) true ;
35280 size_t result;
35281 void *argp1 = 0 ;
35282 int res1 = 0 ;
35283 void *argp2 = 0 ;
35284 int res2 = 0 ;
35285 bool val3 ;
35286 int ecode3 = 0 ;
35287 PyObject * obj0 = 0 ;
35288 PyObject * obj1 = 0 ;
35289 PyObject * obj2 = 0 ;
35290 char * kwnames[] = {
35291 (char *) "self",(char *) "item",(char *) "recursively", NULL
35292 };
35293
35294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35296 if (!SWIG_IsOK(res1)) {
35297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35298 }
35299 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35300 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35301 if (!SWIG_IsOK(res2)) {
35302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35303 }
35304 if (!argp2) {
35305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35306 }
35307 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35308 if (obj2) {
35309 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35310 if (!SWIG_IsOK(ecode3)) {
35311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35312 }
35313 arg3 = static_cast< bool >(val3);
35314 }
35315 {
35316 PyThreadState* __tstate = wxPyBeginAllowThreads();
35317 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35318 wxPyEndAllowThreads(__tstate);
35319 if (PyErr_Occurred()) SWIG_fail;
35320 }
35321 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35322 return resultobj;
35323fail:
35324 return NULL;
d14a1e28
RD
35325}
35326
35327
0085ce49
RD
35328SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35329 PyObject *resultobj = 0;
35330 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35331 wxTreeItemId result;
35332 void *argp1 = 0 ;
35333 int res1 = 0 ;
35334 PyObject *swig_obj[1] ;
35335
35336 if (!args) SWIG_fail;
35337 swig_obj[0] = args;
35338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35339 if (!SWIG_IsOK(res1)) {
35340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35341 }
35342 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35343 {
35344 PyThreadState* __tstate = wxPyBeginAllowThreads();
35345 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35346 wxPyEndAllowThreads(__tstate);
35347 if (PyErr_Occurred()) SWIG_fail;
35348 }
35349 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35350 return resultobj;
35351fail:
35352 return NULL;
d14a1e28
RD
35353}
35354
35355
0085ce49
RD
35356SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35357 PyObject *resultobj = 0;
35358 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35359 wxTreeItemId result;
35360 void *argp1 = 0 ;
35361 int res1 = 0 ;
35362 PyObject *swig_obj[1] ;
35363
35364 if (!args) SWIG_fail;
35365 swig_obj[0] = args;
35366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35367 if (!SWIG_IsOK(res1)) {
35368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35369 }
35370 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35371 {
35372 PyThreadState* __tstate = wxPyBeginAllowThreads();
35373 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35374 wxPyEndAllowThreads(__tstate);
35375 if (PyErr_Occurred()) SWIG_fail;
35376 }
35377 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35378 return resultobj;
35379fail:
35380 return NULL;
d14a1e28
RD
35381}
35382
35383
0085ce49
RD
35384SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35385 PyObject *resultobj = 0;
35386 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35387 PyObject *result = 0 ;
35388 void *argp1 = 0 ;
35389 int res1 = 0 ;
35390 PyObject *swig_obj[1] ;
35391
35392 if (!args) SWIG_fail;
35393 swig_obj[0] = args;
35394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35395 if (!SWIG_IsOK(res1)) {
35396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35397 }
35398 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35399 {
35400 PyThreadState* __tstate = wxPyBeginAllowThreads();
35401 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35402 wxPyEndAllowThreads(__tstate);
35403 if (PyErr_Occurred()) SWIG_fail;
35404 }
35405 resultobj = result;
35406 return resultobj;
35407fail:
35408 return NULL;
35409}
35410
35411
35412SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35413 PyObject *resultobj = 0;
35414 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35415 wxTreeItemId *arg2 = 0 ;
35416 wxTreeItemId result;
35417 void *argp1 = 0 ;
35418 int res1 = 0 ;
35419 void *argp2 = 0 ;
35420 int res2 = 0 ;
35421 PyObject * obj0 = 0 ;
35422 PyObject * obj1 = 0 ;
35423 char * kwnames[] = {
35424 (char *) "self",(char *) "item", NULL
35425 };
35426
35427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35429 if (!SWIG_IsOK(res1)) {
35430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35431 }
35432 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35433 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35434 if (!SWIG_IsOK(res2)) {
35435 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35436 }
35437 if (!argp2) {
35438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35439 }
35440 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35441 {
35442 PyThreadState* __tstate = wxPyBeginAllowThreads();
35443 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35444 wxPyEndAllowThreads(__tstate);
35445 if (PyErr_Occurred()) SWIG_fail;
35446 }
35447 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35448 return resultobj;
35449fail:
35450 return NULL;
35451}
35452
35453
35454SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35455 PyObject *resultobj = 0;
35456 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35457 wxTreeItemId *arg2 = 0 ;
35458 PyObject *result = 0 ;
35459 void *argp1 = 0 ;
35460 int res1 = 0 ;
35461 void *argp2 = 0 ;
35462 int res2 = 0 ;
35463 PyObject * obj0 = 0 ;
35464 PyObject * obj1 = 0 ;
35465 char * kwnames[] = {
35466 (char *) "self",(char *) "item", NULL
35467 };
35468
35469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35471 if (!SWIG_IsOK(res1)) {
35472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35473 }
35474 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35475 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35476 if (!SWIG_IsOK(res2)) {
35477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35478 }
35479 if (!argp2) {
35480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35481 }
35482 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35483 {
35484 PyThreadState* __tstate = wxPyBeginAllowThreads();
35485 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35486 wxPyEndAllowThreads(__tstate);
35487 if (PyErr_Occurred()) SWIG_fail;
35488 }
35489 resultobj = result;
35490 return resultobj;
35491fail:
35492 return NULL;
35493}
35494
35495
35496SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35497 PyObject *resultobj = 0;
35498 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35499 wxTreeItemId *arg2 = 0 ;
35500 void *arg3 = (void *) 0 ;
35501 PyObject *result = 0 ;
35502 void *argp1 = 0 ;
35503 int res1 = 0 ;
35504 void *argp2 = 0 ;
35505 int res2 = 0 ;
35506 int res3 ;
35507 PyObject * obj0 = 0 ;
35508 PyObject * obj1 = 0 ;
35509 PyObject * obj2 = 0 ;
35510 char * kwnames[] = {
35511 (char *) "self",(char *) "item",(char *) "cookie", NULL
35512 };
35513
35514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35516 if (!SWIG_IsOK(res1)) {
35517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35518 }
35519 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35520 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35521 if (!SWIG_IsOK(res2)) {
35522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35523 }
35524 if (!argp2) {
35525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35526 }
35527 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35528 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35529 if (!SWIG_IsOK(res3)) {
35530 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35531 }
35532 {
35533 PyThreadState* __tstate = wxPyBeginAllowThreads();
35534 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35535 wxPyEndAllowThreads(__tstate);
35536 if (PyErr_Occurred()) SWIG_fail;
35537 }
35538 resultobj = result;
35539 return resultobj;
35540fail:
35541 return NULL;
35542}
35543
35544
35545SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35546 PyObject *resultobj = 0;
35547 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35548 wxTreeItemId *arg2 = 0 ;
35549 wxTreeItemId result;
35550 void *argp1 = 0 ;
35551 int res1 = 0 ;
35552 void *argp2 = 0 ;
35553 int res2 = 0 ;
35554 PyObject * obj0 = 0 ;
35555 PyObject * obj1 = 0 ;
35556 char * kwnames[] = {
35557 (char *) "self",(char *) "item", NULL
35558 };
35559
35560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35562 if (!SWIG_IsOK(res1)) {
35563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35564 }
35565 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35566 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35567 if (!SWIG_IsOK(res2)) {
35568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35569 }
35570 if (!argp2) {
35571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35572 }
35573 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35574 {
35575 PyThreadState* __tstate = wxPyBeginAllowThreads();
35576 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35577 wxPyEndAllowThreads(__tstate);
35578 if (PyErr_Occurred()) SWIG_fail;
35579 }
35580 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35581 return resultobj;
35582fail:
35583 return NULL;
35584}
35585
35586
35587SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35588 PyObject *resultobj = 0;
35589 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35590 wxTreeItemId *arg2 = 0 ;
35591 wxTreeItemId result;
35592 void *argp1 = 0 ;
35593 int res1 = 0 ;
35594 void *argp2 = 0 ;
35595 int res2 = 0 ;
35596 PyObject * obj0 = 0 ;
35597 PyObject * obj1 = 0 ;
35598 char * kwnames[] = {
35599 (char *) "self",(char *) "item", NULL
35600 };
35601
35602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35604 if (!SWIG_IsOK(res1)) {
35605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35606 }
35607 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35608 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35609 if (!SWIG_IsOK(res2)) {
35610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35611 }
35612 if (!argp2) {
35613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35614 }
35615 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35616 {
35617 PyThreadState* __tstate = wxPyBeginAllowThreads();
35618 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35619 wxPyEndAllowThreads(__tstate);
35620 if (PyErr_Occurred()) SWIG_fail;
35621 }
35622 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35623 return resultobj;
35624fail:
35625 return NULL;
35626}
35627
35628
35629SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35630 PyObject *resultobj = 0;
35631 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35632 wxTreeItemId *arg2 = 0 ;
35633 wxTreeItemId result;
35634 void *argp1 = 0 ;
35635 int res1 = 0 ;
35636 void *argp2 = 0 ;
35637 int res2 = 0 ;
35638 PyObject * obj0 = 0 ;
35639 PyObject * obj1 = 0 ;
35640 char * kwnames[] = {
35641 (char *) "self",(char *) "item", NULL
35642 };
35643
35644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35646 if (!SWIG_IsOK(res1)) {
35647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35648 }
35649 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35650 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35651 if (!SWIG_IsOK(res2)) {
35652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35653 }
35654 if (!argp2) {
35655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35656 }
35657 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35658 {
35659 PyThreadState* __tstate = wxPyBeginAllowThreads();
35660 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35661 wxPyEndAllowThreads(__tstate);
35662 if (PyErr_Occurred()) SWIG_fail;
35663 }
35664 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35665 return resultobj;
35666fail:
35667 return NULL;
d14a1e28
RD
35668}
35669
35670
0085ce49
RD
35671SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35672 PyObject *resultobj = 0;
35673 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35674 wxTreeItemId result;
35675 void *argp1 = 0 ;
35676 int res1 = 0 ;
35677 PyObject *swig_obj[1] ;
35678
35679 if (!args) SWIG_fail;
35680 swig_obj[0] = args;
35681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35682 if (!SWIG_IsOK(res1)) {
35683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35684 }
35685 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35686 {
35687 PyThreadState* __tstate = wxPyBeginAllowThreads();
35688 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35689 wxPyEndAllowThreads(__tstate);
35690 if (PyErr_Occurred()) SWIG_fail;
35691 }
35692 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35693 return resultobj;
35694fail:
35695 return NULL;
35696}
35697
35698
35699SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35700 PyObject *resultobj = 0;
35701 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35702 wxTreeItemId *arg2 = 0 ;
35703 wxTreeItemId result;
35704 void *argp1 = 0 ;
35705 int res1 = 0 ;
35706 void *argp2 = 0 ;
35707 int res2 = 0 ;
35708 PyObject * obj0 = 0 ;
35709 PyObject * obj1 = 0 ;
35710 char * kwnames[] = {
35711 (char *) "self",(char *) "item", NULL
35712 };
35713
35714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35716 if (!SWIG_IsOK(res1)) {
35717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35718 }
35719 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35720 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35721 if (!SWIG_IsOK(res2)) {
35722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35723 }
35724 if (!argp2) {
35725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35726 }
35727 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35728 {
35729 PyThreadState* __tstate = wxPyBeginAllowThreads();
35730 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35731 wxPyEndAllowThreads(__tstate);
35732 if (PyErr_Occurred()) SWIG_fail;
35733 }
35734 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35735 return resultobj;
35736fail:
35737 return NULL;
35738}
35739
35740
35741SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35742 PyObject *resultobj = 0;
35743 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35744 wxTreeItemId *arg2 = 0 ;
35745 wxTreeItemId result;
35746 void *argp1 = 0 ;
35747 int res1 = 0 ;
35748 void *argp2 = 0 ;
35749 int res2 = 0 ;
35750 PyObject * obj0 = 0 ;
35751 PyObject * obj1 = 0 ;
35752 char * kwnames[] = {
35753 (char *) "self",(char *) "item", NULL
35754 };
35755
35756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35758 if (!SWIG_IsOK(res1)) {
35759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35760 }
35761 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35762 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35763 if (!SWIG_IsOK(res2)) {
35764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35765 }
35766 if (!argp2) {
35767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35768 }
35769 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35770 {
35771 PyThreadState* __tstate = wxPyBeginAllowThreads();
35772 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35773 wxPyEndAllowThreads(__tstate);
35774 if (PyErr_Occurred()) SWIG_fail;
35775 }
35776 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35777 return resultobj;
35778fail:
35779 return NULL;
35780}
35781
35782
35783SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35784 PyObject *resultobj = 0;
35785 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35786 wxString *arg2 = 0 ;
35787 int arg3 = (int) -1 ;
35788 int arg4 = (int) -1 ;
35789 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35790 wxTreeItemId result;
35791 void *argp1 = 0 ;
35792 int res1 = 0 ;
35793 bool temp2 = false ;
35794 int val3 ;
35795 int ecode3 = 0 ;
35796 int val4 ;
35797 int ecode4 = 0 ;
35798 int res5 = 0 ;
35799 PyObject * obj0 = 0 ;
35800 PyObject * obj1 = 0 ;
35801 PyObject * obj2 = 0 ;
35802 PyObject * obj3 = 0 ;
35803 PyObject * obj4 = 0 ;
35804 char * kwnames[] = {
35805 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35806 };
35807
35808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35810 if (!SWIG_IsOK(res1)) {
35811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35812 }
35813 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35814 {
35815 arg2 = wxString_in_helper(obj1);
35816 if (arg2 == NULL) SWIG_fail;
35817 temp2 = true;
35818 }
35819 if (obj2) {
35820 ecode3 = SWIG_AsVal_int(obj2, &val3);
35821 if (!SWIG_IsOK(ecode3)) {
35822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35823 }
35824 arg3 = static_cast< int >(val3);
35825 }
35826 if (obj3) {
35827 ecode4 = SWIG_AsVal_int(obj3, &val4);
35828 if (!SWIG_IsOK(ecode4)) {
35829 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35830 }
35831 arg4 = static_cast< int >(val4);
35832 }
35833 if (obj4) {
35834 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35835 if (!SWIG_IsOK(res5)) {
35836 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
3a04f143 35837 }
0085ce49
RD
35838 }
35839 {
35840 PyThreadState* __tstate = wxPyBeginAllowThreads();
35841 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35842 wxPyEndAllowThreads(__tstate);
35843 if (PyErr_Occurred()) SWIG_fail;
35844 }
35845 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35846 {
35847 if (temp2)
35848 delete arg2;
35849 }
35850 return resultobj;
35851fail:
35852 {
35853 if (temp2)
35854 delete arg2;
35855 }
35856 return NULL;
35857}
35858
35859
35860SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35861 PyObject *resultobj = 0;
35862 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35863 wxTreeItemId *arg2 = 0 ;
35864 wxString *arg3 = 0 ;
35865 int arg4 = (int) -1 ;
35866 int arg5 = (int) -1 ;
35867 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35868 wxTreeItemId result;
35869 void *argp1 = 0 ;
35870 int res1 = 0 ;
35871 void *argp2 = 0 ;
35872 int res2 = 0 ;
35873 bool temp3 = false ;
35874 int val4 ;
35875 int ecode4 = 0 ;
35876 int val5 ;
35877 int ecode5 = 0 ;
35878 int res6 = 0 ;
35879 PyObject * obj0 = 0 ;
35880 PyObject * obj1 = 0 ;
35881 PyObject * obj2 = 0 ;
35882 PyObject * obj3 = 0 ;
35883 PyObject * obj4 = 0 ;
35884 PyObject * obj5 = 0 ;
35885 char * kwnames[] = {
35886 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35887 };
35888
35889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35891 if (!SWIG_IsOK(res1)) {
35892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35893 }
35894 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35895 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35896 if (!SWIG_IsOK(res2)) {
35897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35898 }
35899 if (!argp2) {
35900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35901 }
35902 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35903 {
35904 arg3 = wxString_in_helper(obj2);
35905 if (arg3 == NULL) SWIG_fail;
35906 temp3 = true;
35907 }
35908 if (obj3) {
35909 ecode4 = SWIG_AsVal_int(obj3, &val4);
35910 if (!SWIG_IsOK(ecode4)) {
35911 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35912 }
35913 arg4 = static_cast< int >(val4);
35914 }
35915 if (obj4) {
35916 ecode5 = SWIG_AsVal_int(obj4, &val5);
35917 if (!SWIG_IsOK(ecode5)) {
35918 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35919 }
35920 arg5 = static_cast< int >(val5);
35921 }
35922 if (obj5) {
35923 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35924 if (!SWIG_IsOK(res6)) {
35925 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 35926 }
0085ce49
RD
35927 }
35928 {
35929 PyThreadState* __tstate = wxPyBeginAllowThreads();
35930 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35931 wxPyEndAllowThreads(__tstate);
35932 if (PyErr_Occurred()) SWIG_fail;
35933 }
35934 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35935 {
35936 if (temp3)
35937 delete arg3;
35938 }
35939 return resultobj;
35940fail:
35941 {
35942 if (temp3)
35943 delete arg3;
35944 }
35945 return NULL;
35946}
35947
35948
35949SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35950 PyObject *resultobj = 0;
35951 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35952 wxTreeItemId *arg2 = 0 ;
35953 wxTreeItemId *arg3 = 0 ;
35954 wxString *arg4 = 0 ;
35955 int arg5 = (int) -1 ;
35956 int arg6 = (int) -1 ;
35957 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35958 wxTreeItemId result;
35959 void *argp1 = 0 ;
35960 int res1 = 0 ;
35961 void *argp2 = 0 ;
35962 int res2 = 0 ;
35963 void *argp3 = 0 ;
35964 int res3 = 0 ;
35965 bool temp4 = false ;
35966 int val5 ;
35967 int ecode5 = 0 ;
35968 int val6 ;
35969 int ecode6 = 0 ;
35970 int res7 = 0 ;
35971 PyObject * obj0 = 0 ;
35972 PyObject * obj1 = 0 ;
35973 PyObject * obj2 = 0 ;
35974 PyObject * obj3 = 0 ;
35975 PyObject * obj4 = 0 ;
35976 PyObject * obj5 = 0 ;
35977 PyObject * obj6 = 0 ;
35978 char * kwnames[] = {
35979 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35980 };
35981
35982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35984 if (!SWIG_IsOK(res1)) {
35985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35986 }
35987 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35988 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35989 if (!SWIG_IsOK(res2)) {
35990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35991 }
35992 if (!argp2) {
35993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35994 }
35995 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35996 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35997 if (!SWIG_IsOK(res3)) {
35998 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35999 }
36000 if (!argp3) {
36001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36002 }
36003 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36004 {
36005 arg4 = wxString_in_helper(obj3);
36006 if (arg4 == NULL) SWIG_fail;
36007 temp4 = true;
36008 }
36009 if (obj4) {
36010 ecode5 = SWIG_AsVal_int(obj4, &val5);
36011 if (!SWIG_IsOK(ecode5)) {
36012 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36013 }
36014 arg5 = static_cast< int >(val5);
36015 }
36016 if (obj5) {
36017 ecode6 = SWIG_AsVal_int(obj5, &val6);
36018 if (!SWIG_IsOK(ecode6)) {
36019 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36020 }
36021 arg6 = static_cast< int >(val6);
36022 }
36023 if (obj6) {
36024 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36025 if (!SWIG_IsOK(res7)) {
36026 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
093d3ff1 36027 }
0085ce49
RD
36028 }
36029 {
36030 PyThreadState* __tstate = wxPyBeginAllowThreads();
36031 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36032 wxPyEndAllowThreads(__tstate);
36033 if (PyErr_Occurred()) SWIG_fail;
36034 }
36035 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36036 {
36037 if (temp4)
36038 delete arg4;
36039 }
36040 return resultobj;
36041fail:
36042 {
36043 if (temp4)
36044 delete arg4;
36045 }
36046 return NULL;
36047}
36048
36049
36050SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36051 PyObject *resultobj = 0;
36052 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36053 wxTreeItemId *arg2 = 0 ;
36054 size_t arg3 ;
36055 wxString *arg4 = 0 ;
36056 int arg5 = (int) -1 ;
36057 int arg6 = (int) -1 ;
36058 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36059 wxTreeItemId result;
36060 void *argp1 = 0 ;
36061 int res1 = 0 ;
36062 void *argp2 = 0 ;
36063 int res2 = 0 ;
36064 size_t val3 ;
36065 int ecode3 = 0 ;
36066 bool temp4 = false ;
36067 int val5 ;
36068 int ecode5 = 0 ;
36069 int val6 ;
36070 int ecode6 = 0 ;
36071 int res7 = 0 ;
36072 PyObject * obj0 = 0 ;
36073 PyObject * obj1 = 0 ;
36074 PyObject * obj2 = 0 ;
36075 PyObject * obj3 = 0 ;
36076 PyObject * obj4 = 0 ;
36077 PyObject * obj5 = 0 ;
36078 PyObject * obj6 = 0 ;
36079 char * kwnames[] = {
36080 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36081 };
36082
36083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36085 if (!SWIG_IsOK(res1)) {
36086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36087 }
36088 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36089 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36090 if (!SWIG_IsOK(res2)) {
36091 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36092 }
36093 if (!argp2) {
36094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36095 }
36096 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36097 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36098 if (!SWIG_IsOK(ecode3)) {
36099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36100 }
36101 arg3 = static_cast< size_t >(val3);
36102 {
36103 arg4 = wxString_in_helper(obj3);
36104 if (arg4 == NULL) SWIG_fail;
36105 temp4 = true;
36106 }
36107 if (obj4) {
36108 ecode5 = SWIG_AsVal_int(obj4, &val5);
36109 if (!SWIG_IsOK(ecode5)) {
36110 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36111 }
36112 arg5 = static_cast< int >(val5);
36113 }
36114 if (obj5) {
36115 ecode6 = SWIG_AsVal_int(obj5, &val6);
36116 if (!SWIG_IsOK(ecode6)) {
36117 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36118 }
36119 arg6 = static_cast< int >(val6);
36120 }
36121 if (obj6) {
36122 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36123 if (!SWIG_IsOK(res7)) {
36124 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
3a04f143 36125 }
0085ce49
RD
36126 }
36127 {
36128 PyThreadState* __tstate = wxPyBeginAllowThreads();
36129 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36130 wxPyEndAllowThreads(__tstate);
36131 if (PyErr_Occurred()) SWIG_fail;
36132 }
36133 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36134 {
36135 if (temp4)
36136 delete arg4;
36137 }
36138 return resultobj;
36139fail:
36140 {
36141 if (temp4)
36142 delete arg4;
36143 }
36144 return NULL;
36145}
36146
36147
36148SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36149 PyObject *resultobj = 0;
36150 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36151 wxTreeItemId *arg2 = 0 ;
36152 wxString *arg3 = 0 ;
36153 int arg4 = (int) -1 ;
36154 int arg5 = (int) -1 ;
36155 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36156 wxTreeItemId result;
36157 void *argp1 = 0 ;
36158 int res1 = 0 ;
36159 void *argp2 = 0 ;
36160 int res2 = 0 ;
36161 bool temp3 = false ;
36162 int val4 ;
36163 int ecode4 = 0 ;
36164 int val5 ;
36165 int ecode5 = 0 ;
36166 int res6 = 0 ;
36167 PyObject * obj0 = 0 ;
36168 PyObject * obj1 = 0 ;
36169 PyObject * obj2 = 0 ;
36170 PyObject * obj3 = 0 ;
36171 PyObject * obj4 = 0 ;
36172 PyObject * obj5 = 0 ;
36173 char * kwnames[] = {
36174 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36175 };
36176
36177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36179 if (!SWIG_IsOK(res1)) {
36180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36181 }
36182 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36183 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36184 if (!SWIG_IsOK(res2)) {
36185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36186 }
36187 if (!argp2) {
36188 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36189 }
36190 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36191 {
36192 arg3 = wxString_in_helper(obj2);
36193 if (arg3 == NULL) SWIG_fail;
36194 temp3 = true;
36195 }
36196 if (obj3) {
36197 ecode4 = SWIG_AsVal_int(obj3, &val4);
36198 if (!SWIG_IsOK(ecode4)) {
36199 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36200 }
36201 arg4 = static_cast< int >(val4);
36202 }
36203 if (obj4) {
36204 ecode5 = SWIG_AsVal_int(obj4, &val5);
36205 if (!SWIG_IsOK(ecode5)) {
36206 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36207 }
36208 arg5 = static_cast< int >(val5);
36209 }
36210 if (obj5) {
36211 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36212 if (!SWIG_IsOK(res6)) {
36213 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 36214 }
0085ce49
RD
36215 }
36216 {
36217 PyThreadState* __tstate = wxPyBeginAllowThreads();
36218 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36219 wxPyEndAllowThreads(__tstate);
36220 if (PyErr_Occurred()) SWIG_fail;
36221 }
36222 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36223 {
36224 if (temp3)
36225 delete arg3;
36226 }
36227 return resultobj;
36228fail:
36229 {
36230 if (temp3)
36231 delete arg3;
36232 }
36233 return NULL;
36234}
36235
36236
36237SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36238 PyObject *resultobj = 0;
36239 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36240 wxTreeItemId *arg2 = 0 ;
36241 void *argp1 = 0 ;
36242 int res1 = 0 ;
36243 void *argp2 = 0 ;
36244 int res2 = 0 ;
36245 PyObject * obj0 = 0 ;
36246 PyObject * obj1 = 0 ;
36247 char * kwnames[] = {
36248 (char *) "self",(char *) "item", NULL
36249 };
36250
36251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36253 if (!SWIG_IsOK(res1)) {
36254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36255 }
36256 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36258 if (!SWIG_IsOK(res2)) {
36259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36260 }
36261 if (!argp2) {
36262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36263 }
36264 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36265 {
36266 PyThreadState* __tstate = wxPyBeginAllowThreads();
36267 (arg1)->Delete((wxTreeItemId const &)*arg2);
36268 wxPyEndAllowThreads(__tstate);
36269 if (PyErr_Occurred()) SWIG_fail;
36270 }
36271 resultobj = SWIG_Py_Void();
36272 return resultobj;
36273fail:
36274 return NULL;
36275}
36276
36277
36278SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36279 PyObject *resultobj = 0;
36280 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36281 wxTreeItemId *arg2 = 0 ;
36282 void *argp1 = 0 ;
36283 int res1 = 0 ;
36284 void *argp2 = 0 ;
36285 int res2 = 0 ;
36286 PyObject * obj0 = 0 ;
36287 PyObject * obj1 = 0 ;
36288 char * kwnames[] = {
36289 (char *) "self",(char *) "item", NULL
36290 };
36291
36292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36294 if (!SWIG_IsOK(res1)) {
36295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36296 }
36297 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36299 if (!SWIG_IsOK(res2)) {
36300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36301 }
36302 if (!argp2) {
36303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36304 }
36305 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36306 {
36307 PyThreadState* __tstate = wxPyBeginAllowThreads();
36308 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36309 wxPyEndAllowThreads(__tstate);
36310 if (PyErr_Occurred()) SWIG_fail;
36311 }
36312 resultobj = SWIG_Py_Void();
36313 return resultobj;
36314fail:
36315 return NULL;
3a04f143
RD
36316}
36317
36318
0085ce49
RD
36319SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36320 PyObject *resultobj = 0;
36321 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36322 void *argp1 = 0 ;
36323 int res1 = 0 ;
36324 PyObject *swig_obj[1] ;
36325
36326 if (!args) SWIG_fail;
36327 swig_obj[0] = args;
36328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36329 if (!SWIG_IsOK(res1)) {
36330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36331 }
36332 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36333 {
36334 PyThreadState* __tstate = wxPyBeginAllowThreads();
36335 (arg1)->DeleteAllItems();
36336 wxPyEndAllowThreads(__tstate);
36337 if (PyErr_Occurred()) SWIG_fail;
36338 }
36339 resultobj = SWIG_Py_Void();
36340 return resultobj;
36341fail:
36342 return NULL;
36343}
36344
36345
36346SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36347 PyObject *resultobj = 0;
36348 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36349 wxTreeItemId *arg2 = 0 ;
36350 void *argp1 = 0 ;
36351 int res1 = 0 ;
36352 void *argp2 = 0 ;
36353 int res2 = 0 ;
36354 PyObject * obj0 = 0 ;
36355 PyObject * obj1 = 0 ;
36356 char * kwnames[] = {
36357 (char *) "self",(char *) "item", NULL
36358 };
36359
36360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36362 if (!SWIG_IsOK(res1)) {
36363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36364 }
36365 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36367 if (!SWIG_IsOK(res2)) {
36368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36369 }
36370 if (!argp2) {
36371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36372 }
36373 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36374 {
36375 PyThreadState* __tstate = wxPyBeginAllowThreads();
36376 (arg1)->Expand((wxTreeItemId const &)*arg2);
36377 wxPyEndAllowThreads(__tstate);
36378 if (PyErr_Occurred()) SWIG_fail;
36379 }
36380 resultobj = SWIG_Py_Void();
36381 return resultobj;
36382fail:
36383 return NULL;
36384}
36385
36386
453fb36b
RD
36387SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36388 PyObject *resultobj = 0;
36389 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36390 wxTreeItemId *arg2 = 0 ;
36391 void *argp1 = 0 ;
36392 int res1 = 0 ;
36393 void *argp2 = 0 ;
36394 int res2 = 0 ;
36395 PyObject * obj0 = 0 ;
36396 PyObject * obj1 = 0 ;
36397 char * kwnames[] = {
36398 (char *) "self",(char *) "item", NULL
36399 };
36400
36401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36403 if (!SWIG_IsOK(res1)) {
36404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36405 }
36406 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36407 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36408 if (!SWIG_IsOK(res2)) {
36409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36410 }
36411 if (!argp2) {
36412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36413 }
36414 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36415 {
36416 PyThreadState* __tstate = wxPyBeginAllowThreads();
36417 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36418 wxPyEndAllowThreads(__tstate);
36419 if (PyErr_Occurred()) SWIG_fail;
36420 }
36421 resultobj = SWIG_Py_Void();
36422 return resultobj;
36423fail:
36424 return NULL;
36425}
36426
36427
36428SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36429 PyObject *resultobj = 0;
36430 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36431 void *argp1 = 0 ;
36432 int res1 = 0 ;
36433 PyObject *swig_obj[1] ;
36434
36435 if (!args) SWIG_fail;
36436 swig_obj[0] = args;
36437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36438 if (!SWIG_IsOK(res1)) {
36439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36440 }
36441 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36442 {
36443 PyThreadState* __tstate = wxPyBeginAllowThreads();
36444 (arg1)->ExpandAll();
36445 wxPyEndAllowThreads(__tstate);
36446 if (PyErr_Occurred()) SWIG_fail;
36447 }
36448 resultobj = SWIG_Py_Void();
36449 return resultobj;
36450fail:
36451 return NULL;
36452}
36453
36454
0085ce49
RD
36455SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36456 PyObject *resultobj = 0;
36457 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36458 wxTreeItemId *arg2 = 0 ;
36459 void *argp1 = 0 ;
36460 int res1 = 0 ;
36461 void *argp2 = 0 ;
36462 int res2 = 0 ;
36463 PyObject * obj0 = 0 ;
36464 PyObject * obj1 = 0 ;
36465 char * kwnames[] = {
36466 (char *) "self",(char *) "item", NULL
36467 };
36468
36469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36471 if (!SWIG_IsOK(res1)) {
36472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36473 }
36474 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36475 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36476 if (!SWIG_IsOK(res2)) {
36477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36478 }
36479 if (!argp2) {
36480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36481 }
36482 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36483 {
36484 PyThreadState* __tstate = wxPyBeginAllowThreads();
36485 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36486 wxPyEndAllowThreads(__tstate);
36487 if (PyErr_Occurred()) SWIG_fail;
36488 }
36489 resultobj = SWIG_Py_Void();
36490 return resultobj;
36491fail:
36492 return NULL;
36493}
36494
36495
36496SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36497 PyObject *resultobj = 0;
36498 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36499 wxTreeItemId *arg2 = 0 ;
36500 void *argp1 = 0 ;
36501 int res1 = 0 ;
36502 void *argp2 = 0 ;
36503 int res2 = 0 ;
36504 PyObject * obj0 = 0 ;
36505 PyObject * obj1 = 0 ;
36506 char * kwnames[] = {
36507 (char *) "self",(char *) "item", NULL
36508 };
36509
36510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36512 if (!SWIG_IsOK(res1)) {
36513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36514 }
36515 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36516 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36517 if (!SWIG_IsOK(res2)) {
36518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36519 }
36520 if (!argp2) {
36521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36522 }
36523 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36524 {
36525 PyThreadState* __tstate = wxPyBeginAllowThreads();
36526 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36527 wxPyEndAllowThreads(__tstate);
36528 if (PyErr_Occurred()) SWIG_fail;
36529 }
36530 resultobj = SWIG_Py_Void();
36531 return resultobj;
36532fail:
36533 return NULL;
36534}
36535
36536
36537SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36538 PyObject *resultobj = 0;
36539 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36540 wxTreeItemId *arg2 = 0 ;
36541 void *argp1 = 0 ;
36542 int res1 = 0 ;
36543 void *argp2 = 0 ;
36544 int res2 = 0 ;
36545 PyObject * obj0 = 0 ;
36546 PyObject * obj1 = 0 ;
36547 char * kwnames[] = {
36548 (char *) "self",(char *) "item", NULL
36549 };
36550
36551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36553 if (!SWIG_IsOK(res1)) {
36554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36555 }
36556 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36557 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36558 if (!SWIG_IsOK(res2)) {
36559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36560 }
36561 if (!argp2) {
36562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36563 }
36564 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36565 {
36566 PyThreadState* __tstate = wxPyBeginAllowThreads();
36567 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36568 wxPyEndAllowThreads(__tstate);
36569 if (PyErr_Occurred()) SWIG_fail;
36570 }
36571 resultobj = SWIG_Py_Void();
36572 return resultobj;
36573fail:
36574 return NULL;
d14a1e28
RD
36575}
36576
36577
0085ce49
RD
36578SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36579 PyObject *resultobj = 0;
36580 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36581 void *argp1 = 0 ;
36582 int res1 = 0 ;
36583 PyObject *swig_obj[1] ;
36584
36585 if (!args) SWIG_fail;
36586 swig_obj[0] = args;
36587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36588 if (!SWIG_IsOK(res1)) {
36589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36590 }
36591 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36592 {
36593 PyThreadState* __tstate = wxPyBeginAllowThreads();
36594 (arg1)->Unselect();
36595 wxPyEndAllowThreads(__tstate);
36596 if (PyErr_Occurred()) SWIG_fail;
36597 }
36598 resultobj = SWIG_Py_Void();
36599 return resultobj;
36600fail:
36601 return NULL;
36602}
36603
36604
36605SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36606 PyObject *resultobj = 0;
36607 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36608 wxTreeItemId *arg2 = 0 ;
36609 void *argp1 = 0 ;
36610 int res1 = 0 ;
36611 void *argp2 = 0 ;
36612 int res2 = 0 ;
36613 PyObject * obj0 = 0 ;
36614 PyObject * obj1 = 0 ;
36615 char * kwnames[] = {
36616 (char *) "self",(char *) "item", NULL
36617 };
36618
36619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36621 if (!SWIG_IsOK(res1)) {
36622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36623 }
36624 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36626 if (!SWIG_IsOK(res2)) {
36627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36628 }
36629 if (!argp2) {
36630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36631 }
36632 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36633 {
36634 PyThreadState* __tstate = wxPyBeginAllowThreads();
36635 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36636 wxPyEndAllowThreads(__tstate);
36637 if (PyErr_Occurred()) SWIG_fail;
36638 }
36639 resultobj = SWIG_Py_Void();
36640 return resultobj;
36641fail:
36642 return NULL;
d14a1e28
RD
36643}
36644
36645
0085ce49
RD
36646SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36647 PyObject *resultobj = 0;
36648 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36649 void *argp1 = 0 ;
36650 int res1 = 0 ;
36651 PyObject *swig_obj[1] ;
36652
36653 if (!args) SWIG_fail;
36654 swig_obj[0] = args;
36655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36656 if (!SWIG_IsOK(res1)) {
36657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36658 }
36659 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36660 {
36661 PyThreadState* __tstate = wxPyBeginAllowThreads();
36662 (arg1)->UnselectAll();
36663 wxPyEndAllowThreads(__tstate);
36664 if (PyErr_Occurred()) SWIG_fail;
36665 }
36666 resultobj = SWIG_Py_Void();
36667 return resultobj;
36668fail:
36669 return NULL;
36670}
36671
36672
36673SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36674 PyObject *resultobj = 0;
36675 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36676 wxTreeItemId *arg2 = 0 ;
36677 bool arg3 = (bool) true ;
36678 void *argp1 = 0 ;
36679 int res1 = 0 ;
36680 void *argp2 = 0 ;
36681 int res2 = 0 ;
36682 bool val3 ;
36683 int ecode3 = 0 ;
36684 PyObject * obj0 = 0 ;
36685 PyObject * obj1 = 0 ;
36686 PyObject * obj2 = 0 ;
36687 char * kwnames[] = {
36688 (char *) "self",(char *) "item",(char *) "select", NULL
36689 };
36690
36691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36693 if (!SWIG_IsOK(res1)) {
36694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36695 }
36696 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36697 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36698 if (!SWIG_IsOK(res2)) {
36699 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36700 }
36701 if (!argp2) {
36702 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36703 }
36704 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36705 if (obj2) {
36706 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36707 if (!SWIG_IsOK(ecode3)) {
36708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36709 }
36710 arg3 = static_cast< bool >(val3);
36711 }
36712 {
36713 PyThreadState* __tstate = wxPyBeginAllowThreads();
36714 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36715 wxPyEndAllowThreads(__tstate);
36716 if (PyErr_Occurred()) SWIG_fail;
36717 }
36718 resultobj = SWIG_Py_Void();
36719 return resultobj;
36720fail:
36721 return NULL;
36722}
36723
36724
36725SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36726 PyObject *resultobj = 0;
36727 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36728 wxTreeItemId *arg2 = 0 ;
36729 void *argp1 = 0 ;
36730 int res1 = 0 ;
36731 void *argp2 = 0 ;
36732 int res2 = 0 ;
36733 PyObject * obj0 = 0 ;
36734 PyObject * obj1 = 0 ;
36735 char * kwnames[] = {
36736 (char *) "self",(char *) "item", NULL
36737 };
36738
36739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36741 if (!SWIG_IsOK(res1)) {
36742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36743 }
36744 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36745 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36746 if (!SWIG_IsOK(res2)) {
36747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36748 }
36749 if (!argp2) {
36750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36751 }
36752 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36753 {
36754 PyThreadState* __tstate = wxPyBeginAllowThreads();
36755 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36756 wxPyEndAllowThreads(__tstate);
36757 if (PyErr_Occurred()) SWIG_fail;
36758 }
36759 resultobj = SWIG_Py_Void();
36760 return resultobj;
36761fail:
36762 return NULL;
36763}
36764
36765
36766SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36767 PyObject *resultobj = 0;
36768 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36769 wxTreeItemId *arg2 = 0 ;
36770 void *argp1 = 0 ;
36771 int res1 = 0 ;
36772 void *argp2 = 0 ;
36773 int res2 = 0 ;
36774 PyObject * obj0 = 0 ;
36775 PyObject * obj1 = 0 ;
36776 char * kwnames[] = {
36777 (char *) "self",(char *) "item", NULL
36778 };
36779
36780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36782 if (!SWIG_IsOK(res1)) {
36783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36784 }
36785 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36786 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36787 if (!SWIG_IsOK(res2)) {
36788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36789 }
36790 if (!argp2) {
36791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36792 }
36793 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36794 {
36795 PyThreadState* __tstate = wxPyBeginAllowThreads();
36796 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36797 wxPyEndAllowThreads(__tstate);
36798 if (PyErr_Occurred()) SWIG_fail;
36799 }
36800 resultobj = SWIG_Py_Void();
36801 return resultobj;
36802fail:
36803 return NULL;
36804}
36805
36806
36807SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36808 PyObject *resultobj = 0;
36809 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36810 wxTreeItemId *arg2 = 0 ;
36811 void *argp1 = 0 ;
36812 int res1 = 0 ;
36813 void *argp2 = 0 ;
36814 int res2 = 0 ;
36815 PyObject * obj0 = 0 ;
36816 PyObject * obj1 = 0 ;
36817 char * kwnames[] = {
36818 (char *) "self",(char *) "item", NULL
36819 };
36820
36821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36823 if (!SWIG_IsOK(res1)) {
36824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36825 }
36826 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36827 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36828 if (!SWIG_IsOK(res2)) {
36829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36830 }
36831 if (!argp2) {
36832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36833 }
36834 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36835 {
36836 PyThreadState* __tstate = wxPyBeginAllowThreads();
36837 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36838 wxPyEndAllowThreads(__tstate);
36839 if (PyErr_Occurred()) SWIG_fail;
36840 }
36841 resultobj = SWIG_Py_Void();
36842 return resultobj;
36843fail:
36844 return NULL;
36845}
36846
36847
36848SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36849 PyObject *resultobj = 0;
36850 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36851 wxTreeItemId *arg2 = 0 ;
36852 void *argp1 = 0 ;
36853 int res1 = 0 ;
36854 void *argp2 = 0 ;
36855 int res2 = 0 ;
36856 PyObject * obj0 = 0 ;
36857 PyObject * obj1 = 0 ;
36858 char * kwnames[] = {
36859 (char *) "self",(char *) "item", NULL
36860 };
36861
36862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36864 if (!SWIG_IsOK(res1)) {
36865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36866 }
36867 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36869 if (!SWIG_IsOK(res2)) {
36870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36871 }
36872 if (!argp2) {
36873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36874 }
36875 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36876 {
36877 PyThreadState* __tstate = wxPyBeginAllowThreads();
36878 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36879 wxPyEndAllowThreads(__tstate);
36880 if (PyErr_Occurred()) SWIG_fail;
36881 }
36882 resultobj = SWIG_Py_Void();
36883 return resultobj;
36884fail:
36885 return NULL;
d14a1e28
RD
36886}
36887
36888
0085ce49
RD
36889SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36890 PyObject *resultobj = 0;
36891 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36892 wxTextCtrl *result = 0 ;
36893 void *argp1 = 0 ;
36894 int res1 = 0 ;
36895 PyObject *swig_obj[1] ;
36896
36897 if (!args) SWIG_fail;
36898 swig_obj[0] = args;
36899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36900 if (!SWIG_IsOK(res1)) {
36901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36902 }
36903 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36904 {
36905 PyThreadState* __tstate = wxPyBeginAllowThreads();
36906 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36907 wxPyEndAllowThreads(__tstate);
36908 if (PyErr_Occurred()) SWIG_fail;
36909 }
36910 {
36911 resultobj = wxPyMake_wxObject(result, 0);
36912 }
36913 return resultobj;
36914fail:
36915 return NULL;
36916}
36917
36918
36919SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36920 PyObject *resultobj = 0;
36921 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36922 wxTreeItemId *arg2 = 0 ;
36923 void *argp1 = 0 ;
36924 int res1 = 0 ;
36925 void *argp2 = 0 ;
36926 int res2 = 0 ;
36927 PyObject * obj0 = 0 ;
36928 PyObject * obj1 = 0 ;
36929 char * kwnames[] = {
36930 (char *) "self",(char *) "item", NULL
36931 };
36932
36933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36935 if (!SWIG_IsOK(res1)) {
36936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36937 }
36938 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36939 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36940 if (!SWIG_IsOK(res2)) {
36941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36942 }
36943 if (!argp2) {
36944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36945 }
36946 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36947 {
36948 PyThreadState* __tstate = wxPyBeginAllowThreads();
36949 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36950 wxPyEndAllowThreads(__tstate);
36951 if (PyErr_Occurred()) SWIG_fail;
36952 }
36953 resultobj = SWIG_Py_Void();
36954 return resultobj;
36955fail:
36956 return NULL;
36957}
36958
36959
36960SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36961 PyObject *resultobj = 0;
36962 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36963 wxPoint *arg2 = 0 ;
36964 int *arg3 = 0 ;
36965 wxTreeItemId result;
36966 void *argp1 = 0 ;
36967 int res1 = 0 ;
36968 wxPoint temp2 ;
36969 int temp3 ;
36970 int res3 = SWIG_TMPOBJ ;
36971 PyObject * obj0 = 0 ;
36972 PyObject * obj1 = 0 ;
36973 char * kwnames[] = {
36974 (char *) "self",(char *) "point", NULL
36975 };
36976
36977 arg3 = &temp3;
36978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36980 if (!SWIG_IsOK(res1)) {
36981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36982 }
36983 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36984 {
36985 arg2 = &temp2;
36986 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36987 }
36988 {
36989 PyThreadState* __tstate = wxPyBeginAllowThreads();
36990 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36991 wxPyEndAllowThreads(__tstate);
36992 if (PyErr_Occurred()) SWIG_fail;
36993 }
36994 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36995 if (SWIG_IsTmpObj(res3)) {
36996 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36997 } else {
36998 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36999 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37000 }
37001 return resultobj;
37002fail:
37003 return NULL;
37004}
37005
37006
37007SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37008 PyObject *resultobj = 0;
37009 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37010 wxTreeItemId *arg2 = 0 ;
37011 bool arg3 = (bool) false ;
37012 PyObject *result = 0 ;
37013 void *argp1 = 0 ;
37014 int res1 = 0 ;
37015 void *argp2 = 0 ;
37016 int res2 = 0 ;
37017 bool val3 ;
37018 int ecode3 = 0 ;
37019 PyObject * obj0 = 0 ;
37020 PyObject * obj1 = 0 ;
37021 PyObject * obj2 = 0 ;
37022 char * kwnames[] = {
37023 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37024 };
37025
37026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37028 if (!SWIG_IsOK(res1)) {
37029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37030 }
37031 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37032 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37033 if (!SWIG_IsOK(res2)) {
37034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37035 }
37036 if (!argp2) {
37037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37038 }
37039 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37040 if (obj2) {
37041 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37042 if (!SWIG_IsOK(ecode3)) {
37043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37044 }
37045 arg3 = static_cast< bool >(val3);
37046 }
37047 {
37048 PyThreadState* __tstate = wxPyBeginAllowThreads();
37049 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37050 wxPyEndAllowThreads(__tstate);
37051 if (PyErr_Occurred()) SWIG_fail;
37052 }
37053 resultobj = result;
37054 return resultobj;
37055fail:
37056 return NULL;
37057}
37058
37059
37060SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37061 PyObject *resultobj = 0;
37062 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37063 SwigValueWrapper<wxVisualAttributes > result;
37064 int val1 ;
37065 int ecode1 = 0 ;
37066 PyObject * obj0 = 0 ;
37067 char * kwnames[] = {
37068 (char *) "variant", NULL
37069 };
37070
37071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37072 if (obj0) {
37073 ecode1 = SWIG_AsVal_int(obj0, &val1);
37074 if (!SWIG_IsOK(ecode1)) {
37075 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37076 }
37077 arg1 = static_cast< wxWindowVariant >(val1);
37078 }
37079 {
37080 if (!wxPyCheckForApp()) SWIG_fail;
37081 PyThreadState* __tstate = wxPyBeginAllowThreads();
37082 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37083 wxPyEndAllowThreads(__tstate);
37084 if (PyErr_Occurred()) SWIG_fail;
37085 }
37086 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37087 return resultobj;
37088fail:
37089 return NULL;
d14a1e28
RD
37090}
37091
37092
2131d850
RD
37093SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37094 PyObject *resultobj = 0;
37095 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37096 bool arg2 ;
37097 void *argp1 = 0 ;
37098 int res1 = 0 ;
37099 bool val2 ;
37100 int ecode2 = 0 ;
37101 PyObject * obj0 = 0 ;
37102 PyObject * obj1 = 0 ;
37103 char * kwnames[] = {
37104 (char *) "self",(char *) "q", NULL
37105 };
37106
37107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37109 if (!SWIG_IsOK(res1)) {
37110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37111 }
37112 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37113 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37114 if (!SWIG_IsOK(ecode2)) {
37115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37116 }
37117 arg2 = static_cast< bool >(val2);
37118 {
37119 PyThreadState* __tstate = wxPyBeginAllowThreads();
37120 (arg1)->SetQuickBestSize(arg2);
37121 wxPyEndAllowThreads(__tstate);
37122 if (PyErr_Occurred()) SWIG_fail;
37123 }
37124 resultobj = SWIG_Py_Void();
37125 return resultobj;
37126fail:
37127 return NULL;
37128}
37129
37130
37131SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37132 PyObject *resultobj = 0;
37133 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37134 bool result;
37135 void *argp1 = 0 ;
37136 int res1 = 0 ;
37137 PyObject *swig_obj[1] ;
37138
37139 if (!args) SWIG_fail;
37140 swig_obj[0] = args;
37141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37142 if (!SWIG_IsOK(res1)) {
37143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37144 }
37145 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37146 {
37147 PyThreadState* __tstate = wxPyBeginAllowThreads();
37148 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37149 wxPyEndAllowThreads(__tstate);
37150 if (PyErr_Occurred()) SWIG_fail;
37151 }
37152 {
37153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37154 }
37155 return resultobj;
37156fail:
37157 return NULL;
37158}
37159
37160
0085ce49
RD
37161SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37162 PyObject *obj;
37163 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37164 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37165 return SWIG_Py_Void();
d14a1e28
RD
37166}
37167
0085ce49
RD
37168SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37169 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
37170}
37171
0085ce49
RD
37172SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37173 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37174 return 1;
d14a1e28
RD
37175}
37176
37177
0085ce49
RD
37178SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37179 PyObject *pyobj = 0;
37180
37181 {
37182#if wxUSE_UNICODE
37183 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37184#else
37185 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37186#endif
37187 }
37188 return pyobj;
37189}
37190
37191
37192SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37193 PyObject *resultobj = 0;
37194 wxWindow *arg1 = (wxWindow *) 0 ;
37195 int arg2 = (int) (int)-1 ;
37196 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37197 wxString *arg3 = (wxString *) &arg3_defvalue ;
37198 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37199 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37200 wxSize const &arg5_defvalue = wxDefaultSize ;
37201 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37202 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37203 wxString const &arg7_defvalue = wxPyEmptyString ;
37204 wxString *arg7 = (wxString *) &arg7_defvalue ;
37205 int arg8 = (int) 0 ;
37206 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37207 wxString *arg9 = (wxString *) &arg9_defvalue ;
37208 wxGenericDirCtrl *result = 0 ;
37209 void *argp1 = 0 ;
37210 int res1 = 0 ;
37211 int val2 ;
37212 int ecode2 = 0 ;
37213 bool temp3 = false ;
37214 wxPoint temp4 ;
37215 wxSize temp5 ;
37216 long val6 ;
37217 int ecode6 = 0 ;
37218 bool temp7 = false ;
37219 int val8 ;
37220 int ecode8 = 0 ;
37221 bool temp9 = false ;
37222 PyObject * obj0 = 0 ;
37223 PyObject * obj1 = 0 ;
37224 PyObject * obj2 = 0 ;
37225 PyObject * obj3 = 0 ;
37226 PyObject * obj4 = 0 ;
37227 PyObject * obj5 = 0 ;
37228 PyObject * obj6 = 0 ;
37229 PyObject * obj7 = 0 ;
37230 PyObject * obj8 = 0 ;
37231 char * kwnames[] = {
37232 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37233 };
37234
37235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37237 if (!SWIG_IsOK(res1)) {
37238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37239 }
37240 arg1 = reinterpret_cast< wxWindow * >(argp1);
37241 if (obj1) {
37242 ecode2 = SWIG_AsVal_int(obj1, &val2);
37243 if (!SWIG_IsOK(ecode2)) {
37244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37245 }
37246 arg2 = static_cast< int >(val2);
37247 }
37248 if (obj2) {
d14a1e28 37249 {
0085ce49
RD
37250 arg3 = wxString_in_helper(obj2);
37251 if (arg3 == NULL) SWIG_fail;
37252 temp3 = true;
d14a1e28 37253 }
0085ce49
RD
37254 }
37255 if (obj3) {
4f89f6a3 37256 {
0085ce49
RD
37257 arg4 = &temp4;
37258 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 37259 }
0085ce49
RD
37260 }
37261 if (obj4) {
093d3ff1 37262 {
0085ce49
RD
37263 arg5 = &temp5;
37264 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37265 }
0085ce49
RD
37266 }
37267 if (obj5) {
37268 ecode6 = SWIG_AsVal_long(obj5, &val6);
37269 if (!SWIG_IsOK(ecode6)) {
37270 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37271 }
37272 arg6 = static_cast< long >(val6);
37273 }
37274 if (obj6) {
093d3ff1 37275 {
0085ce49
RD
37276 arg7 = wxString_in_helper(obj6);
37277 if (arg7 == NULL) SWIG_fail;
37278 temp7 = true;
093d3ff1 37279 }
0085ce49
RD
37280 }
37281 if (obj7) {
37282 ecode8 = SWIG_AsVal_int(obj7, &val8);
37283 if (!SWIG_IsOK(ecode8)) {
37284 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37285 }
37286 arg8 = static_cast< int >(val8);
37287 }
37288 if (obj8) {
d14a1e28 37289 {
0085ce49
RD
37290 arg9 = wxString_in_helper(obj8);
37291 if (arg9 == NULL) SWIG_fail;
37292 temp9 = true;
d14a1e28 37293 }
0085ce49
RD
37294 }
37295 {
37296 if (!wxPyCheckForApp()) SWIG_fail;
37297 PyThreadState* __tstate = wxPyBeginAllowThreads();
37298 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37299 wxPyEndAllowThreads(__tstate);
37300 if (PyErr_Occurred()) SWIG_fail;
37301 }
37302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37303 {
37304 if (temp3)
37305 delete arg3;
37306 }
37307 {
37308 if (temp7)
37309 delete arg7;
37310 }
37311 {
37312 if (temp9)
37313 delete arg9;
37314 }
37315 return resultobj;
37316fail:
37317 {
37318 if (temp3)
37319 delete arg3;
37320 }
37321 {
37322 if (temp7)
37323 delete arg7;
37324 }
37325 {
37326 if (temp9)
37327 delete arg9;
37328 }
37329 return NULL;
d14a1e28
RD
37330}
37331
37332
0085ce49
RD
37333SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37334 PyObject *resultobj = 0;
37335 wxGenericDirCtrl *result = 0 ;
37336
37337 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37338 {
37339 if (!wxPyCheckForApp()) SWIG_fail;
37340 PyThreadState* __tstate = wxPyBeginAllowThreads();
37341 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37342 wxPyEndAllowThreads(__tstate);
37343 if (PyErr_Occurred()) SWIG_fail;
37344 }
37345 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37346 return resultobj;
37347fail:
37348 return NULL;
37349}
37350
37351
37352SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37353 PyObject *resultobj = 0;
37354 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37355 wxWindow *arg2 = (wxWindow *) 0 ;
37356 int arg3 = (int) (int)-1 ;
37357 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37358 wxString *arg4 = (wxString *) &arg4_defvalue ;
37359 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37360 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37361 wxSize const &arg6_defvalue = wxDefaultSize ;
37362 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37363 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37364 wxString const &arg8_defvalue = wxPyEmptyString ;
37365 wxString *arg8 = (wxString *) &arg8_defvalue ;
37366 int arg9 = (int) 0 ;
37367 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37368 wxString *arg10 = (wxString *) &arg10_defvalue ;
37369 bool result;
37370 void *argp1 = 0 ;
37371 int res1 = 0 ;
37372 void *argp2 = 0 ;
37373 int res2 = 0 ;
37374 int val3 ;
37375 int ecode3 = 0 ;
37376 bool temp4 = false ;
37377 wxPoint temp5 ;
37378 wxSize temp6 ;
37379 long val7 ;
37380 int ecode7 = 0 ;
37381 bool temp8 = false ;
37382 int val9 ;
37383 int ecode9 = 0 ;
37384 bool temp10 = false ;
37385 PyObject * obj0 = 0 ;
37386 PyObject * obj1 = 0 ;
37387 PyObject * obj2 = 0 ;
37388 PyObject * obj3 = 0 ;
37389 PyObject * obj4 = 0 ;
37390 PyObject * obj5 = 0 ;
37391 PyObject * obj6 = 0 ;
37392 PyObject * obj7 = 0 ;
37393 PyObject * obj8 = 0 ;
37394 PyObject * obj9 = 0 ;
37395 char * kwnames[] = {
37396 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37397 };
37398
37399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37401 if (!SWIG_IsOK(res1)) {
37402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37403 }
37404 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37405 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37406 if (!SWIG_IsOK(res2)) {
37407 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37408 }
37409 arg2 = reinterpret_cast< wxWindow * >(argp2);
37410 if (obj2) {
37411 ecode3 = SWIG_AsVal_int(obj2, &val3);
37412 if (!SWIG_IsOK(ecode3)) {
37413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37414 }
37415 arg3 = static_cast< int >(val3);
37416 }
37417 if (obj3) {
093d3ff1 37418 {
0085ce49
RD
37419 arg4 = wxString_in_helper(obj3);
37420 if (arg4 == NULL) SWIG_fail;
37421 temp4 = true;
093d3ff1 37422 }
0085ce49
RD
37423 }
37424 if (obj4) {
093d3ff1 37425 {
0085ce49
RD
37426 arg5 = &temp5;
37427 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37428 }
0085ce49
RD
37429 }
37430 if (obj5) {
d14a1e28 37431 {
0085ce49
RD
37432 arg6 = &temp6;
37433 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 37434 }
0085ce49
RD
37435 }
37436 if (obj6) {
37437 ecode7 = SWIG_AsVal_long(obj6, &val7);
37438 if (!SWIG_IsOK(ecode7)) {
37439 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37440 }
37441 arg7 = static_cast< long >(val7);
37442 }
37443 if (obj7) {
093d3ff1 37444 {
0085ce49
RD
37445 arg8 = wxString_in_helper(obj7);
37446 if (arg8 == NULL) SWIG_fail;
37447 temp8 = true;
093d3ff1 37448 }
0085ce49
RD
37449 }
37450 if (obj8) {
37451 ecode9 = SWIG_AsVal_int(obj8, &val9);
37452 if (!SWIG_IsOK(ecode9)) {
37453 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37454 }
37455 arg9 = static_cast< int >(val9);
37456 }
37457 if (obj9) {
093d3ff1 37458 {
0085ce49
RD
37459 arg10 = wxString_in_helper(obj9);
37460 if (arg10 == NULL) SWIG_fail;
37461 temp10 = true;
093d3ff1 37462 }
0085ce49
RD
37463 }
37464 {
37465 PyThreadState* __tstate = wxPyBeginAllowThreads();
37466 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37467 wxPyEndAllowThreads(__tstate);
37468 if (PyErr_Occurred()) SWIG_fail;
37469 }
37470 {
37471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37472 }
37473 {
37474 if (temp4)
37475 delete arg4;
37476 }
37477 {
37478 if (temp8)
37479 delete arg8;
37480 }
37481 {
37482 if (temp10)
37483 delete arg10;
37484 }
37485 return resultobj;
37486fail:
37487 {
37488 if (temp4)
37489 delete arg4;
37490 }
37491 {
37492 if (temp8)
37493 delete arg8;
37494 }
37495 {
37496 if (temp10)
37497 delete arg10;
37498 }
37499 return NULL;
37500}
37501
37502
37503SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37504 PyObject *resultobj = 0;
37505 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37506 wxString *arg2 = 0 ;
37507 bool result;
37508 void *argp1 = 0 ;
37509 int res1 = 0 ;
37510 bool temp2 = false ;
37511 PyObject * obj0 = 0 ;
37512 PyObject * obj1 = 0 ;
37513 char * kwnames[] = {
37514 (char *) "self",(char *) "path", NULL
37515 };
37516
37517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37519 if (!SWIG_IsOK(res1)) {
37520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37521 }
37522 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37523 {
37524 arg2 = wxString_in_helper(obj1);
37525 if (arg2 == NULL) SWIG_fail;
37526 temp2 = true;
37527 }
37528 {
37529 PyThreadState* __tstate = wxPyBeginAllowThreads();
37530 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37531 wxPyEndAllowThreads(__tstate);
37532 if (PyErr_Occurred()) SWIG_fail;
37533 }
37534 {
37535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37536 }
37537 {
37538 if (temp2)
37539 delete arg2;
37540 }
37541 return resultobj;
37542fail:
37543 {
37544 if (temp2)
37545 delete arg2;
37546 }
37547 return NULL;
d14a1e28
RD
37548}
37549
37550
704eda0c
RD
37551SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37552 PyObject *resultobj = 0;
37553 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37554 wxString *arg2 = 0 ;
37555 bool result;
37556 void *argp1 = 0 ;
37557 int res1 = 0 ;
37558 bool temp2 = false ;
37559 PyObject * obj0 = 0 ;
37560 PyObject * obj1 = 0 ;
37561 char * kwnames[] = {
37562 (char *) "self",(char *) "path", NULL
37563 };
37564
37565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37567 if (!SWIG_IsOK(res1)) {
37568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37569 }
37570 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37571 {
37572 arg2 = wxString_in_helper(obj1);
37573 if (arg2 == NULL) SWIG_fail;
37574 temp2 = true;
37575 }
37576 {
37577 PyThreadState* __tstate = wxPyBeginAllowThreads();
37578 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37579 wxPyEndAllowThreads(__tstate);
37580 if (PyErr_Occurred()) SWIG_fail;
37581 }
37582 {
37583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37584 }
37585 {
37586 if (temp2)
37587 delete arg2;
37588 }
37589 return resultobj;
37590fail:
37591 {
37592 if (temp2)
37593 delete arg2;
37594 }
37595 return NULL;
37596}
37597
37598
0085ce49
RD
37599SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37600 PyObject *resultobj = 0;
37601 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37602 wxString result;
37603 void *argp1 = 0 ;
37604 int res1 = 0 ;
37605 PyObject *swig_obj[1] ;
37606
37607 if (!args) SWIG_fail;
37608 swig_obj[0] = args;
37609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37610 if (!SWIG_IsOK(res1)) {
37611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37612 }
37613 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37614 {
37615 PyThreadState* __tstate = wxPyBeginAllowThreads();
37616 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37617 wxPyEndAllowThreads(__tstate);
37618 if (PyErr_Occurred()) SWIG_fail;
37619 }
37620 {
37621#if wxUSE_UNICODE
37622 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37623#else
37624 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37625#endif
37626 }
37627 return resultobj;
37628fail:
37629 return NULL;
37630}
37631
37632
37633SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37634 PyObject *resultobj = 0;
37635 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37636 wxString *arg2 = 0 ;
37637 void *argp1 = 0 ;
37638 int res1 = 0 ;
37639 bool temp2 = false ;
37640 PyObject * obj0 = 0 ;
37641 PyObject * obj1 = 0 ;
37642 char * kwnames[] = {
37643 (char *) "self",(char *) "path", NULL
37644 };
37645
37646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37648 if (!SWIG_IsOK(res1)) {
37649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37650 }
37651 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37652 {
37653 arg2 = wxString_in_helper(obj1);
37654 if (arg2 == NULL) SWIG_fail;
37655 temp2 = true;
37656 }
37657 {
37658 PyThreadState* __tstate = wxPyBeginAllowThreads();
37659 (arg1)->SetDefaultPath((wxString const &)*arg2);
37660 wxPyEndAllowThreads(__tstate);
37661 if (PyErr_Occurred()) SWIG_fail;
37662 }
37663 resultobj = SWIG_Py_Void();
37664 {
37665 if (temp2)
37666 delete arg2;
37667 }
37668 return resultobj;
37669fail:
37670 {
37671 if (temp2)
37672 delete arg2;
37673 }
37674 return NULL;
d14a1e28
RD
37675}
37676
37677
0085ce49
RD
37678SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37679 PyObject *resultobj = 0;
37680 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37681 wxString result;
37682 void *argp1 = 0 ;
37683 int res1 = 0 ;
37684 PyObject *swig_obj[1] ;
37685
37686 if (!args) SWIG_fail;
37687 swig_obj[0] = args;
37688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37689 if (!SWIG_IsOK(res1)) {
37690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37691 }
37692 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37693 {
37694 PyThreadState* __tstate = wxPyBeginAllowThreads();
37695 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37696 wxPyEndAllowThreads(__tstate);
37697 if (PyErr_Occurred()) SWIG_fail;
37698 }
37699 {
37700#if wxUSE_UNICODE
37701 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37702#else
37703 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37704#endif
37705 }
37706 return resultobj;
37707fail:
37708 return NULL;
d14a1e28
RD
37709}
37710
37711
0085ce49
RD
37712SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37713 PyObject *resultobj = 0;
37714 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37715 wxString result;
37716 void *argp1 = 0 ;
37717 int res1 = 0 ;
37718 PyObject *swig_obj[1] ;
37719
37720 if (!args) SWIG_fail;
37721 swig_obj[0] = args;
37722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37723 if (!SWIG_IsOK(res1)) {
37724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37725 }
37726 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37727 {
37728 PyThreadState* __tstate = wxPyBeginAllowThreads();
37729 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37730 wxPyEndAllowThreads(__tstate);
37731 if (PyErr_Occurred()) SWIG_fail;
37732 }
37733 {
37734#if wxUSE_UNICODE
37735 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37736#else
37737 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37738#endif
37739 }
37740 return resultobj;
37741fail:
37742 return NULL;
37743}
37744
37745
37746SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37747 PyObject *resultobj = 0;
37748 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37749 wxString *arg2 = 0 ;
37750 void *argp1 = 0 ;
37751 int res1 = 0 ;
37752 bool temp2 = false ;
37753 PyObject * obj0 = 0 ;
37754 PyObject * obj1 = 0 ;
37755 char * kwnames[] = {
37756 (char *) "self",(char *) "path", NULL
37757 };
37758
37759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37761 if (!SWIG_IsOK(res1)) {
37762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37763 }
37764 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37765 {
37766 arg2 = wxString_in_helper(obj1);
37767 if (arg2 == NULL) SWIG_fail;
37768 temp2 = true;
37769 }
37770 {
37771 PyThreadState* __tstate = wxPyBeginAllowThreads();
37772 (arg1)->SetPath((wxString const &)*arg2);
37773 wxPyEndAllowThreads(__tstate);
37774 if (PyErr_Occurred()) SWIG_fail;
37775 }
37776 resultobj = SWIG_Py_Void();
37777 {
37778 if (temp2)
37779 delete arg2;
37780 }
37781 return resultobj;
37782fail:
37783 {
37784 if (temp2)
37785 delete arg2;
37786 }
37787 return NULL;
37788}
37789
37790
37791SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37792 PyObject *resultobj = 0;
37793 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37794 bool arg2 ;
37795 void *argp1 = 0 ;
37796 int res1 = 0 ;
37797 bool val2 ;
37798 int ecode2 = 0 ;
37799 PyObject * obj0 = 0 ;
37800 PyObject * obj1 = 0 ;
37801 char * kwnames[] = {
37802 (char *) "self",(char *) "show", NULL
37803 };
37804
37805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37807 if (!SWIG_IsOK(res1)) {
37808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37809 }
37810 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37811 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37812 if (!SWIG_IsOK(ecode2)) {
37813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37814 }
37815 arg2 = static_cast< bool >(val2);
37816 {
37817 PyThreadState* __tstate = wxPyBeginAllowThreads();
37818 (arg1)->ShowHidden(arg2);
37819 wxPyEndAllowThreads(__tstate);
37820 if (PyErr_Occurred()) SWIG_fail;
37821 }
37822 resultobj = SWIG_Py_Void();
37823 return resultobj;
37824fail:
37825 return NULL;
d14a1e28
RD
37826}
37827
37828
0085ce49
RD
37829SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37830 PyObject *resultobj = 0;
37831 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37832 bool result;
37833 void *argp1 = 0 ;
37834 int res1 = 0 ;
37835 PyObject *swig_obj[1] ;
37836
37837 if (!args) SWIG_fail;
37838 swig_obj[0] = args;
37839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37840 if (!SWIG_IsOK(res1)) {
37841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37842 }
37843 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37844 {
37845 PyThreadState* __tstate = wxPyBeginAllowThreads();
37846 result = (bool)(arg1)->GetShowHidden();
37847 wxPyEndAllowThreads(__tstate);
37848 if (PyErr_Occurred()) SWIG_fail;
37849 }
37850 {
37851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37852 }
37853 return resultobj;
37854fail:
37855 return NULL;
d14a1e28
RD
37856}
37857
37858
0085ce49
RD
37859SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37860 PyObject *resultobj = 0;
37861 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37862 wxString result;
37863 void *argp1 = 0 ;
37864 int res1 = 0 ;
37865 PyObject *swig_obj[1] ;
37866
37867 if (!args) SWIG_fail;
37868 swig_obj[0] = args;
37869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37870 if (!SWIG_IsOK(res1)) {
37871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37872 }
37873 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37874 {
37875 PyThreadState* __tstate = wxPyBeginAllowThreads();
37876 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37877 wxPyEndAllowThreads(__tstate);
37878 if (PyErr_Occurred()) SWIG_fail;
37879 }
37880 {
37881#if wxUSE_UNICODE
37882 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37883#else
37884 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37885#endif
37886 }
37887 return resultobj;
37888fail:
37889 return NULL;
37890}
37891
37892
37893SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37894 PyObject *resultobj = 0;
37895 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37896 wxString *arg2 = 0 ;
37897 void *argp1 = 0 ;
37898 int res1 = 0 ;
37899 bool temp2 = false ;
37900 PyObject * obj0 = 0 ;
37901 PyObject * obj1 = 0 ;
37902 char * kwnames[] = {
37903 (char *) "self",(char *) "filter", NULL
37904 };
37905
37906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37908 if (!SWIG_IsOK(res1)) {
37909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37910 }
37911 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37912 {
37913 arg2 = wxString_in_helper(obj1);
37914 if (arg2 == NULL) SWIG_fail;
37915 temp2 = true;
37916 }
37917 {
37918 PyThreadState* __tstate = wxPyBeginAllowThreads();
37919 (arg1)->SetFilter((wxString const &)*arg2);
37920 wxPyEndAllowThreads(__tstate);
37921 if (PyErr_Occurred()) SWIG_fail;
37922 }
37923 resultobj = SWIG_Py_Void();
37924 {
37925 if (temp2)
37926 delete arg2;
37927 }
37928 return resultobj;
37929fail:
37930 {
37931 if (temp2)
37932 delete arg2;
37933 }
37934 return NULL;
d14a1e28
RD
37935}
37936
37937
0085ce49
RD
37938SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37939 PyObject *resultobj = 0;
37940 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37941 int result;
37942 void *argp1 = 0 ;
37943 int res1 = 0 ;
37944 PyObject *swig_obj[1] ;
37945
37946 if (!args) SWIG_fail;
37947 swig_obj[0] = args;
37948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37949 if (!SWIG_IsOK(res1)) {
37950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37951 }
37952 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37953 {
37954 PyThreadState* __tstate = wxPyBeginAllowThreads();
37955 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37956 wxPyEndAllowThreads(__tstate);
37957 if (PyErr_Occurred()) SWIG_fail;
37958 }
37959 resultobj = SWIG_From_int(static_cast< int >(result));
37960 return resultobj;
37961fail:
37962 return NULL;
37963}
37964
37965
37966SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37967 PyObject *resultobj = 0;
37968 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37969 int arg2 ;
37970 void *argp1 = 0 ;
37971 int res1 = 0 ;
37972 int val2 ;
37973 int ecode2 = 0 ;
37974 PyObject * obj0 = 0 ;
37975 PyObject * obj1 = 0 ;
37976 char * kwnames[] = {
37977 (char *) "self",(char *) "n", NULL
37978 };
37979
37980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37982 if (!SWIG_IsOK(res1)) {
37983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37984 }
37985 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37986 ecode2 = SWIG_AsVal_int(obj1, &val2);
37987 if (!SWIG_IsOK(ecode2)) {
37988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37989 }
37990 arg2 = static_cast< int >(val2);
37991 {
37992 PyThreadState* __tstate = wxPyBeginAllowThreads();
37993 (arg1)->SetFilterIndex(arg2);
37994 wxPyEndAllowThreads(__tstate);
37995 if (PyErr_Occurred()) SWIG_fail;
37996 }
37997 resultobj = SWIG_Py_Void();
37998 return resultobj;
37999fail:
38000 return NULL;
d14a1e28
RD
38001}
38002
38003
0085ce49
RD
38004SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38005 PyObject *resultobj = 0;
38006 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38007 wxTreeItemId result;
38008 void *argp1 = 0 ;
38009 int res1 = 0 ;
38010 PyObject *swig_obj[1] ;
38011
38012 if (!args) SWIG_fail;
38013 swig_obj[0] = args;
38014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38015 if (!SWIG_IsOK(res1)) {
38016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38017 }
38018 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38019 {
38020 PyThreadState* __tstate = wxPyBeginAllowThreads();
38021 result = (arg1)->GetRootId();
38022 wxPyEndAllowThreads(__tstate);
38023 if (PyErr_Occurred()) SWIG_fail;
38024 }
38025 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38026 return resultobj;
38027fail:
38028 return NULL;
d14a1e28
RD
38029}
38030
38031
0085ce49
RD
38032SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38033 PyObject *resultobj = 0;
38034 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38035 wxPyTreeCtrl *result = 0 ;
38036 void *argp1 = 0 ;
38037 int res1 = 0 ;
38038 PyObject *swig_obj[1] ;
38039
38040 if (!args) SWIG_fail;
38041 swig_obj[0] = args;
38042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38043 if (!SWIG_IsOK(res1)) {
38044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38045 }
38046 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38047 {
38048 PyThreadState* __tstate = wxPyBeginAllowThreads();
38049 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38050 wxPyEndAllowThreads(__tstate);
38051 if (PyErr_Occurred()) SWIG_fail;
38052 }
38053 {
38054 resultobj = wxPyMake_wxObject(result, 0);
38055 }
38056 return resultobj;
38057fail:
38058 return NULL;
d14a1e28
RD
38059}
38060
38061
0085ce49
RD
38062SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38063 PyObject *resultobj = 0;
38064 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38065 wxDirFilterListCtrl *result = 0 ;
38066 void *argp1 = 0 ;
38067 int res1 = 0 ;
38068 PyObject *swig_obj[1] ;
38069
38070 if (!args) SWIG_fail;
38071 swig_obj[0] = args;
38072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38073 if (!SWIG_IsOK(res1)) {
38074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38075 }
38076 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38077 {
38078 PyThreadState* __tstate = wxPyBeginAllowThreads();
38079 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38080 wxPyEndAllowThreads(__tstate);
38081 if (PyErr_Occurred()) SWIG_fail;
38082 }
38083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38084 return resultobj;
38085fail:
38086 return NULL;
38087}
38088
38089
38090SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38091 PyObject *resultobj = 0;
38092 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38093 wxTreeItemId arg2 ;
38094 wxString *arg3 = 0 ;
38095 bool *arg4 = 0 ;
38096 wxTreeItemId result;
38097 void *argp1 = 0 ;
38098 int res1 = 0 ;
38099 void *argp2 ;
38100 int res2 = 0 ;
38101 bool temp3 = false ;
38102 bool temp4 ;
38103 int res4 = SWIG_TMPOBJ ;
38104 PyObject * obj0 = 0 ;
38105 PyObject * obj1 = 0 ;
38106 PyObject * obj2 = 0 ;
38107 char * kwnames[] = {
38108 (char *) "self",(char *) "parentId",(char *) "path", NULL
38109 };
38110
38111 arg4 = &temp4;
38112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38114 if (!SWIG_IsOK(res1)) {
38115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38116 }
38117 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38118 {
38119 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38120 if (!SWIG_IsOK(res2)) {
38121 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38122 }
38123 if (!argp2) {
38124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38125 } else {
38126 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38127 arg2 = *temp;
38128 if (SWIG_IsNewObj(res2)) delete temp;
d14a1e28 38129 }
0085ce49
RD
38130 }
38131 {
38132 arg3 = wxString_in_helper(obj2);
38133 if (arg3 == NULL) SWIG_fail;
38134 temp3 = true;
38135 }
38136 {
38137 PyThreadState* __tstate = wxPyBeginAllowThreads();
38138 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38139 wxPyEndAllowThreads(__tstate);
38140 if (PyErr_Occurred()) SWIG_fail;
38141 }
38142 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38143 if (SWIG_IsTmpObj(res4)) {
38144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38145 } else {
38146 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38147 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38148 }
38149 {
38150 if (temp3)
38151 delete arg3;
38152 }
38153 return resultobj;
38154fail:
38155 {
38156 if (temp3)
38157 delete arg3;
38158 }
38159 return NULL;
d14a1e28
RD
38160}
38161
38162
0085ce49
RD
38163SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38164 PyObject *resultobj = 0;
38165 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38166 void *argp1 = 0 ;
38167 int res1 = 0 ;
38168 PyObject *swig_obj[1] ;
38169
38170 if (!args) SWIG_fail;
38171 swig_obj[0] = args;
38172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38173 if (!SWIG_IsOK(res1)) {
38174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38175 }
38176 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38177 {
38178 PyThreadState* __tstate = wxPyBeginAllowThreads();
38179 (arg1)->DoResize();
38180 wxPyEndAllowThreads(__tstate);
38181 if (PyErr_Occurred()) SWIG_fail;
38182 }
38183 resultobj = SWIG_Py_Void();
38184 return resultobj;
38185fail:
38186 return NULL;
d14a1e28
RD
38187}
38188
38189
0085ce49
RD
38190SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38191 PyObject *resultobj = 0;
38192 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38193 void *argp1 = 0 ;
38194 int res1 = 0 ;
38195 PyObject *swig_obj[1] ;
38196
38197 if (!args) SWIG_fail;
38198 swig_obj[0] = args;
38199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38200 if (!SWIG_IsOK(res1)) {
38201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38202 }
38203 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38204 {
38205 PyThreadState* __tstate = wxPyBeginAllowThreads();
38206 (arg1)->ReCreateTree();
38207 wxPyEndAllowThreads(__tstate);
38208 if (PyErr_Occurred()) SWIG_fail;
38209 }
38210 resultobj = SWIG_Py_Void();
38211 return resultobj;
38212fail:
38213 return NULL;
38214}
38215
38216
38217SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38218 PyObject *obj;
38219 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38220 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38221 return SWIG_Py_Void();
38222}
38223
38224SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38225 return SWIG_Python_InitShadowInstance(args);
38226}
38227
38228SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38229 PyObject *resultobj = 0;
38230 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38231 int arg2 = (int) (int)-1 ;
38232 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38233 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38234 wxSize const &arg4_defvalue = wxDefaultSize ;
38235 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38236 long arg5 = (long) 0 ;
38237 wxDirFilterListCtrl *result = 0 ;
38238 void *argp1 = 0 ;
38239 int res1 = 0 ;
38240 int val2 ;
38241 int ecode2 = 0 ;
38242 wxPoint temp3 ;
38243 wxSize temp4 ;
38244 long val5 ;
38245 int ecode5 = 0 ;
38246 PyObject * obj0 = 0 ;
38247 PyObject * obj1 = 0 ;
38248 PyObject * obj2 = 0 ;
38249 PyObject * obj3 = 0 ;
38250 PyObject * obj4 = 0 ;
38251 char * kwnames[] = {
38252 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38253 };
38254
38255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38257 if (!SWIG_IsOK(res1)) {
38258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38259 }
38260 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38261 if (obj1) {
38262 ecode2 = SWIG_AsVal_int(obj1, &val2);
38263 if (!SWIG_IsOK(ecode2)) {
38264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38265 }
38266 arg2 = static_cast< int >(val2);
38267 }
38268 if (obj2) {
d14a1e28 38269 {
0085ce49
RD
38270 arg3 = &temp3;
38271 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 38272 }
0085ce49
RD
38273 }
38274 if (obj3) {
d14a1e28 38275 {
0085ce49
RD
38276 arg4 = &temp4;
38277 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 38278 }
0085ce49
RD
38279 }
38280 if (obj4) {
38281 ecode5 = SWIG_AsVal_long(obj4, &val5);
38282 if (!SWIG_IsOK(ecode5)) {
38283 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38284 }
38285 arg5 = static_cast< long >(val5);
38286 }
38287 {
38288 if (!wxPyCheckForApp()) SWIG_fail;
38289 PyThreadState* __tstate = wxPyBeginAllowThreads();
38290 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38291 wxPyEndAllowThreads(__tstate);
38292 if (PyErr_Occurred()) SWIG_fail;
38293 }
38294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38295 return resultobj;
38296fail:
38297 return NULL;
d14a1e28
RD
38298}
38299
38300
0085ce49
RD
38301SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38302 PyObject *resultobj = 0;
38303 wxDirFilterListCtrl *result = 0 ;
38304
38305 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38306 {
38307 if (!wxPyCheckForApp()) SWIG_fail;
38308 PyThreadState* __tstate = wxPyBeginAllowThreads();
38309 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38310 wxPyEndAllowThreads(__tstate);
38311 if (PyErr_Occurred()) SWIG_fail;
38312 }
38313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38314 return resultobj;
38315fail:
38316 return NULL;
38317}
38318
38319
38320SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38321 PyObject *resultobj = 0;
38322 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38323 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38324 int arg3 = (int) (int)-1 ;
38325 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38326 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38327 wxSize const &arg5_defvalue = wxDefaultSize ;
38328 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38329 long arg6 = (long) 0 ;
38330 bool result;
38331 void *argp1 = 0 ;
38332 int res1 = 0 ;
38333 void *argp2 = 0 ;
38334 int res2 = 0 ;
38335 int val3 ;
38336 int ecode3 = 0 ;
38337 wxPoint temp4 ;
38338 wxSize temp5 ;
38339 long val6 ;
38340 int ecode6 = 0 ;
38341 PyObject * obj0 = 0 ;
38342 PyObject * obj1 = 0 ;
38343 PyObject * obj2 = 0 ;
38344 PyObject * obj3 = 0 ;
38345 PyObject * obj4 = 0 ;
38346 PyObject * obj5 = 0 ;
38347 char * kwnames[] = {
38348 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38349 };
38350
38351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38353 if (!SWIG_IsOK(res1)) {
38354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38355 }
38356 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38357 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38358 if (!SWIG_IsOK(res2)) {
38359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38360 }
38361 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38362 if (obj2) {
38363 ecode3 = SWIG_AsVal_int(obj2, &val3);
38364 if (!SWIG_IsOK(ecode3)) {
38365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38366 }
38367 arg3 = static_cast< int >(val3);
38368 }
38369 if (obj3) {
093d3ff1 38370 {
0085ce49
RD
38371 arg4 = &temp4;
38372 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 38373 }
0085ce49
RD
38374 }
38375 if (obj4) {
d14a1e28 38376 {
0085ce49
RD
38377 arg5 = &temp5;
38378 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 38379 }
0085ce49
RD
38380 }
38381 if (obj5) {
38382 ecode6 = SWIG_AsVal_long(obj5, &val6);
38383 if (!SWIG_IsOK(ecode6)) {
38384 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38385 }
38386 arg6 = static_cast< long >(val6);
38387 }
38388 {
38389 PyThreadState* __tstate = wxPyBeginAllowThreads();
38390 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38391 wxPyEndAllowThreads(__tstate);
38392 if (PyErr_Occurred()) SWIG_fail;
38393 }
38394 {
38395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38396 }
38397 return resultobj;
38398fail:
38399 return NULL;
38400}
38401
38402
38403SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38404 PyObject *resultobj = 0;
38405 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38406 wxString *arg2 = 0 ;
38407 int arg3 ;
38408 void *argp1 = 0 ;
38409 int res1 = 0 ;
38410 bool temp2 = false ;
38411 int val3 ;
38412 int ecode3 = 0 ;
38413 PyObject * obj0 = 0 ;
38414 PyObject * obj1 = 0 ;
38415 PyObject * obj2 = 0 ;
38416 char * kwnames[] = {
38417 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38418 };
38419
38420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38422 if (!SWIG_IsOK(res1)) {
38423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38424 }
38425 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38426 {
38427 arg2 = wxString_in_helper(obj1);
38428 if (arg2 == NULL) SWIG_fail;
38429 temp2 = true;
38430 }
38431 ecode3 = SWIG_AsVal_int(obj2, &val3);
38432 if (!SWIG_IsOK(ecode3)) {
38433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38434 }
38435 arg3 = static_cast< int >(val3);
38436 {
38437 PyThreadState* __tstate = wxPyBeginAllowThreads();
38438 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38439 wxPyEndAllowThreads(__tstate);
38440 if (PyErr_Occurred()) SWIG_fail;
38441 }
38442 resultobj = SWIG_Py_Void();
38443 {
38444 if (temp2)
38445 delete arg2;
38446 }
38447 return resultobj;
38448fail:
38449 {
38450 if (temp2)
38451 delete arg2;
38452 }
38453 return NULL;
38454}
38455
38456
38457SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38458 PyObject *obj;
38459 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38460 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38461 return SWIG_Py_Void();
38462}
38463
38464SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38465 return SWIG_Python_InitShadowInstance(args);
38466}
38467
38468SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38469 PyObject *resultobj = 0;
38470 wxWindow *arg1 = (wxWindow *) 0 ;
38471 int arg2 = (int) (int)-1 ;
38472 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38473 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38474 wxSize const &arg4_defvalue = wxDefaultSize ;
38475 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38476 long arg5 = (long) 0 ;
38477 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38478 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38479 wxString const &arg7_defvalue = wxPyControlNameStr ;
38480 wxString *arg7 = (wxString *) &arg7_defvalue ;
38481 wxPyControl *result = 0 ;
38482 void *argp1 = 0 ;
38483 int res1 = 0 ;
38484 int val2 ;
38485 int ecode2 = 0 ;
38486 wxPoint temp3 ;
38487 wxSize temp4 ;
38488 long val5 ;
38489 int ecode5 = 0 ;
38490 void *argp6 = 0 ;
38491 int res6 = 0 ;
38492 bool temp7 = false ;
38493 PyObject * obj0 = 0 ;
38494 PyObject * obj1 = 0 ;
38495 PyObject * obj2 = 0 ;
38496 PyObject * obj3 = 0 ;
38497 PyObject * obj4 = 0 ;
38498 PyObject * obj5 = 0 ;
38499 PyObject * obj6 = 0 ;
38500 char * kwnames[] = {
38501 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38502 };
38503
38504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38506 if (!SWIG_IsOK(res1)) {
38507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38508 }
38509 arg1 = reinterpret_cast< wxWindow * >(argp1);
38510 if (obj1) {
38511 ecode2 = SWIG_AsVal_int(obj1, &val2);
38512 if (!SWIG_IsOK(ecode2)) {
38513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38514 }
38515 arg2 = static_cast< int >(val2);
38516 }
38517 if (obj2) {
093d3ff1 38518 {
0085ce49
RD
38519 arg3 = &temp3;
38520 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 38521 }
0085ce49
RD
38522 }
38523 if (obj3) {
d14a1e28 38524 {
0085ce49
RD
38525 arg4 = &temp4;
38526 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 38527 }
0085ce49
RD
38528 }
38529 if (obj4) {
38530 ecode5 = SWIG_AsVal_long(obj4, &val5);
38531 if (!SWIG_IsOK(ecode5)) {
38532 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38533 }
38534 arg5 = static_cast< long >(val5);
38535 }
38536 if (obj5) {
38537 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38538 if (!SWIG_IsOK(res6)) {
38539 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38540 }
38541 if (!argp6) {
38542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 38543 }
0085ce49
RD
38544 arg6 = reinterpret_cast< wxValidator * >(argp6);
38545 }
38546 if (obj6) {
d14a1e28 38547 {
0085ce49
RD
38548 arg7 = wxString_in_helper(obj6);
38549 if (arg7 == NULL) SWIG_fail;
38550 temp7 = true;
d14a1e28 38551 }
0085ce49
RD
38552 }
38553 {
38554 if (!wxPyCheckForApp()) SWIG_fail;
38555 PyThreadState* __tstate = wxPyBeginAllowThreads();
38556 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38557 wxPyEndAllowThreads(__tstate);
38558 if (PyErr_Occurred()) SWIG_fail;
38559 }
38560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38561 {
38562 if (temp7)
38563 delete arg7;
38564 }
38565 return resultobj;
38566fail:
38567 {
38568 if (temp7)
38569 delete arg7;
38570 }
38571 return NULL;
d14a1e28
RD
38572}
38573
38574
0085ce49
RD
38575SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38576 PyObject *resultobj = 0;
38577 wxPyControl *result = 0 ;
38578
38579 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38580 {
38581 if (!wxPyCheckForApp()) SWIG_fail;
38582 PyThreadState* __tstate = wxPyBeginAllowThreads();
38583 result = (wxPyControl *)new wxPyControl();
38584 wxPyEndAllowThreads(__tstate);
38585 if (PyErr_Occurred()) SWIG_fail;
38586 }
38587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38588 return resultobj;
38589fail:
38590 return NULL;
38591}
38592
38593
38594SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38595 PyObject *resultobj = 0;
38596 wxPyControl *arg1 = (wxPyControl *) 0 ;
38597 PyObject *arg2 = (PyObject *) 0 ;
38598 PyObject *arg3 = (PyObject *) 0 ;
38599 void *argp1 = 0 ;
38600 int res1 = 0 ;
38601 PyObject * obj0 = 0 ;
38602 PyObject * obj1 = 0 ;
38603 PyObject * obj2 = 0 ;
38604 char * kwnames[] = {
38605 (char *) "self",(char *) "self",(char *) "_class", NULL
38606 };
38607
38608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38610 if (!SWIG_IsOK(res1)) {
38611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38612 }
38613 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38614 arg2 = obj1;
38615 arg3 = obj2;
38616 {
38617 PyThreadState* __tstate = wxPyBeginAllowThreads();
38618 (arg1)->_setCallbackInfo(arg2,arg3);
38619 wxPyEndAllowThreads(__tstate);
38620 if (PyErr_Occurred()) SWIG_fail;
38621 }
38622 resultobj = SWIG_Py_Void();
38623 return resultobj;
38624fail:
38625 return NULL;
38626}
38627
38628
38629SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38630 PyObject *resultobj = 0;
38631 wxPyControl *arg1 = (wxPyControl *) 0 ;
38632 wxSize *arg2 = 0 ;
38633 void *argp1 = 0 ;
38634 int res1 = 0 ;
38635 wxSize temp2 ;
38636 PyObject * obj0 = 0 ;
38637 PyObject * obj1 = 0 ;
38638 char * kwnames[] = {
38639 (char *) "self",(char *) "size", NULL
38640 };
38641
38642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38644 if (!SWIG_IsOK(res1)) {
38645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38646 }
38647 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38648 {
38649 arg2 = &temp2;
38650 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38651 }
38652 {
38653 PyThreadState* __tstate = wxPyBeginAllowThreads();
38654 (arg1)->SetBestSize((wxSize const &)*arg2);
38655 wxPyEndAllowThreads(__tstate);
38656 if (PyErr_Occurred()) SWIG_fail;
38657 }
38658 resultobj = SWIG_Py_Void();
38659 return resultobj;
38660fail:
38661 return NULL;
38662}
38663
38664
38665SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38666 PyObject *resultobj = 0;
38667 wxPyControl *arg1 = (wxPyControl *) 0 ;
38668 wxDC *arg2 = (wxDC *) 0 ;
38669 bool result;
38670 void *argp1 = 0 ;
38671 int res1 = 0 ;
38672 void *argp2 = 0 ;
38673 int res2 = 0 ;
38674 PyObject * obj0 = 0 ;
38675 PyObject * obj1 = 0 ;
38676 char * kwnames[] = {
38677 (char *) "self",(char *) "dc", NULL
38678 };
38679
38680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38682 if (!SWIG_IsOK(res1)) {
38683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38684 }
38685 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38686 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38687 if (!SWIG_IsOK(res2)) {
38688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38689 }
38690 arg2 = reinterpret_cast< wxDC * >(argp2);
38691 {
38692 PyThreadState* __tstate = wxPyBeginAllowThreads();
38693 result = (bool)(arg1)->DoEraseBackground(arg2);
38694 wxPyEndAllowThreads(__tstate);
38695 if (PyErr_Occurred()) SWIG_fail;
38696 }
38697 {
38698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38699 }
38700 return resultobj;
38701fail:
38702 return NULL;
38703}
38704
38705
38706SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38707 PyObject *resultobj = 0;
38708 wxPyControl *arg1 = (wxPyControl *) 0 ;
38709 int arg2 ;
38710 int arg3 ;
38711 int arg4 ;
38712 int arg5 ;
38713 void *argp1 = 0 ;
38714 int res1 = 0 ;
38715 int val2 ;
38716 int ecode2 = 0 ;
38717 int val3 ;
38718 int ecode3 = 0 ;
38719 int val4 ;
38720 int ecode4 = 0 ;
38721 int val5 ;
38722 int ecode5 = 0 ;
38723 PyObject * obj0 = 0 ;
38724 PyObject * obj1 = 0 ;
38725 PyObject * obj2 = 0 ;
38726 PyObject * obj3 = 0 ;
38727 PyObject * obj4 = 0 ;
38728 char * kwnames[] = {
38729 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38730 };
38731
38732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38734 if (!SWIG_IsOK(res1)) {
38735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38736 }
38737 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38738 ecode2 = SWIG_AsVal_int(obj1, &val2);
38739 if (!SWIG_IsOK(ecode2)) {
38740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38741 }
38742 arg2 = static_cast< int >(val2);
38743 ecode3 = SWIG_AsVal_int(obj2, &val3);
38744 if (!SWIG_IsOK(ecode3)) {
38745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38746 }
38747 arg3 = static_cast< int >(val3);
38748 ecode4 = SWIG_AsVal_int(obj3, &val4);
38749 if (!SWIG_IsOK(ecode4)) {
38750 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38751 }
38752 arg4 = static_cast< int >(val4);
38753 ecode5 = SWIG_AsVal_int(obj4, &val5);
38754 if (!SWIG_IsOK(ecode5)) {
38755 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38756 }
38757 arg5 = static_cast< int >(val5);
38758 {
38759 PyThreadState* __tstate = wxPyBeginAllowThreads();
38760 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38761 wxPyEndAllowThreads(__tstate);
38762 if (PyErr_Occurred()) SWIG_fail;
38763 }
38764 resultobj = SWIG_Py_Void();
38765 return resultobj;
38766fail:
38767 return NULL;
38768}
38769
38770
38771SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38772 PyObject *resultobj = 0;
38773 wxPyControl *arg1 = (wxPyControl *) 0 ;
38774 int arg2 ;
38775 int arg3 ;
38776 int arg4 ;
38777 int arg5 ;
38778 int arg6 = (int) wxSIZE_AUTO ;
38779 void *argp1 = 0 ;
38780 int res1 = 0 ;
38781 int val2 ;
38782 int ecode2 = 0 ;
38783 int val3 ;
38784 int ecode3 = 0 ;
38785 int val4 ;
38786 int ecode4 = 0 ;
38787 int val5 ;
38788 int ecode5 = 0 ;
38789 int val6 ;
38790 int ecode6 = 0 ;
38791 PyObject * obj0 = 0 ;
38792 PyObject * obj1 = 0 ;
38793 PyObject * obj2 = 0 ;
38794 PyObject * obj3 = 0 ;
38795 PyObject * obj4 = 0 ;
38796 PyObject * obj5 = 0 ;
38797 char * kwnames[] = {
38798 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38799 };
38800
38801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38803 if (!SWIG_IsOK(res1)) {
38804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38805 }
38806 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38807 ecode2 = SWIG_AsVal_int(obj1, &val2);
38808 if (!SWIG_IsOK(ecode2)) {
38809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38810 }
38811 arg2 = static_cast< int >(val2);
38812 ecode3 = SWIG_AsVal_int(obj2, &val3);
38813 if (!SWIG_IsOK(ecode3)) {
38814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38815 }
38816 arg3 = static_cast< int >(val3);
38817 ecode4 = SWIG_AsVal_int(obj3, &val4);
38818 if (!SWIG_IsOK(ecode4)) {
38819 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38820 }
38821 arg4 = static_cast< int >(val4);
38822 ecode5 = SWIG_AsVal_int(obj4, &val5);
38823 if (!SWIG_IsOK(ecode5)) {
38824 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38825 }
38826 arg5 = static_cast< int >(val5);
38827 if (obj5) {
38828 ecode6 = SWIG_AsVal_int(obj5, &val6);
38829 if (!SWIG_IsOK(ecode6)) {
38830 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38831 }
38832 arg6 = static_cast< int >(val6);
38833 }
38834 {
38835 PyThreadState* __tstate = wxPyBeginAllowThreads();
38836 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38837 wxPyEndAllowThreads(__tstate);
38838 if (PyErr_Occurred()) SWIG_fail;
38839 }
38840 resultobj = SWIG_Py_Void();
38841 return resultobj;
38842fail:
38843 return NULL;
38844}
38845
38846
38847SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38848 PyObject *resultobj = 0;
38849 wxPyControl *arg1 = (wxPyControl *) 0 ;
38850 int arg2 ;
38851 int arg3 ;
38852 void *argp1 = 0 ;
38853 int res1 = 0 ;
38854 int val2 ;
38855 int ecode2 = 0 ;
38856 int val3 ;
38857 int ecode3 = 0 ;
38858 PyObject * obj0 = 0 ;
38859 PyObject * obj1 = 0 ;
38860 PyObject * obj2 = 0 ;
38861 char * kwnames[] = {
38862 (char *) "self",(char *) "width",(char *) "height", NULL
38863 };
38864
38865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38867 if (!SWIG_IsOK(res1)) {
38868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38869 }
38870 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38871 ecode2 = SWIG_AsVal_int(obj1, &val2);
38872 if (!SWIG_IsOK(ecode2)) {
38873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38874 }
38875 arg2 = static_cast< int >(val2);
38876 ecode3 = SWIG_AsVal_int(obj2, &val3);
38877 if (!SWIG_IsOK(ecode3)) {
38878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38879 }
38880 arg3 = static_cast< int >(val3);
38881 {
38882 PyThreadState* __tstate = wxPyBeginAllowThreads();
38883 (arg1)->DoSetClientSize(arg2,arg3);
38884 wxPyEndAllowThreads(__tstate);
38885 if (PyErr_Occurred()) SWIG_fail;
38886 }
38887 resultobj = SWIG_Py_Void();
38888 return resultobj;
38889fail:
38890 return NULL;
38891}
38892
38893
38894SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38895 PyObject *resultobj = 0;
38896 wxPyControl *arg1 = (wxPyControl *) 0 ;
38897 int arg2 ;
38898 int arg3 ;
38899 void *argp1 = 0 ;
38900 int res1 = 0 ;
38901 int val2 ;
38902 int ecode2 = 0 ;
38903 int val3 ;
38904 int ecode3 = 0 ;
38905 PyObject * obj0 = 0 ;
38906 PyObject * obj1 = 0 ;
38907 PyObject * obj2 = 0 ;
38908 char * kwnames[] = {
38909 (char *) "self",(char *) "x",(char *) "y", NULL
38910 };
38911
38912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38914 if (!SWIG_IsOK(res1)) {
38915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38916 }
38917 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38918 ecode2 = SWIG_AsVal_int(obj1, &val2);
38919 if (!SWIG_IsOK(ecode2)) {
38920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38921 }
38922 arg2 = static_cast< int >(val2);
38923 ecode3 = SWIG_AsVal_int(obj2, &val3);
38924 if (!SWIG_IsOK(ecode3)) {
38925 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38926 }
38927 arg3 = static_cast< int >(val3);
38928 {
38929 PyThreadState* __tstate = wxPyBeginAllowThreads();
38930 (arg1)->DoSetVirtualSize(arg2,arg3);
38931 wxPyEndAllowThreads(__tstate);
38932 if (PyErr_Occurred()) SWIG_fail;
38933 }
38934 resultobj = SWIG_Py_Void();
38935 return resultobj;
38936fail:
38937 return NULL;
38938}
38939
38940
38941SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38942 PyObject *resultobj = 0;
38943 wxPyControl *arg1 = (wxPyControl *) 0 ;
38944 int *arg2 = (int *) 0 ;
38945 int *arg3 = (int *) 0 ;
38946 void *argp1 = 0 ;
38947 int res1 = 0 ;
38948 int temp2 ;
38949 int res2 = SWIG_TMPOBJ ;
38950 int temp3 ;
38951 int res3 = SWIG_TMPOBJ ;
38952 PyObject *swig_obj[1] ;
38953
38954 arg2 = &temp2;
38955 arg3 = &temp3;
38956 if (!args) SWIG_fail;
38957 swig_obj[0] = args;
38958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38959 if (!SWIG_IsOK(res1)) {
38960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38961 }
38962 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38963 {
38964 PyThreadState* __tstate = wxPyBeginAllowThreads();
38965 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38966 wxPyEndAllowThreads(__tstate);
38967 if (PyErr_Occurred()) SWIG_fail;
38968 }
38969 resultobj = SWIG_Py_Void();
38970 if (SWIG_IsTmpObj(res2)) {
38971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38972 } else {
38973 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38975 }
38976 if (SWIG_IsTmpObj(res3)) {
38977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38978 } else {
38979 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38980 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38981 }
38982 return resultobj;
38983fail:
38984 return NULL;
38985}
38986
38987
38988SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38989 PyObject *resultobj = 0;
38990 wxPyControl *arg1 = (wxPyControl *) 0 ;
38991 int *arg2 = (int *) 0 ;
38992 int *arg3 = (int *) 0 ;
38993 void *argp1 = 0 ;
38994 int res1 = 0 ;
38995 int temp2 ;
38996 int res2 = SWIG_TMPOBJ ;
38997 int temp3 ;
38998 int res3 = SWIG_TMPOBJ ;
38999 PyObject *swig_obj[1] ;
39000
39001 arg2 = &temp2;
39002 arg3 = &temp3;
39003 if (!args) SWIG_fail;
39004 swig_obj[0] = args;
39005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39006 if (!SWIG_IsOK(res1)) {
39007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39008 }
39009 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39010 {
39011 PyThreadState* __tstate = wxPyBeginAllowThreads();
39012 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39013 wxPyEndAllowThreads(__tstate);
39014 if (PyErr_Occurred()) SWIG_fail;
39015 }
39016 resultobj = SWIG_Py_Void();
39017 if (SWIG_IsTmpObj(res2)) {
39018 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39019 } else {
39020 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39021 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39022 }
39023 if (SWIG_IsTmpObj(res3)) {
39024 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39025 } else {
39026 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39027 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39028 }
39029 return resultobj;
39030fail:
39031 return NULL;
39032}
39033
39034
39035SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39036 PyObject *resultobj = 0;
39037 wxPyControl *arg1 = (wxPyControl *) 0 ;
39038 int *arg2 = (int *) 0 ;
39039 int *arg3 = (int *) 0 ;
39040 void *argp1 = 0 ;
39041 int res1 = 0 ;
39042 int temp2 ;
39043 int res2 = SWIG_TMPOBJ ;
39044 int temp3 ;
39045 int res3 = SWIG_TMPOBJ ;
39046 PyObject *swig_obj[1] ;
39047
39048 arg2 = &temp2;
39049 arg3 = &temp3;
39050 if (!args) SWIG_fail;
39051 swig_obj[0] = args;
39052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39053 if (!SWIG_IsOK(res1)) {
39054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39055 }
39056 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39057 {
39058 PyThreadState* __tstate = wxPyBeginAllowThreads();
39059 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39060 wxPyEndAllowThreads(__tstate);
39061 if (PyErr_Occurred()) SWIG_fail;
39062 }
39063 resultobj = SWIG_Py_Void();
39064 if (SWIG_IsTmpObj(res2)) {
39065 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39066 } else {
39067 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39068 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39069 }
39070 if (SWIG_IsTmpObj(res3)) {
39071 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39072 } else {
39073 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39074 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39075 }
39076 return resultobj;
39077fail:
39078 return NULL;
d14a1e28
RD
39079}
39080
39081
0085ce49
RD
39082SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39083 PyObject *resultobj = 0;
39084 wxPyControl *arg1 = (wxPyControl *) 0 ;
39085 wxSize result;
39086 void *argp1 = 0 ;
39087 int res1 = 0 ;
39088 PyObject *swig_obj[1] ;
39089
39090 if (!args) SWIG_fail;
39091 swig_obj[0] = args;
39092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39093 if (!SWIG_IsOK(res1)) {
39094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39095 }
39096 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39097 {
39098 PyThreadState* __tstate = wxPyBeginAllowThreads();
39099 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39100 wxPyEndAllowThreads(__tstate);
39101 if (PyErr_Occurred()) SWIG_fail;
39102 }
39103 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39104 return resultobj;
39105fail:
39106 return NULL;
d14a1e28
RD
39107}
39108
39109
0085ce49
RD
39110SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39111 PyObject *resultobj = 0;
39112 wxPyControl *arg1 = (wxPyControl *) 0 ;
39113 wxSize result;
39114 void *argp1 = 0 ;
39115 int res1 = 0 ;
39116 PyObject *swig_obj[1] ;
39117
39118 if (!args) SWIG_fail;
39119 swig_obj[0] = args;
39120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39121 if (!SWIG_IsOK(res1)) {
39122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39123 }
39124 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39125 {
39126 PyThreadState* __tstate = wxPyBeginAllowThreads();
39127 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39128 wxPyEndAllowThreads(__tstate);
39129 if (PyErr_Occurred()) SWIG_fail;
39130 }
39131 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39132 return resultobj;
39133fail:
39134 return NULL;
d14a1e28
RD
39135}
39136
39137
0085ce49
RD
39138SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39139 PyObject *resultobj = 0;
39140 wxPyControl *arg1 = (wxPyControl *) 0 ;
39141 SwigValueWrapper<wxVisualAttributes > result;
39142 void *argp1 = 0 ;
39143 int res1 = 0 ;
39144 PyObject *swig_obj[1] ;
39145
39146 if (!args) SWIG_fail;
39147 swig_obj[0] = args;
39148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39149 if (!SWIG_IsOK(res1)) {
39150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39151 }
39152 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39153 {
39154 PyThreadState* __tstate = wxPyBeginAllowThreads();
39155 result = (arg1)->GetDefaultAttributes();
39156 wxPyEndAllowThreads(__tstate);
39157 if (PyErr_Occurred()) SWIG_fail;
39158 }
39159 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39160 return resultobj;
39161fail:
39162 return NULL;
d14a1e28
RD
39163}
39164
39165
0085ce49
RD
39166SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39167 PyObject *resultobj = 0;
39168 wxPyControl *arg1 = (wxPyControl *) 0 ;
39169 void *argp1 = 0 ;
39170 int res1 = 0 ;
39171 PyObject *swig_obj[1] ;
39172
39173 if (!args) SWIG_fail;
39174 swig_obj[0] = args;
39175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39176 if (!SWIG_IsOK(res1)) {
39177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39178 }
39179 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39180 {
39181 PyThreadState* __tstate = wxPyBeginAllowThreads();
39182 (arg1)->OnInternalIdle();
39183 wxPyEndAllowThreads(__tstate);
39184 if (PyErr_Occurred()) SWIG_fail;
39185 }
39186 resultobj = SWIG_Py_Void();
39187 return resultobj;
39188fail:
39189 return NULL;
39190}
39191
39192
39193SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39194 PyObject *obj;
39195 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39196 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39197 return SWIG_Py_Void();
39198}
39199
39200SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39201 return SWIG_Python_InitShadowInstance(args);
39202}
39203
39204SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39205 PyObject *resultobj = 0;
39206 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39207 int arg2 = (int) 0 ;
39208 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39209 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39210 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
0085ce49
RD
39211 wxHelpEvent *result = 0 ;
39212 int val1 ;
39213 int ecode1 = 0 ;
39214 int val2 ;
39215 int ecode2 = 0 ;
39216 wxPoint temp3 ;
704eda0c
RD
39217 int val4 ;
39218 int ecode4 = 0 ;
0085ce49
RD
39219 PyObject * obj0 = 0 ;
39220 PyObject * obj1 = 0 ;
39221 PyObject * obj2 = 0 ;
704eda0c 39222 PyObject * obj3 = 0 ;
0085ce49 39223 char * kwnames[] = {
704eda0c 39224 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
0085ce49
RD
39225 };
39226
704eda0c 39227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
39228 if (obj0) {
39229 ecode1 = SWIG_AsVal_int(obj0, &val1);
39230 if (!SWIG_IsOK(ecode1)) {
39231 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39232 }
39233 arg1 = static_cast< wxEventType >(val1);
39234 }
39235 if (obj1) {
39236 ecode2 = SWIG_AsVal_int(obj1, &val2);
39237 if (!SWIG_IsOK(ecode2)) {
39238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39239 }
39240 arg2 = static_cast< int >(val2);
39241 }
39242 if (obj2) {
d14a1e28 39243 {
0085ce49
RD
39244 arg3 = &temp3;
39245 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 39246 }
0085ce49 39247 }
704eda0c
RD
39248 if (obj3) {
39249 ecode4 = SWIG_AsVal_int(obj3, &val4);
39250 if (!SWIG_IsOK(ecode4)) {
39251 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39252 }
39253 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39254 }
0085ce49
RD
39255 {
39256 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39257 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
0085ce49
RD
39258 wxPyEndAllowThreads(__tstate);
39259 if (PyErr_Occurred()) SWIG_fail;
39260 }
39261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39262 return resultobj;
39263fail:
39264 return NULL;
d14a1e28
RD
39265}
39266
39267
0085ce49
RD
39268SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39269 PyObject *resultobj = 0;
39270 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39271 wxPoint result;
39272 void *argp1 = 0 ;
39273 int res1 = 0 ;
39274 PyObject *swig_obj[1] ;
39275
39276 if (!args) SWIG_fail;
39277 swig_obj[0] = args;
39278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39279 if (!SWIG_IsOK(res1)) {
39280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39281 }
39282 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39283 {
39284 PyThreadState* __tstate = wxPyBeginAllowThreads();
39285 result = ((wxHelpEvent const *)arg1)->GetPosition();
39286 wxPyEndAllowThreads(__tstate);
39287 if (PyErr_Occurred()) SWIG_fail;
39288 }
39289 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39290 return resultobj;
39291fail:
39292 return NULL;
39293}
39294
39295
39296SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39297 PyObject *resultobj = 0;
39298 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39299 wxPoint *arg2 = 0 ;
39300 void *argp1 = 0 ;
39301 int res1 = 0 ;
39302 wxPoint temp2 ;
39303 PyObject * obj0 = 0 ;
39304 PyObject * obj1 = 0 ;
39305 char * kwnames[] = {
39306 (char *) "self",(char *) "pos", NULL
39307 };
39308
39309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39311 if (!SWIG_IsOK(res1)) {
39312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39313 }
39314 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39315 {
39316 arg2 = &temp2;
39317 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39318 }
39319 {
39320 PyThreadState* __tstate = wxPyBeginAllowThreads();
39321 (arg1)->SetPosition((wxPoint const &)*arg2);
39322 wxPyEndAllowThreads(__tstate);
39323 if (PyErr_Occurred()) SWIG_fail;
39324 }
39325 resultobj = SWIG_Py_Void();
39326 return resultobj;
39327fail:
39328 return NULL;
d14a1e28
RD
39329}
39330
39331
0085ce49
RD
39332SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39333 PyObject *resultobj = 0;
39334 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39335 wxString *result = 0 ;
39336 void *argp1 = 0 ;
39337 int res1 = 0 ;
39338 PyObject *swig_obj[1] ;
39339
39340 if (!args) SWIG_fail;
39341 swig_obj[0] = args;
39342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39343 if (!SWIG_IsOK(res1)) {
39344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39345 }
39346 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39347 {
39348 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 39349 {
0085ce49
RD
39350 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39351 result = (wxString *) &_result_ref;
093d3ff1 39352 }
0085ce49
RD
39353 wxPyEndAllowThreads(__tstate);
39354 if (PyErr_Occurred()) SWIG_fail;
39355 }
39356 {
39357#if wxUSE_UNICODE
39358 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39359#else
39360 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39361#endif
39362 }
39363 return resultobj;
39364fail:
39365 return NULL;
39366}
39367
39368
39369SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39370 PyObject *resultobj = 0;
39371 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39372 wxString *arg2 = 0 ;
39373 void *argp1 = 0 ;
39374 int res1 = 0 ;
39375 bool temp2 = false ;
39376 PyObject * obj0 = 0 ;
39377 PyObject * obj1 = 0 ;
39378 char * kwnames[] = {
39379 (char *) "self",(char *) "link", NULL
39380 };
39381
39382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39384 if (!SWIG_IsOK(res1)) {
39385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39386 }
39387 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39388 {
39389 arg2 = wxString_in_helper(obj1);
39390 if (arg2 == NULL) SWIG_fail;
39391 temp2 = true;
39392 }
39393 {
39394 PyThreadState* __tstate = wxPyBeginAllowThreads();
39395 (arg1)->SetLink((wxString const &)*arg2);
39396 wxPyEndAllowThreads(__tstate);
39397 if (PyErr_Occurred()) SWIG_fail;
39398 }
39399 resultobj = SWIG_Py_Void();
39400 {
39401 if (temp2)
39402 delete arg2;
39403 }
39404 return resultobj;
39405fail:
39406 {
39407 if (temp2)
39408 delete arg2;
39409 }
39410 return NULL;
d14a1e28
RD
39411}
39412
39413
0085ce49
RD
39414SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39415 PyObject *resultobj = 0;
39416 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39417 wxString *result = 0 ;
39418 void *argp1 = 0 ;
39419 int res1 = 0 ;
39420 PyObject *swig_obj[1] ;
39421
39422 if (!args) SWIG_fail;
39423 swig_obj[0] = args;
39424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39425 if (!SWIG_IsOK(res1)) {
39426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39427 }
39428 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39429 {
39430 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 39431 {
0085ce49
RD
39432 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39433 result = (wxString *) &_result_ref;
d14a1e28 39434 }
0085ce49
RD
39435 wxPyEndAllowThreads(__tstate);
39436 if (PyErr_Occurred()) SWIG_fail;
39437 }
39438 {
39439#if wxUSE_UNICODE
39440 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39441#else
39442 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39443#endif
39444 }
39445 return resultobj;
39446fail:
39447 return NULL;
39448}
39449
39450
39451SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39452 PyObject *resultobj = 0;
39453 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39454 wxString *arg2 = 0 ;
39455 void *argp1 = 0 ;
39456 int res1 = 0 ;
39457 bool temp2 = false ;
39458 PyObject * obj0 = 0 ;
39459 PyObject * obj1 = 0 ;
39460 char * kwnames[] = {
39461 (char *) "self",(char *) "target", NULL
39462 };
39463
39464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39466 if (!SWIG_IsOK(res1)) {
39467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39468 }
39469 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39470 {
39471 arg2 = wxString_in_helper(obj1);
39472 if (arg2 == NULL) SWIG_fail;
39473 temp2 = true;
39474 }
39475 {
39476 PyThreadState* __tstate = wxPyBeginAllowThreads();
39477 (arg1)->SetTarget((wxString const &)*arg2);
39478 wxPyEndAllowThreads(__tstate);
39479 if (PyErr_Occurred()) SWIG_fail;
39480 }
39481 resultobj = SWIG_Py_Void();
39482 {
39483 if (temp2)
39484 delete arg2;
39485 }
39486 return resultobj;
39487fail:
39488 {
39489 if (temp2)
39490 delete arg2;
39491 }
39492 return NULL;
d14a1e28
RD
39493}
39494
39495
704eda0c
RD
39496SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39497 PyObject *resultobj = 0;
39498 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39499 wxHelpEvent::Origin result;
39500 void *argp1 = 0 ;
39501 int res1 = 0 ;
39502 PyObject *swig_obj[1] ;
39503
39504 if (!args) SWIG_fail;
39505 swig_obj[0] = args;
39506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39507 if (!SWIG_IsOK(res1)) {
39508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39509 }
39510 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39511 {
39512 PyThreadState* __tstate = wxPyBeginAllowThreads();
39513 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39514 wxPyEndAllowThreads(__tstate);
39515 if (PyErr_Occurred()) SWIG_fail;
39516 }
39517 resultobj = SWIG_From_int(static_cast< int >(result));
39518 return resultobj;
39519fail:
39520 return NULL;
39521}
39522
39523
39524SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39525 PyObject *resultobj = 0;
39526 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39527 wxHelpEvent::Origin arg2 ;
39528 void *argp1 = 0 ;
39529 int res1 = 0 ;
39530 int val2 ;
39531 int ecode2 = 0 ;
39532 PyObject * obj0 = 0 ;
39533 PyObject * obj1 = 0 ;
39534 char * kwnames[] = {
39535 (char *) "self",(char *) "origin", NULL
39536 };
39537
39538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39540 if (!SWIG_IsOK(res1)) {
39541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39542 }
39543 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39544 ecode2 = SWIG_AsVal_int(obj1, &val2);
39545 if (!SWIG_IsOK(ecode2)) {
39546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39547 }
39548 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39549 {
39550 PyThreadState* __tstate = wxPyBeginAllowThreads();
39551 (arg1)->SetOrigin(arg2);
39552 wxPyEndAllowThreads(__tstate);
39553 if (PyErr_Occurred()) SWIG_fail;
39554 }
39555 resultobj = SWIG_Py_Void();
39556 return resultobj;
39557fail:
39558 return NULL;
39559}
39560
39561
0085ce49
RD
39562SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39563 PyObject *obj;
39564 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39565 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39566 return SWIG_Py_Void();
d14a1e28
RD
39567}
39568
0085ce49
RD
39569SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39570 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
39571}
39572
0085ce49
RD
39573SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39574 PyObject *resultobj = 0;
39575 wxWindow *arg1 = (wxWindow *) NULL ;
39576 bool arg2 = (bool) true ;
39577 wxContextHelp *result = 0 ;
39578 void *argp1 = 0 ;
39579 int res1 = 0 ;
39580 bool val2 ;
39581 int ecode2 = 0 ;
39582 PyObject * obj0 = 0 ;
39583 PyObject * obj1 = 0 ;
39584 char * kwnames[] = {
39585 (char *) "window",(char *) "doNow", NULL
39586 };
39587
39588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39589 if (obj0) {
39590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39591 if (!SWIG_IsOK(res1)) {
39592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d14a1e28 39593 }
0085ce49
RD
39594 arg1 = reinterpret_cast< wxWindow * >(argp1);
39595 }
39596 if (obj1) {
39597 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39598 if (!SWIG_IsOK(ecode2)) {
39599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39600 }
39601 arg2 = static_cast< bool >(val2);
39602 }
39603 {
39604 if (!wxPyCheckForApp()) SWIG_fail;
39605 PyThreadState* __tstate = wxPyBeginAllowThreads();
39606 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39607 wxPyEndAllowThreads(__tstate);
39608 if (PyErr_Occurred()) SWIG_fail;
39609 }
39610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39611 return resultobj;
39612fail:
39613 return NULL;
d14a1e28
RD
39614}
39615
39616
0085ce49
RD
39617SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39618 PyObject *resultobj = 0;
39619 wxContextHelp *arg1 = (wxContextHelp *) 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_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39627 if (!SWIG_IsOK(res1)) {
39628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39629 }
39630 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39631 {
39632 PyThreadState* __tstate = wxPyBeginAllowThreads();
39633 delete arg1;
3a04f143 39634
0085ce49
RD
39635 wxPyEndAllowThreads(__tstate);
39636 if (PyErr_Occurred()) SWIG_fail;
39637 }
39638 resultobj = SWIG_Py_Void();
39639 return resultobj;
39640fail:
39641 return NULL;
39642}
39643
39644
39645SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39646 PyObject *resultobj = 0;
39647 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39648 wxWindow *arg2 = (wxWindow *) NULL ;
39649 bool result;
39650 void *argp1 = 0 ;
39651 int res1 = 0 ;
39652 void *argp2 = 0 ;
39653 int res2 = 0 ;
39654 PyObject * obj0 = 0 ;
39655 PyObject * obj1 = 0 ;
39656 char * kwnames[] = {
39657 (char *) "self",(char *) "window", NULL
39658 };
39659
39660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39662 if (!SWIG_IsOK(res1)) {
39663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39664 }
39665 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39666 if (obj1) {
39667 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39668 if (!SWIG_IsOK(res2)) {
39669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
3a04f143 39670 }
0085ce49
RD
39671 arg2 = reinterpret_cast< wxWindow * >(argp2);
39672 }
39673 {
39674 PyThreadState* __tstate = wxPyBeginAllowThreads();
39675 result = (bool)(arg1)->BeginContextHelp(arg2);
39676 wxPyEndAllowThreads(__tstate);
39677 if (PyErr_Occurred()) SWIG_fail;
39678 }
39679 {
39680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39681 }
39682 return resultobj;
39683fail:
39684 return NULL;
3a04f143
RD
39685}
39686
39687
0085ce49
RD
39688SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39689 PyObject *resultobj = 0;
39690 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39691 bool result;
39692 void *argp1 = 0 ;
39693 int res1 = 0 ;
39694 PyObject *swig_obj[1] ;
39695
39696 if (!args) SWIG_fail;
39697 swig_obj[0] = args;
39698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39699 if (!SWIG_IsOK(res1)) {
39700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39701 }
39702 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39703 {
39704 PyThreadState* __tstate = wxPyBeginAllowThreads();
39705 result = (bool)(arg1)->EndContextHelp();
39706 wxPyEndAllowThreads(__tstate);
39707 if (PyErr_Occurred()) SWIG_fail;
39708 }
39709 {
39710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39711 }
39712 return resultobj;
39713fail:
39714 return NULL;
39715}
39716
39717
39718SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39719 PyObject *obj;
39720 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39721 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39722 return SWIG_Py_Void();
39723}
39724
39725SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39726 return SWIG_Python_InitShadowInstance(args);
39727}
39728
39729SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39730 PyObject *resultobj = 0;
39731 wxWindow *arg1 = (wxWindow *) 0 ;
39732 int arg2 = (int) wxID_CONTEXT_HELP ;
39733 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39734 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39735 wxSize const &arg4_defvalue = wxDefaultSize ;
39736 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39737 long arg5 = (long) wxBU_AUTODRAW ;
39738 wxContextHelpButton *result = 0 ;
39739 void *argp1 = 0 ;
39740 int res1 = 0 ;
39741 int val2 ;
39742 int ecode2 = 0 ;
39743 wxPoint temp3 ;
39744 wxSize temp4 ;
39745 long val5 ;
39746 int ecode5 = 0 ;
39747 PyObject * obj0 = 0 ;
39748 PyObject * obj1 = 0 ;
39749 PyObject * obj2 = 0 ;
39750 PyObject * obj3 = 0 ;
39751 PyObject * obj4 = 0 ;
39752 char * kwnames[] = {
39753 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39754 };
39755
39756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39758 if (!SWIG_IsOK(res1)) {
39759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39760 }
39761 arg1 = reinterpret_cast< wxWindow * >(argp1);
39762 if (obj1) {
39763 ecode2 = SWIG_AsVal_int(obj1, &val2);
39764 if (!SWIG_IsOK(ecode2)) {
39765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39766 }
39767 arg2 = static_cast< int >(val2);
39768 }
39769 if (obj2) {
d14a1e28 39770 {
0085ce49
RD
39771 arg3 = &temp3;
39772 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 39773 }
0085ce49
RD
39774 }
39775 if (obj3) {
4f89f6a3 39776 {
0085ce49
RD
39777 arg4 = &temp4;
39778 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 39779 }
0085ce49
RD
39780 }
39781 if (obj4) {
39782 ecode5 = SWIG_AsVal_long(obj4, &val5);
39783 if (!SWIG_IsOK(ecode5)) {
39784 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39785 }
39786 arg5 = static_cast< long >(val5);
39787 }
39788 {
39789 if (!wxPyCheckForApp()) SWIG_fail;
39790 PyThreadState* __tstate = wxPyBeginAllowThreads();
39791 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39792 wxPyEndAllowThreads(__tstate);
39793 if (PyErr_Occurred()) SWIG_fail;
39794 }
39795 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39796 return resultobj;
39797fail:
39798 return NULL;
d14a1e28
RD
39799}
39800
39801
0085ce49
RD
39802SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39803 PyObject *obj;
39804 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39805 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39806 return SWIG_Py_Void();
d14a1e28
RD
39807}
39808
0085ce49
RD
39809SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39810 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
39811}
39812
f52cbe90
RD
39813SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39814 PyObject *resultobj = 0;
39815 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39816 void *argp1 = 0 ;
39817 int res1 = 0 ;
39818 PyObject *swig_obj[1] ;
39819
39820 if (!args) SWIG_fail;
39821 swig_obj[0] = args;
39822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39823 if (!SWIG_IsOK(res1)) {
39824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39825 }
39826 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39827 {
39828 PyThreadState* __tstate = wxPyBeginAllowThreads();
39829 delete arg1;
39830
39831 wxPyEndAllowThreads(__tstate);
39832 if (PyErr_Occurred()) SWIG_fail;
39833 }
39834 resultobj = SWIG_Py_Void();
39835 return resultobj;
39836fail:
39837 return NULL;
39838}
39839
39840
0085ce49
RD
39841SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39842 PyObject *resultobj = 0;
39843 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39844 wxHelpProvider *result = 0 ;
39845 int res1 = 0 ;
39846 PyObject * obj0 = 0 ;
39847 char * kwnames[] = {
39848 (char *) "helpProvider", NULL
39849 };
39850
39851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39852 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39853 if (!SWIG_IsOK(res1)) {
39854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39855 }
39856 {
39857 PyThreadState* __tstate = wxPyBeginAllowThreads();
39858 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39859 wxPyEndAllowThreads(__tstate);
39860 if (PyErr_Occurred()) SWIG_fail;
39861 }
39862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39863 return resultobj;
39864fail:
39865 return NULL;
d14a1e28
RD
39866}
39867
39868
0085ce49
RD
39869SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39870 PyObject *resultobj = 0;
39871 wxHelpProvider *result = 0 ;
39872
39873 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39874 {
39875 PyThreadState* __tstate = wxPyBeginAllowThreads();
39876 result = (wxHelpProvider *)wxHelpProvider::Get();
39877 wxPyEndAllowThreads(__tstate);
39878 if (PyErr_Occurred()) SWIG_fail;
39879 }
39880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39881 return resultobj;
39882fail:
39883 return NULL;
39884}
39885
39886
39887SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39888 PyObject *resultobj = 0;
39889 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39890 wxWindow *arg2 = (wxWindow *) 0 ;
39891 wxString result;
39892 void *argp1 = 0 ;
39893 int res1 = 0 ;
39894 void *argp2 = 0 ;
39895 int res2 = 0 ;
39896 PyObject * obj0 = 0 ;
39897 PyObject * obj1 = 0 ;
39898 char * kwnames[] = {
39899 (char *) "self",(char *) "window", NULL
39900 };
39901
39902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39904 if (!SWIG_IsOK(res1)) {
39905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39906 }
39907 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39908 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39909 if (!SWIG_IsOK(res2)) {
39910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39911 }
39912 arg2 = reinterpret_cast< wxWindow * >(argp2);
39913 {
39914 PyThreadState* __tstate = wxPyBeginAllowThreads();
39915 result = (arg1)->GetHelp((wxWindow const *)arg2);
39916 wxPyEndAllowThreads(__tstate);
39917 if (PyErr_Occurred()) SWIG_fail;
39918 }
39919 {
39920#if wxUSE_UNICODE
39921 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39922#else
39923 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39924#endif
39925 }
39926 return resultobj;
39927fail:
39928 return NULL;
39929}
39930
39931
39932SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39933 PyObject *resultobj = 0;
39934 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39935 wxWindow *arg2 = (wxWindow *) 0 ;
39936 bool result;
39937 void *argp1 = 0 ;
39938 int res1 = 0 ;
39939 void *argp2 = 0 ;
39940 int res2 = 0 ;
39941 PyObject * obj0 = 0 ;
39942 PyObject * obj1 = 0 ;
39943 char * kwnames[] = {
39944 (char *) "self",(char *) "window", NULL
39945 };
39946
39947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39949 if (!SWIG_IsOK(res1)) {
39950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39951 }
39952 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39953 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39954 if (!SWIG_IsOK(res2)) {
39955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39956 }
39957 arg2 = reinterpret_cast< wxWindow * >(argp2);
39958 {
39959 PyThreadState* __tstate = wxPyBeginAllowThreads();
39960 result = (bool)(arg1)->ShowHelp(arg2);
39961 wxPyEndAllowThreads(__tstate);
39962 if (PyErr_Occurred()) SWIG_fail;
39963 }
39964 {
39965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39966 }
39967 return resultobj;
39968fail:
39969 return NULL;
39970}
39971
39972
b850e7f3
RD
39973SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39974 PyObject *resultobj = 0;
39975 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39976 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
39977 wxPoint *arg3 = 0 ;
39978 wxHelpEvent::Origin arg4 ;
39979 bool result;
39980 void *argp1 = 0 ;
39981 int res1 = 0 ;
39982 void *argp2 = 0 ;
39983 int res2 = 0 ;
39984 wxPoint temp3 ;
39985 int val4 ;
39986 int ecode4 = 0 ;
39987 PyObject * obj0 = 0 ;
39988 PyObject * obj1 = 0 ;
39989 PyObject * obj2 = 0 ;
39990 PyObject * obj3 = 0 ;
39991 char * kwnames[] = {
39992 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
39993 };
39994
39995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39997 if (!SWIG_IsOK(res1)) {
39998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39999 }
40000 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40001 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40002 if (!SWIG_IsOK(res2)) {
40003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40004 }
40005 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40006 {
40007 arg3 = &temp3;
40008 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40009 }
40010 ecode4 = SWIG_AsVal_int(obj3, &val4);
40011 if (!SWIG_IsOK(ecode4)) {
40012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40013 }
40014 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40015 {
40016 PyThreadState* __tstate = wxPyBeginAllowThreads();
40017 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40018 wxPyEndAllowThreads(__tstate);
40019 if (PyErr_Occurred()) SWIG_fail;
40020 }
40021 {
40022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40023 }
40024 return resultobj;
40025fail:
40026 return NULL;
40027}
40028
40029
0085ce49
RD
40030SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40031 PyObject *resultobj = 0;
40032 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40033 wxWindow *arg2 = (wxWindow *) 0 ;
40034 wxString *arg3 = 0 ;
40035 void *argp1 = 0 ;
40036 int res1 = 0 ;
40037 void *argp2 = 0 ;
40038 int res2 = 0 ;
40039 bool temp3 = false ;
40040 PyObject * obj0 = 0 ;
40041 PyObject * obj1 = 0 ;
40042 PyObject * obj2 = 0 ;
40043 char * kwnames[] = {
40044 (char *) "self",(char *) "window",(char *) "text", NULL
40045 };
40046
40047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40049 if (!SWIG_IsOK(res1)) {
40050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40051 }
40052 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40053 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40054 if (!SWIG_IsOK(res2)) {
40055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40056 }
40057 arg2 = reinterpret_cast< wxWindow * >(argp2);
40058 {
40059 arg3 = wxString_in_helper(obj2);
40060 if (arg3 == NULL) SWIG_fail;
40061 temp3 = true;
40062 }
40063 {
40064 PyThreadState* __tstate = wxPyBeginAllowThreads();
40065 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40066 wxPyEndAllowThreads(__tstate);
40067 if (PyErr_Occurred()) SWIG_fail;
40068 }
40069 resultobj = SWIG_Py_Void();
40070 {
40071 if (temp3)
40072 delete arg3;
40073 }
40074 return resultobj;
40075fail:
40076 {
40077 if (temp3)
40078 delete arg3;
40079 }
40080 return NULL;
40081}
40082
40083
40084SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40085 PyObject *resultobj = 0;
40086 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40087 int arg2 ;
40088 wxString *arg3 = 0 ;
40089 void *argp1 = 0 ;
40090 int res1 = 0 ;
40091 int val2 ;
40092 int ecode2 = 0 ;
40093 bool temp3 = false ;
40094 PyObject * obj0 = 0 ;
40095 PyObject * obj1 = 0 ;
40096 PyObject * obj2 = 0 ;
40097 char * kwnames[] = {
40098 (char *) "self",(char *) "id",(char *) "text", NULL
40099 };
40100
40101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40103 if (!SWIG_IsOK(res1)) {
40104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40105 }
40106 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40107 ecode2 = SWIG_AsVal_int(obj1, &val2);
40108 if (!SWIG_IsOK(ecode2)) {
40109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40110 }
40111 arg2 = static_cast< int >(val2);
40112 {
40113 arg3 = wxString_in_helper(obj2);
40114 if (arg3 == NULL) SWIG_fail;
40115 temp3 = true;
40116 }
40117 {
40118 PyThreadState* __tstate = wxPyBeginAllowThreads();
40119 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40120 wxPyEndAllowThreads(__tstate);
40121 if (PyErr_Occurred()) SWIG_fail;
40122 }
40123 resultobj = SWIG_Py_Void();
40124 {
40125 if (temp3)
40126 delete arg3;
40127 }
40128 return resultobj;
40129fail:
40130 {
40131 if (temp3)
40132 delete arg3;
40133 }
40134 return NULL;
40135}
40136
40137
40138SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40139 PyObject *resultobj = 0;
40140 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40141 wxWindow *arg2 = (wxWindow *) 0 ;
40142 void *argp1 = 0 ;
40143 int res1 = 0 ;
40144 void *argp2 = 0 ;
40145 int res2 = 0 ;
40146 PyObject * obj0 = 0 ;
40147 PyObject * obj1 = 0 ;
40148 char * kwnames[] = {
40149 (char *) "self",(char *) "window", NULL
40150 };
40151
40152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40154 if (!SWIG_IsOK(res1)) {
40155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40156 }
40157 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40158 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40159 if (!SWIG_IsOK(res2)) {
40160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40161 }
40162 arg2 = reinterpret_cast< wxWindow * >(argp2);
40163 {
40164 PyThreadState* __tstate = wxPyBeginAllowThreads();
40165 (arg1)->RemoveHelp(arg2);
40166 wxPyEndAllowThreads(__tstate);
40167 if (PyErr_Occurred()) SWIG_fail;
40168 }
40169 resultobj = SWIG_Py_Void();
40170 return resultobj;
40171fail:
40172 return NULL;
d14a1e28
RD
40173}
40174
40175
0085ce49
RD
40176SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40177 PyObject *resultobj = 0;
40178 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40179 void *argp1 = 0 ;
40180 int res1 = 0 ;
40181 PyObject *swig_obj[1] ;
40182
40183 if (!args) SWIG_fail;
40184 swig_obj[0] = args;
40185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40186 if (!SWIG_IsOK(res1)) {
40187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40188 }
40189 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40190 {
40191 PyThreadState* __tstate = wxPyBeginAllowThreads();
40192 wxHelpProvider_Destroy(arg1);
40193 wxPyEndAllowThreads(__tstate);
40194 if (PyErr_Occurred()) SWIG_fail;
40195 }
40196 resultobj = SWIG_Py_Void();
40197 return resultobj;
40198fail:
40199 return NULL;
22bfe96c
RD
40200}
40201
40202
0085ce49
RD
40203SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40204 PyObject *obj;
40205 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40206 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40207 return SWIG_Py_Void();
b2dc1044
RD
40208}
40209
0085ce49
RD
40210SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40211 PyObject *resultobj = 0;
40212 wxSimpleHelpProvider *result = 0 ;
40213
40214 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40215 {
40216 PyThreadState* __tstate = wxPyBeginAllowThreads();
40217 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40218 wxPyEndAllowThreads(__tstate);
40219 if (PyErr_Occurred()) SWIG_fail;
40220 }
40221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40222 return resultobj;
40223fail:
40224 return NULL;
40225}
40226
40227
40228SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40229 PyObject *obj;
40230 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40231 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40232 return SWIG_Py_Void();
40233}
40234
40235SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40236 return SWIG_Python_InitShadowInstance(args);
40237}
40238
40239SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40240 PyObject *resultobj = 0;
40241 wxBitmap *arg1 = 0 ;
40242 wxCursor const &arg2_defvalue = wxNullCursor ;
40243 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40244 wxGenericDragImage *result = 0 ;
40245 void *argp1 = 0 ;
40246 int res1 = 0 ;
40247 void *argp2 = 0 ;
40248 int res2 = 0 ;
40249 PyObject * obj0 = 0 ;
40250 PyObject * obj1 = 0 ;
40251 char * kwnames[] = {
40252 (char *) "image",(char *) "cursor", NULL
40253 };
40254
40255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40256 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40257 if (!SWIG_IsOK(res1)) {
40258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40259 }
40260 if (!argp1) {
40261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40262 }
40263 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40264 if (obj1) {
40265 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40266 if (!SWIG_IsOK(res2)) {
40267 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40268 }
0085ce49
RD
40269 if (!argp2) {
40270 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40271 }
0085ce49
RD
40272 arg2 = reinterpret_cast< wxCursor * >(argp2);
40273 }
40274 {
40275 if (!wxPyCheckForApp()) SWIG_fail;
40276 PyThreadState* __tstate = wxPyBeginAllowThreads();
40277 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40278 wxPyEndAllowThreads(__tstate);
40279 if (PyErr_Occurred()) SWIG_fail;
40280 }
40281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40282 return resultobj;
40283fail:
40284 return NULL;
40285}
40286
40287
40288SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40289 PyObject *resultobj = 0;
40290 wxIcon *arg1 = 0 ;
40291 wxCursor const &arg2_defvalue = wxNullCursor ;
40292 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40293 wxGenericDragImage *result = 0 ;
40294 void *argp1 = 0 ;
40295 int res1 = 0 ;
40296 void *argp2 = 0 ;
40297 int res2 = 0 ;
40298 PyObject * obj0 = 0 ;
40299 PyObject * obj1 = 0 ;
40300 char * kwnames[] = {
40301 (char *) "image",(char *) "cursor", NULL
40302 };
40303
40304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40305 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40306 if (!SWIG_IsOK(res1)) {
40307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40308 }
40309 if (!argp1) {
40310 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40311 }
40312 arg1 = reinterpret_cast< wxIcon * >(argp1);
40313 if (obj1) {
40314 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40315 if (!SWIG_IsOK(res2)) {
40316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40317 }
0085ce49
RD
40318 if (!argp2) {
40319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40320 }
0085ce49
RD
40321 arg2 = reinterpret_cast< wxCursor * >(argp2);
40322 }
40323 {
40324 if (!wxPyCheckForApp()) SWIG_fail;
40325 PyThreadState* __tstate = wxPyBeginAllowThreads();
40326 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40327 wxPyEndAllowThreads(__tstate);
40328 if (PyErr_Occurred()) SWIG_fail;
40329 }
40330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40331 return resultobj;
40332fail:
40333 return NULL;
40334}
40335
40336
40337SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40338 PyObject *resultobj = 0;
40339 wxString *arg1 = 0 ;
40340 wxCursor const &arg2_defvalue = wxNullCursor ;
40341 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40342 wxGenericDragImage *result = 0 ;
40343 bool temp1 = false ;
40344 void *argp2 = 0 ;
40345 int res2 = 0 ;
40346 PyObject * obj0 = 0 ;
40347 PyObject * obj1 = 0 ;
40348 char * kwnames[] = {
40349 (char *) "str",(char *) "cursor", NULL
40350 };
40351
40352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40353 {
40354 arg1 = wxString_in_helper(obj0);
40355 if (arg1 == NULL) SWIG_fail;
40356 temp1 = true;
40357 }
40358 if (obj1) {
40359 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40360 if (!SWIG_IsOK(res2)) {
40361 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 40362 }
0085ce49
RD
40363 if (!argp2) {
40364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40365 }
40366 arg2 = reinterpret_cast< wxCursor * >(argp2);
40367 }
40368 {
40369 if (!wxPyCheckForApp()) SWIG_fail;
40370 PyThreadState* __tstate = wxPyBeginAllowThreads();
40371 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40372 wxPyEndAllowThreads(__tstate);
40373 if (PyErr_Occurred()) SWIG_fail;
40374 }
40375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40376 {
40377 if (temp1)
40378 delete arg1;
40379 }
40380 return resultobj;
40381fail:
40382 {
40383 if (temp1)
40384 delete arg1;
40385 }
40386 return NULL;
40387}
40388
40389
40390SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40391 PyObject *resultobj = 0;
40392 wxPyTreeCtrl *arg1 = 0 ;
40393 wxTreeItemId *arg2 = 0 ;
40394 wxGenericDragImage *result = 0 ;
40395 void *argp1 = 0 ;
40396 int res1 = 0 ;
40397 void *argp2 = 0 ;
40398 int res2 = 0 ;
40399 PyObject * obj0 = 0 ;
40400 PyObject * obj1 = 0 ;
40401 char * kwnames[] = {
40402 (char *) "treeCtrl",(char *) "id", NULL
40403 };
40404
40405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40406 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40407 if (!SWIG_IsOK(res1)) {
40408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40409 }
40410 if (!argp1) {
40411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40412 }
40413 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40414 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40415 if (!SWIG_IsOK(res2)) {
40416 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40417 }
40418 if (!argp2) {
40419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40420 }
40421 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40422 {
40423 if (!wxPyCheckForApp()) SWIG_fail;
40424 PyThreadState* __tstate = wxPyBeginAllowThreads();
40425 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40426 wxPyEndAllowThreads(__tstate);
40427 if (PyErr_Occurred()) SWIG_fail;
40428 }
40429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40430 return resultobj;
40431fail:
40432 return NULL;
40433}
40434
40435
40436SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40437 PyObject *resultobj = 0;
40438 wxPyListCtrl *arg1 = 0 ;
40439 long arg2 ;
40440 wxGenericDragImage *result = 0 ;
40441 void *argp1 = 0 ;
40442 int res1 = 0 ;
40443 long val2 ;
40444 int ecode2 = 0 ;
40445 PyObject * obj0 = 0 ;
40446 PyObject * obj1 = 0 ;
40447 char * kwnames[] = {
40448 (char *) "listCtrl",(char *) "id", NULL
40449 };
40450
40451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40452 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40453 if (!SWIG_IsOK(res1)) {
40454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40455 }
40456 if (!argp1) {
40457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40458 }
40459 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40460 ecode2 = SWIG_AsVal_long(obj1, &val2);
40461 if (!SWIG_IsOK(ecode2)) {
40462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40463 }
40464 arg2 = static_cast< long >(val2);
40465 {
40466 if (!wxPyCheckForApp()) SWIG_fail;
40467 PyThreadState* __tstate = wxPyBeginAllowThreads();
40468 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40469 wxPyEndAllowThreads(__tstate);
40470 if (PyErr_Occurred()) SWIG_fail;
40471 }
40472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40473 return resultobj;
40474fail:
40475 return NULL;
7e08d4ef
RD
40476}
40477
40478
0085ce49
RD
40479SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40480 PyObject *resultobj = 0;
40481 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40482 void *argp1 = 0 ;
40483 int res1 = 0 ;
40484 PyObject *swig_obj[1] ;
40485
40486 if (!args) SWIG_fail;
40487 swig_obj[0] = args;
40488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40489 if (!SWIG_IsOK(res1)) {
40490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40491 }
40492 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40493 {
40494 PyThreadState* __tstate = wxPyBeginAllowThreads();
40495 delete arg1;
d14a1e28 40496
0085ce49
RD
40497 wxPyEndAllowThreads(__tstate);
40498 if (PyErr_Occurred()) SWIG_fail;
40499 }
40500 resultobj = SWIG_Py_Void();
40501 return resultobj;
40502fail:
40503 return NULL;
40504}
40505
40506
40507SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40508 PyObject *resultobj = 0;
40509 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40510 wxBitmap *arg2 = (wxBitmap *) 0 ;
40511 void *argp1 = 0 ;
40512 int res1 = 0 ;
40513 void *argp2 = 0 ;
40514 int res2 = 0 ;
40515 PyObject * obj0 = 0 ;
40516 PyObject * obj1 = 0 ;
40517 char * kwnames[] = {
40518 (char *) "self",(char *) "bitmap", NULL
40519 };
40520
40521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40523 if (!SWIG_IsOK(res1)) {
40524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40525 }
40526 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40527 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40528 if (!SWIG_IsOK(res2)) {
40529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40530 }
40531 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40532 {
40533 PyThreadState* __tstate = wxPyBeginAllowThreads();
40534 (arg1)->SetBackingBitmap(arg2);
40535 wxPyEndAllowThreads(__tstate);
40536 if (PyErr_Occurred()) SWIG_fail;
40537 }
40538 resultobj = SWIG_Py_Void();
40539 return resultobj;
40540fail:
40541 return NULL;
40542}
40543
40544
40545SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40546 PyObject *resultobj = 0;
40547 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40548 wxPoint *arg2 = 0 ;
40549 wxWindow *arg3 = (wxWindow *) 0 ;
40550 bool arg4 = (bool) false ;
40551 wxRect *arg5 = (wxRect *) NULL ;
40552 bool result;
40553 void *argp1 = 0 ;
40554 int res1 = 0 ;
40555 wxPoint temp2 ;
40556 void *argp3 = 0 ;
40557 int res3 = 0 ;
40558 bool val4 ;
40559 int ecode4 = 0 ;
40560 void *argp5 = 0 ;
40561 int res5 = 0 ;
40562 PyObject * obj0 = 0 ;
40563 PyObject * obj1 = 0 ;
40564 PyObject * obj2 = 0 ;
40565 PyObject * obj3 = 0 ;
40566 PyObject * obj4 = 0 ;
40567 char * kwnames[] = {
40568 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40569 };
40570
40571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40573 if (!SWIG_IsOK(res1)) {
40574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40575 }
40576 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40577 {
40578 arg2 = &temp2;
40579 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40580 }
40581 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40582 if (!SWIG_IsOK(res3)) {
40583 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40584 }
40585 arg3 = reinterpret_cast< wxWindow * >(argp3);
40586 if (obj3) {
40587 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40588 if (!SWIG_IsOK(ecode4)) {
40589 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40590 }
40591 arg4 = static_cast< bool >(val4);
40592 }
40593 if (obj4) {
40594 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40595 if (!SWIG_IsOK(res5)) {
40596 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d14a1e28 40597 }
0085ce49
RD
40598 arg5 = reinterpret_cast< wxRect * >(argp5);
40599 }
40600 {
40601 PyThreadState* __tstate = wxPyBeginAllowThreads();
40602 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40603 wxPyEndAllowThreads(__tstate);
40604 if (PyErr_Occurred()) SWIG_fail;
40605 }
40606 {
40607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40608 }
40609 return resultobj;
40610fail:
40611 return NULL;
40612}
40613
40614
40615SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40616 PyObject *resultobj = 0;
40617 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40618 wxPoint *arg2 = 0 ;
40619 wxWindow *arg3 = (wxWindow *) 0 ;
40620 wxWindow *arg4 = (wxWindow *) 0 ;
40621 bool result;
40622 void *argp1 = 0 ;
40623 int res1 = 0 ;
40624 wxPoint temp2 ;
40625 void *argp3 = 0 ;
40626 int res3 = 0 ;
40627 void *argp4 = 0 ;
40628 int res4 = 0 ;
40629 PyObject * obj0 = 0 ;
40630 PyObject * obj1 = 0 ;
40631 PyObject * obj2 = 0 ;
40632 PyObject * obj3 = 0 ;
40633 char * kwnames[] = {
40634 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40635 };
40636
40637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40639 if (!SWIG_IsOK(res1)) {
40640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40641 }
40642 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40643 {
40644 arg2 = &temp2;
40645 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40646 }
40647 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40648 if (!SWIG_IsOK(res3)) {
40649 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40650 }
40651 arg3 = reinterpret_cast< wxWindow * >(argp3);
40652 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40653 if (!SWIG_IsOK(res4)) {
40654 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40655 }
40656 arg4 = reinterpret_cast< wxWindow * >(argp4);
40657 {
40658 PyThreadState* __tstate = wxPyBeginAllowThreads();
40659 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40660 wxPyEndAllowThreads(__tstate);
40661 if (PyErr_Occurred()) SWIG_fail;
40662 }
40663 {
40664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40665 }
40666 return resultobj;
40667fail:
40668 return NULL;
d14a1e28
RD
40669}
40670
40671
0085ce49
RD
40672SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40673 PyObject *resultobj = 0;
40674 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40675 bool result;
40676 void *argp1 = 0 ;
40677 int res1 = 0 ;
40678 PyObject *swig_obj[1] ;
40679
40680 if (!args) SWIG_fail;
40681 swig_obj[0] = args;
40682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40683 if (!SWIG_IsOK(res1)) {
40684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40685 }
40686 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40687 {
40688 PyThreadState* __tstate = wxPyBeginAllowThreads();
40689 result = (bool)(arg1)->EndDrag();
40690 wxPyEndAllowThreads(__tstate);
40691 if (PyErr_Occurred()) SWIG_fail;
40692 }
40693 {
40694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40695 }
40696 return resultobj;
40697fail:
40698 return NULL;
40699}
40700
40701
40702SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40703 PyObject *resultobj = 0;
40704 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40705 wxPoint *arg2 = 0 ;
40706 bool result;
40707 void *argp1 = 0 ;
40708 int res1 = 0 ;
40709 wxPoint temp2 ;
40710 PyObject * obj0 = 0 ;
40711 PyObject * obj1 = 0 ;
40712 char * kwnames[] = {
40713 (char *) "self",(char *) "pt", NULL
40714 };
40715
40716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40718 if (!SWIG_IsOK(res1)) {
40719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40720 }
40721 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40722 {
40723 arg2 = &temp2;
40724 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40725 }
40726 {
40727 PyThreadState* __tstate = wxPyBeginAllowThreads();
40728 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40729 wxPyEndAllowThreads(__tstate);
40730 if (PyErr_Occurred()) SWIG_fail;
40731 }
40732 {
40733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40734 }
40735 return resultobj;
40736fail:
40737 return NULL;
d14a1e28
RD
40738}
40739
40740
0085ce49
RD
40741SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40742 PyObject *resultobj = 0;
40743 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40744 bool result;
40745 void *argp1 = 0 ;
40746 int res1 = 0 ;
40747 PyObject *swig_obj[1] ;
40748
40749 if (!args) SWIG_fail;
40750 swig_obj[0] = args;
40751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40752 if (!SWIG_IsOK(res1)) {
40753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40754 }
40755 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40756 {
40757 PyThreadState* __tstate = wxPyBeginAllowThreads();
40758 result = (bool)(arg1)->Show();
40759 wxPyEndAllowThreads(__tstate);
40760 if (PyErr_Occurred()) SWIG_fail;
40761 }
40762 {
40763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40764 }
40765 return resultobj;
40766fail:
40767 return NULL;
d14a1e28
RD
40768}
40769
40770
0085ce49
RD
40771SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40772 PyObject *resultobj = 0;
40773 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40774 bool result;
40775 void *argp1 = 0 ;
40776 int res1 = 0 ;
40777 PyObject *swig_obj[1] ;
40778
40779 if (!args) SWIG_fail;
40780 swig_obj[0] = args;
40781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40782 if (!SWIG_IsOK(res1)) {
40783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40784 }
40785 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40786 {
40787 PyThreadState* __tstate = wxPyBeginAllowThreads();
40788 result = (bool)(arg1)->Hide();
40789 wxPyEndAllowThreads(__tstate);
40790 if (PyErr_Occurred()) SWIG_fail;
40791 }
40792 {
40793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40794 }
40795 return resultobj;
40796fail:
40797 return NULL;
40798}
40799
40800
40801SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40802 PyObject *resultobj = 0;
40803 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40804 wxPoint *arg2 = 0 ;
40805 wxRect result;
40806 void *argp1 = 0 ;
40807 int res1 = 0 ;
40808 wxPoint temp2 ;
40809 PyObject * obj0 = 0 ;
40810 PyObject * obj1 = 0 ;
40811 char * kwnames[] = {
40812 (char *) "self",(char *) "pos", NULL
40813 };
40814
40815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40817 if (!SWIG_IsOK(res1)) {
40818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40819 }
40820 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40821 {
40822 arg2 = &temp2;
40823 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40824 }
40825 {
40826 PyThreadState* __tstate = wxPyBeginAllowThreads();
40827 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40828 wxPyEndAllowThreads(__tstate);
40829 if (PyErr_Occurred()) SWIG_fail;
40830 }
40831 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40832 return resultobj;
40833fail:
40834 return NULL;
40835}
40836
40837
40838SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40839 PyObject *resultobj = 0;
40840 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40841 wxDC *arg2 = 0 ;
40842 wxPoint *arg3 = 0 ;
40843 bool result;
40844 void *argp1 = 0 ;
40845 int res1 = 0 ;
40846 void *argp2 = 0 ;
40847 int res2 = 0 ;
40848 wxPoint temp3 ;
40849 PyObject * obj0 = 0 ;
40850 PyObject * obj1 = 0 ;
40851 PyObject * obj2 = 0 ;
40852 char * kwnames[] = {
40853 (char *) "self",(char *) "dc",(char *) "pos", NULL
40854 };
40855
40856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40858 if (!SWIG_IsOK(res1)) {
40859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40860 }
40861 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40862 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40863 if (!SWIG_IsOK(res2)) {
40864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40865 }
40866 if (!argp2) {
40867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40868 }
40869 arg2 = reinterpret_cast< wxDC * >(argp2);
40870 {
40871 arg3 = &temp3;
40872 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40873 }
40874 {
40875 PyThreadState* __tstate = wxPyBeginAllowThreads();
40876 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40877 wxPyEndAllowThreads(__tstate);
40878 if (PyErr_Occurred()) SWIG_fail;
40879 }
40880 {
40881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40882 }
40883 return resultobj;
40884fail:
40885 return NULL;
40886}
40887
40888
40889SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40890 PyObject *resultobj = 0;
40891 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40892 wxDC *arg2 = 0 ;
40893 wxMemoryDC *arg3 = 0 ;
40894 wxRect *arg4 = 0 ;
40895 wxRect *arg5 = 0 ;
40896 bool result;
40897 void *argp1 = 0 ;
40898 int res1 = 0 ;
40899 void *argp2 = 0 ;
40900 int res2 = 0 ;
40901 void *argp3 = 0 ;
40902 int res3 = 0 ;
40903 wxRect temp4 ;
40904 wxRect temp5 ;
40905 PyObject * obj0 = 0 ;
40906 PyObject * obj1 = 0 ;
40907 PyObject * obj2 = 0 ;
40908 PyObject * obj3 = 0 ;
40909 PyObject * obj4 = 0 ;
40910 char * kwnames[] = {
40911 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40912 };
40913
40914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40916 if (!SWIG_IsOK(res1)) {
40917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40918 }
40919 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40920 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40921 if (!SWIG_IsOK(res2)) {
40922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40923 }
40924 if (!argp2) {
40925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40926 }
40927 arg2 = reinterpret_cast< wxDC * >(argp2);
40928 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40929 if (!SWIG_IsOK(res3)) {
40930 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40931 }
40932 if (!argp3) {
40933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40934 }
40935 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40936 {
40937 arg4 = &temp4;
40938 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40939 }
40940 {
40941 arg5 = &temp5;
40942 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40943 }
40944 {
40945 PyThreadState* __tstate = wxPyBeginAllowThreads();
40946 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40947 wxPyEndAllowThreads(__tstate);
40948 if (PyErr_Occurred()) SWIG_fail;
40949 }
40950 {
40951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40952 }
40953 return resultobj;
40954fail:
40955 return NULL;
40956}
40957
40958
40959SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40960 PyObject *resultobj = 0;
40961 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40962 wxPoint *arg2 = 0 ;
40963 wxPoint *arg3 = 0 ;
40964 bool arg4 ;
40965 bool arg5 ;
40966 bool result;
40967 void *argp1 = 0 ;
40968 int res1 = 0 ;
40969 wxPoint temp2 ;
40970 wxPoint temp3 ;
40971 bool val4 ;
40972 int ecode4 = 0 ;
40973 bool val5 ;
40974 int ecode5 = 0 ;
40975 PyObject * obj0 = 0 ;
40976 PyObject * obj1 = 0 ;
40977 PyObject * obj2 = 0 ;
40978 PyObject * obj3 = 0 ;
40979 PyObject * obj4 = 0 ;
40980 char * kwnames[] = {
40981 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40982 };
40983
40984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40986 if (!SWIG_IsOK(res1)) {
40987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40988 }
40989 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40990 {
40991 arg2 = &temp2;
40992 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40993 }
40994 {
40995 arg3 = &temp3;
40996 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40997 }
40998 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40999 if (!SWIG_IsOK(ecode4)) {
41000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41001 }
41002 arg4 = static_cast< bool >(val4);
41003 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41004 if (!SWIG_IsOK(ecode5)) {
41005 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41006 }
41007 arg5 = static_cast< bool >(val5);
41008 {
41009 PyThreadState* __tstate = wxPyBeginAllowThreads();
41010 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41011 wxPyEndAllowThreads(__tstate);
41012 if (PyErr_Occurred()) SWIG_fail;
41013 }
41014 {
41015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41016 }
41017 return resultobj;
41018fail:
41019 return NULL;
d14a1e28
RD
41020}
41021
41022
0085ce49
RD
41023SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41024 PyObject *obj;
41025 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41026 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41027 return SWIG_Py_Void();
d14a1e28
RD
41028}
41029
0085ce49
RD
41030SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41031 return SWIG_Python_InitShadowInstance(args);
41032}
d14a1e28 41033
0085ce49
RD
41034SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41035 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41036 return 1;
d14a1e28
RD
41037}
41038
41039
0085ce49
RD
41040SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41041 PyObject *pyobj = 0;
41042
41043 {
41044#if wxUSE_UNICODE
41045 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41046#else
41047 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41048#endif
41049 }
41050 return pyobj;
41051}
41052
41053
41054SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41055 PyObject *resultobj = 0;
41056 wxWindow *arg1 = (wxWindow *) 0 ;
41057 int arg2 = (int) -1 ;
41058 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41059 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41060 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41061 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41062 wxSize const &arg5_defvalue = wxDefaultSize ;
41063 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41064 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41065 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41066 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41067 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41068 wxString *arg8 = (wxString *) &arg8_defvalue ;
41069 wxDatePickerCtrl *result = 0 ;
41070 void *argp1 = 0 ;
41071 int res1 = 0 ;
41072 int val2 ;
41073 int ecode2 = 0 ;
41074 void *argp3 = 0 ;
41075 int res3 = 0 ;
41076 wxPoint temp4 ;
41077 wxSize temp5 ;
41078 long val6 ;
41079 int ecode6 = 0 ;
41080 void *argp7 = 0 ;
41081 int res7 = 0 ;
41082 bool temp8 = false ;
41083 PyObject * obj0 = 0 ;
41084 PyObject * obj1 = 0 ;
41085 PyObject * obj2 = 0 ;
41086 PyObject * obj3 = 0 ;
41087 PyObject * obj4 = 0 ;
41088 PyObject * obj5 = 0 ;
41089 PyObject * obj6 = 0 ;
41090 PyObject * obj7 = 0 ;
41091 char * kwnames[] = {
41092 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41093 };
41094
41095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41097 if (!SWIG_IsOK(res1)) {
41098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41099 }
41100 arg1 = reinterpret_cast< wxWindow * >(argp1);
41101 if (obj1) {
41102 ecode2 = SWIG_AsVal_int(obj1, &val2);
41103 if (!SWIG_IsOK(ecode2)) {
41104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41105 }
41106 arg2 = static_cast< int >(val2);
41107 }
41108 if (obj2) {
41109 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41110 if (!SWIG_IsOK(res3)) {
41111 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 41112 }
0085ce49
RD
41113 if (!argp3) {
41114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 41115 }
0085ce49
RD
41116 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41117 }
41118 if (obj3) {
d14a1e28 41119 {
0085ce49
RD
41120 arg4 = &temp4;
41121 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 41122 }
0085ce49
RD
41123 }
41124 if (obj4) {
d14a1e28 41125 {
0085ce49
RD
41126 arg5 = &temp5;
41127 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 41128 }
0085ce49
RD
41129 }
41130 if (obj5) {
41131 ecode6 = SWIG_AsVal_long(obj5, &val6);
41132 if (!SWIG_IsOK(ecode6)) {
41133 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41134 }
41135 arg6 = static_cast< long >(val6);
41136 }
41137 if (obj6) {
41138 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41139 if (!SWIG_IsOK(res7)) {
41140 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41141 }
41142 if (!argp7) {
41143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 41144 }
0085ce49
RD
41145 arg7 = reinterpret_cast< wxValidator * >(argp7);
41146 }
41147 if (obj7) {
d14a1e28 41148 {
0085ce49
RD
41149 arg8 = wxString_in_helper(obj7);
41150 if (arg8 == NULL) SWIG_fail;
41151 temp8 = true;
d14a1e28 41152 }
0085ce49
RD
41153 }
41154 {
41155 if (!wxPyCheckForApp()) SWIG_fail;
41156 PyThreadState* __tstate = wxPyBeginAllowThreads();
41157 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41158 wxPyEndAllowThreads(__tstate);
41159 if (PyErr_Occurred()) SWIG_fail;
41160 }
41161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41162 {
41163 if (temp8)
41164 delete arg8;
41165 }
41166 return resultobj;
41167fail:
41168 {
41169 if (temp8)
41170 delete arg8;
41171 }
41172 return NULL;
d14a1e28
RD
41173}
41174
41175
0085ce49
RD
41176SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41177 PyObject *resultobj = 0;
41178 wxDatePickerCtrl *result = 0 ;
41179
41180 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41181 {
41182 if (!wxPyCheckForApp()) SWIG_fail;
41183 PyThreadState* __tstate = wxPyBeginAllowThreads();
41184 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41185 wxPyEndAllowThreads(__tstate);
41186 if (PyErr_Occurred()) SWIG_fail;
41187 }
41188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41189 return resultobj;
41190fail:
41191 return NULL;
41192}
41193
41194
41195SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41196 PyObject *resultobj = 0;
41197 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41198 wxWindow *arg2 = (wxWindow *) 0 ;
41199 int arg3 = (int) -1 ;
41200 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41201 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41202 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41203 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41204 wxSize const &arg6_defvalue = wxDefaultSize ;
41205 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41206 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41207 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41208 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41209 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41210 wxString *arg9 = (wxString *) &arg9_defvalue ;
41211 bool result;
41212 void *argp1 = 0 ;
41213 int res1 = 0 ;
41214 void *argp2 = 0 ;
41215 int res2 = 0 ;
41216 int val3 ;
41217 int ecode3 = 0 ;
41218 void *argp4 = 0 ;
41219 int res4 = 0 ;
41220 wxPoint temp5 ;
41221 wxSize temp6 ;
41222 long val7 ;
41223 int ecode7 = 0 ;
41224 void *argp8 = 0 ;
41225 int res8 = 0 ;
41226 bool temp9 = false ;
41227 PyObject * obj0 = 0 ;
41228 PyObject * obj1 = 0 ;
41229 PyObject * obj2 = 0 ;
41230 PyObject * obj3 = 0 ;
41231 PyObject * obj4 = 0 ;
41232 PyObject * obj5 = 0 ;
41233 PyObject * obj6 = 0 ;
41234 PyObject * obj7 = 0 ;
41235 PyObject * obj8 = 0 ;
41236 char * kwnames[] = {
41237 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41238 };
41239
41240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41242 if (!SWIG_IsOK(res1)) {
41243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41244 }
41245 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41246 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41247 if (!SWIG_IsOK(res2)) {
41248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41249 }
41250 arg2 = reinterpret_cast< wxWindow * >(argp2);
41251 if (obj2) {
41252 ecode3 = SWIG_AsVal_int(obj2, &val3);
41253 if (!SWIG_IsOK(ecode3)) {
41254 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41255 }
41256 arg3 = static_cast< int >(val3);
41257 }
41258 if (obj3) {
41259 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41260 if (!SWIG_IsOK(res4)) {
41261 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 41262 }
0085ce49
RD
41263 if (!argp4) {
41264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 41265 }
0085ce49
RD
41266 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41267 }
41268 if (obj4) {
d14a1e28 41269 {
0085ce49
RD
41270 arg5 = &temp5;
41271 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 41272 }
0085ce49
RD
41273 }
41274 if (obj5) {
d14a1e28 41275 {
0085ce49
RD
41276 arg6 = &temp6;
41277 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41278 }
41279 }
41280 if (obj6) {
41281 ecode7 = SWIG_AsVal_long(obj6, &val7);
41282 if (!SWIG_IsOK(ecode7)) {
41283 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41284 }
41285 arg7 = static_cast< long >(val7);
41286 }
41287 if (obj7) {
41288 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41289 if (!SWIG_IsOK(res8)) {
41290 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41291 }
41292 if (!argp8) {
41293 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 41294 }
0085ce49
RD
41295 arg8 = reinterpret_cast< wxValidator * >(argp8);
41296 }
41297 if (obj8) {
d14a1e28 41298 {
0085ce49
RD
41299 arg9 = wxString_in_helper(obj8);
41300 if (arg9 == NULL) SWIG_fail;
41301 temp9 = true;
d14a1e28 41302 }
0085ce49
RD
41303 }
41304 {
41305 PyThreadState* __tstate = wxPyBeginAllowThreads();
41306 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41307 wxPyEndAllowThreads(__tstate);
41308 if (PyErr_Occurred()) SWIG_fail;
41309 }
41310 {
41311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41312 }
41313 {
41314 if (temp9)
41315 delete arg9;
41316 }
41317 return resultobj;
41318fail:
41319 {
41320 if (temp9)
41321 delete arg9;
41322 }
41323 return NULL;
41324}
41325
41326
41327SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41328 PyObject *resultobj = 0;
41329 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41330 wxDateTime *arg2 = 0 ;
41331 void *argp1 = 0 ;
41332 int res1 = 0 ;
41333 void *argp2 = 0 ;
41334 int res2 = 0 ;
41335 PyObject * obj0 = 0 ;
41336 PyObject * obj1 = 0 ;
41337 char * kwnames[] = {
41338 (char *) "self",(char *) "dt", NULL
41339 };
41340
41341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41343 if (!SWIG_IsOK(res1)) {
41344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41345 }
41346 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41347 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41348 if (!SWIG_IsOK(res2)) {
41349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41350 }
41351 if (!argp2) {
41352 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41353 }
41354 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41355 {
41356 PyThreadState* __tstate = wxPyBeginAllowThreads();
41357 (arg1)->SetValue((wxDateTime const &)*arg2);
41358 wxPyEndAllowThreads(__tstate);
41359 if (PyErr_Occurred()) SWIG_fail;
41360 }
41361 resultobj = SWIG_Py_Void();
41362 return resultobj;
41363fail:
41364 return NULL;
d14a1e28
RD
41365}
41366
41367
0085ce49
RD
41368SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41369 PyObject *resultobj = 0;
41370 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41371 wxDateTime result;
41372 void *argp1 = 0 ;
41373 int res1 = 0 ;
41374 PyObject *swig_obj[1] ;
41375
41376 if (!args) SWIG_fail;
41377 swig_obj[0] = args;
41378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41379 if (!SWIG_IsOK(res1)) {
41380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41381 }
41382 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41383 {
41384 PyThreadState* __tstate = wxPyBeginAllowThreads();
41385 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41386 wxPyEndAllowThreads(__tstate);
41387 if (PyErr_Occurred()) SWIG_fail;
41388 }
41389 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41390 return resultobj;
41391fail:
41392 return NULL;
41393}
41394
41395
41396SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41397 PyObject *resultobj = 0;
41398 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41399 wxDateTime *arg2 = 0 ;
41400 wxDateTime *arg3 = 0 ;
41401 void *argp1 = 0 ;
41402 int res1 = 0 ;
41403 void *argp2 = 0 ;
41404 int res2 = 0 ;
41405 void *argp3 = 0 ;
41406 int res3 = 0 ;
41407 PyObject * obj0 = 0 ;
41408 PyObject * obj1 = 0 ;
41409 PyObject * obj2 = 0 ;
41410 char * kwnames[] = {
41411 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41412 };
41413
41414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41416 if (!SWIG_IsOK(res1)) {
41417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41418 }
41419 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41420 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41421 if (!SWIG_IsOK(res2)) {
41422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41423 }
41424 if (!argp2) {
41425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41426 }
41427 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41428 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41429 if (!SWIG_IsOK(res3)) {
41430 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41431 }
41432 if (!argp3) {
41433 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41434 }
41435 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41436 {
41437 PyThreadState* __tstate = wxPyBeginAllowThreads();
41438 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41439 wxPyEndAllowThreads(__tstate);
41440 if (PyErr_Occurred()) SWIG_fail;
41441 }
41442 resultobj = SWIG_Py_Void();
41443 return resultobj;
41444fail:
41445 return NULL;
d14a1e28
RD
41446}
41447
41448
0085ce49
RD
41449SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41450 PyObject *resultobj = 0;
41451 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41452 wxDateTime result;
41453 void *argp1 = 0 ;
41454 int res1 = 0 ;
41455 PyObject *swig_obj[1] ;
41456
41457 if (!args) SWIG_fail;
41458 swig_obj[0] = args;
41459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41460 if (!SWIG_IsOK(res1)) {
41461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41462 }
41463 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41464 {
41465 PyThreadState* __tstate = wxPyBeginAllowThreads();
41466 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41467 wxPyEndAllowThreads(__tstate);
41468 if (PyErr_Occurred()) SWIG_fail;
41469 }
41470 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41471 return resultobj;
41472fail:
41473 return NULL;
d14a1e28
RD
41474}
41475
41476
0085ce49
RD
41477SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41478 PyObject *resultobj = 0;
41479 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41480 wxDateTime result;
41481 void *argp1 = 0 ;
41482 int res1 = 0 ;
41483 PyObject *swig_obj[1] ;
41484
41485 if (!args) SWIG_fail;
41486 swig_obj[0] = args;
41487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41488 if (!SWIG_IsOK(res1)) {
41489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41490 }
41491 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41492 {
41493 PyThreadState* __tstate = wxPyBeginAllowThreads();
41494 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41495 wxPyEndAllowThreads(__tstate);
41496 if (PyErr_Occurred()) SWIG_fail;
41497 }
41498 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41499 return resultobj;
41500fail:
41501 return NULL;
d14a1e28
RD
41502}
41503
41504
0085ce49
RD
41505SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41506 PyObject *obj;
41507 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41508 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41509 return SWIG_Py_Void();
d14a1e28
RD
41510}
41511
0085ce49
RD
41512SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41513 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
41514}
41515
704eda0c
RD
41516SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41517 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41518 return 1;
41519}
41520
41521
41522SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41523 PyObject *pyobj = 0;
41524
41525 {
41526#if wxUSE_UNICODE
41527 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41528#else
41529 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41530#endif
41531 }
41532 return pyobj;
41533}
41534
41535
41536SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41537 PyObject *resultobj = 0;
41538 wxWindow *arg1 = (wxWindow *) 0 ;
41539 int arg2 ;
41540 wxString *arg3 = 0 ;
41541 wxString *arg4 = 0 ;
41542 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41543 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41544 wxSize const &arg6_defvalue = wxDefaultSize ;
41545 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41546 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41547 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41548 wxString *arg8 = (wxString *) &arg8_defvalue ;
41549 wxHyperlinkCtrl *result = 0 ;
41550 void *argp1 = 0 ;
41551 int res1 = 0 ;
41552 int val2 ;
41553 int ecode2 = 0 ;
41554 bool temp3 = false ;
41555 bool temp4 = false ;
41556 wxPoint temp5 ;
41557 wxSize temp6 ;
41558 long val7 ;
41559 int ecode7 = 0 ;
41560 bool temp8 = false ;
41561 PyObject * obj0 = 0 ;
41562 PyObject * obj1 = 0 ;
41563 PyObject * obj2 = 0 ;
41564 PyObject * obj3 = 0 ;
41565 PyObject * obj4 = 0 ;
41566 PyObject * obj5 = 0 ;
41567 PyObject * obj6 = 0 ;
41568 PyObject * obj7 = 0 ;
41569 char * kwnames[] = {
41570 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41571 };
41572
41573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41575 if (!SWIG_IsOK(res1)) {
41576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41577 }
41578 arg1 = reinterpret_cast< wxWindow * >(argp1);
41579 ecode2 = SWIG_AsVal_int(obj1, &val2);
41580 if (!SWIG_IsOK(ecode2)) {
41581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41582 }
41583 arg2 = static_cast< int >(val2);
41584 {
41585 arg3 = wxString_in_helper(obj2);
41586 if (arg3 == NULL) SWIG_fail;
41587 temp3 = true;
41588 }
41589 {
41590 arg4 = wxString_in_helper(obj3);
41591 if (arg4 == NULL) SWIG_fail;
41592 temp4 = true;
41593 }
41594 if (obj4) {
41595 {
41596 arg5 = &temp5;
41597 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41598 }
41599 }
41600 if (obj5) {
41601 {
41602 arg6 = &temp6;
41603 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41604 }
41605 }
41606 if (obj6) {
41607 ecode7 = SWIG_AsVal_long(obj6, &val7);
41608 if (!SWIG_IsOK(ecode7)) {
41609 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41610 }
41611 arg7 = static_cast< long >(val7);
41612 }
41613 if (obj7) {
41614 {
41615 arg8 = wxString_in_helper(obj7);
41616 if (arg8 == NULL) SWIG_fail;
41617 temp8 = true;
41618 }
41619 }
41620 {
41621 if (!wxPyCheckForApp()) SWIG_fail;
41622 PyThreadState* __tstate = wxPyBeginAllowThreads();
41623 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41624 wxPyEndAllowThreads(__tstate);
41625 if (PyErr_Occurred()) SWIG_fail;
41626 }
41627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41628 {
41629 if (temp3)
41630 delete arg3;
41631 }
41632 {
41633 if (temp4)
41634 delete arg4;
41635 }
41636 {
41637 if (temp8)
41638 delete arg8;
41639 }
41640 return resultobj;
41641fail:
41642 {
41643 if (temp3)
41644 delete arg3;
41645 }
41646 {
41647 if (temp4)
41648 delete arg4;
41649 }
41650 {
41651 if (temp8)
41652 delete arg8;
41653 }
41654 return NULL;
41655}
41656
41657
41658SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41659 PyObject *resultobj = 0;
41660 wxHyperlinkCtrl *result = 0 ;
41661
41662 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41663 {
41664 if (!wxPyCheckForApp()) SWIG_fail;
41665 PyThreadState* __tstate = wxPyBeginAllowThreads();
41666 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41667 wxPyEndAllowThreads(__tstate);
41668 if (PyErr_Occurred()) SWIG_fail;
41669 }
41670 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41671 return resultobj;
41672fail:
41673 return NULL;
41674}
41675
41676
41677SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41678 PyObject *resultobj = 0;
41679 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41680 wxWindow *arg2 = (wxWindow *) 0 ;
41681 int arg3 ;
41682 wxString *arg4 = 0 ;
41683 wxString *arg5 = 0 ;
41684 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41685 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41686 wxSize const &arg7_defvalue = wxDefaultSize ;
41687 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41688 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41689 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41690 wxString *arg9 = (wxString *) &arg9_defvalue ;
41691 bool result;
41692 void *argp1 = 0 ;
41693 int res1 = 0 ;
41694 void *argp2 = 0 ;
41695 int res2 = 0 ;
41696 int val3 ;
41697 int ecode3 = 0 ;
41698 bool temp4 = false ;
41699 bool temp5 = false ;
41700 wxPoint temp6 ;
41701 wxSize temp7 ;
41702 long val8 ;
41703 int ecode8 = 0 ;
41704 bool temp9 = false ;
41705 PyObject * obj0 = 0 ;
41706 PyObject * obj1 = 0 ;
41707 PyObject * obj2 = 0 ;
41708 PyObject * obj3 = 0 ;
41709 PyObject * obj4 = 0 ;
41710 PyObject * obj5 = 0 ;
41711 PyObject * obj6 = 0 ;
41712 PyObject * obj7 = 0 ;
41713 PyObject * obj8 = 0 ;
41714 char * kwnames[] = {
41715 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41716 };
41717
41718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41720 if (!SWIG_IsOK(res1)) {
41721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41722 }
41723 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41724 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41725 if (!SWIG_IsOK(res2)) {
41726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41727 }
41728 arg2 = reinterpret_cast< wxWindow * >(argp2);
41729 ecode3 = SWIG_AsVal_int(obj2, &val3);
41730 if (!SWIG_IsOK(ecode3)) {
41731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41732 }
41733 arg3 = static_cast< int >(val3);
41734 {
41735 arg4 = wxString_in_helper(obj3);
41736 if (arg4 == NULL) SWIG_fail;
41737 temp4 = true;
41738 }
41739 {
41740 arg5 = wxString_in_helper(obj4);
41741 if (arg5 == NULL) SWIG_fail;
41742 temp5 = true;
41743 }
41744 if (obj5) {
41745 {
41746 arg6 = &temp6;
41747 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41748 }
41749 }
41750 if (obj6) {
41751 {
41752 arg7 = &temp7;
41753 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41754 }
41755 }
41756 if (obj7) {
41757 ecode8 = SWIG_AsVal_long(obj7, &val8);
41758 if (!SWIG_IsOK(ecode8)) {
41759 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41760 }
41761 arg8 = static_cast< long >(val8);
41762 }
41763 if (obj8) {
41764 {
41765 arg9 = wxString_in_helper(obj8);
41766 if (arg9 == NULL) SWIG_fail;
41767 temp9 = true;
41768 }
41769 }
41770 {
41771 PyThreadState* __tstate = wxPyBeginAllowThreads();
41772 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41773 wxPyEndAllowThreads(__tstate);
41774 if (PyErr_Occurred()) SWIG_fail;
41775 }
41776 {
41777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41778 }
41779 {
41780 if (temp4)
41781 delete arg4;
41782 }
41783 {
41784 if (temp5)
41785 delete arg5;
41786 }
41787 {
41788 if (temp9)
41789 delete arg9;
41790 }
41791 return resultobj;
41792fail:
41793 {
41794 if (temp4)
41795 delete arg4;
41796 }
41797 {
41798 if (temp5)
41799 delete arg5;
41800 }
41801 {
41802 if (temp9)
41803 delete arg9;
41804 }
41805 return NULL;
41806}
41807
41808
41809SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41810 PyObject *resultobj = 0;
41811 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41812 wxColour result;
41813 void *argp1 = 0 ;
41814 int res1 = 0 ;
41815 PyObject *swig_obj[1] ;
41816
41817 if (!args) SWIG_fail;
41818 swig_obj[0] = args;
41819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41820 if (!SWIG_IsOK(res1)) {
41821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41822 }
41823 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41824 {
41825 PyThreadState* __tstate = wxPyBeginAllowThreads();
41826 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41827 wxPyEndAllowThreads(__tstate);
41828 if (PyErr_Occurred()) SWIG_fail;
41829 }
41830 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41831 return resultobj;
41832fail:
41833 return NULL;
41834}
41835
41836
41837SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41838 PyObject *resultobj = 0;
41839 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41840 wxColour *arg2 = 0 ;
41841 void *argp1 = 0 ;
41842 int res1 = 0 ;
41843 wxColour temp2 ;
41844 PyObject * obj0 = 0 ;
41845 PyObject * obj1 = 0 ;
41846 char * kwnames[] = {
41847 (char *) "self",(char *) "colour", NULL
41848 };
41849
41850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41852 if (!SWIG_IsOK(res1)) {
41853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41854 }
41855 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41856 {
41857 arg2 = &temp2;
41858 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41859 }
41860 {
41861 PyThreadState* __tstate = wxPyBeginAllowThreads();
41862 (arg1)->SetHoverColour((wxColour const &)*arg2);
41863 wxPyEndAllowThreads(__tstate);
41864 if (PyErr_Occurred()) SWIG_fail;
41865 }
41866 resultobj = SWIG_Py_Void();
41867 return resultobj;
41868fail:
41869 return NULL;
41870}
41871
41872
41873SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41874 PyObject *resultobj = 0;
41875 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41876 wxColour result;
41877 void *argp1 = 0 ;
41878 int res1 = 0 ;
41879 PyObject *swig_obj[1] ;
41880
41881 if (!args) SWIG_fail;
41882 swig_obj[0] = args;
41883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41884 if (!SWIG_IsOK(res1)) {
41885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41886 }
41887 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41888 {
41889 PyThreadState* __tstate = wxPyBeginAllowThreads();
41890 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41891 wxPyEndAllowThreads(__tstate);
41892 if (PyErr_Occurred()) SWIG_fail;
41893 }
41894 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41895 return resultobj;
41896fail:
41897 return NULL;
41898}
41899
41900
41901SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41902 PyObject *resultobj = 0;
41903 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41904 wxColour *arg2 = 0 ;
41905 void *argp1 = 0 ;
41906 int res1 = 0 ;
41907 wxColour temp2 ;
41908 PyObject * obj0 = 0 ;
41909 PyObject * obj1 = 0 ;
41910 char * kwnames[] = {
41911 (char *) "self",(char *) "colour", NULL
41912 };
41913
41914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41916 if (!SWIG_IsOK(res1)) {
41917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41918 }
41919 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41920 {
41921 arg2 = &temp2;
41922 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41923 }
41924 {
41925 PyThreadState* __tstate = wxPyBeginAllowThreads();
41926 (arg1)->SetNormalColour((wxColour const &)*arg2);
41927 wxPyEndAllowThreads(__tstate);
41928 if (PyErr_Occurred()) SWIG_fail;
41929 }
41930 resultobj = SWIG_Py_Void();
41931 return resultobj;
41932fail:
41933 return NULL;
41934}
41935
41936
41937SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41938 PyObject *resultobj = 0;
41939 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41940 wxColour result;
41941 void *argp1 = 0 ;
41942 int res1 = 0 ;
41943 PyObject *swig_obj[1] ;
41944
41945 if (!args) SWIG_fail;
41946 swig_obj[0] = args;
41947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41948 if (!SWIG_IsOK(res1)) {
41949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41950 }
41951 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41952 {
41953 PyThreadState* __tstate = wxPyBeginAllowThreads();
41954 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41955 wxPyEndAllowThreads(__tstate);
41956 if (PyErr_Occurred()) SWIG_fail;
41957 }
41958 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41959 return resultobj;
41960fail:
41961 return NULL;
41962}
41963
41964
41965SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41966 PyObject *resultobj = 0;
41967 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41968 wxColour *arg2 = 0 ;
41969 void *argp1 = 0 ;
41970 int res1 = 0 ;
41971 wxColour temp2 ;
41972 PyObject * obj0 = 0 ;
41973 PyObject * obj1 = 0 ;
41974 char * kwnames[] = {
41975 (char *) "self",(char *) "colour", NULL
41976 };
41977
41978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41980 if (!SWIG_IsOK(res1)) {
41981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41982 }
41983 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41984 {
41985 arg2 = &temp2;
41986 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41987 }
41988 {
41989 PyThreadState* __tstate = wxPyBeginAllowThreads();
41990 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41991 wxPyEndAllowThreads(__tstate);
41992 if (PyErr_Occurred()) SWIG_fail;
41993 }
41994 resultobj = SWIG_Py_Void();
41995 return resultobj;
41996fail:
41997 return NULL;
41998}
41999
42000
42001SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42002 PyObject *resultobj = 0;
42003 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42004 wxString result;
42005 void *argp1 = 0 ;
42006 int res1 = 0 ;
42007 PyObject *swig_obj[1] ;
42008
42009 if (!args) SWIG_fail;
42010 swig_obj[0] = args;
42011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42012 if (!SWIG_IsOK(res1)) {
42013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42014 }
42015 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42016 {
42017 PyThreadState* __tstate = wxPyBeginAllowThreads();
42018 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42019 wxPyEndAllowThreads(__tstate);
42020 if (PyErr_Occurred()) SWIG_fail;
42021 }
42022 {
42023#if wxUSE_UNICODE
42024 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42025#else
42026 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42027#endif
42028 }
42029 return resultobj;
42030fail:
42031 return NULL;
42032}
42033
42034
42035SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42036 PyObject *resultobj = 0;
42037 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42038 wxString *arg2 = 0 ;
42039 void *argp1 = 0 ;
42040 int res1 = 0 ;
42041 bool temp2 = false ;
42042 PyObject * obj0 = 0 ;
42043 PyObject * obj1 = 0 ;
42044 char * kwnames[] = {
42045 (char *) "self",(char *) "url", NULL
42046 };
42047
42048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42050 if (!SWIG_IsOK(res1)) {
42051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42052 }
42053 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42054 {
42055 arg2 = wxString_in_helper(obj1);
42056 if (arg2 == NULL) SWIG_fail;
42057 temp2 = true;
42058 }
42059 {
42060 PyThreadState* __tstate = wxPyBeginAllowThreads();
42061 (arg1)->SetURL((wxString const &)*arg2);
42062 wxPyEndAllowThreads(__tstate);
42063 if (PyErr_Occurred()) SWIG_fail;
42064 }
42065 resultobj = SWIG_Py_Void();
42066 {
42067 if (temp2)
42068 delete arg2;
42069 }
42070 return resultobj;
42071fail:
42072 {
42073 if (temp2)
42074 delete arg2;
42075 }
42076 return NULL;
42077}
42078
42079
42080SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42081 PyObject *resultobj = 0;
42082 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42083 bool arg2 = (bool) true ;
42084 void *argp1 = 0 ;
42085 int res1 = 0 ;
42086 bool val2 ;
42087 int ecode2 = 0 ;
42088 PyObject * obj0 = 0 ;
42089 PyObject * obj1 = 0 ;
42090 char * kwnames[] = {
42091 (char *) "self",(char *) "visited", NULL
42092 };
42093
42094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42096 if (!SWIG_IsOK(res1)) {
42097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42098 }
42099 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42100 if (obj1) {
42101 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42102 if (!SWIG_IsOK(ecode2)) {
42103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42104 }
42105 arg2 = static_cast< bool >(val2);
42106 }
42107 {
42108 PyThreadState* __tstate = wxPyBeginAllowThreads();
42109 (arg1)->SetVisited(arg2);
42110 wxPyEndAllowThreads(__tstate);
42111 if (PyErr_Occurred()) SWIG_fail;
42112 }
42113 resultobj = SWIG_Py_Void();
42114 return resultobj;
42115fail:
42116 return NULL;
42117}
42118
42119
42120SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42121 PyObject *resultobj = 0;
42122 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42123 bool result;
42124 void *argp1 = 0 ;
42125 int res1 = 0 ;
42126 PyObject *swig_obj[1] ;
42127
42128 if (!args) SWIG_fail;
42129 swig_obj[0] = args;
42130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42131 if (!SWIG_IsOK(res1)) {
42132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42133 }
42134 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42135 {
42136 PyThreadState* __tstate = wxPyBeginAllowThreads();
42137 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42138 wxPyEndAllowThreads(__tstate);
42139 if (PyErr_Occurred()) SWIG_fail;
42140 }
42141 {
42142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42143 }
42144 return resultobj;
42145fail:
42146 return NULL;
42147}
42148
42149
42150SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42151 PyObject *obj;
42152 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42153 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42154 return SWIG_Py_Void();
42155}
42156
42157SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42158 return SWIG_Python_InitShadowInstance(args);
42159}
42160
42161SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42162 PyObject *resultobj = 0;
42163 wxObject *arg1 = (wxObject *) 0 ;
42164 int arg2 ;
42165 wxString *arg3 = 0 ;
42166 wxHyperlinkEvent *result = 0 ;
42167 void *argp1 = 0 ;
42168 int res1 = 0 ;
42169 int val2 ;
42170 int ecode2 = 0 ;
42171 bool temp3 = false ;
42172 PyObject * obj0 = 0 ;
42173 PyObject * obj1 = 0 ;
42174 PyObject * obj2 = 0 ;
42175 char * kwnames[] = {
42176 (char *) "generator",(char *) "id",(char *) "url", NULL
42177 };
42178
42179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42181 if (!SWIG_IsOK(res1)) {
42182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42183 }
42184 arg1 = reinterpret_cast< wxObject * >(argp1);
42185 ecode2 = SWIG_AsVal_int(obj1, &val2);
42186 if (!SWIG_IsOK(ecode2)) {
42187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42188 }
42189 arg2 = static_cast< int >(val2);
42190 {
42191 arg3 = wxString_in_helper(obj2);
42192 if (arg3 == NULL) SWIG_fail;
42193 temp3 = true;
42194 }
42195 {
42196 PyThreadState* __tstate = wxPyBeginAllowThreads();
42197 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42198 wxPyEndAllowThreads(__tstate);
42199 if (PyErr_Occurred()) SWIG_fail;
42200 }
42201 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42202 {
42203 if (temp3)
42204 delete arg3;
42205 }
42206 return resultobj;
42207fail:
42208 {
42209 if (temp3)
42210 delete arg3;
42211 }
42212 return NULL;
42213}
42214
42215
42216SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42217 PyObject *resultobj = 0;
42218 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42219 wxString result;
42220 void *argp1 = 0 ;
42221 int res1 = 0 ;
42222 PyObject *swig_obj[1] ;
42223
42224 if (!args) SWIG_fail;
42225 swig_obj[0] = args;
42226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42227 if (!SWIG_IsOK(res1)) {
42228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42229 }
42230 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42231 {
42232 PyThreadState* __tstate = wxPyBeginAllowThreads();
42233 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42234 wxPyEndAllowThreads(__tstate);
42235 if (PyErr_Occurred()) SWIG_fail;
42236 }
42237 {
42238#if wxUSE_UNICODE
42239 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42240#else
42241 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42242#endif
42243 }
42244 return resultobj;
42245fail:
42246 return NULL;
42247}
42248
42249
42250SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42251 PyObject *resultobj = 0;
42252 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42253 wxString *arg2 = 0 ;
42254 void *argp1 = 0 ;
42255 int res1 = 0 ;
42256 bool temp2 = false ;
42257 PyObject * obj0 = 0 ;
42258 PyObject * obj1 = 0 ;
42259 char * kwnames[] = {
42260 (char *) "self",(char *) "url", NULL
42261 };
42262
42263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42265 if (!SWIG_IsOK(res1)) {
42266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42267 }
42268 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42269 {
42270 arg2 = wxString_in_helper(obj1);
42271 if (arg2 == NULL) SWIG_fail;
42272 temp2 = true;
42273 }
42274 {
42275 PyThreadState* __tstate = wxPyBeginAllowThreads();
42276 (arg1)->SetURL((wxString const &)*arg2);
42277 wxPyEndAllowThreads(__tstate);
42278 if (PyErr_Occurred()) SWIG_fail;
42279 }
42280 resultobj = SWIG_Py_Void();
42281 {
42282 if (temp2)
42283 delete arg2;
42284 }
42285 return resultobj;
42286fail:
42287 {
42288 if (temp2)
42289 delete arg2;
42290 }
42291 return NULL;
42292}
42293
42294
42295SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42296 PyObject *obj;
42297 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42298 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42299 return SWIG_Py_Void();
42300}
42301
42302SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42303 return SWIG_Python_InitShadowInstance(args);
42304}
42305
b850e7f3
RD
42306SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42307 PyObject *resultobj = 0;
42308 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42309 wxWindow *arg2 = (wxWindow *) 0 ;
42310 int arg3 ;
42311 wxString const &arg4_defvalue = wxEmptyString ;
42312 wxString *arg4 = (wxString *) &arg4_defvalue ;
42313 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42314 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42315 wxSize const &arg6_defvalue = wxDefaultSize ;
42316 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42317 long arg7 = (long) 0 ;
42318 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42319 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42320 wxString const &arg9_defvalue = wxButtonNameStr ;
42321 wxString *arg9 = (wxString *) &arg9_defvalue ;
42322 bool result;
42323 void *argp1 = 0 ;
42324 int res1 = 0 ;
42325 void *argp2 = 0 ;
42326 int res2 = 0 ;
42327 int val3 ;
42328 int ecode3 = 0 ;
42329 bool temp4 = false ;
42330 wxPoint temp5 ;
42331 wxSize temp6 ;
42332 long val7 ;
42333 int ecode7 = 0 ;
42334 void *argp8 = 0 ;
42335 int res8 = 0 ;
42336 bool temp9 = false ;
42337 PyObject * obj0 = 0 ;
42338 PyObject * obj1 = 0 ;
42339 PyObject * obj2 = 0 ;
42340 PyObject * obj3 = 0 ;
42341 PyObject * obj4 = 0 ;
42342 PyObject * obj5 = 0 ;
42343 PyObject * obj6 = 0 ;
42344 PyObject * obj7 = 0 ;
42345 PyObject * obj8 = 0 ;
42346 char * kwnames[] = {
42347 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42348 };
42349
42350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42352 if (!SWIG_IsOK(res1)) {
42353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42354 }
42355 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42356 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42357 if (!SWIG_IsOK(res2)) {
42358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42359 }
42360 arg2 = reinterpret_cast< wxWindow * >(argp2);
42361 ecode3 = SWIG_AsVal_int(obj2, &val3);
42362 if (!SWIG_IsOK(ecode3)) {
42363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42364 }
42365 arg3 = static_cast< int >(val3);
42366 if (obj3) {
42367 {
42368 arg4 = wxString_in_helper(obj3);
42369 if (arg4 == NULL) SWIG_fail;
42370 temp4 = true;
42371 }
42372 }
42373 if (obj4) {
42374 {
42375 arg5 = &temp5;
42376 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42377 }
42378 }
42379 if (obj5) {
42380 {
42381 arg6 = &temp6;
42382 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42383 }
42384 }
42385 if (obj6) {
42386 ecode7 = SWIG_AsVal_long(obj6, &val7);
42387 if (!SWIG_IsOK(ecode7)) {
42388 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42389 }
42390 arg7 = static_cast< long >(val7);
42391 }
42392 if (obj7) {
42393 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42394 if (!SWIG_IsOK(res8)) {
42395 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42396 }
42397 if (!argp8) {
42398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42399 }
42400 arg8 = reinterpret_cast< wxValidator * >(argp8);
42401 }
42402 if (obj8) {
42403 {
42404 arg9 = wxString_in_helper(obj8);
42405 if (arg9 == NULL) SWIG_fail;
42406 temp9 = true;
42407 }
42408 }
42409 {
42410 PyThreadState* __tstate = wxPyBeginAllowThreads();
42411 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42412 wxPyEndAllowThreads(__tstate);
42413 if (PyErr_Occurred()) SWIG_fail;
42414 }
42415 {
42416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42417 }
42418 {
42419 if (temp4)
42420 delete arg4;
42421 }
42422 {
42423 if (temp9)
42424 delete arg9;
42425 }
42426 return resultobj;
42427fail:
42428 {
42429 if (temp4)
42430 delete arg4;
42431 }
42432 {
42433 if (temp9)
42434 delete arg9;
42435 }
42436 return NULL;
42437}
42438
42439
42440SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42441 PyObject *resultobj = 0;
42442 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42443 int arg2 ;
42444 void *argp1 = 0 ;
42445 int res1 = 0 ;
42446 int val2 ;
42447 int ecode2 = 0 ;
42448 PyObject * obj0 = 0 ;
42449 PyObject * obj1 = 0 ;
42450 char * kwnames[] = {
42451 (char *) "self",(char *) "newmargin", NULL
42452 };
42453
42454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42456 if (!SWIG_IsOK(res1)) {
42457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42458 }
42459 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42460 ecode2 = SWIG_AsVal_int(obj1, &val2);
42461 if (!SWIG_IsOK(ecode2)) {
42462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42463 }
42464 arg2 = static_cast< int >(val2);
42465 {
42466 PyThreadState* __tstate = wxPyBeginAllowThreads();
42467 (arg1)->SetInternalMargin(arg2);
42468 wxPyEndAllowThreads(__tstate);
42469 if (PyErr_Occurred()) SWIG_fail;
42470 }
42471 resultobj = SWIG_Py_Void();
42472 return resultobj;
42473fail:
42474 return NULL;
42475}
42476
42477
42478SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42479 PyObject *resultobj = 0;
42480 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42481 int result;
42482 void *argp1 = 0 ;
42483 int res1 = 0 ;
42484 PyObject *swig_obj[1] ;
42485
42486 if (!args) SWIG_fail;
42487 swig_obj[0] = args;
42488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42489 if (!SWIG_IsOK(res1)) {
42490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42491 }
42492 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42493 {
42494 PyThreadState* __tstate = wxPyBeginAllowThreads();
42495 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42496 wxPyEndAllowThreads(__tstate);
42497 if (PyErr_Occurred()) SWIG_fail;
42498 }
42499 resultobj = SWIG_From_int(static_cast< int >(result));
42500 return resultobj;
42501fail:
42502 return NULL;
42503}
42504
42505
42506SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42507 PyObject *resultobj = 0;
42508 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42509 int arg2 ;
42510 void *argp1 = 0 ;
42511 int res1 = 0 ;
42512 int val2 ;
42513 int ecode2 = 0 ;
42514 PyObject * obj0 = 0 ;
42515 PyObject * obj1 = 0 ;
42516 char * kwnames[] = {
42517 (char *) "self",(char *) "prop", NULL
42518 };
42519
42520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42522 if (!SWIG_IsOK(res1)) {
42523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42524 }
42525 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42526 ecode2 = SWIG_AsVal_int(obj1, &val2);
42527 if (!SWIG_IsOK(ecode2)) {
42528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42529 }
42530 arg2 = static_cast< int >(val2);
42531 {
42532 PyThreadState* __tstate = wxPyBeginAllowThreads();
42533 (arg1)->SetTextCtrlProportion(arg2);
42534 wxPyEndAllowThreads(__tstate);
42535 if (PyErr_Occurred()) SWIG_fail;
42536 }
42537 resultobj = SWIG_Py_Void();
42538 return resultobj;
42539fail:
42540 return NULL;
42541}
42542
42543
42544SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42545 PyObject *resultobj = 0;
42546 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42547 int result;
42548 void *argp1 = 0 ;
42549 int res1 = 0 ;
42550 PyObject *swig_obj[1] ;
42551
42552 if (!args) SWIG_fail;
42553 swig_obj[0] = args;
42554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42555 if (!SWIG_IsOK(res1)) {
42556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42557 }
42558 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42559 {
42560 PyThreadState* __tstate = wxPyBeginAllowThreads();
42561 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42562 wxPyEndAllowThreads(__tstate);
42563 if (PyErr_Occurred()) SWIG_fail;
42564 }
42565 resultobj = SWIG_From_int(static_cast< int >(result));
42566 return resultobj;
42567fail:
42568 return NULL;
42569}
42570
42571
10044bf1
RD
42572SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42573 PyObject *resultobj = 0;
42574 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42575 int arg2 ;
42576 void *argp1 = 0 ;
42577 int res1 = 0 ;
42578 int val2 ;
42579 int ecode2 = 0 ;
42580 PyObject * obj0 = 0 ;
42581 PyObject * obj1 = 0 ;
42582 char * kwnames[] = {
42583 (char *) "self",(char *) "prop", NULL
42584 };
42585
42586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42588 if (!SWIG_IsOK(res1)) {
42589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42590 }
42591 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42592 ecode2 = SWIG_AsVal_int(obj1, &val2);
42593 if (!SWIG_IsOK(ecode2)) {
42594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42595 }
42596 arg2 = static_cast< int >(val2);
42597 {
42598 PyThreadState* __tstate = wxPyBeginAllowThreads();
42599 (arg1)->SetPickerCtrlProportion(arg2);
42600 wxPyEndAllowThreads(__tstate);
42601 if (PyErr_Occurred()) SWIG_fail;
42602 }
42603 resultobj = SWIG_Py_Void();
42604 return resultobj;
42605fail:
42606 return NULL;
42607}
42608
42609
42610SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42611 PyObject *resultobj = 0;
42612 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42613 int result;
42614 void *argp1 = 0 ;
42615 int res1 = 0 ;
42616 PyObject *swig_obj[1] ;
42617
42618 if (!args) SWIG_fail;
42619 swig_obj[0] = args;
42620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42621 if (!SWIG_IsOK(res1)) {
42622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42623 }
42624 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42625 {
42626 PyThreadState* __tstate = wxPyBeginAllowThreads();
42627 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42628 wxPyEndAllowThreads(__tstate);
42629 if (PyErr_Occurred()) SWIG_fail;
42630 }
42631 resultobj = SWIG_From_int(static_cast< int >(result));
42632 return resultobj;
42633fail:
42634 return NULL;
42635}
42636
42637
b02396e8
RD
42638SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42639 PyObject *resultobj = 0;
42640 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42641 bool result;
42642 void *argp1 = 0 ;
42643 int res1 = 0 ;
42644 PyObject *swig_obj[1] ;
42645
42646 if (!args) SWIG_fail;
42647 swig_obj[0] = args;
42648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42649 if (!SWIG_IsOK(res1)) {
42650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42651 }
42652 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42653 {
42654 PyThreadState* __tstate = wxPyBeginAllowThreads();
42655 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42656 wxPyEndAllowThreads(__tstate);
42657 if (PyErr_Occurred()) SWIG_fail;
42658 }
42659 {
42660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42661 }
42662 return resultobj;
42663fail:
42664 return NULL;
42665}
42666
42667
42668SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42669 PyObject *resultobj = 0;
42670 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42671 bool arg2 = (bool) true ;
42672 void *argp1 = 0 ;
42673 int res1 = 0 ;
42674 bool val2 ;
42675 int ecode2 = 0 ;
42676 PyObject * obj0 = 0 ;
42677 PyObject * obj1 = 0 ;
42678 char * kwnames[] = {
42679 (char *) "self",(char *) "grow", NULL
42680 };
42681
42682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42684 if (!SWIG_IsOK(res1)) {
42685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42686 }
42687 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42688 if (obj1) {
42689 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42690 if (!SWIG_IsOK(ecode2)) {
42691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42692 }
42693 arg2 = static_cast< bool >(val2);
42694 }
42695 {
42696 PyThreadState* __tstate = wxPyBeginAllowThreads();
42697 (arg1)->SetTextCtrlGrowable(arg2);
42698 wxPyEndAllowThreads(__tstate);
42699 if (PyErr_Occurred()) SWIG_fail;
42700 }
42701 resultobj = SWIG_Py_Void();
42702 return resultobj;
42703fail:
42704 return NULL;
42705}
42706
42707
42708SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42709 PyObject *resultobj = 0;
42710 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42711 bool result;
42712 void *argp1 = 0 ;
42713 int res1 = 0 ;
42714 PyObject *swig_obj[1] ;
42715
42716 if (!args) SWIG_fail;
42717 swig_obj[0] = args;
42718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42719 if (!SWIG_IsOK(res1)) {
42720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42721 }
42722 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42723 {
42724 PyThreadState* __tstate = wxPyBeginAllowThreads();
42725 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42726 wxPyEndAllowThreads(__tstate);
42727 if (PyErr_Occurred()) SWIG_fail;
42728 }
42729 {
42730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42731 }
42732 return resultobj;
42733fail:
42734 return NULL;
42735}
42736
42737
42738SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42739 PyObject *resultobj = 0;
42740 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42741 bool arg2 = (bool) true ;
42742 void *argp1 = 0 ;
42743 int res1 = 0 ;
42744 bool val2 ;
42745 int ecode2 = 0 ;
42746 PyObject * obj0 = 0 ;
42747 PyObject * obj1 = 0 ;
42748 char * kwnames[] = {
42749 (char *) "self",(char *) "grow", NULL
42750 };
42751
42752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42754 if (!SWIG_IsOK(res1)) {
42755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42756 }
42757 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42758 if (obj1) {
42759 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42760 if (!SWIG_IsOK(ecode2)) {
42761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42762 }
42763 arg2 = static_cast< bool >(val2);
42764 }
42765 {
42766 PyThreadState* __tstate = wxPyBeginAllowThreads();
42767 (arg1)->SetPickerCtrlGrowable(arg2);
42768 wxPyEndAllowThreads(__tstate);
42769 if (PyErr_Occurred()) SWIG_fail;
42770 }
42771 resultobj = SWIG_Py_Void();
42772 return resultobj;
42773fail:
42774 return NULL;
42775}
42776
42777
b850e7f3
RD
42778SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42779 PyObject *resultobj = 0;
42780 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42781 bool result;
42782 void *argp1 = 0 ;
42783 int res1 = 0 ;
42784 PyObject *swig_obj[1] ;
42785
42786 if (!args) SWIG_fail;
42787 swig_obj[0] = args;
42788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42789 if (!SWIG_IsOK(res1)) {
42790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42791 }
42792 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42793 {
42794 PyThreadState* __tstate = wxPyBeginAllowThreads();
42795 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42796 wxPyEndAllowThreads(__tstate);
42797 if (PyErr_Occurred()) SWIG_fail;
42798 }
42799 {
42800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42801 }
42802 return resultobj;
42803fail:
42804 return NULL;
42805}
42806
42807
42808SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42809 PyObject *resultobj = 0;
42810 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42811 wxTextCtrl *result = 0 ;
42812 void *argp1 = 0 ;
42813 int res1 = 0 ;
42814 PyObject *swig_obj[1] ;
42815
42816 if (!args) SWIG_fail;
42817 swig_obj[0] = args;
42818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42819 if (!SWIG_IsOK(res1)) {
42820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42821 }
42822 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42823 {
42824 PyThreadState* __tstate = wxPyBeginAllowThreads();
42825 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42826 wxPyEndAllowThreads(__tstate);
42827 if (PyErr_Occurred()) SWIG_fail;
42828 }
42829 {
42830 resultobj = wxPyMake_wxObject(result, 0);
42831 }
42832 return resultobj;
42833fail:
42834 return NULL;
42835}
42836
42837
42838SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42839 PyObject *resultobj = 0;
42840 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42841 wxControl *result = 0 ;
42842 void *argp1 = 0 ;
42843 int res1 = 0 ;
42844 PyObject *swig_obj[1] ;
42845
42846 if (!args) SWIG_fail;
42847 swig_obj[0] = args;
42848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42849 if (!SWIG_IsOK(res1)) {
42850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42851 }
42852 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42853 {
42854 PyThreadState* __tstate = wxPyBeginAllowThreads();
42855 result = (wxControl *)(arg1)->GetPickerCtrl();
42856 wxPyEndAllowThreads(__tstate);
42857 if (PyErr_Occurred()) SWIG_fail;
42858 }
42859 {
42860 resultobj = wxPyMake_wxObject(result, 0);
42861 }
42862 return resultobj;
42863fail:
42864 return NULL;
42865}
42866
42867
42868SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42869 PyObject *obj;
42870 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42871 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42872 return SWIG_Py_Void();
42873}
42874
42875SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
42876 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
42877 return 1;
42878}
42879
42880
42881SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
42882 PyObject *pyobj = 0;
42883
42884 {
42885#if wxUSE_UNICODE
42886 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42887#else
42888 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42889#endif
42890 }
42891 return pyobj;
42892}
42893
42894
42895SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42896 PyObject *resultobj = 0;
42897 wxWindow *arg1 = (wxWindow *) 0 ;
42898 int arg2 = (int) -1 ;
42899 wxColour const &arg3_defvalue = *wxBLACK ;
42900 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
42901 wxPoint const &arg4_defvalue = wxDefaultPosition ;
42902 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
42903 wxSize const &arg5_defvalue = wxDefaultSize ;
42904 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
42905 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
42906 wxValidator const &arg7_defvalue = wxDefaultValidator ;
42907 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
42908 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
42909 wxString *arg8 = (wxString *) &arg8_defvalue ;
42910 wxColourPickerCtrl *result = 0 ;
42911 void *argp1 = 0 ;
42912 int res1 = 0 ;
42913 int val2 ;
42914 int ecode2 = 0 ;
42915 wxColour temp3 ;
42916 wxPoint temp4 ;
42917 wxSize temp5 ;
42918 long val6 ;
42919 int ecode6 = 0 ;
42920 void *argp7 = 0 ;
42921 int res7 = 0 ;
42922 bool temp8 = false ;
42923 PyObject * obj0 = 0 ;
42924 PyObject * obj1 = 0 ;
42925 PyObject * obj2 = 0 ;
42926 PyObject * obj3 = 0 ;
42927 PyObject * obj4 = 0 ;
42928 PyObject * obj5 = 0 ;
42929 PyObject * obj6 = 0 ;
42930 PyObject * obj7 = 0 ;
42931 char * kwnames[] = {
42932 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42933 };
42934
42935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42937 if (!SWIG_IsOK(res1)) {
42938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42939 }
42940 arg1 = reinterpret_cast< wxWindow * >(argp1);
42941 if (obj1) {
42942 ecode2 = SWIG_AsVal_int(obj1, &val2);
42943 if (!SWIG_IsOK(ecode2)) {
42944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
42945 }
42946 arg2 = static_cast< int >(val2);
42947 }
42948 if (obj2) {
42949 {
42950 arg3 = &temp3;
42951 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
42952 }
42953 }
42954 if (obj3) {
42955 {
42956 arg4 = &temp4;
42957 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
42958 }
42959 }
42960 if (obj4) {
42961 {
42962 arg5 = &temp5;
42963 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
42964 }
42965 }
42966 if (obj5) {
42967 ecode6 = SWIG_AsVal_long(obj5, &val6);
42968 if (!SWIG_IsOK(ecode6)) {
42969 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
42970 }
42971 arg6 = static_cast< long >(val6);
42972 }
42973 if (obj6) {
42974 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
42975 if (!SWIG_IsOK(res7)) {
42976 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42977 }
42978 if (!argp7) {
42979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42980 }
42981 arg7 = reinterpret_cast< wxValidator * >(argp7);
42982 }
42983 if (obj7) {
42984 {
42985 arg8 = wxString_in_helper(obj7);
42986 if (arg8 == NULL) SWIG_fail;
42987 temp8 = true;
42988 }
42989 }
42990 {
42991 if (!wxPyCheckForApp()) SWIG_fail;
42992 PyThreadState* __tstate = wxPyBeginAllowThreads();
42993 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
42994 wxPyEndAllowThreads(__tstate);
42995 if (PyErr_Occurred()) SWIG_fail;
42996 }
42997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
42998 {
42999 if (temp8)
43000 delete arg8;
43001 }
43002 return resultobj;
43003fail:
43004 {
43005 if (temp8)
43006 delete arg8;
43007 }
43008 return NULL;
43009}
43010
43011
43012SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43013 PyObject *resultobj = 0;
43014 wxColourPickerCtrl *result = 0 ;
43015
43016 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43017 {
43018 if (!wxPyCheckForApp()) SWIG_fail;
43019 PyThreadState* __tstate = wxPyBeginAllowThreads();
43020 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43021 wxPyEndAllowThreads(__tstate);
43022 if (PyErr_Occurred()) SWIG_fail;
43023 }
43024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43025 return resultobj;
43026fail:
43027 return NULL;
43028}
43029
43030
43031SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43032 PyObject *resultobj = 0;
43033 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43034 wxWindow *arg2 = (wxWindow *) 0 ;
43035 int arg3 ;
43036 wxColour const &arg4_defvalue = *wxBLACK ;
43037 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43038 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43039 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43040 wxSize const &arg6_defvalue = wxDefaultSize ;
43041 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43042 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43043 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43044 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43045 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43046 wxString *arg9 = (wxString *) &arg9_defvalue ;
43047 bool result;
43048 void *argp1 = 0 ;
43049 int res1 = 0 ;
43050 void *argp2 = 0 ;
43051 int res2 = 0 ;
43052 int val3 ;
43053 int ecode3 = 0 ;
43054 wxColour temp4 ;
43055 wxPoint temp5 ;
43056 wxSize temp6 ;
43057 long val7 ;
43058 int ecode7 = 0 ;
43059 void *argp8 = 0 ;
43060 int res8 = 0 ;
43061 bool temp9 = false ;
43062 PyObject * obj0 = 0 ;
43063 PyObject * obj1 = 0 ;
43064 PyObject * obj2 = 0 ;
43065 PyObject * obj3 = 0 ;
43066 PyObject * obj4 = 0 ;
43067 PyObject * obj5 = 0 ;
43068 PyObject * obj6 = 0 ;
43069 PyObject * obj7 = 0 ;
43070 PyObject * obj8 = 0 ;
43071 char * kwnames[] = {
43072 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43073 };
43074
43075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43077 if (!SWIG_IsOK(res1)) {
43078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43079 }
43080 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43081 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43082 if (!SWIG_IsOK(res2)) {
43083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43084 }
43085 arg2 = reinterpret_cast< wxWindow * >(argp2);
43086 ecode3 = SWIG_AsVal_int(obj2, &val3);
43087 if (!SWIG_IsOK(ecode3)) {
43088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43089 }
43090 arg3 = static_cast< int >(val3);
43091 if (obj3) {
43092 {
43093 arg4 = &temp4;
43094 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43095 }
43096 }
43097 if (obj4) {
43098 {
43099 arg5 = &temp5;
43100 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43101 }
43102 }
43103 if (obj5) {
43104 {
43105 arg6 = &temp6;
43106 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43107 }
43108 }
43109 if (obj6) {
43110 ecode7 = SWIG_AsVal_long(obj6, &val7);
43111 if (!SWIG_IsOK(ecode7)) {
43112 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43113 }
43114 arg7 = static_cast< long >(val7);
43115 }
43116 if (obj7) {
43117 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43118 if (!SWIG_IsOK(res8)) {
43119 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43120 }
43121 if (!argp8) {
43122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43123 }
43124 arg8 = reinterpret_cast< wxValidator * >(argp8);
43125 }
43126 if (obj8) {
43127 {
43128 arg9 = wxString_in_helper(obj8);
43129 if (arg9 == NULL) SWIG_fail;
43130 temp9 = true;
43131 }
43132 }
43133 {
43134 PyThreadState* __tstate = wxPyBeginAllowThreads();
43135 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43136 wxPyEndAllowThreads(__tstate);
43137 if (PyErr_Occurred()) SWIG_fail;
43138 }
43139 {
43140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43141 }
43142 {
43143 if (temp9)
43144 delete arg9;
43145 }
43146 return resultobj;
43147fail:
43148 {
43149 if (temp9)
43150 delete arg9;
43151 }
43152 return NULL;
43153}
43154
43155
43156SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43157 PyObject *resultobj = 0;
43158 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43159 wxColour result;
43160 void *argp1 = 0 ;
43161 int res1 = 0 ;
43162 PyObject *swig_obj[1] ;
43163
43164 if (!args) SWIG_fail;
43165 swig_obj[0] = args;
43166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43167 if (!SWIG_IsOK(res1)) {
43168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43169 }
43170 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43171 {
43172 PyThreadState* __tstate = wxPyBeginAllowThreads();
43173 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43174 wxPyEndAllowThreads(__tstate);
43175 if (PyErr_Occurred()) SWIG_fail;
43176 }
43177 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43178 return resultobj;
43179fail:
43180 return NULL;
43181}
43182
43183
43184SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43185 PyObject *resultobj = 0;
43186 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43187 wxColour *arg2 = 0 ;
43188 void *argp1 = 0 ;
43189 int res1 = 0 ;
43190 wxColour temp2 ;
43191 PyObject * obj0 = 0 ;
43192 PyObject * obj1 = 0 ;
43193 char * kwnames[] = {
43194 (char *) "self",(char *) "col", NULL
43195 };
43196
43197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43199 if (!SWIG_IsOK(res1)) {
43200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43201 }
43202 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43203 {
43204 arg2 = &temp2;
43205 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43206 }
43207 {
43208 PyThreadState* __tstate = wxPyBeginAllowThreads();
43209 (arg1)->SetColour((wxColour const &)*arg2);
43210 wxPyEndAllowThreads(__tstate);
43211 if (PyErr_Occurred()) SWIG_fail;
43212 }
43213 resultobj = SWIG_Py_Void();
43214 return resultobj;
43215fail:
43216 return NULL;
43217}
43218
43219
43220SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43221 PyObject *obj;
43222 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43223 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43224 return SWIG_Py_Void();
43225}
43226
43227SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43228 return SWIG_Python_InitShadowInstance(args);
43229}
43230
43231SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43232 PyObject *resultobj = 0;
43233 wxObject *arg1 = (wxObject *) 0 ;
43234 int arg2 ;
43235 wxColour *arg3 = 0 ;
43236 wxColourPickerEvent *result = 0 ;
43237 void *argp1 = 0 ;
43238 int res1 = 0 ;
43239 int val2 ;
43240 int ecode2 = 0 ;
43241 wxColour temp3 ;
43242 PyObject * obj0 = 0 ;
43243 PyObject * obj1 = 0 ;
43244 PyObject * obj2 = 0 ;
43245 char * kwnames[] = {
43246 (char *) "generator",(char *) "id",(char *) "col", NULL
43247 };
43248
43249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43251 if (!SWIG_IsOK(res1)) {
43252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43253 }
43254 arg1 = reinterpret_cast< wxObject * >(argp1);
43255 ecode2 = SWIG_AsVal_int(obj1, &val2);
43256 if (!SWIG_IsOK(ecode2)) {
43257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43258 }
43259 arg2 = static_cast< int >(val2);
43260 {
43261 arg3 = &temp3;
43262 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43263 }
43264 {
43265 PyThreadState* __tstate = wxPyBeginAllowThreads();
43266 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43267 wxPyEndAllowThreads(__tstate);
43268 if (PyErr_Occurred()) SWIG_fail;
43269 }
43270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43271 return resultobj;
43272fail:
43273 return NULL;
43274}
43275
43276
43277SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43278 PyObject *resultobj = 0;
43279 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43280 wxColour result;
43281 void *argp1 = 0 ;
43282 int res1 = 0 ;
43283 PyObject *swig_obj[1] ;
43284
43285 if (!args) SWIG_fail;
43286 swig_obj[0] = args;
43287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43288 if (!SWIG_IsOK(res1)) {
43289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43290 }
43291 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43292 {
43293 PyThreadState* __tstate = wxPyBeginAllowThreads();
43294 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43295 wxPyEndAllowThreads(__tstate);
43296 if (PyErr_Occurred()) SWIG_fail;
43297 }
43298 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43299 return resultobj;
43300fail:
43301 return NULL;
43302}
43303
43304
43305SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43306 PyObject *resultobj = 0;
43307 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43308 wxColour *arg2 = 0 ;
43309 void *argp1 = 0 ;
43310 int res1 = 0 ;
43311 wxColour temp2 ;
43312 PyObject * obj0 = 0 ;
43313 PyObject * obj1 = 0 ;
43314 char * kwnames[] = {
43315 (char *) "self",(char *) "c", NULL
43316 };
43317
43318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43320 if (!SWIG_IsOK(res1)) {
43321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43322 }
43323 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43324 {
43325 arg2 = &temp2;
43326 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43327 }
43328 {
43329 PyThreadState* __tstate = wxPyBeginAllowThreads();
43330 (arg1)->SetColour((wxColour const &)*arg2);
43331 wxPyEndAllowThreads(__tstate);
43332 if (PyErr_Occurred()) SWIG_fail;
43333 }
43334 resultobj = SWIG_Py_Void();
43335 return resultobj;
43336fail:
43337 return NULL;
43338}
43339
43340
43341SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43342 PyObject *obj;
43343 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43344 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43345 return SWIG_Py_Void();
43346}
43347
43348SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43349 return SWIG_Python_InitShadowInstance(args);
43350}
43351
43352SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43353 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43354 return 1;
43355}
43356
43357
43358SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43359 PyObject *pyobj = 0;
43360
43361 {
43362#if wxUSE_UNICODE
43363 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43364#else
43365 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43366#endif
43367 }
43368 return pyobj;
43369}
43370
43371
43372SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43373 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43374 return 1;
43375}
43376
43377
43378SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43379 PyObject *pyobj = 0;
43380
43381 {
43382#if wxUSE_UNICODE
43383 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43384#else
43385 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43386#endif
43387 }
43388 return pyobj;
43389}
43390
43391
43392SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43393 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43394 return 1;
43395}
43396
43397
43398SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43399 PyObject *pyobj = 0;
43400
43401 {
43402#if wxUSE_UNICODE
43403 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43404#else
43405 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43406#endif
43407 }
43408 return pyobj;
43409}
43410
43411
43412SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43413 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43414 return 1;
43415}
43416
43417
43418SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43419 PyObject *pyobj = 0;
43420
43421 {
43422#if wxUSE_UNICODE
43423 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43424#else
43425 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43426#endif
43427 }
43428 return pyobj;
43429}
43430
43431
43432SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43433 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43434 return 1;
43435}
43436
43437
43438SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43439 PyObject *pyobj = 0;
43440
43441 {
43442#if wxUSE_UNICODE
43443 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43444#else
43445 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43446#endif
43447 }
43448 return pyobj;
43449}
43450
43451
43452SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43453 PyObject *resultobj = 0;
43454 wxWindow *arg1 = (wxWindow *) 0 ;
43455 int arg2 = (int) -1 ;
43456 wxString const &arg3_defvalue = wxPyEmptyString ;
43457 wxString *arg3 = (wxString *) &arg3_defvalue ;
43458 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43459 wxString *arg4 = (wxString *) &arg4_defvalue ;
43460 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43461 wxString *arg5 = (wxString *) &arg5_defvalue ;
43462 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43463 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43464 wxSize const &arg7_defvalue = wxDefaultSize ;
43465 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43466 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43467 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43468 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43469 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43470 wxString *arg10 = (wxString *) &arg10_defvalue ;
43471 wxFilePickerCtrl *result = 0 ;
43472 void *argp1 = 0 ;
43473 int res1 = 0 ;
43474 int val2 ;
43475 int ecode2 = 0 ;
43476 bool temp3 = false ;
43477 bool temp4 = false ;
43478 bool temp5 = false ;
43479 wxPoint temp6 ;
43480 wxSize temp7 ;
43481 long val8 ;
43482 int ecode8 = 0 ;
43483 void *argp9 = 0 ;
43484 int res9 = 0 ;
43485 bool temp10 = false ;
43486 PyObject * obj0 = 0 ;
43487 PyObject * obj1 = 0 ;
43488 PyObject * obj2 = 0 ;
43489 PyObject * obj3 = 0 ;
43490 PyObject * obj4 = 0 ;
43491 PyObject * obj5 = 0 ;
43492 PyObject * obj6 = 0 ;
43493 PyObject * obj7 = 0 ;
43494 PyObject * obj8 = 0 ;
43495 PyObject * obj9 = 0 ;
43496 char * kwnames[] = {
43497 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43498 };
43499
43500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43502 if (!SWIG_IsOK(res1)) {
43503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43504 }
43505 arg1 = reinterpret_cast< wxWindow * >(argp1);
43506 if (obj1) {
43507 ecode2 = SWIG_AsVal_int(obj1, &val2);
43508 if (!SWIG_IsOK(ecode2)) {
43509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43510 }
43511 arg2 = static_cast< int >(val2);
43512 }
43513 if (obj2) {
43514 {
43515 arg3 = wxString_in_helper(obj2);
43516 if (arg3 == NULL) SWIG_fail;
43517 temp3 = true;
43518 }
43519 }
43520 if (obj3) {
43521 {
43522 arg4 = wxString_in_helper(obj3);
43523 if (arg4 == NULL) SWIG_fail;
43524 temp4 = true;
43525 }
43526 }
43527 if (obj4) {
43528 {
43529 arg5 = wxString_in_helper(obj4);
43530 if (arg5 == NULL) SWIG_fail;
43531 temp5 = true;
43532 }
43533 }
43534 if (obj5) {
43535 {
43536 arg6 = &temp6;
43537 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43538 }
43539 }
43540 if (obj6) {
43541 {
43542 arg7 = &temp7;
43543 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43544 }
43545 }
43546 if (obj7) {
43547 ecode8 = SWIG_AsVal_long(obj7, &val8);
43548 if (!SWIG_IsOK(ecode8)) {
43549 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43550 }
43551 arg8 = static_cast< long >(val8);
43552 }
43553 if (obj8) {
43554 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43555 if (!SWIG_IsOK(res9)) {
43556 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43557 }
43558 if (!argp9) {
43559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43560 }
43561 arg9 = reinterpret_cast< wxValidator * >(argp9);
43562 }
43563 if (obj9) {
43564 {
43565 arg10 = wxString_in_helper(obj9);
43566 if (arg10 == NULL) SWIG_fail;
43567 temp10 = true;
43568 }
43569 }
43570 {
43571 if (!wxPyCheckForApp()) SWIG_fail;
43572 PyThreadState* __tstate = wxPyBeginAllowThreads();
43573 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);
43574 wxPyEndAllowThreads(__tstate);
43575 if (PyErr_Occurred()) SWIG_fail;
43576 }
43577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43578 {
43579 if (temp3)
43580 delete arg3;
43581 }
43582 {
43583 if (temp4)
43584 delete arg4;
43585 }
43586 {
43587 if (temp5)
43588 delete arg5;
43589 }
43590 {
43591 if (temp10)
43592 delete arg10;
43593 }
43594 return resultobj;
43595fail:
43596 {
43597 if (temp3)
43598 delete arg3;
43599 }
43600 {
43601 if (temp4)
43602 delete arg4;
43603 }
43604 {
43605 if (temp5)
43606 delete arg5;
43607 }
43608 {
43609 if (temp10)
43610 delete arg10;
43611 }
43612 return NULL;
43613}
43614
43615
43616SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43617 PyObject *resultobj = 0;
43618 wxFilePickerCtrl *result = 0 ;
43619
43620 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43621 {
43622 if (!wxPyCheckForApp()) SWIG_fail;
43623 PyThreadState* __tstate = wxPyBeginAllowThreads();
43624 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43625 wxPyEndAllowThreads(__tstate);
43626 if (PyErr_Occurred()) SWIG_fail;
43627 }
43628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43629 return resultobj;
43630fail:
43631 return NULL;
43632}
43633
43634
43635SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43636 PyObject *resultobj = 0;
43637 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43638 wxWindow *arg2 = (wxWindow *) 0 ;
43639 int arg3 = (int) -1 ;
43640 wxString const &arg4_defvalue = wxPyEmptyString ;
43641 wxString *arg4 = (wxString *) &arg4_defvalue ;
43642 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43643 wxString *arg5 = (wxString *) &arg5_defvalue ;
43644 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43645 wxString *arg6 = (wxString *) &arg6_defvalue ;
43646 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43647 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43648 wxSize const &arg8_defvalue = wxDefaultSize ;
43649 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43650 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43651 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43652 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43653 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43654 wxString *arg11 = (wxString *) &arg11_defvalue ;
43655 bool result;
43656 void *argp1 = 0 ;
43657 int res1 = 0 ;
43658 void *argp2 = 0 ;
43659 int res2 = 0 ;
43660 int val3 ;
43661 int ecode3 = 0 ;
43662 bool temp4 = false ;
43663 bool temp5 = false ;
43664 bool temp6 = false ;
43665 wxPoint temp7 ;
43666 wxSize temp8 ;
43667 long val9 ;
43668 int ecode9 = 0 ;
43669 void *argp10 = 0 ;
43670 int res10 = 0 ;
43671 bool temp11 = false ;
43672 PyObject * obj0 = 0 ;
43673 PyObject * obj1 = 0 ;
43674 PyObject * obj2 = 0 ;
43675 PyObject * obj3 = 0 ;
43676 PyObject * obj4 = 0 ;
43677 PyObject * obj5 = 0 ;
43678 PyObject * obj6 = 0 ;
43679 PyObject * obj7 = 0 ;
43680 PyObject * obj8 = 0 ;
43681 PyObject * obj9 = 0 ;
43682 PyObject * obj10 = 0 ;
43683 char * kwnames[] = {
43684 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43685 };
43686
43687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43689 if (!SWIG_IsOK(res1)) {
43690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43691 }
43692 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43693 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43694 if (!SWIG_IsOK(res2)) {
43695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43696 }
43697 arg2 = reinterpret_cast< wxWindow * >(argp2);
43698 if (obj2) {
43699 ecode3 = SWIG_AsVal_int(obj2, &val3);
43700 if (!SWIG_IsOK(ecode3)) {
43701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43702 }
43703 arg3 = static_cast< int >(val3);
43704 }
43705 if (obj3) {
43706 {
43707 arg4 = wxString_in_helper(obj3);
43708 if (arg4 == NULL) SWIG_fail;
43709 temp4 = true;
43710 }
43711 }
43712 if (obj4) {
43713 {
43714 arg5 = wxString_in_helper(obj4);
43715 if (arg5 == NULL) SWIG_fail;
43716 temp5 = true;
43717 }
43718 }
43719 if (obj5) {
43720 {
43721 arg6 = wxString_in_helper(obj5);
43722 if (arg6 == NULL) SWIG_fail;
43723 temp6 = true;
43724 }
43725 }
43726 if (obj6) {
43727 {
43728 arg7 = &temp7;
43729 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43730 }
43731 }
43732 if (obj7) {
43733 {
43734 arg8 = &temp8;
43735 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43736 }
43737 }
43738 if (obj8) {
43739 ecode9 = SWIG_AsVal_long(obj8, &val9);
43740 if (!SWIG_IsOK(ecode9)) {
43741 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43742 }
43743 arg9 = static_cast< long >(val9);
43744 }
43745 if (obj9) {
43746 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43747 if (!SWIG_IsOK(res10)) {
43748 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43749 }
43750 if (!argp10) {
43751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43752 }
43753 arg10 = reinterpret_cast< wxValidator * >(argp10);
43754 }
43755 if (obj10) {
43756 {
43757 arg11 = wxString_in_helper(obj10);
43758 if (arg11 == NULL) SWIG_fail;
43759 temp11 = true;
43760 }
43761 }
43762 {
43763 PyThreadState* __tstate = wxPyBeginAllowThreads();
43764 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);
43765 wxPyEndAllowThreads(__tstate);
43766 if (PyErr_Occurred()) SWIG_fail;
43767 }
43768 {
43769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43770 }
43771 {
43772 if (temp4)
43773 delete arg4;
43774 }
43775 {
43776 if (temp5)
43777 delete arg5;
43778 }
43779 {
43780 if (temp6)
43781 delete arg6;
43782 }
43783 {
43784 if (temp11)
43785 delete arg11;
43786 }
43787 return resultobj;
43788fail:
43789 {
43790 if (temp4)
43791 delete arg4;
43792 }
43793 {
43794 if (temp5)
43795 delete arg5;
43796 }
43797 {
43798 if (temp6)
43799 delete arg6;
43800 }
43801 {
43802 if (temp11)
43803 delete arg11;
43804 }
43805 return NULL;
43806}
43807
43808
43809SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43810 PyObject *resultobj = 0;
43811 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43812 wxString result;
43813 void *argp1 = 0 ;
43814 int res1 = 0 ;
43815 PyObject *swig_obj[1] ;
43816
43817 if (!args) SWIG_fail;
43818 swig_obj[0] = args;
43819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43820 if (!SWIG_IsOK(res1)) {
43821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43822 }
43823 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43824 {
43825 PyThreadState* __tstate = wxPyBeginAllowThreads();
43826 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43827 wxPyEndAllowThreads(__tstate);
43828 if (PyErr_Occurred()) SWIG_fail;
43829 }
43830 {
43831#if wxUSE_UNICODE
43832 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43833#else
43834 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43835#endif
43836 }
43837 return resultobj;
43838fail:
43839 return NULL;
43840}
43841
43842
43843SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43844 PyObject *resultobj = 0;
43845 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43846 wxString *arg2 = 0 ;
43847 void *argp1 = 0 ;
43848 int res1 = 0 ;
43849 bool temp2 = false ;
43850 PyObject * obj0 = 0 ;
43851 PyObject * obj1 = 0 ;
43852 char * kwnames[] = {
43853 (char *) "self",(char *) "str", NULL
43854 };
43855
43856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43858 if (!SWIG_IsOK(res1)) {
43859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43860 }
43861 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43862 {
43863 arg2 = wxString_in_helper(obj1);
43864 if (arg2 == NULL) SWIG_fail;
43865 temp2 = true;
43866 }
43867 {
43868 PyThreadState* __tstate = wxPyBeginAllowThreads();
43869 (arg1)->SetPath((wxString const &)*arg2);
43870 wxPyEndAllowThreads(__tstate);
43871 if (PyErr_Occurred()) SWIG_fail;
43872 }
43873 resultobj = SWIG_Py_Void();
43874 {
43875 if (temp2)
43876 delete arg2;
43877 }
43878 return resultobj;
43879fail:
43880 {
43881 if (temp2)
43882 delete arg2;
43883 }
43884 return NULL;
43885}
43886
43887
b02396e8
RD
43888SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43889 PyObject *resultobj = 0;
43890 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43891 wxString *arg2 = 0 ;
43892 bool result;
43893 void *argp1 = 0 ;
43894 int res1 = 0 ;
43895 bool temp2 = false ;
43896 PyObject * obj0 = 0 ;
43897 PyObject * obj1 = 0 ;
43898 char * kwnames[] = {
43899 (char *) "self",(char *) "path", NULL
43900 };
43901
43902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
43903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43904 if (!SWIG_IsOK(res1)) {
43905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43906 }
43907 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43908 {
43909 arg2 = wxString_in_helper(obj1);
43910 if (arg2 == NULL) SWIG_fail;
43911 temp2 = true;
43912 }
43913 {
43914 PyThreadState* __tstate = wxPyBeginAllowThreads();
43915 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
43916 wxPyEndAllowThreads(__tstate);
43917 if (PyErr_Occurred()) SWIG_fail;
43918 }
43919 {
43920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43921 }
43922 {
43923 if (temp2)
43924 delete arg2;
43925 }
43926 return resultobj;
43927fail:
43928 {
43929 if (temp2)
43930 delete arg2;
43931 }
43932 return NULL;
43933}
43934
43935
43936SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43937 PyObject *resultobj = 0;
43938 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43939 wxString result;
43940 void *argp1 = 0 ;
43941 int res1 = 0 ;
43942 PyObject *swig_obj[1] ;
43943
43944 if (!args) SWIG_fail;
43945 swig_obj[0] = args;
43946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43947 if (!SWIG_IsOK(res1)) {
43948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43949 }
43950 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43951 {
43952 PyThreadState* __tstate = wxPyBeginAllowThreads();
43953 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
43954 wxPyEndAllowThreads(__tstate);
43955 if (PyErr_Occurred()) SWIG_fail;
43956 }
43957 {
43958#if wxUSE_UNICODE
43959 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43960#else
43961 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43962#endif
43963 }
43964 return resultobj;
43965fail:
43966 return NULL;
43967}
43968
43969
b850e7f3
RD
43970SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43971 PyObject *obj;
43972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43973 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
43974 return SWIG_Py_Void();
43975}
43976
43977SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43978 return SWIG_Python_InitShadowInstance(args);
43979}
43980
43981SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43982 PyObject *resultobj = 0;
43983 wxWindow *arg1 = (wxWindow *) 0 ;
43984 int arg2 = (int) -1 ;
43985 wxString const &arg3_defvalue = wxPyEmptyString ;
43986 wxString *arg3 = (wxString *) &arg3_defvalue ;
43987 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
43988 wxString *arg4 = (wxString *) &arg4_defvalue ;
43989 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43990 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43991 wxSize const &arg6_defvalue = wxDefaultSize ;
43992 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43993 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
43994 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43995 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43996 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
43997 wxString *arg9 = (wxString *) &arg9_defvalue ;
43998 wxDirPickerCtrl *result = 0 ;
43999 void *argp1 = 0 ;
44000 int res1 = 0 ;
44001 int val2 ;
44002 int ecode2 = 0 ;
44003 bool temp3 = false ;
44004 bool temp4 = false ;
44005 wxPoint temp5 ;
44006 wxSize temp6 ;
44007 long val7 ;
44008 int ecode7 = 0 ;
44009 void *argp8 = 0 ;
44010 int res8 = 0 ;
44011 bool temp9 = false ;
44012 PyObject * obj0 = 0 ;
44013 PyObject * obj1 = 0 ;
44014 PyObject * obj2 = 0 ;
44015 PyObject * obj3 = 0 ;
44016 PyObject * obj4 = 0 ;
44017 PyObject * obj5 = 0 ;
44018 PyObject * obj6 = 0 ;
44019 PyObject * obj7 = 0 ;
44020 PyObject * obj8 = 0 ;
44021 char * kwnames[] = {
44022 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44023 };
44024
44025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44027 if (!SWIG_IsOK(res1)) {
44028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44029 }
44030 arg1 = reinterpret_cast< wxWindow * >(argp1);
44031 if (obj1) {
44032 ecode2 = SWIG_AsVal_int(obj1, &val2);
44033 if (!SWIG_IsOK(ecode2)) {
44034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44035 }
44036 arg2 = static_cast< int >(val2);
44037 }
44038 if (obj2) {
44039 {
44040 arg3 = wxString_in_helper(obj2);
44041 if (arg3 == NULL) SWIG_fail;
44042 temp3 = true;
44043 }
44044 }
44045 if (obj3) {
44046 {
44047 arg4 = wxString_in_helper(obj3);
44048 if (arg4 == NULL) SWIG_fail;
44049 temp4 = true;
44050 }
44051 }
44052 if (obj4) {
44053 {
44054 arg5 = &temp5;
44055 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44056 }
44057 }
44058 if (obj5) {
44059 {
44060 arg6 = &temp6;
44061 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44062 }
44063 }
44064 if (obj6) {
44065 ecode7 = SWIG_AsVal_long(obj6, &val7);
44066 if (!SWIG_IsOK(ecode7)) {
44067 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44068 }
44069 arg7 = static_cast< long >(val7);
44070 }
44071 if (obj7) {
44072 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44073 if (!SWIG_IsOK(res8)) {
44074 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44075 }
44076 if (!argp8) {
44077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44078 }
44079 arg8 = reinterpret_cast< wxValidator * >(argp8);
44080 }
44081 if (obj8) {
44082 {
44083 arg9 = wxString_in_helper(obj8);
44084 if (arg9 == NULL) SWIG_fail;
44085 temp9 = true;
44086 }
44087 }
44088 {
44089 if (!wxPyCheckForApp()) SWIG_fail;
44090 PyThreadState* __tstate = wxPyBeginAllowThreads();
44091 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);
44092 wxPyEndAllowThreads(__tstate);
44093 if (PyErr_Occurred()) SWIG_fail;
44094 }
44095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44096 {
44097 if (temp3)
44098 delete arg3;
44099 }
44100 {
44101 if (temp4)
44102 delete arg4;
44103 }
44104 {
44105 if (temp9)
44106 delete arg9;
44107 }
44108 return resultobj;
44109fail:
44110 {
44111 if (temp3)
44112 delete arg3;
44113 }
44114 {
44115 if (temp4)
44116 delete arg4;
44117 }
44118 {
44119 if (temp9)
44120 delete arg9;
44121 }
44122 return NULL;
44123}
44124
44125
44126SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44127 PyObject *resultobj = 0;
44128 wxDirPickerCtrl *result = 0 ;
44129
44130 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44131 {
44132 if (!wxPyCheckForApp()) SWIG_fail;
44133 PyThreadState* __tstate = wxPyBeginAllowThreads();
44134 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44135 wxPyEndAllowThreads(__tstate);
44136 if (PyErr_Occurred()) SWIG_fail;
44137 }
44138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44139 return resultobj;
44140fail:
44141 return NULL;
44142}
44143
44144
44145SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44146 PyObject *resultobj = 0;
44147 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44148 wxWindow *arg2 = (wxWindow *) 0 ;
44149 int arg3 = (int) -1 ;
44150 wxString const &arg4_defvalue = wxPyEmptyString ;
44151 wxString *arg4 = (wxString *) &arg4_defvalue ;
44152 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44153 wxString *arg5 = (wxString *) &arg5_defvalue ;
44154 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44155 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44156 wxSize const &arg7_defvalue = wxDefaultSize ;
44157 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44158 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44159 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44160 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44161 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44162 wxString *arg10 = (wxString *) &arg10_defvalue ;
44163 bool result;
44164 void *argp1 = 0 ;
44165 int res1 = 0 ;
44166 void *argp2 = 0 ;
44167 int res2 = 0 ;
44168 int val3 ;
44169 int ecode3 = 0 ;
44170 bool temp4 = false ;
44171 bool temp5 = false ;
44172 wxPoint temp6 ;
44173 wxSize temp7 ;
44174 long val8 ;
44175 int ecode8 = 0 ;
44176 void *argp9 = 0 ;
44177 int res9 = 0 ;
44178 bool temp10 = false ;
44179 PyObject * obj0 = 0 ;
44180 PyObject * obj1 = 0 ;
44181 PyObject * obj2 = 0 ;
44182 PyObject * obj3 = 0 ;
44183 PyObject * obj4 = 0 ;
44184 PyObject * obj5 = 0 ;
44185 PyObject * obj6 = 0 ;
44186 PyObject * obj7 = 0 ;
44187 PyObject * obj8 = 0 ;
44188 PyObject * obj9 = 0 ;
44189 char * kwnames[] = {
44190 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44191 };
44192
44193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44195 if (!SWIG_IsOK(res1)) {
44196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44197 }
44198 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44199 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44200 if (!SWIG_IsOK(res2)) {
44201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44202 }
44203 arg2 = reinterpret_cast< wxWindow * >(argp2);
44204 if (obj2) {
44205 ecode3 = SWIG_AsVal_int(obj2, &val3);
44206 if (!SWIG_IsOK(ecode3)) {
44207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44208 }
44209 arg3 = static_cast< int >(val3);
44210 }
44211 if (obj3) {
44212 {
44213 arg4 = wxString_in_helper(obj3);
44214 if (arg4 == NULL) SWIG_fail;
44215 temp4 = true;
44216 }
44217 }
44218 if (obj4) {
44219 {
44220 arg5 = wxString_in_helper(obj4);
44221 if (arg5 == NULL) SWIG_fail;
44222 temp5 = true;
44223 }
44224 }
44225 if (obj5) {
44226 {
44227 arg6 = &temp6;
44228 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44229 }
44230 }
44231 if (obj6) {
44232 {
44233 arg7 = &temp7;
44234 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44235 }
44236 }
44237 if (obj7) {
44238 ecode8 = SWIG_AsVal_long(obj7, &val8);
44239 if (!SWIG_IsOK(ecode8)) {
44240 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44241 }
44242 arg8 = static_cast< long >(val8);
44243 }
44244 if (obj8) {
44245 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44246 if (!SWIG_IsOK(res9)) {
44247 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44248 }
44249 if (!argp9) {
44250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44251 }
44252 arg9 = reinterpret_cast< wxValidator * >(argp9);
44253 }
44254 if (obj9) {
44255 {
44256 arg10 = wxString_in_helper(obj9);
44257 if (arg10 == NULL) SWIG_fail;
44258 temp10 = true;
44259 }
44260 }
44261 {
44262 PyThreadState* __tstate = wxPyBeginAllowThreads();
44263 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);
44264 wxPyEndAllowThreads(__tstate);
44265 if (PyErr_Occurred()) SWIG_fail;
44266 }
44267 {
44268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44269 }
44270 {
44271 if (temp4)
44272 delete arg4;
44273 }
44274 {
44275 if (temp5)
44276 delete arg5;
44277 }
44278 {
44279 if (temp10)
44280 delete arg10;
44281 }
44282 return resultobj;
44283fail:
44284 {
44285 if (temp4)
44286 delete arg4;
44287 }
44288 {
44289 if (temp5)
44290 delete arg5;
44291 }
44292 {
44293 if (temp10)
44294 delete arg10;
44295 }
44296 return NULL;
44297}
44298
44299
44300SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44301 PyObject *resultobj = 0;
44302 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44303 wxString result;
44304 void *argp1 = 0 ;
44305 int res1 = 0 ;
44306 PyObject *swig_obj[1] ;
44307
44308 if (!args) SWIG_fail;
44309 swig_obj[0] = args;
44310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44311 if (!SWIG_IsOK(res1)) {
44312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44313 }
44314 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44315 {
44316 PyThreadState* __tstate = wxPyBeginAllowThreads();
44317 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44318 wxPyEndAllowThreads(__tstate);
44319 if (PyErr_Occurred()) SWIG_fail;
44320 }
44321 {
44322#if wxUSE_UNICODE
44323 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44324#else
44325 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44326#endif
44327 }
44328 return resultobj;
44329fail:
44330 return NULL;
44331}
44332
44333
44334SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44335 PyObject *resultobj = 0;
44336 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44337 wxString *arg2 = 0 ;
44338 void *argp1 = 0 ;
44339 int res1 = 0 ;
44340 bool temp2 = false ;
44341 PyObject * obj0 = 0 ;
44342 PyObject * obj1 = 0 ;
44343 char * kwnames[] = {
44344 (char *) "self",(char *) "str", NULL
44345 };
44346
44347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44349 if (!SWIG_IsOK(res1)) {
44350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44351 }
44352 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44353 {
44354 arg2 = wxString_in_helper(obj1);
44355 if (arg2 == NULL) SWIG_fail;
44356 temp2 = true;
44357 }
44358 {
44359 PyThreadState* __tstate = wxPyBeginAllowThreads();
44360 (arg1)->SetPath((wxString const &)*arg2);
44361 wxPyEndAllowThreads(__tstate);
44362 if (PyErr_Occurred()) SWIG_fail;
44363 }
44364 resultobj = SWIG_Py_Void();
44365 {
44366 if (temp2)
44367 delete arg2;
44368 }
44369 return resultobj;
44370fail:
44371 {
44372 if (temp2)
44373 delete arg2;
44374 }
44375 return NULL;
44376}
44377
44378
b02396e8
RD
44379SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44380 PyObject *resultobj = 0;
44381 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44382 wxString *arg2 = 0 ;
44383 bool result;
44384 void *argp1 = 0 ;
44385 int res1 = 0 ;
44386 bool temp2 = false ;
44387 PyObject * obj0 = 0 ;
44388 PyObject * obj1 = 0 ;
44389 char * kwnames[] = {
44390 (char *) "self",(char *) "path", NULL
44391 };
44392
44393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44395 if (!SWIG_IsOK(res1)) {
44396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44397 }
44398 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44399 {
44400 arg2 = wxString_in_helper(obj1);
44401 if (arg2 == NULL) SWIG_fail;
44402 temp2 = true;
44403 }
44404 {
44405 PyThreadState* __tstate = wxPyBeginAllowThreads();
44406 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44407 wxPyEndAllowThreads(__tstate);
44408 if (PyErr_Occurred()) SWIG_fail;
44409 }
44410 {
44411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44412 }
44413 {
44414 if (temp2)
44415 delete arg2;
44416 }
44417 return resultobj;
44418fail:
44419 {
44420 if (temp2)
44421 delete arg2;
44422 }
44423 return NULL;
44424}
44425
44426
44427SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44428 PyObject *resultobj = 0;
44429 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44430 wxString result;
44431 void *argp1 = 0 ;
44432 int res1 = 0 ;
44433 PyObject *swig_obj[1] ;
44434
44435 if (!args) SWIG_fail;
44436 swig_obj[0] = args;
44437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44438 if (!SWIG_IsOK(res1)) {
44439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44440 }
44441 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44442 {
44443 PyThreadState* __tstate = wxPyBeginAllowThreads();
44444 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44445 wxPyEndAllowThreads(__tstate);
44446 if (PyErr_Occurred()) SWIG_fail;
44447 }
44448 {
44449#if wxUSE_UNICODE
44450 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44451#else
44452 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44453#endif
44454 }
44455 return resultobj;
44456fail:
44457 return NULL;
44458}
44459
44460
b850e7f3
RD
44461SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44462 PyObject *obj;
44463 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44464 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44465 return SWIG_Py_Void();
44466}
44467
44468SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44469 return SWIG_Python_InitShadowInstance(args);
44470}
44471
44472SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44473 PyObject *resultobj = 0;
44474 wxEventType arg1 ;
44475 wxObject *arg2 = (wxObject *) 0 ;
44476 int arg3 ;
44477 wxString *arg4 = 0 ;
44478 wxFileDirPickerEvent *result = 0 ;
44479 int val1 ;
44480 int ecode1 = 0 ;
44481 void *argp2 = 0 ;
44482 int res2 = 0 ;
44483 int val3 ;
44484 int ecode3 = 0 ;
44485 bool temp4 = false ;
44486 PyObject * obj0 = 0 ;
44487 PyObject * obj1 = 0 ;
44488 PyObject * obj2 = 0 ;
44489 PyObject * obj3 = 0 ;
44490 char * kwnames[] = {
44491 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44492 };
44493
44494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44495 ecode1 = SWIG_AsVal_int(obj0, &val1);
44496 if (!SWIG_IsOK(ecode1)) {
44497 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44498 }
44499 arg1 = static_cast< wxEventType >(val1);
44500 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44501 if (!SWIG_IsOK(res2)) {
44502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44503 }
44504 arg2 = reinterpret_cast< wxObject * >(argp2);
44505 ecode3 = SWIG_AsVal_int(obj2, &val3);
44506 if (!SWIG_IsOK(ecode3)) {
44507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44508 }
44509 arg3 = static_cast< int >(val3);
44510 {
44511 arg4 = wxString_in_helper(obj3);
44512 if (arg4 == NULL) SWIG_fail;
44513 temp4 = true;
44514 }
44515 {
44516 PyThreadState* __tstate = wxPyBeginAllowThreads();
44517 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44518 wxPyEndAllowThreads(__tstate);
44519 if (PyErr_Occurred()) SWIG_fail;
44520 }
44521 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44522 {
44523 if (temp4)
44524 delete arg4;
44525 }
44526 return resultobj;
44527fail:
44528 {
44529 if (temp4)
44530 delete arg4;
44531 }
44532 return NULL;
44533}
44534
44535
44536SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44537 PyObject *resultobj = 0;
44538 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44539 wxString result;
44540 void *argp1 = 0 ;
44541 int res1 = 0 ;
44542 PyObject *swig_obj[1] ;
44543
44544 if (!args) SWIG_fail;
44545 swig_obj[0] = args;
44546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44547 if (!SWIG_IsOK(res1)) {
44548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44549 }
44550 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44551 {
44552 PyThreadState* __tstate = wxPyBeginAllowThreads();
44553 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44554 wxPyEndAllowThreads(__tstate);
44555 if (PyErr_Occurred()) SWIG_fail;
44556 }
44557 {
44558#if wxUSE_UNICODE
44559 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44560#else
44561 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44562#endif
44563 }
44564 return resultobj;
44565fail:
44566 return NULL;
44567}
44568
44569
44570SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44571 PyObject *resultobj = 0;
44572 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44573 wxString *arg2 = 0 ;
44574 void *argp1 = 0 ;
44575 int res1 = 0 ;
44576 bool temp2 = false ;
44577 PyObject * obj0 = 0 ;
44578 PyObject * obj1 = 0 ;
44579 char * kwnames[] = {
44580 (char *) "self",(char *) "p", NULL
44581 };
44582
44583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44585 if (!SWIG_IsOK(res1)) {
44586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44587 }
44588 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44589 {
44590 arg2 = wxString_in_helper(obj1);
44591 if (arg2 == NULL) SWIG_fail;
44592 temp2 = true;
44593 }
44594 {
44595 PyThreadState* __tstate = wxPyBeginAllowThreads();
44596 (arg1)->SetPath((wxString const &)*arg2);
44597 wxPyEndAllowThreads(__tstate);
44598 if (PyErr_Occurred()) SWIG_fail;
44599 }
44600 resultobj = SWIG_Py_Void();
44601 {
44602 if (temp2)
44603 delete arg2;
44604 }
44605 return resultobj;
44606fail:
44607 {
44608 if (temp2)
44609 delete arg2;
44610 }
44611 return NULL;
44612}
44613
44614
44615SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44616 PyObject *obj;
44617 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44618 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44619 return SWIG_Py_Void();
44620}
44621
44622SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44623 return SWIG_Python_InitShadowInstance(args);
44624}
44625
44626SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44627 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44628 return 1;
44629}
44630
44631
44632SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44633 PyObject *pyobj = 0;
44634
44635 {
44636#if wxUSE_UNICODE
44637 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44638#else
44639 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44640#endif
44641 }
44642 return pyobj;
44643}
44644
44645
44646SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44647 PyObject *resultobj = 0;
44648 wxWindow *arg1 = (wxWindow *) 0 ;
44649 int arg2 = (int) -1 ;
44650 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44651 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44652 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44653 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44654 wxSize const &arg5_defvalue = wxDefaultSize ;
44655 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44656 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44657 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44658 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44659 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44660 wxString *arg8 = (wxString *) &arg8_defvalue ;
44661 wxFontPickerCtrl *result = 0 ;
44662 void *argp1 = 0 ;
44663 int res1 = 0 ;
44664 int val2 ;
44665 int ecode2 = 0 ;
44666 void *argp3 = 0 ;
44667 int res3 = 0 ;
44668 wxPoint temp4 ;
44669 wxSize temp5 ;
44670 long val6 ;
44671 int ecode6 = 0 ;
44672 void *argp7 = 0 ;
44673 int res7 = 0 ;
44674 bool temp8 = false ;
44675 PyObject * obj0 = 0 ;
44676 PyObject * obj1 = 0 ;
44677 PyObject * obj2 = 0 ;
44678 PyObject * obj3 = 0 ;
44679 PyObject * obj4 = 0 ;
44680 PyObject * obj5 = 0 ;
44681 PyObject * obj6 = 0 ;
44682 PyObject * obj7 = 0 ;
44683 char * kwnames[] = {
44684 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44685 };
44686
44687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44689 if (!SWIG_IsOK(res1)) {
44690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44691 }
44692 arg1 = reinterpret_cast< wxWindow * >(argp1);
44693 if (obj1) {
44694 ecode2 = SWIG_AsVal_int(obj1, &val2);
44695 if (!SWIG_IsOK(ecode2)) {
44696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44697 }
44698 arg2 = static_cast< int >(val2);
44699 }
44700 if (obj2) {
44701 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44702 if (!SWIG_IsOK(res3)) {
44703 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44704 }
44705 if (!argp3) {
44706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44707 }
44708 arg3 = reinterpret_cast< wxFont * >(argp3);
44709 }
44710 if (obj3) {
44711 {
44712 arg4 = &temp4;
44713 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44714 }
44715 }
44716 if (obj4) {
44717 {
44718 arg5 = &temp5;
44719 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44720 }
44721 }
44722 if (obj5) {
44723 ecode6 = SWIG_AsVal_long(obj5, &val6);
44724 if (!SWIG_IsOK(ecode6)) {
44725 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44726 }
44727 arg6 = static_cast< long >(val6);
44728 }
44729 if (obj6) {
44730 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44731 if (!SWIG_IsOK(res7)) {
44732 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44733 }
44734 if (!argp7) {
44735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44736 }
44737 arg7 = reinterpret_cast< wxValidator * >(argp7);
44738 }
44739 if (obj7) {
44740 {
44741 arg8 = wxString_in_helper(obj7);
44742 if (arg8 == NULL) SWIG_fail;
44743 temp8 = true;
44744 }
44745 }
44746 {
44747 if (!wxPyCheckForApp()) SWIG_fail;
44748 PyThreadState* __tstate = wxPyBeginAllowThreads();
44749 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44750 wxPyEndAllowThreads(__tstate);
44751 if (PyErr_Occurred()) SWIG_fail;
44752 }
44753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44754 {
44755 if (temp8)
44756 delete arg8;
44757 }
44758 return resultobj;
44759fail:
44760 {
44761 if (temp8)
44762 delete arg8;
44763 }
44764 return NULL;
44765}
44766
44767
44768SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44769 PyObject *resultobj = 0;
44770 wxFontPickerCtrl *result = 0 ;
44771
44772 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44773 {
44774 if (!wxPyCheckForApp()) SWIG_fail;
44775 PyThreadState* __tstate = wxPyBeginAllowThreads();
44776 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44777 wxPyEndAllowThreads(__tstate);
44778 if (PyErr_Occurred()) SWIG_fail;
44779 }
44780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44781 return resultobj;
44782fail:
44783 return NULL;
44784}
44785
44786
44787SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44788 PyObject *resultobj = 0;
44789 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44790 wxWindow *arg2 = (wxWindow *) 0 ;
44791 int arg3 = (int) -1 ;
44792 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44793 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44794 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44795 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44796 wxSize const &arg6_defvalue = wxDefaultSize ;
44797 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44798 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44799 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44800 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44801 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44802 wxString *arg9 = (wxString *) &arg9_defvalue ;
44803 bool result;
44804 void *argp1 = 0 ;
44805 int res1 = 0 ;
44806 void *argp2 = 0 ;
44807 int res2 = 0 ;
44808 int val3 ;
44809 int ecode3 = 0 ;
44810 void *argp4 = 0 ;
44811 int res4 = 0 ;
44812 wxPoint temp5 ;
44813 wxSize temp6 ;
44814 long val7 ;
44815 int ecode7 = 0 ;
44816 void *argp8 = 0 ;
44817 int res8 = 0 ;
44818 bool temp9 = false ;
44819 PyObject * obj0 = 0 ;
44820 PyObject * obj1 = 0 ;
44821 PyObject * obj2 = 0 ;
44822 PyObject * obj3 = 0 ;
44823 PyObject * obj4 = 0 ;
44824 PyObject * obj5 = 0 ;
44825 PyObject * obj6 = 0 ;
44826 PyObject * obj7 = 0 ;
44827 PyObject * obj8 = 0 ;
44828 char * kwnames[] = {
44829 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44830 };
44831
44832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44834 if (!SWIG_IsOK(res1)) {
44835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44836 }
44837 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44838 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44839 if (!SWIG_IsOK(res2)) {
44840 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44841 }
44842 arg2 = reinterpret_cast< wxWindow * >(argp2);
44843 if (obj2) {
44844 ecode3 = SWIG_AsVal_int(obj2, &val3);
44845 if (!SWIG_IsOK(ecode3)) {
44846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44847 }
44848 arg3 = static_cast< int >(val3);
44849 }
44850 if (obj3) {
44851 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44852 if (!SWIG_IsOK(res4)) {
44853 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44854 }
44855 if (!argp4) {
44856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44857 }
44858 arg4 = reinterpret_cast< wxFont * >(argp4);
44859 }
44860 if (obj4) {
44861 {
44862 arg5 = &temp5;
44863 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44864 }
44865 }
44866 if (obj5) {
44867 {
44868 arg6 = &temp6;
44869 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44870 }
44871 }
44872 if (obj6) {
44873 ecode7 = SWIG_AsVal_long(obj6, &val7);
44874 if (!SWIG_IsOK(ecode7)) {
44875 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
44876 }
44877 arg7 = static_cast< long >(val7);
44878 }
44879 if (obj7) {
44880 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44881 if (!SWIG_IsOK(res8)) {
44882 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44883 }
44884 if (!argp8) {
44885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44886 }
44887 arg8 = reinterpret_cast< wxValidator * >(argp8);
44888 }
44889 if (obj8) {
44890 {
44891 arg9 = wxString_in_helper(obj8);
44892 if (arg9 == NULL) SWIG_fail;
44893 temp9 = true;
44894 }
44895 }
44896 {
44897 PyThreadState* __tstate = wxPyBeginAllowThreads();
44898 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44899 wxPyEndAllowThreads(__tstate);
44900 if (PyErr_Occurred()) SWIG_fail;
44901 }
44902 {
44903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44904 }
44905 {
44906 if (temp9)
44907 delete arg9;
44908 }
44909 return resultobj;
44910fail:
44911 {
44912 if (temp9)
44913 delete arg9;
44914 }
44915 return NULL;
44916}
44917
44918
44919SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44920 PyObject *resultobj = 0;
44921 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44922 wxFont result;
44923 void *argp1 = 0 ;
44924 int res1 = 0 ;
44925 PyObject *swig_obj[1] ;
44926
44927 if (!args) SWIG_fail;
44928 swig_obj[0] = args;
44929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44930 if (!SWIG_IsOK(res1)) {
44931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44932 }
44933 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44934 {
44935 PyThreadState* __tstate = wxPyBeginAllowThreads();
44936 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
44937 wxPyEndAllowThreads(__tstate);
44938 if (PyErr_Occurred()) SWIG_fail;
44939 }
44940 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44941 return resultobj;
44942fail:
44943 return NULL;
44944}
44945
44946
44947SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44948 PyObject *resultobj = 0;
44949 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44950 wxFont *arg2 = 0 ;
44951 void *argp1 = 0 ;
44952 int res1 = 0 ;
44953 void *argp2 = 0 ;
44954 int res2 = 0 ;
44955 PyObject * obj0 = 0 ;
44956 PyObject * obj1 = 0 ;
44957 char * kwnames[] = {
44958 (char *) "self",(char *) "f", NULL
44959 };
44960
44961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
44962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44963 if (!SWIG_IsOK(res1)) {
44964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44965 }
44966 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44967 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
44968 if (!SWIG_IsOK(res2)) {
44969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44970 }
44971 if (!argp2) {
44972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44973 }
44974 arg2 = reinterpret_cast< wxFont * >(argp2);
44975 {
44976 PyThreadState* __tstate = wxPyBeginAllowThreads();
44977 (arg1)->SetSelectedFont((wxFont const &)*arg2);
44978 wxPyEndAllowThreads(__tstate);
44979 if (PyErr_Occurred()) SWIG_fail;
44980 }
44981 resultobj = SWIG_Py_Void();
44982 return resultobj;
44983fail:
44984 return NULL;
44985}
44986
44987
44988SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44989 PyObject *resultobj = 0;
44990 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44991 unsigned int arg2 ;
44992 void *argp1 = 0 ;
44993 int res1 = 0 ;
44994 unsigned int val2 ;
44995 int ecode2 = 0 ;
44996 PyObject * obj0 = 0 ;
44997 PyObject * obj1 = 0 ;
44998 char * kwnames[] = {
44999 (char *) "self",(char *) "max", NULL
45000 };
45001
45002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45004 if (!SWIG_IsOK(res1)) {
45005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45006 }
45007 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45008 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45009 if (!SWIG_IsOK(ecode2)) {
45010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45011 }
45012 arg2 = static_cast< unsigned int >(val2);
45013 {
45014 PyThreadState* __tstate = wxPyBeginAllowThreads();
45015 (arg1)->SetMaxPointSize(arg2);
45016 wxPyEndAllowThreads(__tstate);
45017 if (PyErr_Occurred()) SWIG_fail;
45018 }
45019 resultobj = SWIG_Py_Void();
45020 return resultobj;
45021fail:
45022 return NULL;
45023}
45024
45025
45026SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45027 PyObject *resultobj = 0;
45028 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45029 unsigned int result;
45030 void *argp1 = 0 ;
45031 int res1 = 0 ;
45032 PyObject *swig_obj[1] ;
45033
45034 if (!args) SWIG_fail;
45035 swig_obj[0] = args;
45036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45037 if (!SWIG_IsOK(res1)) {
45038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45039 }
45040 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45041 {
45042 PyThreadState* __tstate = wxPyBeginAllowThreads();
45043 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45044 wxPyEndAllowThreads(__tstate);
45045 if (PyErr_Occurred()) SWIG_fail;
45046 }
45047 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45048 return resultobj;
45049fail:
45050 return NULL;
45051}
45052
45053
45054SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45055 PyObject *obj;
45056 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45057 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45058 return SWIG_Py_Void();
45059}
45060
45061SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45062 return SWIG_Python_InitShadowInstance(args);
45063}
45064
45065SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45066 PyObject *resultobj = 0;
45067 wxObject *arg1 = (wxObject *) 0 ;
45068 int arg2 ;
45069 wxFont *arg3 = 0 ;
45070 wxFontPickerEvent *result = 0 ;
45071 void *argp1 = 0 ;
45072 int res1 = 0 ;
45073 int val2 ;
45074 int ecode2 = 0 ;
45075 void *argp3 = 0 ;
45076 int res3 = 0 ;
45077 PyObject * obj0 = 0 ;
45078 PyObject * obj1 = 0 ;
45079 PyObject * obj2 = 0 ;
45080 char * kwnames[] = {
45081 (char *) "generator",(char *) "id",(char *) "f", NULL
45082 };
45083
45084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45086 if (!SWIG_IsOK(res1)) {
45087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45088 }
45089 arg1 = reinterpret_cast< wxObject * >(argp1);
45090 ecode2 = SWIG_AsVal_int(obj1, &val2);
45091 if (!SWIG_IsOK(ecode2)) {
45092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45093 }
45094 arg2 = static_cast< int >(val2);
45095 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45096 if (!SWIG_IsOK(res3)) {
45097 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45098 }
45099 if (!argp3) {
45100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45101 }
45102 arg3 = reinterpret_cast< wxFont * >(argp3);
45103 {
45104 PyThreadState* __tstate = wxPyBeginAllowThreads();
45105 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45106 wxPyEndAllowThreads(__tstate);
45107 if (PyErr_Occurred()) SWIG_fail;
45108 }
45109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45110 return resultobj;
45111fail:
45112 return NULL;
45113}
45114
45115
45116SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45117 PyObject *resultobj = 0;
45118 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45119 wxFont result;
45120 void *argp1 = 0 ;
45121 int res1 = 0 ;
45122 PyObject *swig_obj[1] ;
45123
45124 if (!args) SWIG_fail;
45125 swig_obj[0] = args;
45126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45127 if (!SWIG_IsOK(res1)) {
45128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45129 }
45130 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45131 {
45132 PyThreadState* __tstate = wxPyBeginAllowThreads();
45133 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45134 wxPyEndAllowThreads(__tstate);
45135 if (PyErr_Occurred()) SWIG_fail;
45136 }
45137 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45138 return resultobj;
45139fail:
45140 return NULL;
45141}
45142
45143
45144SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45145 PyObject *resultobj = 0;
45146 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45147 wxFont *arg2 = 0 ;
45148 void *argp1 = 0 ;
45149 int res1 = 0 ;
45150 void *argp2 = 0 ;
45151 int res2 = 0 ;
45152 PyObject * obj0 = 0 ;
45153 PyObject * obj1 = 0 ;
45154 char * kwnames[] = {
45155 (char *) "self",(char *) "c", NULL
45156 };
45157
45158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45160 if (!SWIG_IsOK(res1)) {
45161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45162 }
45163 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45164 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45165 if (!SWIG_IsOK(res2)) {
45166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45167 }
45168 if (!argp2) {
45169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45170 }
45171 arg2 = reinterpret_cast< wxFont * >(argp2);
45172 {
45173 PyThreadState* __tstate = wxPyBeginAllowThreads();
45174 (arg1)->SetFont((wxFont const &)*arg2);
45175 wxPyEndAllowThreads(__tstate);
45176 if (PyErr_Occurred()) SWIG_fail;
45177 }
45178 resultobj = SWIG_Py_Void();
45179 return resultobj;
45180fail:
45181 return NULL;
45182}
45183
45184
45185SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45186 PyObject *obj;
45187 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45188 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45189 return SWIG_Py_Void();
45190}
45191
45192SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45193 return SWIG_Python_InitShadowInstance(args);
45194}
45195
45196static PyMethodDef SwigMethods[] = {
45197 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45198 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45199 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45200 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45201 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45202 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45203 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45204 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45205 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45206 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45207 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45208 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45209 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45210 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45211 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45212 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45213 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45214 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45215 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45216 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45217 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45218 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45219 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45220 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45221 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45222 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45223 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45224 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45225 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45226 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45227 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45228 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45229 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45230 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45231 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45232 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45233 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45234 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45235 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45236 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45237 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45238 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45239 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45240 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45241 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45242 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45243 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45244 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45245 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45246 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45247 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45248 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45249 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45250 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45251 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45252 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45253 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45254 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45255 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45256 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
45257 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45258 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45259 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45260 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45261 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45262 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45263 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45264 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45265 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45266 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45267 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45268 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45269 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45270 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45271 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45272 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45273 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45274 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45275 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45276 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45277 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45278 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45279 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45280 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45281 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
ae5bc7f3 45282 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
b850e7f3
RD
45283 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45284 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45285 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45286 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45287 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45288 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45289 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45290 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45291 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45292 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45293 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45294 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45295 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45296 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45297 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45298 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45299 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45300 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45301 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45302 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45303 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45304 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45305 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45306 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45307 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45308 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45309 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45310 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45311 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45312 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45313 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45314 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45315 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45316 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45317 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45318 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45319 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45320 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45321 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45322 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45323 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45324 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45325 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45326 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45327 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45328 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45329 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45330 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45331 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45332 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45333 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45334 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45335 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45336 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45337 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45338 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45339 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45340 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45341 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45342 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45343 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45344 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45345 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45346 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45347 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45348 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45349 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45350 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45351 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
45352 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45353 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45354 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45355 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45356 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45357 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45358 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45359 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45360 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45361 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45362 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45363 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45364 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45365 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45366 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45367 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45368 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45369 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45370 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45371 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45372 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45373 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45374 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45375 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45376 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45377 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45378 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45379 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45380 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45381 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45382 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45383 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45384 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45385 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45386 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45387 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45388 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45389 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45390 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45391 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45392 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45393 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45394 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45395 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45396 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45397 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45398 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45399 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45400 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45401 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45402 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45403 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45404 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45405 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45406 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45407 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45408 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 45409 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45410 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45411 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45412 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45413 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45414 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45415 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45416 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45417 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45418 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45419 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45420 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45421 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45422 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45423 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45424 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45425 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45426 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45427 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45428 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45429 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45430 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45431 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45432 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45433 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45434 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45435 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45436 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45437 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45438 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45439 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45440 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45441 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45442 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45443 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45444 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45445 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45446 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45447 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45448 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45449 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45450 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45451 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45452 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45453 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45454 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45455 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45456 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45457 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45458 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45459 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45460 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45461 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45462 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45463 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45464 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45465 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45466 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45467 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45468 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45469 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45470 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45471 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45472 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45473 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45474 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45475 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45476 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45477 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45478 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45479 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45480 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45481 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45482 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45483 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45484 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45485 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45486 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45487 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45488 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45489 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45490 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45491 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45492 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45493 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45494 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45495 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45496 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45497 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45498 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45499 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45500 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45501 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45502 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45503 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45504 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45505 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45506 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45507 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45508 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45509 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45510 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45511 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45512 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45513 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45514 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45515 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45516 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45517 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45518 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45519 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45520 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45521 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45522 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45523 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45524 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45525 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45526 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45527 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45528 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45529 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45530 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45532 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45533 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45534 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45535 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45536 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45537 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45538 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45539 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45540 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45541 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45542 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45543 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45544 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45545 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45546 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45547 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45548 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45549 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45550 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45551 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45552 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45553 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45554 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45555 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45556 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45557 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45558 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45559 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45560 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45561 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45562 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45563 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45564 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45565 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45566 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45567 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45568 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45569 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45570 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45571 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45572 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45573 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45574 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45575 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45576 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45577 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 45578 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
e9d6f3a4
RD
45579 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45580 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
0085ce49
RD
45581 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45582 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 45583 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
0085ce49
RD
45584 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45585 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45586 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45587 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45588 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45589 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45590 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45591 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45592 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45593 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45594 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45595 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45596 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45597 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45598 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45599 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45600 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45601 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45602 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45603 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45604 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45605 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45606 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45607 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45608 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45609 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45610 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45611 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45612 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45613 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45614 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45615 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45616 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45617 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45618 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45619 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45620 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45621 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45622 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45623 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45624 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45625 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45626 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45627 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45628 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45629 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45630 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45631 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45632 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45633 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45634 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45635 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45636 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45637 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45638 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45639 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45640 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45641 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45642 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45643 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45644 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45645 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45646 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45647 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45648 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45649 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45650 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45651 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45652 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45653 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45654 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45655 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45656 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45657 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45658 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45659 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45660 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45661 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45662 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45663 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45664 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45665 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45666 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45667 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45668 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45669 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45670 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45671 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45672 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45673 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45674 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45675 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45676 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45677 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45678 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45679 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45680 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45681 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45682 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45683 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45684 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45685 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45686 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45687 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45688 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45689 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45690 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45691 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45692 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45693 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45694 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45695 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45696 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45697 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45698 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45699 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45700 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45701 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45702 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45703 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45704 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45705 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45706 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45707 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45708 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45709 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45710 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45711 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45712 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45713 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45714 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45715 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45716 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45717 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45718 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45719 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45720 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45721 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45722 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45723 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45724 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45725 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45726 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45727 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45728 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45729 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45730 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45731 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45732 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45733 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45734 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45735 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45736 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45737 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45738 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45739 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45740 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45741 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45742 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45743 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45744 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45745 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45746 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45747 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45748 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45749 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45750 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45751 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45752 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45753 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45754 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45755 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45756 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45757 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45758 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45760 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45761 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45762 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45763 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45764 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45765 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45766 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45767 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45768 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45769 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45770 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45771 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45772 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45773 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45774 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45775 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45776 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45777 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45778 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45779 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45780 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45781 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45782 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45783 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45784 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45785 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45786 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45787 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45788 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45789 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45790 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45791 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45792 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45793 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45794 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45795 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45796 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45797 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45798 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45799 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45800 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45801 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45802 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45803 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45804 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45805 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45806 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45807 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45808 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45809 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45810 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45811 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45812 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45813 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45814 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45815 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45816 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45817 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45818 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45819 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45820 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45821 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45822 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45823 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45824 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45825 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45826 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45827 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45828 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45829 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45830 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45831 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45832 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45833 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45834 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45835 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45837 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45838 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45839 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45840 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45842 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45843 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45844 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45845 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45846 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45847 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45848 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45850 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45851 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45852 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45853 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45854 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45855 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45856 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45857 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45858 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45859 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45860 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45861 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
45862 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
45863 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45864 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
45865 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
45866 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45867 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
45868 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45869 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45870 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45871 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45872 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45873 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
45874 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
45875 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
45876 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
45877 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
45878 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
45879 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
45880 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45881 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
45882 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
45883 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45884 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45885 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
45886 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45887 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
45888 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45889 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45890 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45891 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45892 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
45893 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45894 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
45895 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45896 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
45897 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
45898 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45900 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45901 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45902 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45903 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45904 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
45905 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
45906 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45907 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
45908 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
45909 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
45910 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
45911 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45912 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45913 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
45914 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
45915 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45916 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
45917 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45918 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45919 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45920 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
45921 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
45922 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
45923 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
45924 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
45925 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45926 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45927 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
45928 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
45929 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
45930 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
45931 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45932 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
45933 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
45934 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45935 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
45936 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45937 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
45938 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
45939 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 45940 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
0085ce49
RD
45941 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
45942 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45943 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
45944 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
45945 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
45946 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45947 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
45948 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
45949 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45950 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
45951 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45952 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
45953 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45954 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45955 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
45956 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
45957 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
45958 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45959 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
45960 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45961 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45962 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
45963 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
45964 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45965 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
45966 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45967 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
45968 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
45969 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45970 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45971 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45972 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45974 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45975 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45976 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45977 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45978 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45979 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45980 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45981 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45982 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45983 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45984 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45985 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
45986 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
45987 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45988 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45990 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45991 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45992 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45993 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45994 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
45996 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
45997 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
45998 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
45999 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
46000 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
46001 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
46002 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
46003 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46004 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46005 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
46006 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46007 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46008 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
46009 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46010 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
46012 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46013 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46014 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46015 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
46016 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
453fb36b
RD
46017 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
0085ce49
RD
46019 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46020 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
46021 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46022 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
46023 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46024 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
46025 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46027 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46028 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46029 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46031 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46032 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46033 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46034 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
46035 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
0085ce49
RD
46037 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46038 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46039 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46040 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46041 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46042 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46043 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46044 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46045 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46047 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46048 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46049 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46050 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46051 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46052 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46053 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46054 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46055 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46056 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46057 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46058 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46059 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46060 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46061 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46062 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46063 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46064 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46065 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46066 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46067 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46068 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46069 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46070 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46071 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46072 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46073 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46074 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46075 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46076 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46077 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46078 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46079 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46080 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46081 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46082 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46083 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46084 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46085 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46086 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46087 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46088 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46089 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46090 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46091 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46092 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46093 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
46094 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46095 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46096 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46097 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46098 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46099 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46100 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46101 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46102 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46103 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46104 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46105 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46106 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 46107 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
0085ce49
RD
46108 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46109 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46110 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46111 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 46112 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46113 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46114 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46115 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46116 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46117 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46118 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46119 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46120 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46121 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46122 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46123 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46124 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46125 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46126 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46127 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46128 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46129 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46130 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46131 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46132 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46133 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46134 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46135 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46136 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46137 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46138 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46139 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46140 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46141 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46142 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46143 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46144 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46145 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46146 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46147 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46148 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46149 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
46150 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46151 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46152 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46153 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46154 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46155 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46156 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46157 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46158 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46159 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46160 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46161 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46162 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46163 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46164 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46165 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46166 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46167 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46168 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46169 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
46170 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46171 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46172 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46173 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46174 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
10044bf1
RD
46175 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46176 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
46177 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46178 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46179 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46180 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46181 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46182 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46183 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46184 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46185 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46186 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46187 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46188 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46189 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46190 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46191 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46192 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46193 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46194 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46195 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46196 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46197 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46198 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46199 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46200 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46201 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46202 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46203 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46204 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46205 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46206 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46207 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46208 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46209 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46210 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46211 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46212 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46213 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46214 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46215 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46216 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46217 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46218 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46219 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46220 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46221 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46222 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46223 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46224 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46225 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46226 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46227 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46228 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46229 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46230 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46231 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46232 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46233 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
0085ce49
RD
46234 { NULL, NULL, 0, NULL }
46235};
46236
46237
46238/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46239
46240static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46241 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46242}
46243static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46244 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46245}
46246static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46247 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46248}
46249static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46250 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46251}
46252static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46253 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46254}
46255static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46256 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46257}
46258static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46259 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46260}
46261static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46262 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46263}
b850e7f3
RD
46264static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46265 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46266}
46267static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46268 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46269}
46270static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46271 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46272}
0085ce49
RD
46273static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46274 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46275}
46276static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46277 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46278}
46279static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46280 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46281}
0085ce49
RD
46282static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46283 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46284}
34e0a3bb
RD
46285static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
46286 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
46287}
2131d850
RD
46288static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46289 return (void *)((wxEvent *) ((wxPyEvent *) x));
46290}
0085ce49
RD
46291static void *_p_wxListEventTo_p_wxEvent(void *x) {
46292 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46293}
46294static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46295 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46296}
46297static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46298 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46299}
46300static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46301 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46302}
46303static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46304 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46305}
46306static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46307 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46308}
46309static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46310 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46311}
46312static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46313 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46314}
46315static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46316 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46317}
46318static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46319 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46320}
46321static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46322 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46323}
46324static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46325 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46326}
46327static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46328 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46329}
46330static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46331 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46332}
46333static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46334 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46335}
46336static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46337 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46338}
46339static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46340 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46341}
46342static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46343 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46344}
34e0a3bb
RD
46345static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46346 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46347}
0085ce49
RD
46348static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46349 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46350}
46351static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46352 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46353}
46354static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46355 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46356}
46357static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46358 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46359}
46360static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46361 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46362}
704eda0c
RD
46363static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46364 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46365}
0085ce49
RD
46366static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46367 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46368}
46369static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46370 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46371}
46372static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46373 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46374}
46375static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46376 return (void *)((wxEvent *) ((wxShowEvent *) x));
46377}
46378static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46379 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46380}
46381static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46382 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46383}
46384static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46385 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46386}
46387static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46388 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46389}
46390static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46391 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46392}
46393static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46394 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46395}
46396static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46397 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46398}
b850e7f3
RD
46399static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46400 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46401}
46402static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46403 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46404}
46405static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46406 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46407}
46408static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46409 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46410}
0085ce49
RD
46411static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46412 return (void *)((wxItemContainer *) ((wxComboBox *) x));
46413}
46414static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46415 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46416}
46417static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46418 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46419}
46420static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46421 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46422}
46423static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46424 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46425}
46426static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46427 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46428}
46429static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46430 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46431}
46432static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46433 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46434}
46435static void *_p_wxToolBarTo_p_wxControl(void *x) {
46436 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46437}
b850e7f3
RD
46438static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46439 return (void *)((wxControl *) ((wxPickerBase *) x));
46440}
0085ce49
RD
46441static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46442 return (void *)((wxControl *) ((wxToggleButton *) x));
46443}
46444static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46445 return (void *)((wxControl *) ((wxRadioButton *) x));
46446}
46447static void *_p_wxToolbookTo_p_wxControl(void *x) {
46448 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46449}
46450static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46451 return (void *)((wxControl *) ((wxToolBarBase *) x));
46452}
46453static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46454 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46455}
46456static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46457 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46458}
46459static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46460 return (void *)((wxControl *) ((wxComboBox *) x));
46461}
46462static void *_p_wxPyControlTo_p_wxControl(void *x) {
46463 return (void *)((wxControl *) ((wxPyControl *) x));
46464}
46465static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46466 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46467}
46468static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46469 return (void *)((wxControl *) ((wxScrollBar *) x));
46470}
46471static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46472 return (void *)((wxControl *) ((wxControlWithItems *) x));
46473}
46474static void *_p_wxGaugeTo_p_wxControl(void *x) {
46475 return (void *)((wxControl *) ((wxGauge *) x));
46476}
46477static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46478 return (void *)((wxControl *) ((wxStaticLine *) x));
46479}
46480static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46481 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46482}
46483static void *_p_wxListbookTo_p_wxControl(void *x) {
46484 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46485}
704eda0c
RD
46486static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46487 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46488}
0085ce49
RD
46489static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46490 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46491}
46492static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46493 return (void *)((wxControl *) ((wxCheckBox *) x));
46494}
46495static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46496 return (void *)((wxControl *) ((wxRadioBox *) x));
46497}
46498static void *_p_wxChoiceTo_p_wxControl(void *x) {
46499 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46500}
46501static void *_p_wxListBoxTo_p_wxControl(void *x) {
46502 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46503}
46504static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46505 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46506}
46507static void *_p_wxListViewTo_p_wxControl(void *x) {
46508 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46509}
46510static void *_p_wxNotebookTo_p_wxControl(void *x) {
46511 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46512}
46513static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46514 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46515}
46516static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46517 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46518}
46519static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46520 return (void *)((wxControl *) ((wxStaticText *) x));
46521}
46522static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46523 return (void *)((wxControl *) ((wxStaticBox *) x));
46524}
46525static void *_p_wxSliderTo_p_wxControl(void *x) {
46526 return (void *)((wxControl *) ((wxSlider *) x));
46527}
46528static void *_p_wxTreebookTo_p_wxControl(void *x) {
46529 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46530}
46531static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46532 return (void *)((wxControl *) ((wxSpinButton *) x));
46533}
46534static void *_p_wxButtonTo_p_wxControl(void *x) {
46535 return (void *)((wxControl *) ((wxButton *) x));
46536}
46537static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46538 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46539}
46540static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46541 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46542}
46543static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46544 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46545}
b850e7f3
RD
46546static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46547 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46548}
46549static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46550 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46551}
46552static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46553 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46554}
46555static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46556 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46557}
0085ce49
RD
46558static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46559 return (void *)((wxControl *) ((wxTextCtrl *) x));
46560}
46561static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46562 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46563}
46564static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46565 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46566}
46567static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46568 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46569}
46570static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46571 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46572}
46573static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46574 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46575}
46576static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46577 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46578}
46579static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46580 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46581}
46582static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46583 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46584}
46585static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46586 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46587}
46588static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46589 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46590}
46591static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46592 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46593}
46594static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46595 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46596}
46597static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46598 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46599}
46600static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46601 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46602}
46603static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46604 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46605}
46606static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46607 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46608}
46609static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46610 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46611}
46612static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46613 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46614}
46615static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46616 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46617}
46618static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46619 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46620}
46621static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46622 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46623}
b850e7f3
RD
46624static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46625 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46626}
0085ce49
RD
46627static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46628 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46629}
46630static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46631 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46632}
46633static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46634 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46635}
46636static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46637 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46638}
46639static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46640 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46641}
46642static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46643 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46644}
46645static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46646 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
46647}
46648static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46649 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46650}
46651static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46652 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46653}
46654static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46655 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46656}
46657static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46658 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46659}
46660static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46661 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46662}
46663static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46664 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46665}
46666static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46667 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46668}
46669static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46670 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46671}
46672static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46673 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46674}
46675static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46676 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46677}
46678static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46679 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46680}
46681static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46682 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46683}
704eda0c
RD
46684static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46685 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46686}
0085ce49
RD
46687static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46688 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46689}
46690static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46691 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46692}
46693static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46694 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46695}
46696static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46697 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46698}
46699static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46700 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46701}
46702static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46703 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46704}
46705static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46706 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46707}
46708static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46709 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46710}
46711static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46712 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46713}
46714static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46715 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46716}
46717static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46718 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46719}
46720static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46721 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46722}
46723static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46724 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46725}
46726static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46727 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46728}
46729static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46730 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46731}
46732static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46733 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46734}
46735static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46736 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46737}
46738static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46739 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46740}
46741static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46742 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46743}
b850e7f3
RD
46744static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46745 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46746}
46747static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46748 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46749}
46750static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46751 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46752}
46753static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46754 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46755}
0085ce49
RD
46756static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46757 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46758}
46759static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46760 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46761}
46762static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46763 return (void *)((wxButton *) ((wxBitmapButton *) x));
46764}
46765static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46766 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46767}
46768static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46769 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46770}
46771static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46772 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46773}
46774static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46775 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46776}
46777static void *_p_wxToolbookTo_p_wxObject(void *x) {
46778 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46779}
0085ce49
RD
46780static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46781 return (void *)((wxObject *) ((wxSizerItem *) x));
46782}
34e0a3bb
RD
46783static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46784 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46785}
0085ce49
RD
46786static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46787 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46788}
46789static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46790 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46791}
46792static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46793 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46794}
46795static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46796 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46797}
46798static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46799 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46800}
46801static void *_p_wxSizerTo_p_wxObject(void *x) {
46802 return (void *)((wxObject *) ((wxSizer *) x));
46803}
46804static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46805 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46806}
46807static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46808 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46809}
46810static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46811 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46812}
46813static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46814 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46815}
46816static void *_p_wxEventTo_p_wxObject(void *x) {
46817 return (void *)((wxObject *) ((wxEvent *) x));
46818}
46819static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46820 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46821}
46822static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46823 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46824}
46825static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46826 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46827}
46828static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46829 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46830}
b850e7f3
RD
46831static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46832 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46833}
0085ce49
RD
46834static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46835 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46836}
46837static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46838 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46839}
2131d850
RD
46840static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46841 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46842}
0085ce49
RD
46843static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46844 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46845}
46846static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46847 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46848}
46849static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46850 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46851}
46852static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46853 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46854}
46855static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46856 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46857}
46858static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46859 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46860}
46861static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46862 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
46863}
46864static void *_p_wxControlTo_p_wxObject(void *x) {
46865 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46866}
46867static void *_p_wxPyControlTo_p_wxObject(void *x) {
46868 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
46869}
46870static void *_p_wxGaugeTo_p_wxObject(void *x) {
46871 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
46872}
46873static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
46874 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
46875}
46876static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
46877 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
46878}
46879static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
46880 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46881}
46882static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
46883 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
46884}
b850e7f3
RD
46885static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
46886 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
46887}
46888static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
46889 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46890}
46891static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
46892 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
46893}
0085ce49
RD
46894static void *_p_wxChoiceTo_p_wxObject(void *x) {
46895 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46896}
46897static void *_p_wxFSFileTo_p_wxObject(void *x) {
46898 return (void *)((wxObject *) ((wxFSFile *) x));
46899}
46900static void *_p_wxPySizerTo_p_wxObject(void *x) {
46901 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
46902}
46903static void *_p_wxTreebookTo_p_wxObject(void *x) {
46904 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46905}
46906static void *_p_wxListViewTo_p_wxObject(void *x) {
46907 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46908}
704eda0c
RD
46909static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
46910 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
46911}
0085ce49
RD
46912static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
46913 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46914}
46915static void *_p_wxNotebookTo_p_wxObject(void *x) {
46916 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46917}
46918static void *_p_wxPyEventTo_p_wxObject(void *x) {
46919 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
46920}
46921static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
46922 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
46923}
46924static void *_p_wxChoicebookTo_p_wxObject(void *x) {
46925 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46926}
46927static void *_p_wxListbookTo_p_wxObject(void *x) {
46928 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46929}
46930static void *_p_wxShowEventTo_p_wxObject(void *x) {
46931 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
46932}
46933static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
46934 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46935}
46936static void *_p_wxSliderTo_p_wxObject(void *x) {
46937 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
46938}
46939static void *_p_wxMenuItemTo_p_wxObject(void *x) {
46940 return (void *)((wxObject *) ((wxMenuItem *) x));
46941}
46942static void *_p_wxDateEventTo_p_wxObject(void *x) {
46943 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
46944}
46945static void *_p_wxIdleEventTo_p_wxObject(void *x) {
46946 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
46947}
46948static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
46949 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
46950}
46951static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
46952 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
46953}
46954static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
46955 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
46956}
46957static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
46958 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
46959}
46960static void *_p_wxSizeEventTo_p_wxObject(void *x) {
46961 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
46962}
46963static void *_p_wxMoveEventTo_p_wxObject(void *x) {
46964 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
46965}
46966static void *_p_wxActivateEventTo_p_wxObject(void *x) {
46967 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
46968}
46969static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
46970 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
46971}
46972static void *_p_wxContextHelpTo_p_wxObject(void *x) {
46973 return (void *)((wxObject *) ((wxContextHelp *) x));
46974}
46975static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
46976 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46977}
46978static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
46979 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
46980}
46981static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
46982 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
46983}
46984static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
46985 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
46986}
46987static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
46988 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
46989}
46990static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
46991 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
46992}
46993static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
46994 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
46995}
46996static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
46997 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
46998}
46999static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47000 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47001}
47002static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47003 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47004}
47005static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
47006 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
47007}
47008static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47009 return (void *)((wxObject *) ((wxImageHandler *) x));
47010}
47011static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47012 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47013}
47014static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47015 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47016}
47017static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47018 return (void *)((wxObject *) ((wxEvtHandler *) x));
47019}
34e0a3bb
RD
47020static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
47021 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
47022}
0085ce49
RD
47023static void *_p_wxListEventTo_p_wxObject(void *x) {
47024 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47025}
47026static void *_p_wxListBoxTo_p_wxObject(void *x) {
47027 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47028}
47029static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47030 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47031}
47032static void *_p_wxButtonTo_p_wxObject(void *x) {
47033 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47034}
47035static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47036 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47037}
47038static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47039 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47040}
47041static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47042 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47043}
47044static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47045 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47046}
47047static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47048 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47049}
47050static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47051 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47052}
47053static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47054 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47055}
47056static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47057 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
47058}
47059static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47060 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47061}
47062static void *_p_wxListItemTo_p_wxObject(void *x) {
47063 return (void *)((wxObject *) ((wxListItem *) x));
47064}
47065static void *_p_wxImageTo_p_wxObject(void *x) {
47066 return (void *)((wxObject *) ((wxImage *) x));
47067}
47068static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47069 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47070}
47071static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47072 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47073}
47074static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47075 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47076}
47077static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47078 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47079}
47080static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47081 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47082}
47083static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47084 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47085}
47086static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47087 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47088}
47089static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47090 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47091}
47092static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47093 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47094}
47095static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47096 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47097}
47098static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47099 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47100}
47101static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47102 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47103}
47104static void *_p_wxWindowTo_p_wxObject(void *x) {
47105 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47106}
47107static void *_p_wxMenuTo_p_wxObject(void *x) {
47108 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47109}
47110static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47111 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47112}
47113static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47114 return (void *)((wxObject *) ((wxFileSystem *) x));
47115}
47116static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47117 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47118}
47119static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47120 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47121}
47122static void *_p_wxPyAppTo_p_wxObject(void *x) {
47123 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47124}
47125static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47126 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47127}
47128static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47129 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47130}
47131static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47132 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47133}
47134static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47135 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47136}
47137static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47138 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47139}
47140static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47141 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47142}
47143static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47144 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47145}
47146static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47147 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47148}
47149static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47150 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47151}
47152static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47153 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47154}
47155static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47156 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47157}
47158static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47159 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47160}
b850e7f3
RD
47161static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47162 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47163}
47164static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47165 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47166}
47167static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47168 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47169}
47170static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47171 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47172}
0085ce49
RD
47173static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47174 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47175}
704eda0c
RD
47176static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47177 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47178}
0085ce49
RD
47179static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47180 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47181}
47182static void *_p_wxToolBarTo_p_wxObject(void *x) {
47183 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47184}
47185static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47186 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47187}
47188static void *_p_wxValidatorTo_p_wxObject(void *x) {
47189 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47190}
47191static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47192 return (void *)((wxWindow *) ((wxMenuBar *) x));
47193}
47194static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47195 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47196}
47197static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47198 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47199}
b850e7f3
RD
47200static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47201 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47202}
0085ce49
RD
47203static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47204 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47205}
47206static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47207 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47208}
47209static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47210 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47211}
47212static void *_p_wxControlTo_p_wxWindow(void *x) {
47213 return (void *)((wxWindow *) ((wxControl *) x));
47214}
47215static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47216 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47217}
47218static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47219 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47220}
47221static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47222 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
47223}
47224static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47225 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47226}
47227static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47228 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47229}
47230static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47231 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47232}
47233static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47234 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47235}
47236static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47237 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47238}
47239static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47240 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47241}
47242static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47243 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47244}
47245static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47246 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47247}
47248static void *_p_wxListbookTo_p_wxWindow(void *x) {
47249 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47250}
704eda0c
RD
47251static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47252 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47253}
0085ce49
RD
47254static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47255 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47256}
47257static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47258 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47259}
47260static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47261 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47262}
47263static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47264 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47265}
47266static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47267 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47268}
47269static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47270 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47271}
47272static void *_p_wxListViewTo_p_wxWindow(void *x) {
47273 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47274}
47275static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47276 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47277}
47278static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47279 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47280}
47281static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47282 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47283}
47284static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47285 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47286}
47287static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47288 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47289}
47290static void *_p_wxSliderTo_p_wxWindow(void *x) {
47291 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47292}
47293static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47294 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47295}
47296static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47297 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47298}
47299static void *_p_wxButtonTo_p_wxWindow(void *x) {
47300 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47301}
47302static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47303 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47304}
47305static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47306 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47307}
47308static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47309 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47310}
b850e7f3
RD
47311static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47312 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47313}
47314static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47315 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47316}
47317static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47318 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47319}
47320static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47321 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47322}
0085ce49
RD
47323static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47324 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47325}
47326static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47327 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47328}
47329static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47330 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47331}
47332static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47333 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47334}
47335static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47336 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47337}
47338static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47339 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47340}
47341static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47342 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47343}
704eda0c
RD
47344static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47345 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47346}
2131d850
RD
47347static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47348 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47349}
b850e7f3
RD
47350static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47351 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47352}
47353static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47354 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47355}
47356static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47357 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47358}
0085ce49
RD
47359static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47360 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47361}
47362static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47363 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47364}
47365static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47366 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47367}
47368static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47369 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47370}
47371static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47372 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47373}
0085ce49
RD
47374static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47375 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47376}
2131d850
RD
47377static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47378 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47379}
0085ce49
RD
47380static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47381 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47382}
47383static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47384 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47385}
47386static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47387 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47388}
47389static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47390 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47391}
47392static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47393 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47394}
47395static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47396 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47397}
47398static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47399 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47400}
47401static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47402 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47403}
47404static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47405 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47406}
47407static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47408 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47409}
47410static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47411 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47412}
47413static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47414 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47415}
47416static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47417 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47418}
47419static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47420 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47421}
47422static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47423 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47424}
47425static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47426 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47427}
47428static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47429 return (void *)((wxValidator *) ((wxPyValidator *) x));
47430}
47431static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47432static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47433static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
47434static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47435static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47436static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47437static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47438static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47439static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47440static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47441static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47442static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47443static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47444static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47445static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47446static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47447static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47448static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47449static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47450static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47451static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47452static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
47453static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47454static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47455static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47456static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47457static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 47458static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
47459static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47460static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47461static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47462static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47463static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47464static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47465static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47466static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47467static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47468static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47469static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47470static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47471static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47472static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47473static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47474static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 47475static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
0085ce49
RD
47476static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47477static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47478static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47479static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47480static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47481static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47482static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47483static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
34e0a3bb 47484static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49
RD
47485static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47486static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47487static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47488static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47489static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47490static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
34e0a3bb 47491static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
0085ce49
RD
47492static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47493static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47494static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47495static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47496static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47497static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47498static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47499static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47500static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47501static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47502static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47503static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47504static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47505static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47506static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47507static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
b850e7f3
RD
47508static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47509static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
0085ce49 47510static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
47511static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47512static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47513static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47514static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47515static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47516static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47517static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
47518static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47519static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47520static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47521static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47522static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47523static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47524static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47525static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47526static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47527static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47528static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47529static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47530static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47531static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47532static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47533static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47534static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47535static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47536static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47537static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 47538static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 47539static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
47540static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47541static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47542static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47543static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47544static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47545static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47546static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47547static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47548static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47549static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
0085ce49
RD
47550static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47551static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47552static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47553static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47554static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
47555static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47556static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47557static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47558static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 47559static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 47560static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
0085ce49
RD
47561static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47562static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47563static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47564static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47565static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47566static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47567static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 47568static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
0085ce49
RD
47569static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47570static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47571static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47572static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47573static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47574static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47575static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47576static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47577static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47578static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47579static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47580static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47581static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47582static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47583static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47584static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47585static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47586static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47587static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47588static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47589static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47590static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47591static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47592static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47593static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47594static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47595static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47596static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47597static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47598static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47599static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47600static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47601static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47602static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47603static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47604static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 47605static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
0085ce49
RD
47606
47607static swig_type_info *swig_type_initial[] = {
47608 &_swigt__p_bool,
47609 &_swigt__p_char,
47610 &_swigt__p_form_ops_t,
47611 &_swigt__p_int,
47612 &_swigt__p_long,
47613 &_swigt__p_unsigned_char,
47614 &_swigt__p_unsigned_int,
47615 &_swigt__p_unsigned_long,
47616 &_swigt__p_void,
47617 &_swigt__p_wxANIHandler,
47618 &_swigt__p_wxAcceleratorTable,
47619 &_swigt__p_wxActivateEvent,
47620 &_swigt__p_wxArrayInt,
47621 &_swigt__p_wxArrayString,
47622 &_swigt__p_wxBMPHandler,
47623 &_swigt__p_wxBitmap,
47624 &_swigt__p_wxBitmapButton,
47625 &_swigt__p_wxBookCtrlBase,
47626 &_swigt__p_wxBookCtrlBaseEvent,
47627 &_swigt__p_wxBoxSizer,
47628 &_swigt__p_wxButton,
47629 &_swigt__p_wxCURHandler,
47630 &_swigt__p_wxCheckBox,
47631 &_swigt__p_wxCheckListBox,
47632 &_swigt__p_wxChildFocusEvent,
47633 &_swigt__p_wxChoice,
47634 &_swigt__p_wxChoicebook,
47635 &_swigt__p_wxChoicebookEvent,
2131d850 47636 &_swigt__p_wxClipboardTextEvent,
0085ce49
RD
47637 &_swigt__p_wxCloseEvent,
47638 &_swigt__p_wxColour,
b850e7f3
RD
47639 &_swigt__p_wxColourPickerCtrl,
47640 &_swigt__p_wxColourPickerEvent,
0085ce49
RD
47641 &_swigt__p_wxComboBox,
47642 &_swigt__p_wxCommandEvent,
47643 &_swigt__p_wxContextHelp,
47644 &_swigt__p_wxContextHelpButton,
47645 &_swigt__p_wxContextMenuEvent,
47646 &_swigt__p_wxControl,
47647 &_swigt__p_wxControlWithItems,
47648 &_swigt__p_wxCursor,
47649 &_swigt__p_wxDC,
47650 &_swigt__p_wxDateEvent,
47651 &_swigt__p_wxDatePickerCtrl,
47652 &_swigt__p_wxDateTime,
47653 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 47654 &_swigt__p_wxDirPickerCtrl,
0085ce49
RD
47655 &_swigt__p_wxDisplayChangedEvent,
47656 &_swigt__p_wxDropFilesEvent,
47657 &_swigt__p_wxDuplexMode,
47658 &_swigt__p_wxEraseEvent,
47659 &_swigt__p_wxEvent,
47660 &_swigt__p_wxEvtHandler,
47661 &_swigt__p_wxFSFile,
b850e7f3
RD
47662 &_swigt__p_wxFileDirPickerEvent,
47663 &_swigt__p_wxFilePickerCtrl,
0085ce49
RD
47664 &_swigt__p_wxFileSystem,
47665 &_swigt__p_wxFlexGridSizer,
47666 &_swigt__p_wxFocusEvent,
47667 &_swigt__p_wxFont,
b850e7f3
RD
47668 &_swigt__p_wxFontPickerCtrl,
47669 &_swigt__p_wxFontPickerEvent,
0085ce49
RD
47670 &_swigt__p_wxGBSizerItem,
47671 &_swigt__p_wxGIFHandler,
47672 &_swigt__p_wxGauge,
47673 &_swigt__p_wxGenericDirCtrl,
47674 &_swigt__p_wxGenericDragImage,
47675 &_swigt__p_wxGridBagSizer,
47676 &_swigt__p_wxGridSizer,
47677 &_swigt__p_wxHelpEvent,
47678 &_swigt__p_wxHelpProvider,
704eda0c
RD
47679 &_swigt__p_wxHyperlinkCtrl,
47680 &_swigt__p_wxHyperlinkEvent,
0085ce49
RD
47681 &_swigt__p_wxICOHandler,
47682 &_swigt__p_wxIcon,
47683 &_swigt__p_wxIconizeEvent,
47684 &_swigt__p_wxIdleEvent,
47685 &_swigt__p_wxImage,
47686 &_swigt__p_wxImageHandler,
47687 &_swigt__p_wxImageList,
47688 &_swigt__p_wxIndividualLayoutConstraint,
47689 &_swigt__p_wxInitDialogEvent,
47690 &_swigt__p_wxItemContainer,
47691 &_swigt__p_wxJPEGHandler,
47692 &_swigt__p_wxKeyEvent,
47693 &_swigt__p_wxLayoutConstraints,
47694 &_swigt__p_wxListBox,
47695 &_swigt__p_wxListEvent,
47696 &_swigt__p_wxListItem,
47697 &_swigt__p_wxListItemAttr,
47698 &_swigt__p_wxListView,
47699 &_swigt__p_wxListbook,
47700 &_swigt__p_wxListbookEvent,
47701 &_swigt__p_wxMaximizeEvent,
47702 &_swigt__p_wxMemoryDC,
47703 &_swigt__p_wxMenu,
47704 &_swigt__p_wxMenuBar,
47705 &_swigt__p_wxMenuEvent,
47706 &_swigt__p_wxMenuItem,
47707 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 47708 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
47709 &_swigt__p_wxMouseEvent,
47710 &_swigt__p_wxMoveEvent,
47711 &_swigt__p_wxNavigationKeyEvent,
47712 &_swigt__p_wxNcPaintEvent,
47713 &_swigt__p_wxNotebook,
47714 &_swigt__p_wxNotebookEvent,
47715 &_swigt__p_wxNotifyEvent,
47716 &_swigt__p_wxObject,
47717 &_swigt__p_wxPCXHandler,
47718 &_swigt__p_wxPNGHandler,
47719 &_swigt__p_wxPNMHandler,
47720 &_swigt__p_wxPaintEvent,
47721 &_swigt__p_wxPaletteChangedEvent,
47722 &_swigt__p_wxPaperSize,
b850e7f3 47723 &_swigt__p_wxPickerBase,
0085ce49
RD
47724 &_swigt__p_wxPoint,
47725 &_swigt__p_wxPyApp,
47726 &_swigt__p_wxPyCommandEvent,
47727 &_swigt__p_wxPyControl,
47728 &_swigt__p_wxPyEvent,
47729 &_swigt__p_wxPyImageHandler,
47730 &_swigt__p_wxPyListCtrl,
47731 &_swigt__p_wxPySizer,
47732 &_swigt__p_wxPyTreeCtrl,
47733 &_swigt__p_wxPyTreeItemData,
47734 &_swigt__p_wxPyValidator,
47735 &_swigt__p_wxQueryNewPaletteEvent,
47736 &_swigt__p_wxRadioBox,
47737 &_swigt__p_wxRadioButton,
47738 &_swigt__p_wxRect,
47739 &_swigt__p_wxScrollBar,
47740 &_swigt__p_wxScrollEvent,
47741 &_swigt__p_wxScrollWinEvent,
47742 &_swigt__p_wxSetCursorEvent,
47743 &_swigt__p_wxShowEvent,
47744 &_swigt__p_wxSimpleHelpProvider,
47745 &_swigt__p_wxSize,
47746 &_swigt__p_wxSizeEvent,
47747 &_swigt__p_wxSizer,
47748 &_swigt__p_wxSizerItem,
47749 &_swigt__p_wxSlider,
47750 &_swigt__p_wxSpinButton,
47751 &_swigt__p_wxSpinCtrl,
47752 &_swigt__p_wxSpinEvent,
47753 &_swigt__p_wxStaticBitmap,
47754 &_swigt__p_wxStaticBox,
47755 &_swigt__p_wxStaticBoxSizer,
47756 &_swigt__p_wxStaticLine,
47757 &_swigt__p_wxStaticText,
47758 &_swigt__p_wxStdDialogButtonSizer,
47759 &_swigt__p_wxString,
47760 &_swigt__p_wxSysColourChangedEvent,
47761 &_swigt__p_wxTIFFHandler,
47762 &_swigt__p_wxTextAttr,
47763 &_swigt__p_wxTextCtrl,
47764 &_swigt__p_wxTextUrlEvent,
47765 &_swigt__p_wxToggleButton,
47766 &_swigt__p_wxToolBar,
47767 &_swigt__p_wxToolBarBase,
47768 &_swigt__p_wxToolBarToolBase,
47769 &_swigt__p_wxToolbook,
47770 &_swigt__p_wxToolbookEvent,
0085ce49
RD
47771 &_swigt__p_wxTreeEvent,
47772 &_swigt__p_wxTreeItemId,
47773 &_swigt__p_wxTreebook,
47774 &_swigt__p_wxTreebookEvent,
47775 &_swigt__p_wxUpdateUIEvent,
47776 &_swigt__p_wxValidator,
47777 &_swigt__p_wxVisualAttributes,
47778 &_swigt__p_wxWindow,
b850e7f3 47779 &_swigt__p_wxWindowBase,
0085ce49
RD
47780 &_swigt__p_wxWindowCreateEvent,
47781 &_swigt__p_wxWindowDestroyEvent,
47782 &_swigt__p_wxXPMHandler,
47783};
47784
47785static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47786static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47787static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47788static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47789static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47790static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47791static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47792static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47793static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47794static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47795static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47796static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47797static 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}};
47798static 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}};
47799static 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}};
47800static 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}};
47801static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47802static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47803static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
47804static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47805static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47806static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47807static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47808static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47809static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47810static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47811static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47812static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47813static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47814static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47815static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47816static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47817static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47818static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47819static 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}};
0085ce49
RD
47820static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47821static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47822static 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}};
0085ce49
RD
47823static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
47824static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47825static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47826static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47827static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47828static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47829static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47830static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47831static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47832static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47833static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47834static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47835static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47836static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47837static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47838static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47839static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47840static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47841static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47842static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47843static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47844static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47845static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47846static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47847static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47848static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47849static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47850static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47851static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47852static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47853static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47854static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47855static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47856static 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}};
0085ce49
RD
47857static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
47858static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
47859static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
47860static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47861static 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}};
47862static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47863static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 47864static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47865static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47866static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47867static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
47868static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
47869static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
47870static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
47871static 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
47872static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
47873static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47874static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
47875static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
47876static 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}};
47877static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47878static 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}};
47879static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
47880static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
47881static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
47882static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
47883static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
47884static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47885static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
47886static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
47887static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
47888static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47889static 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}};
47890static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 47891static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47892static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47893static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
47894static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47895static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47896static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
47897static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
47898static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47899static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47900static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
47901static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
47902static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47903static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
47904static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
47905static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
47906static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
47907static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47908static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
47909static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
47910static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
47911static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 47912static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47913static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47914static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
47915static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
47916static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
47917static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
47918static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
47919static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47920static 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}};
0085ce49 47921static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47922static 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}};
0085ce49
RD
47923static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
47924static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
47925static 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}};
47926static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47927static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
47928static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
47929static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
47930static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
47931static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
47932static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
47933static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
47934static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
47935static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
47936static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
47937static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
47938static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
47939static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
47940static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
47941static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
47942static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
47943static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
47944static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
47945static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
47946static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
47947static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
47948static 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}};
47949static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
47950static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
47951static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47952static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
47953static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
47954static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
47955static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47956static 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}};
47957static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47958static 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}};
47959static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47960
47961static swig_cast_info *swig_cast_initial[] = {
47962 _swigc__p_bool,
47963 _swigc__p_char,
47964 _swigc__p_form_ops_t,
47965 _swigc__p_int,
47966 _swigc__p_long,
47967 _swigc__p_unsigned_char,
47968 _swigc__p_unsigned_int,
47969 _swigc__p_unsigned_long,
47970 _swigc__p_void,
47971 _swigc__p_wxANIHandler,
47972 _swigc__p_wxAcceleratorTable,
47973 _swigc__p_wxActivateEvent,
47974 _swigc__p_wxArrayInt,
47975 _swigc__p_wxArrayString,
47976 _swigc__p_wxBMPHandler,
47977 _swigc__p_wxBitmap,
47978 _swigc__p_wxBitmapButton,
47979 _swigc__p_wxBookCtrlBase,
47980 _swigc__p_wxBookCtrlBaseEvent,
47981 _swigc__p_wxBoxSizer,
47982 _swigc__p_wxButton,
47983 _swigc__p_wxCURHandler,
47984 _swigc__p_wxCheckBox,
47985 _swigc__p_wxCheckListBox,
47986 _swigc__p_wxChildFocusEvent,
47987 _swigc__p_wxChoice,
47988 _swigc__p_wxChoicebook,
47989 _swigc__p_wxChoicebookEvent,
2131d850 47990 _swigc__p_wxClipboardTextEvent,
0085ce49
RD
47991 _swigc__p_wxCloseEvent,
47992 _swigc__p_wxColour,
b850e7f3
RD
47993 _swigc__p_wxColourPickerCtrl,
47994 _swigc__p_wxColourPickerEvent,
0085ce49
RD
47995 _swigc__p_wxComboBox,
47996 _swigc__p_wxCommandEvent,
47997 _swigc__p_wxContextHelp,
47998 _swigc__p_wxContextHelpButton,
47999 _swigc__p_wxContextMenuEvent,
48000 _swigc__p_wxControl,
48001 _swigc__p_wxControlWithItems,
48002 _swigc__p_wxCursor,
48003 _swigc__p_wxDC,
48004 _swigc__p_wxDateEvent,
48005 _swigc__p_wxDatePickerCtrl,
48006 _swigc__p_wxDateTime,
48007 _swigc__p_wxDirFilterListCtrl,
b850e7f3 48008 _swigc__p_wxDirPickerCtrl,
0085ce49
RD
48009 _swigc__p_wxDisplayChangedEvent,
48010 _swigc__p_wxDropFilesEvent,
48011 _swigc__p_wxDuplexMode,
48012 _swigc__p_wxEraseEvent,
48013 _swigc__p_wxEvent,
48014 _swigc__p_wxEvtHandler,
48015 _swigc__p_wxFSFile,
b850e7f3
RD
48016 _swigc__p_wxFileDirPickerEvent,
48017 _swigc__p_wxFilePickerCtrl,
0085ce49
RD
48018 _swigc__p_wxFileSystem,
48019 _swigc__p_wxFlexGridSizer,
48020 _swigc__p_wxFocusEvent,
48021 _swigc__p_wxFont,
b850e7f3
RD
48022 _swigc__p_wxFontPickerCtrl,
48023 _swigc__p_wxFontPickerEvent,
0085ce49
RD
48024 _swigc__p_wxGBSizerItem,
48025 _swigc__p_wxGIFHandler,
48026 _swigc__p_wxGauge,
48027 _swigc__p_wxGenericDirCtrl,
48028 _swigc__p_wxGenericDragImage,
48029 _swigc__p_wxGridBagSizer,
48030 _swigc__p_wxGridSizer,
48031 _swigc__p_wxHelpEvent,
48032 _swigc__p_wxHelpProvider,
704eda0c
RD
48033 _swigc__p_wxHyperlinkCtrl,
48034 _swigc__p_wxHyperlinkEvent,
0085ce49
RD
48035 _swigc__p_wxICOHandler,
48036 _swigc__p_wxIcon,
48037 _swigc__p_wxIconizeEvent,
48038 _swigc__p_wxIdleEvent,
48039 _swigc__p_wxImage,
48040 _swigc__p_wxImageHandler,
48041 _swigc__p_wxImageList,
48042 _swigc__p_wxIndividualLayoutConstraint,
48043 _swigc__p_wxInitDialogEvent,
48044 _swigc__p_wxItemContainer,
48045 _swigc__p_wxJPEGHandler,
48046 _swigc__p_wxKeyEvent,
48047 _swigc__p_wxLayoutConstraints,
48048 _swigc__p_wxListBox,
48049 _swigc__p_wxListEvent,
48050 _swigc__p_wxListItem,
48051 _swigc__p_wxListItemAttr,
48052 _swigc__p_wxListView,
48053 _swigc__p_wxListbook,
48054 _swigc__p_wxListbookEvent,
48055 _swigc__p_wxMaximizeEvent,
48056 _swigc__p_wxMemoryDC,
48057 _swigc__p_wxMenu,
48058 _swigc__p_wxMenuBar,
48059 _swigc__p_wxMenuEvent,
48060 _swigc__p_wxMenuItem,
48061 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 48062 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
48063 _swigc__p_wxMouseEvent,
48064 _swigc__p_wxMoveEvent,
48065 _swigc__p_wxNavigationKeyEvent,
48066 _swigc__p_wxNcPaintEvent,
48067 _swigc__p_wxNotebook,
48068 _swigc__p_wxNotebookEvent,
48069 _swigc__p_wxNotifyEvent,
48070 _swigc__p_wxObject,
48071 _swigc__p_wxPCXHandler,
48072 _swigc__p_wxPNGHandler,
48073 _swigc__p_wxPNMHandler,
48074 _swigc__p_wxPaintEvent,
48075 _swigc__p_wxPaletteChangedEvent,
48076 _swigc__p_wxPaperSize,
b850e7f3 48077 _swigc__p_wxPickerBase,
0085ce49
RD
48078 _swigc__p_wxPoint,
48079 _swigc__p_wxPyApp,
48080 _swigc__p_wxPyCommandEvent,
48081 _swigc__p_wxPyControl,
48082 _swigc__p_wxPyEvent,
48083 _swigc__p_wxPyImageHandler,
48084 _swigc__p_wxPyListCtrl,
48085 _swigc__p_wxPySizer,
48086 _swigc__p_wxPyTreeCtrl,
48087 _swigc__p_wxPyTreeItemData,
48088 _swigc__p_wxPyValidator,
48089 _swigc__p_wxQueryNewPaletteEvent,
48090 _swigc__p_wxRadioBox,
48091 _swigc__p_wxRadioButton,
48092 _swigc__p_wxRect,
48093 _swigc__p_wxScrollBar,
48094 _swigc__p_wxScrollEvent,
48095 _swigc__p_wxScrollWinEvent,
48096 _swigc__p_wxSetCursorEvent,
48097 _swigc__p_wxShowEvent,
48098 _swigc__p_wxSimpleHelpProvider,
48099 _swigc__p_wxSize,
48100 _swigc__p_wxSizeEvent,
48101 _swigc__p_wxSizer,
48102 _swigc__p_wxSizerItem,
48103 _swigc__p_wxSlider,
48104 _swigc__p_wxSpinButton,
48105 _swigc__p_wxSpinCtrl,
48106 _swigc__p_wxSpinEvent,
48107 _swigc__p_wxStaticBitmap,
48108 _swigc__p_wxStaticBox,
48109 _swigc__p_wxStaticBoxSizer,
48110 _swigc__p_wxStaticLine,
48111 _swigc__p_wxStaticText,
48112 _swigc__p_wxStdDialogButtonSizer,
48113 _swigc__p_wxString,
48114 _swigc__p_wxSysColourChangedEvent,
48115 _swigc__p_wxTIFFHandler,
48116 _swigc__p_wxTextAttr,
48117 _swigc__p_wxTextCtrl,
48118 _swigc__p_wxTextUrlEvent,
48119 _swigc__p_wxToggleButton,
48120 _swigc__p_wxToolBar,
48121 _swigc__p_wxToolBarBase,
48122 _swigc__p_wxToolBarToolBase,
48123 _swigc__p_wxToolbook,
48124 _swigc__p_wxToolbookEvent,
0085ce49
RD
48125 _swigc__p_wxTreeEvent,
48126 _swigc__p_wxTreeItemId,
48127 _swigc__p_wxTreebook,
48128 _swigc__p_wxTreebookEvent,
48129 _swigc__p_wxUpdateUIEvent,
48130 _swigc__p_wxValidator,
48131 _swigc__p_wxVisualAttributes,
48132 _swigc__p_wxWindow,
b850e7f3 48133 _swigc__p_wxWindowBase,
0085ce49
RD
48134 _swigc__p_wxWindowCreateEvent,
48135 _swigc__p_wxWindowDestroyEvent,
48136 _swigc__p_wxXPMHandler,
48137};
48138
48139
48140/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48141
48142static swig_const_info swig_const_table[] = {
48143{0, 0, 0, 0.0, 0, 0}};
48144
48145#ifdef __cplusplus
48146}
48147#endif
48148/* -----------------------------------------------------------------------------
48149 * Type initialization:
48150 * This problem is tough by the requirement that no dynamic
48151 * memory is used. Also, since swig_type_info structures store pointers to
48152 * swig_cast_info structures and swig_cast_info structures store pointers back
48153 * to swig_type_info structures, we need some lookup code at initialization.
48154 * The idea is that swig generates all the structures that are needed.
48155 * The runtime then collects these partially filled structures.
48156 * The SWIG_InitializeModule function takes these initial arrays out of
48157 * swig_module, and does all the lookup, filling in the swig_module.types
48158 * array with the correct data and linking the correct swig_cast_info
48159 * structures together.
48160 *
48161 * The generated swig_type_info structures are assigned staticly to an initial
48162 * array. We just loop though that array, and handle each type individually.
48163 * First we lookup if this type has been already loaded, and if so, use the
48164 * loaded structure instead of the generated one. Then we have to fill in the
48165 * cast linked list. The cast data is initially stored in something like a
48166 * two-dimensional array. Each row corresponds to a type (there are the same
48167 * number of rows as there are in the swig_type_initial array). Each entry in
48168 * a column is one of the swig_cast_info structures for that type.
48169 * The cast_initial array is actually an array of arrays, because each row has
48170 * a variable number of columns. So to actually build the cast linked list,
48171 * we find the array of casts associated with the type, and loop through it
48172 * adding the casts to the list. The one last trick we need to do is making
48173 * sure the type pointer in the swig_cast_info struct is correct.
48174 *
48175 * First off, we lookup the cast->type name to see if it is already loaded.
48176 * There are three cases to handle:
48177 * 1) If the cast->type has already been loaded AND the type we are adding
48178 * casting info to has not been loaded (it is in this module), THEN we
48179 * replace the cast->type pointer with the type pointer that has already
48180 * been loaded.
48181 * 2) If BOTH types (the one we are adding casting info to, and the
48182 * cast->type) are loaded, THEN the cast info has already been loaded by
48183 * the previous module so we just ignore it.
48184 * 3) Finally, if cast->type has not already been loaded, then we add that
48185 * swig_cast_info to the linked list (because the cast->type) pointer will
48186 * be correct.
48187 * ----------------------------------------------------------------------------- */
48188
48189#ifdef __cplusplus
48190extern "C" {
48191#if 0
48192} /* c-mode */
48193#endif
48194#endif
48195
48196#if 0
48197#define SWIGRUNTIME_DEBUG
48198#endif
48199
48200SWIGRUNTIME void
48201SWIG_InitializeModule(void *clientdata) {
48202 size_t i;
48203 swig_module_info *module_head;
48204 static int init_run = 0;
48205
48206 clientdata = clientdata;
48207
48208 if (init_run) return;
48209 init_run = 1;
48210
48211 /* Initialize the swig_module */
48212 swig_module.type_initial = swig_type_initial;
48213 swig_module.cast_initial = swig_cast_initial;
48214
48215 /* Try and load any already created modules */
48216 module_head = SWIG_GetModule(clientdata);
48217 if (module_head) {
48218 swig_module.next = module_head->next;
48219 module_head->next = &swig_module;
48220 } else {
48221 /* This is the first module loaded */
48222 swig_module.next = &swig_module;
48223 SWIG_SetModule(clientdata, &swig_module);
48224 }
48225
48226 /* Now work on filling in swig_module.types */
48227#ifdef SWIGRUNTIME_DEBUG
48228 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48229#endif
48230 for (i = 0; i < swig_module.size; ++i) {
48231 swig_type_info *type = 0;
48232 swig_type_info *ret;
48233 swig_cast_info *cast;
d14a1e28 48234
0085ce49
RD
48235#ifdef SWIGRUNTIME_DEBUG
48236 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48237#endif
d14a1e28 48238
0085ce49
RD
48239 /* if there is another module already loaded */
48240 if (swig_module.next != &swig_module) {
48241 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 48242 }
0085ce49
RD
48243 if (type) {
48244 /* Overwrite clientdata field */
48245#ifdef SWIGRUNTIME_DEBUG
48246 printf("SWIG_InitializeModule: found type %s\n", type->name);
48247#endif
48248 if (swig_module.type_initial[i]->clientdata) {
48249 type->clientdata = swig_module.type_initial[i]->clientdata;
48250#ifdef SWIGRUNTIME_DEBUG
48251 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48252#endif
48253 }
48254 } else {
48255 type = swig_module.type_initial[i];
093d3ff1 48256 }
d14a1e28 48257
0085ce49
RD
48258 /* Insert casting types */
48259 cast = swig_module.cast_initial[i];
48260 while (cast->type) {
48261 /* Don't need to add information already in the list */
48262 ret = 0;
48263#ifdef SWIGRUNTIME_DEBUG
48264 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48265#endif
48266 if (swig_module.next != &swig_module) {
48267 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48268#ifdef SWIGRUNTIME_DEBUG
48269 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48270#endif
48271 }
48272 if (ret) {
48273 if (type == swig_module.type_initial[i]) {
48274#ifdef SWIGRUNTIME_DEBUG
48275 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48276#endif
48277 cast->type = ret;
48278 ret = 0;
48279 } else {
48280 /* Check for casting already in the list */
48281 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48282#ifdef SWIGRUNTIME_DEBUG
48283 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48284#endif
48285 if (!ocast) ret = 0;
48286 }
48287 }
48288
48289 if (!ret) {
48290#ifdef SWIGRUNTIME_DEBUG
48291 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48292#endif
48293 if (type->cast) {
48294 type->cast->prev = cast;
48295 cast->next = type->cast;
48296 }
48297 type->cast = cast;
48298 }
48299 cast++;
093d3ff1 48300 }
0085ce49
RD
48301 /* Set entry in modules->types array equal to the type */
48302 swig_module.types[i] = type;
48303 }
48304 swig_module.types[i] = 0;
48305
48306#ifdef SWIGRUNTIME_DEBUG
48307 printf("**** SWIG_InitializeModule: Cast List ******\n");
48308 for (i = 0; i < swig_module.size; ++i) {
48309 int j = 0;
48310 swig_cast_info *cast = swig_module.cast_initial[i];
48311 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48312 while (cast->type) {
48313 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48314 cast++;
48315 ++j;
48316 }
48317 printf("---- Total casts: %d\n",j);
48318 }
48319 printf("**** SWIG_InitializeModule: Cast List ******\n");
48320#endif
48321}
48322
48323/* This function will propagate the clientdata field of type to
48324* any new swig_type_info structures that have been added into the list
48325* of equivalent types. It is like calling
48326* SWIG_TypeClientData(type, clientdata) a second time.
48327*/
48328SWIGRUNTIME void
48329SWIG_PropagateClientData(void) {
48330 size_t i;
48331 swig_cast_info *equiv;
48332 static int init_run = 0;
48333
48334 if (init_run) return;
48335 init_run = 1;
48336
48337 for (i = 0; i < swig_module.size; i++) {
48338 if (swig_module.types[i]->clientdata) {
48339 equiv = swig_module.types[i]->cast;
48340 while (equiv) {
48341 if (!equiv->converter) {
48342 if (equiv->type && !equiv->type->clientdata)
48343 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48344 }
48345 equiv = equiv->next;
48346 }
093d3ff1 48347 }
0085ce49
RD
48348 }
48349}
48350
48351#ifdef __cplusplus
48352#if 0
48353{
48354 /* c-mode */
48355#endif
48356}
48357#endif
48358
48359
48360
48361#ifdef __cplusplus
48362extern "C" {
48363#endif
48364
48365 /* Python-specific SWIG API */
48366#define SWIG_newvarlink() SWIG_Python_newvarlink()
48367#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48368#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48369
48370 /* -----------------------------------------------------------------------------
48371 * global variable support code.
48372 * ----------------------------------------------------------------------------- */
48373
48374 typedef struct swig_globalvar {
48375 char *name; /* Name of global variable */
48376 PyObject *(*get_attr)(void); /* Return the current value */
48377 int (*set_attr)(PyObject *); /* Set the value */
48378 struct swig_globalvar *next;
48379 } swig_globalvar;
48380
48381 typedef struct swig_varlinkobject {
48382 PyObject_HEAD
48383 swig_globalvar *vars;
48384 } swig_varlinkobject;
48385
48386 SWIGINTERN PyObject *
48387 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48388 return PyString_FromString("<Swig global variables>");
48389 }
48390
48391 SWIGINTERN PyObject *
48392 swig_varlink_str(swig_varlinkobject *v) {
48393 PyObject *str = PyString_FromString("(");
48394 swig_globalvar *var;
48395 for (var = v->vars; var; var=var->next) {
48396 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48397 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48398 }
48399 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48400 return str;
48401 }
48402
48403 SWIGINTERN int
48404 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48405 PyObject *str = swig_varlink_str(v);
48406 fprintf(fp,"Swig global variables ");
48407 fprintf(fp,"%s\n", PyString_AsString(str));
48408 Py_DECREF(str);
48409 return 0;
48410 }
48411
48412 SWIGINTERN void
48413 swig_varlink_dealloc(swig_varlinkobject *v) {
48414 swig_globalvar *var = v->vars;
48415 while (var) {
48416 swig_globalvar *n = var->next;
48417 free(var->name);
48418 free(var);
48419 var = n;
093d3ff1 48420 }
0085ce49
RD
48421 }
48422
48423 SWIGINTERN PyObject *
48424 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48425 PyObject *res = NULL;
48426 swig_globalvar *var = v->vars;
48427 while (var) {
48428 if (strcmp(var->name,n) == 0) {
48429 res = (*var->get_attr)();
48430 break;
48431 }
48432 var = var->next;
093d3ff1 48433 }
0085ce49
RD
48434 if (res == NULL && !PyErr_Occurred()) {
48435 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 48436 }
0085ce49
RD
48437 return res;
48438 }
48439
48440 SWIGINTERN int
48441 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48442 int res = 1;
48443 swig_globalvar *var = v->vars;
48444 while (var) {
48445 if (strcmp(var->name,n) == 0) {
48446 res = (*var->set_attr)(p);
48447 break;
48448 }
48449 var = var->next;
093d3ff1 48450 }
0085ce49
RD
48451 if (res == 1 && !PyErr_Occurred()) {
48452 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 48453 }
0085ce49
RD
48454 return res;
48455 }
48456
48457 SWIGINTERN PyTypeObject*
48458 swig_varlink_type(void) {
48459 static char varlink__doc__[] = "Swig var link object";
48460 static PyTypeObject varlink_type;
48461 static int type_init = 0;
48462 if (!type_init) {
48463 const PyTypeObject tmp
48464 = {
48465 PyObject_HEAD_INIT(NULL)
48466 0, /* Number of items in variable part (ob_size) */
48467 (char *)"swigvarlink", /* Type name (tp_name) */
48468 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48469 0, /* Itemsize (tp_itemsize) */
48470 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48471 (printfunc) swig_varlink_print, /* Print (tp_print) */
48472 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48473 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48474 0, /* tp_compare */
48475 (reprfunc) swig_varlink_repr, /* tp_repr */
48476 0, /* tp_as_number */
48477 0, /* tp_as_sequence */
48478 0, /* tp_as_mapping */
48479 0, /* tp_hash */
48480 0, /* tp_call */
48481 (reprfunc)swig_varlink_str, /* tp_str */
48482 0, /* tp_getattro */
48483 0, /* tp_setattro */
48484 0, /* tp_as_buffer */
48485 0, /* tp_flags */
48486 varlink__doc__, /* tp_doc */
48487 0, /* tp_traverse */
48488 0, /* tp_clear */
48489 0, /* tp_richcompare */
48490 0, /* tp_weaklistoffset */
48491#if PY_VERSION_HEX >= 0x02020000
48492 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48493#endif
48494#if PY_VERSION_HEX >= 0x02030000
48495 0, /* tp_del */
48496#endif
48497#ifdef COUNT_ALLOCS
48498 0,0,0,0 /* tp_alloc -> tp_next */
48499#endif
48500 };
48501 varlink_type = tmp;
48502 varlink_type.ob_type = &PyType_Type;
48503 type_init = 1;
53aa7709 48504 }
0085ce49
RD
48505 return &varlink_type;
48506 }
48507
48508 /* Create a variable linking object for use later */
48509 SWIGINTERN PyObject *
48510 SWIG_Python_newvarlink(void) {
48511 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48512 if (result) {
48513 result->vars = 0;
48514 }
48515 return ((PyObject*) result);
48516 }
48517
48518 SWIGINTERN void
48519 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48520 swig_varlinkobject *v = (swig_varlinkobject *) p;
48521 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48522 if (gv) {
48523 size_t size = strlen(name)+1;
48524 gv->name = (char *)malloc(size);
48525 if (gv->name) {
48526 strncpy(gv->name,name,size);
48527 gv->get_attr = get_attr;
48528 gv->set_attr = set_attr;
48529 gv->next = v->vars;
48530 }
53aa7709 48531 }
0085ce49
RD
48532 v->vars = gv;
48533 }
48534
48535 SWIGINTERN PyObject *
48536 SWIG_globals() {
48537 static PyObject *_SWIG_globals = 0;
48538 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48539 return _SWIG_globals;
48540 }
48541
48542 /* -----------------------------------------------------------------------------
48543 * constants/methods manipulation
48544 * ----------------------------------------------------------------------------- */
48545
48546 /* Install Constants */
48547 SWIGINTERN void
48548 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48549 PyObject *obj = 0;
48550 size_t i;
48551 for (i = 0; constants[i].type; ++i) {
48552 switch(constants[i].type) {
48553 case SWIG_PY_POINTER:
48554 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48555 break;
48556 case SWIG_PY_BINARY:
48557 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48558 break;
48559 default:
48560 obj = 0;
48561 break;
48562 }
48563 if (obj) {
48564 PyDict_SetItemString(d, constants[i].name, obj);
48565 Py_DECREF(obj);
48566 }
53aa7709 48567 }
0085ce49
RD
48568 }
48569
48570 /* -----------------------------------------------------------------------------*/
48571 /* Fix SwigMethods to carry the callback ptrs when needed */
48572 /* -----------------------------------------------------------------------------*/
48573
48574 SWIGINTERN void
48575 SWIG_Python_FixMethods(PyMethodDef *methods,
48576 swig_const_info *const_table,
48577 swig_type_info **types,
48578 swig_type_info **types_initial) {
48579 size_t i;
48580 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 48581 const char *c = methods[i].ml_doc;
0085ce49
RD
48582 if (c && (c = strstr(c, "swig_ptr: "))) {
48583 int j;
48584 swig_const_info *ci = 0;
453fb36b 48585 const char *name = c + 10;
0085ce49
RD
48586 for (j = 0; const_table[j].type; ++j) {
48587 if (strncmp(const_table[j].name, name,
48588 strlen(const_table[j].name)) == 0) {
48589 ci = &(const_table[j]);
48590 break;
48591 }
48592 }
48593 if (ci) {
48594 size_t shift = (ci->ptype) - types;
48595 swig_type_info *ty = types_initial[shift];
48596 size_t ldoc = (c - methods[i].ml_doc);
48597 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48598 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48599 if (ndoc) {
48600 char *buff = ndoc;
48601 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48602 if (ptr) {
48603 strncpy(buff, methods[i].ml_doc, ldoc);
48604 buff += ldoc;
48605 strncpy(buff, "swig_ptr: ", 10);
48606 buff += 10;
48607 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48608 methods[i].ml_doc = ndoc;
48609 }
48610 }
48611 }
48612 }
53aa7709 48613 }
0085ce49
RD
48614 }
48615
48616#ifdef __cplusplus
48617}
48618#endif
48619
48620/* -----------------------------------------------------------------------------*
48621 * Partial Init method
48622 * -----------------------------------------------------------------------------*/
48623
48624#ifdef __cplusplus
48625extern "C"
48626#endif
48627SWIGEXPORT void SWIG_init(void) {
48628 PyObject *m, *d;
48629
48630 /* Fix SwigMethods to carry the callback ptrs when needed */
48631 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48632
48633 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48634 d = PyModule_GetDict(m);
48635
48636 SWIG_InitializeModule(0);
48637 SWIG_InstallConstants(d,swig_const_table);
48638
48639
48640 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48641 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48642 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48643 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48644 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48645 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48646 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48647 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48648 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48649 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48650 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48651 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48652 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48653 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48654 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48655 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48656 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48657 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48658 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48659 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48660 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48661 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
0085ce49
RD
48662 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48663 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48664 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48665 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48666 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48667 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48668 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48669 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48670 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48671 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48672 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48673 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48674 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48675 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48676 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48677 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48678 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48679 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48680 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48681 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48682 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48683 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48684 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
0085ce49
RD
48685 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48686 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48687 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48688 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48689 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48690 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48691 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48692 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48693 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48694 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48695 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48696 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48697 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48698 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48699 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48700 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48701 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48702 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48703 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48704 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48705 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48706 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48707 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48708 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48709 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48710 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48711 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48712 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48713 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48714 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48715 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48716 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48717 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48718 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48719 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48720 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48721 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48722 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48723 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48724 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48725 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48726 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48727 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48728 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48729 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48730 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48731 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48732 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48733 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48734 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48735 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48736 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48737 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48738 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48739 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48740 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48741 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48742 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48743 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48744 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48745 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48746 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48747 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 48748 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
48749 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
48750 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
48751 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
48752 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
48753 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
0085ce49
RD
48754 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48755 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48756 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48757 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48758 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48759 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48760 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48761 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48762 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48763 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48764 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 48765 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
0085ce49
RD
48766 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48767 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48768 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48769 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48770 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48771 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48772 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48773 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48774 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48775 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48776 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48777 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48778 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48779 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48780 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48781 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48782 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48783 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48784 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48785 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48786 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48787 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48788 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48789 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48790 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48791 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48792 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48793 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48794 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48795 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48796 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48797 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48798 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48799 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48800 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48801 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48802 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48803 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 48804 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
0085ce49
RD
48805 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48806 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48807 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48808 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48809 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48810 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48811 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48812 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48813 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48814 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48815 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48816 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48817 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48818 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48819 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48820 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48821 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48822 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48823 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48824 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48825 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48826 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48827 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48828 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48829 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48830 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48831 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48832 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48833 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48834 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48835 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48836 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48837 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48838 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48839 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48840 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48841 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48842 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48843 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48844 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48845 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48846 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48847 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48848 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48849 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48850 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
48851 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 48852 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
0085ce49
RD
48853 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
48854 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
48855 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
48856 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
48857 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
48858 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
48859 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
48860 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
48861 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
48862 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
48863 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
48864 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
48865 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
48866 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
48867 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
48868 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
48869 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
48870 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
48871 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
48872 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
48873 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
48874 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
48875 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
48876 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
48877 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
48878 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
48879 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
48880 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
48881 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
48882 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
48883 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
48884 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
48885 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
48886 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
48887 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
48888 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
48889 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
48890 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
48891 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
48892 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
48893 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
48894 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
48895
48896 // Map renamed classes back to their common name for OOR
48897 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
48898
48899 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
48900 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
48901 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
48902 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
48903 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
48904 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
48905 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
48906 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
48907 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
48908 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
48909 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
48910 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
48911 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
48912 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
48913 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
0085ce49
RD
48914 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
48915 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
48916 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
48917 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
48918 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
48919 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
48920 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
48921 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
48922 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
48923 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
48924 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
48925 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
48926 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
48927 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
48928 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
48929 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
48930 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
48931 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
48932 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
48933 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
48934 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
48935 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
48936 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
48937 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
48938 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
48939 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
48940 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
48941 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
48942 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
48943 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
48944 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
48945 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
48946 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
48947 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
48948 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
48949 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
48950 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
48951 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
48952 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
48953 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 48954 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
0085ce49
RD
48955
48956 // Map renamed classes back to their common name for OOR
48957 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
48958 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
48959
48960 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
48961 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
48962 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
48963 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
48964 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
48965 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
0085ce49
RD
48966 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
48967 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
48968 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
48969 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
48970 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
0085ce49
RD
48971
48972 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
48973
48974 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
48975 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
48976 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
48977 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
48978 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
48979 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
48980 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
48981 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
48982 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
48983 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
48984 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
48985 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
48986 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
48987 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
48988 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
48989 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
48990 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
48991 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
48992 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
48993 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
48994 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
48995 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
48996 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
48997 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
48998 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
48999 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
49000 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
49001 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
49002 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
49003 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
49004 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
49005 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
49006 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
49007 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
49008 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
49009 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
49010 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
49011 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
49012 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
49013 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
d14a1e28
RD
49014}
49015