]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_controls_wrap.cpp
2.7 --> 2.8
[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]
5172800e
RD
2496#define SWIGTYPE_p_wxCollapsiblePane swig_types[30]
2497#define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498#define SWIGTYPE_p_wxColour swig_types[32]
2499#define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500#define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501#define SWIGTYPE_p_wxComboBox swig_types[35]
2502#define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503#define SWIGTYPE_p_wxContextHelp swig_types[37]
2504#define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505#define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506#define SWIGTYPE_p_wxControl swig_types[40]
2507#define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508#define SWIGTYPE_p_wxCursor swig_types[42]
2509#define SWIGTYPE_p_wxDC swig_types[43]
2510#define SWIGTYPE_p_wxDateEvent swig_types[44]
2511#define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512#define SWIGTYPE_p_wxDateTime swig_types[46]
2513#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514#define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516#define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517#define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518#define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519#define SWIGTYPE_p_wxEvent swig_types[53]
2520#define SWIGTYPE_p_wxEvtHandler swig_types[54]
2521#define SWIGTYPE_p_wxFSFile swig_types[55]
2522#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[56]
2523#define SWIGTYPE_p_wxFilePickerCtrl swig_types[57]
2524#define SWIGTYPE_p_wxFileSystem swig_types[58]
2525#define SWIGTYPE_p_wxFlexGridSizer swig_types[59]
2526#define SWIGTYPE_p_wxFocusEvent swig_types[60]
2527#define SWIGTYPE_p_wxFont swig_types[61]
2528#define SWIGTYPE_p_wxFontPickerCtrl swig_types[62]
2529#define SWIGTYPE_p_wxFontPickerEvent swig_types[63]
2530#define SWIGTYPE_p_wxGBSizerItem swig_types[64]
2531#define SWIGTYPE_p_wxGIFHandler swig_types[65]
2532#define SWIGTYPE_p_wxGauge swig_types[66]
2533#define SWIGTYPE_p_wxGenericDirCtrl swig_types[67]
2534#define SWIGTYPE_p_wxGenericDragImage swig_types[68]
2535#define SWIGTYPE_p_wxGridBagSizer swig_types[69]
2536#define SWIGTYPE_p_wxGridSizer swig_types[70]
2537#define SWIGTYPE_p_wxHelpEvent swig_types[71]
2538#define SWIGTYPE_p_wxHelpProvider swig_types[72]
2539#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[73]
2540#define SWIGTYPE_p_wxHyperlinkEvent swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconizeEvent swig_types[77]
2544#define SWIGTYPE_p_wxIdleEvent swig_types[78]
2545#define SWIGTYPE_p_wxImage swig_types[79]
2546#define SWIGTYPE_p_wxImageHandler swig_types[80]
2547#define SWIGTYPE_p_wxImageList swig_types[81]
2548#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[82]
2549#define SWIGTYPE_p_wxInitDialogEvent swig_types[83]
2550#define SWIGTYPE_p_wxItemContainer swig_types[84]
2551#define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552#define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553#define SWIGTYPE_p_wxLayoutConstraints swig_types[87]
2554#define SWIGTYPE_p_wxListBox swig_types[88]
2555#define SWIGTYPE_p_wxListEvent swig_types[89]
2556#define SWIGTYPE_p_wxListItem swig_types[90]
2557#define SWIGTYPE_p_wxListItemAttr swig_types[91]
2558#define SWIGTYPE_p_wxListView swig_types[92]
2559#define SWIGTYPE_p_wxListbook swig_types[93]
2560#define SWIGTYPE_p_wxListbookEvent swig_types[94]
2561#define SWIGTYPE_p_wxMaximizeEvent swig_types[95]
2562#define SWIGTYPE_p_wxMemoryDC swig_types[96]
2563#define SWIGTYPE_p_wxMenu swig_types[97]
2564#define SWIGTYPE_p_wxMenuBar swig_types[98]
2565#define SWIGTYPE_p_wxMenuEvent swig_types[99]
2566#define SWIGTYPE_p_wxMenuItem swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[105]
2572#define SWIGTYPE_p_wxNcPaintEvent swig_types[106]
2573#define SWIGTYPE_p_wxNotebook swig_types[107]
2574#define SWIGTYPE_p_wxNotebookEvent swig_types[108]
2575#define SWIGTYPE_p_wxNotifyEvent swig_types[109]
2576#define SWIGTYPE_p_wxObject swig_types[110]
2577#define SWIGTYPE_p_wxPCXHandler swig_types[111]
2578#define SWIGTYPE_p_wxPNGHandler swig_types[112]
2579#define SWIGTYPE_p_wxPNMHandler swig_types[113]
2580#define SWIGTYPE_p_wxPaintEvent swig_types[114]
2581#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[115]
2582#define SWIGTYPE_p_wxPaperSize swig_types[116]
2583#define SWIGTYPE_p_wxPickerBase swig_types[117]
2584#define SWIGTYPE_p_wxPoint swig_types[118]
2585#define SWIGTYPE_p_wxPyApp swig_types[119]
2586#define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyControl swig_types[121]
2588#define SWIGTYPE_p_wxPyEvent swig_types[122]
2589#define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590#define SWIGTYPE_p_wxPyListCtrl swig_types[124]
2591#define SWIGTYPE_p_wxPySizer swig_types[125]
2592#define SWIGTYPE_p_wxPyTreeCtrl swig_types[126]
2593#define SWIGTYPE_p_wxPyTreeItemData swig_types[127]
2594#define SWIGTYPE_p_wxPyValidator swig_types[128]
2595#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596#define SWIGTYPE_p_wxRadioBox swig_types[130]
2597#define SWIGTYPE_p_wxRadioButton swig_types[131]
2598#define SWIGTYPE_p_wxRect swig_types[132]
2599#define SWIGTYPE_p_wxScrollBar swig_types[133]
2600#define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601#define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602#define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
2603#define SWIGTYPE_p_wxShowEvent swig_types[137]
2604#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[138]
2605#define SWIGTYPE_p_wxSize swig_types[139]
2606#define SWIGTYPE_p_wxSizeEvent swig_types[140]
2607#define SWIGTYPE_p_wxSizer swig_types[141]
2608#define SWIGTYPE_p_wxSizerItem swig_types[142]
2609#define SWIGTYPE_p_wxSlider swig_types[143]
2610#define SWIGTYPE_p_wxSpinButton swig_types[144]
2611#define SWIGTYPE_p_wxSpinCtrl swig_types[145]
2612#define SWIGTYPE_p_wxSpinEvent swig_types[146]
2613#define SWIGTYPE_p_wxStaticBitmap swig_types[147]
2614#define SWIGTYPE_p_wxStaticBox swig_types[148]
2615#define SWIGTYPE_p_wxStaticBoxSizer swig_types[149]
2616#define SWIGTYPE_p_wxStaticLine swig_types[150]
2617#define SWIGTYPE_p_wxStaticText swig_types[151]
2618#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[152]
2619#define SWIGTYPE_p_wxString swig_types[153]
2620#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[154]
2621#define SWIGTYPE_p_wxTGAHandler swig_types[155]
2622#define SWIGTYPE_p_wxTIFFHandler swig_types[156]
2623#define SWIGTYPE_p_wxTextAttr swig_types[157]
2624#define SWIGTYPE_p_wxTextCtrl swig_types[158]
2625#define SWIGTYPE_p_wxTextUrlEvent swig_types[159]
2626#define SWIGTYPE_p_wxToggleButton swig_types[160]
2627#define SWIGTYPE_p_wxToolBar swig_types[161]
2628#define SWIGTYPE_p_wxToolBarBase swig_types[162]
2629#define SWIGTYPE_p_wxToolBarToolBase swig_types[163]
2630#define SWIGTYPE_p_wxToolbook swig_types[164]
2631#define SWIGTYPE_p_wxToolbookEvent swig_types[165]
2632#define SWIGTYPE_p_wxTreeEvent swig_types[166]
2633#define SWIGTYPE_p_wxTreeItemId swig_types[167]
2634#define SWIGTYPE_p_wxTreebook swig_types[168]
2635#define SWIGTYPE_p_wxTreebookEvent swig_types[169]
2636#define SWIGTYPE_p_wxUpdateUIEvent swig_types[170]
2637#define SWIGTYPE_p_wxValidator swig_types[171]
2638#define SWIGTYPE_p_wxVisualAttributes swig_types[172]
2639#define SWIGTYPE_p_wxWindow swig_types[173]
2640#define SWIGTYPE_p_wxWindowBase swig_types[174]
2641#define SWIGTYPE_p_wxWindowCreateEvent swig_types[175]
2642#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[176]
2643#define SWIGTYPE_p_wxXPMHandler swig_types[177]
2644static swig_type_info *swig_types[179];
2645static swig_module_info swig_module = {swig_types, 178, 0, 0, 0, 0};
32fe5131
RD
2646#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2647#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
093d3ff1
RD
2648
2649/* -------- TYPES TABLE (END) -------- */
2650
0085ce49
RD
2651#if (PY_VERSION_HEX <= 0x02000000)
2652# if !defined(SWIG_PYTHON_CLASSIC)
2653# error "This python version requires to use swig with the '-classic' option"
2654# endif
2655#endif
2656#if (PY_VERSION_HEX <= 0x02020000)
2657# error "This python version requires to use swig with the '-nomodern' option"
2658#endif
2659#if (PY_VERSION_HEX <= 0x02020000)
2660# error "This python version requires to use swig with the '-nomodernargs' option"
2661#endif
2662#ifndef METH_O
2663# error "This python version requires to use swig with the '-nofastunpack' option"
2664#endif
093d3ff1
RD
2665
2666/*-----------------------------------------------
2667 @(target):= _controls_.so
2668 ------------------------------------------------*/
2669#define SWIG_init init_controls_
2670
2671#define SWIG_name "_controls_"
2672
0085ce49
RD
2673#define SWIGVERSION 0x010329
2674
2675
2676#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2677#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2678
2679
2680#include <stdexcept>
2681
2682
2683namespace swig {
2684 class PyObject_ptr {
2685 protected:
2686 PyObject *_obj;
2687
2688 public:
2689 PyObject_ptr() :_obj(0)
2690 {
2691 }
2692
2693 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2694 {
2695 Py_XINCREF(_obj);
2696 }
2697
2698 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2699 {
2700 if (initial_ref) Py_XINCREF(_obj);
2701 }
2702
2703 PyObject_ptr & operator=(const PyObject_ptr& item)
2704 {
2705 Py_XINCREF(item._obj);
2706 Py_XDECREF(_obj);
2707 _obj = item._obj;
2708 return *this;
2709 }
2710
2711 ~PyObject_ptr()
2712 {
2713 Py_XDECREF(_obj);
2714 }
2715
2716 operator PyObject *() const
2717 {
2718 return _obj;
2719 }
2720
2721 PyObject *operator->() const
2722 {
2723 return _obj;
2724 }
2725 };
2726}
2727
2728
2729namespace swig {
2730 struct PyObject_var : PyObject_ptr {
2731 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2732
2733 PyObject_var & operator = (PyObject* obj)
2734 {
2735 Py_XDECREF(_obj);
2736 _obj = obj;
2737 return *this;
2738 }
2739 };
2740}
2741
2742
093d3ff1
RD
2743#include "wx/wxPython/wxPython.h"
2744#include "wx/wxPython/pyclasses.h"
2745
2746 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2747 static const wxString wxPyEmptyString(wxEmptyString);
2748 static const wxString wxPyControlNameStr(wxControlNameStr);
2749
2750 const wxArrayString wxPyEmptyStringArray;
2751
2752 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2753
0085ce49 2754 #define SWIG_From_long PyInt_FromLong
093d3ff1
RD
2755
2756
0085ce49
RD
2757SWIGINTERNINLINE PyObject *
2758SWIG_From_int (int value)
2759{
2760 return SWIG_From_long (value);
2761}
093d3ff1
RD
2762
2763
0085ce49
RD
2764#include <limits.h>
2765#ifndef LLONG_MIN
2766# define LLONG_MIN LONG_LONG_MIN
2767#endif
2768#ifndef LLONG_MAX
2769# define LLONG_MAX LONG_LONG_MAX
2770#endif
2771#ifndef ULLONG_MAX
2772# define ULLONG_MAX ULONG_LONG_MAX
2773#endif
093d3ff1
RD
2774
2775
2776SWIGINTERN int
0085ce49 2777SWIG_AsVal_long (PyObject* obj, long* val)
093d3ff1
RD
2778{
2779 if (PyNumber_Check(obj)) {
2780 if (val) *val = PyInt_AsLong(obj);
0085ce49 2781 return SWIG_OK;
093d3ff1 2782 }
0085ce49 2783 return SWIG_TypeError;
093d3ff1
RD
2784}
2785
2786
093d3ff1 2787SWIGINTERN int
0085ce49
RD
2788SWIG_AsVal_int (PyObject * obj, int *val)
2789{
093d3ff1 2790 long v;
0085ce49
RD
2791 int res = SWIG_AsVal_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v < INT_MIN || v > INT_MAX)) {
2794 return SWIG_OverflowError;
093d3ff1 2795 } else {
0085ce49 2796 if (val) *val = static_cast< int >(v);
093d3ff1 2797 }
0085ce49
RD
2798 }
2799 return res;
994141e6
RD
2800}
2801
c32bde28 2802 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
15afbcd0 2803
093d3ff1 2804SWIGINTERN int
0085ce49 2805SWIG_AsVal_bool (PyObject *obj, bool *val)
15afbcd0 2806{
c32bde28
RD
2807 if (obj == Py_True) {
2808 if (val) *val = true;
0085ce49
RD
2809 return SWIG_OK;
2810 } else if (obj == Py_False) {
c32bde28 2811 if (val) *val = false;
0085ce49 2812 return SWIG_OK;
093d3ff1 2813 } else {
0085ce49
RD
2814 long v = 0;
2815 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2816 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2817 return res;
c32bde28 2818 }
15afbcd0
RD
2819}
2820
b2dc1044
RD
2821 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2822 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2823 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2824 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2825 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2826 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
d14a1e28
RD
2827
2828#include <wx/checklst.h>
d14a1e28 2829
b2dc1044 2830 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
0085ce49 2831SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2832 if (clientData)
2833 {
d14a1e28
RD
2834 wxPyClientData* data = new wxPyClientData(clientData);
2835 self->Insert(item, pos, data);
e9d6f3a4
RD
2836 }
2837 else
d14a1e28
RD
2838 self->Insert(item, pos);
2839 }
50f151d7
RD
2840
2841SWIGINTERN int
2842SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2843{
2844 long v = 0;
2845 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2846 return SWIG_TypeError;
2847 }
2848 else if (val)
2849 *val = (unsigned long)v;
2850 return SWIG_OK;
2851}
2852
2853
2854SWIGINTERN int
2855SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2856{
2857 unsigned long v;
2858 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2859 if (SWIG_IsOK(res)) {
2860 if ((v > UINT_MAX)) {
2861 return SWIG_OverflowError;
2862 } else {
2863 if (val) *val = static_cast< unsigned int >(v);
2864 }
2865 }
2866 return res;
2867}
2868
0085ce49 2869SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2870 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2871 wxArrayInt lst;
2872 self->GetSelections(lst);
2873 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2874 for (size_t i=0; i<lst.GetCount(); i++)
2875 {
7e08d4ef
RD
2876 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2877 }
e9d6f3a4 2878 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2879 return tup;
2880 }
0085ce49 2881SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
c3eb6258
RD
2882 #ifdef __WXMSW__
2883 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2884 self->GetItem(item)->SetTextColour(c);
2885 #endif
2886 }
0085ce49 2887SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
c3eb6258
RD
2888 #ifdef __WXMSW__
2889 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2890 self->GetItem(item)->SetBackgroundColour(c);
2891 #endif
2892 }
0085ce49 2893SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
c3eb6258
RD
2894 #ifdef __WXMSW__
2895 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2896 self->GetItem(item)->SetFont(f);
2897 #endif
2898 }
b2dc1044 2899 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
0085ce49 2900SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d14a1e28
RD
2901 self->AppendText(text);
2902 }
0085ce49 2903SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d14a1e28
RD
2904 return self->GetValue().Mid(from, to - from);
2905 }
b2dc1044
RD
2906 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2907 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
33b885b9 2908 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
b2dc1044
RD
2909 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2910 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
75219dcb
RD
2911
2912SWIGINTERNINLINE PyObject*
2913SWIG_From_unsigned_SS_long (unsigned long value)
2914{
2915 return (value > LONG_MAX) ?
2916 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2917}
2918
2919
2920SWIGINTERNINLINE PyObject *
2921SWIG_From_size_t (size_t value)
2922{
2923 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2924}
2925
50f151d7
RD
2926
2927SWIGINTERNINLINE PyObject *
2928SWIG_From_unsigned_SS_int (unsigned int value)
2929{
2930 return SWIG_From_unsigned_SS_long (value);
2931}
2932
d14a1e28
RD
2933
2934#include <wx/slider.h>
2935
d14a1e28 2936
b2dc1044 2937 static const wxString wxPySliderNameStr(wxSliderNameStr);
33b885b9 2938 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
d14a1e28 2939
15afbcd0
RD
2940#if !wxUSE_TOGGLEBTN
2941// implement dummy items for platforms that don't have this class
d14a1e28
RD
2942
2943#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2944
2945class wxToggleButton : public wxControl
2946{
2947public:
2948 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2949 const wxPoint&, const wxSize&, long,
2950 const wxValidator&, const wxString&)
39f61e25 2951 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
2952
2953 wxToggleButton()
39f61e25 2954 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
2955};
2956#endif
2957
51b83b37 2958 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
994141e6 2959
7e08d4ef 2960SWIGINTERNINLINE int
0085ce49 2961SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2962{
7e08d4ef 2963 unsigned long v;
0085ce49
RD
2964 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2965 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2966 return res;
7e08d4ef 2967}
7e08d4ef 2968
b2dc1044 2969 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
0085ce49 2970SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d14a1e28
RD
2971 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2972 if (udata) {
2973 Py_INCREF(udata->m_obj);
2974 return udata->m_obj;
2975 } else {
2976 Py_INCREF(Py_None);
2977 return Py_None;
2978 }
2979 }
0085ce49 2980SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d14a1e28
RD
2981 self->SetClientData(new wxPyUserData(clientData));
2982 }
0085ce49 2983SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d14a1e28
RD
2984 wxPyUserData* udata = NULL;
2985 if (clientData && clientData != Py_None)
2986 udata = new wxPyUserData(clientData);
2987 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2988 shortHelp, longHelp, udata);
2989 }
0085ce49 2990SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d14a1e28
RD
2991 wxPyUserData* udata = NULL;
2992 if (clientData && clientData != Py_None)
2993 udata = new wxPyUserData(clientData);
2994 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2995 shortHelp, longHelp, udata);
2996 }
0085ce49 2997SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d14a1e28
RD
2998 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2999 if (udata) {
3000 Py_INCREF(udata->m_obj);
3001 return udata->m_obj;
3002 } else {
3003 Py_INCREF(Py_None);
3004 return Py_None;
3005 }
3006 }
0085ce49 3007SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d14a1e28
RD
3008 self->SetToolClientData(id, new wxPyUserData(clientData));
3009 }
3010
3011#include <wx/listctrl.h>
3012
7557b9b5 3013 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
0085ce49 3014SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d14a1e28
RD
3015 // Python aware sorting function for wxPyListCtrl
3016 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3017 int retval = 0;
3018 PyObject* func = (PyObject*)funcPtr;
5a446332 3019 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28
RD
3020
3021 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3022 PyObject* result = PyEval_CallObject(func, args);
3023 Py_DECREF(args);
3024 if (result) {
3025 retval = PyInt_AsLong(result);
3026 Py_DECREF(result);
3027 }
3028
4f89f6a3 3029 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3030 return retval;
3031 }
3032
3033 // C++ Version of a Python aware class
3034class wxPyListCtrl : public wxListCtrl {
32fe5131 3035 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d14a1e28
RD
3036public:
3037 wxPyListCtrl() : wxListCtrl() {}
3038 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3039 const wxPoint& pos,
3040 const wxSize& size,
3041 long style,
3042 const wxValidator& validator,
3043 const wxString& name) :
3044 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3045
3046 bool Create(wxWindow* parent, wxWindowID id,
3047 const wxPoint& pos,
3048 const wxSize& size,
3049 long style,
3050 const wxValidator& validator,
3051 const wxString& name) {
3052 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3053 }
3054
3055 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d14a1e28
RD
3056 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3057
84f85550
RD
3058 // use the virtual version to avoid a confusing assert in the base class
3059 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3060 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3061
d14a1e28
RD
3062 PYPRIVATE;
3063};
3064
3065IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3066
3067IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d14a1e28 3068IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3069IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
7e08d4ef
RD
3070IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3071
d14a1e28 3072
0085ce49 3073SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d14a1e28
RD
3074 wxListItem item;
3075 item.SetMask( wxLIST_MASK_STATE |
3076 wxLIST_MASK_TEXT |
3077 wxLIST_MASK_IMAGE |
3078 wxLIST_MASK_DATA |
3079 wxLIST_SET_ITEM |
3080 wxLIST_MASK_WIDTH |
3081 wxLIST_MASK_FORMAT
3082 );
3083 if (self->GetColumn(col, item))
3084 return new wxListItem(item);
3085 else
3086 return NULL;
3087 }
0085ce49 3088SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d14a1e28
RD
3089 wxListItem* info = new wxListItem;
3090 info->m_itemId = itemId;
3091 info->m_col = col;
3092 info->m_mask = 0xFFFF;
3093 self->GetItem(*info);
3094 return info;
3095 }
0085ce49 3096SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d14a1e28
RD
3097 wxPoint pos;
3098 self->GetItemPosition(item, pos);
3099 return pos;
3100 }
0085ce49 3101SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d14a1e28
RD
3102 wxRect rect;
3103 self->GetItemRect(item, rect, code);
3104 return rect;
3105 }
0085ce49 3106SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d14a1e28 3107 if (!PyCallable_Check(func))
ae8162c8 3108 return false;
d14a1e28
RD
3109 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3110 }
0085ce49 3111SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d14a1e28
RD
3112
3113
3114
3115 return (wxWindow*)self->m_mainWin;
3116
3117 }
3118
3119#include <wx/treectrl.h>
3120#include "wx/wxPython/pytree.h"
d14a1e28 3121
33b885b9 3122 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
0085ce49
RD
3123SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3124SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3125SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3126
3127 static wxTreeItemId wxNullTreeItemId;
3128
d14a1e28
RD
3129 // C++ version of Python aware wxTreeCtrl
3130class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3131 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d14a1e28
RD
3132public:
3133 wxPyTreeCtrl() : wxTreeCtrl() {}
3134 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3135 const wxPoint& pos,
3136 const wxSize& size,
3137 long style,
3138 const wxValidator& validator,
3139 const wxString& name) :
3140 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3141
3142 bool Create(wxWindow *parent, wxWindowID id,
3143 const wxPoint& pos,
3144 const wxSize& size,
3145 long style,
3146 const wxValidator& validator,
3147 const wxString& name) {
3148 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3149 }
3150
3151
3152 int OnCompareItems(const wxTreeItemId& item1,
3153 const wxTreeItemId& item2) {
3154 int rval = 0;
3155 bool found;
5a446332 3156 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3157 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
ae8162c8
RD
3158 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3159 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d14a1e28
RD
3160 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3161 Py_DECREF(o1);
3162 Py_DECREF(o2);
3163 }
4f89f6a3 3164 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3165 if (! found)
3166 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3167 return rval;
3168 }
3169 PYPRIVATE;
3170};
3171
3172IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3173
3174
0085ce49 3175SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d14a1e28
RD
3176 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3177 if (data == NULL) {
3178 data = new wxPyTreeItemData();
3179 data->SetId(item); // set the id
3180 self->SetItemData(item, data);
3181 }
3182 return data;
3183 }
0085ce49 3184SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d14a1e28
RD
3185 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3186 if (data == NULL) {
3187 data = new wxPyTreeItemData();
3188 data->SetId(item); // set the id
3189 self->SetItemData(item, data);
3190 }
3191 return data->GetData();
3192 }
0085ce49 3193SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d14a1e28
RD
3194 data->SetId(item); // set the id
3195 self->SetItemData(item, data);
3196 }
0085ce49 3197SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d14a1e28
RD
3198 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3199 if (data == NULL) {
3200 data = new wxPyTreeItemData(obj);
3201 data->SetId(item); // set the id
3202 self->SetItemData(item, data);
3203 } else
3204 data->SetData(obj);
3205 }
0085ce49 3206SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3207 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28
RD
3208 PyObject* rval = PyList_New(0);
3209 wxArrayTreeItemIds array;
3210 size_t num, x;
3211 num = self->GetSelections(array);
3212 for (x=0; x < num; x++) {
3213 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
ae8162c8 3214 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d14a1e28 3215 PyList_Append(rval, item);
1a10c483 3216 Py_DECREF(item);
d14a1e28 3217 }
4f89f6a3 3218 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3219 return rval;
3220 }
0085ce49 3221SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
58203fa6
RD
3222 void* cookie = 0;
3223 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3224 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3225 PyObject* tup = PyTuple_New(2);
ae8162c8 3226 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
58203fa6 3227 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
4f89f6a3 3228 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3229 return tup;
3230 }
0085ce49 3231SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
58203fa6 3232 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3233 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3234 PyObject* tup = PyTuple_New(2);
ae8162c8 3235 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
58203fa6 3236 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
4f89f6a3 3237 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3238 return tup;
3239 }
0085ce49 3240SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d14a1e28
RD
3241 wxRect rect;
3242 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3243 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3244 wxRect* r = new wxRect(rect);
ae8162c8 3245 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
4f89f6a3 3246 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3247 return val;
3248 }
3249 else
3250 RETURN_NONE();
3251 }
b2dc1044 3252 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c32bde28 3253
32fe5131 3254SWIGINTERNINLINE PyObject*
0085ce49 3255 SWIG_From_bool (bool value)
c32bde28 3256{
0085ce49 3257 return PyBool_FromLong(value ? 1 : 0);
c32bde28
RD
3258}
3259
d14a1e28
RD
3260 // C++ version of Python aware wxControl
3261class wxPyControl : public wxControl
3262{
3263 DECLARE_DYNAMIC_CLASS(wxPyControl)
3264public:
3265 wxPyControl() : wxControl() {}
3266 wxPyControl(wxWindow* parent, const wxWindowID id,
3267 const wxPoint& pos = wxDefaultPosition,
3268 const wxSize& size = wxDefaultSize,
3269 long style = 0,
3270 const wxValidator& validator=wxDefaultValidator,
3271 const wxString& name = wxPyControlNameStr)
3272 : wxControl(parent, id, pos, size, style, validator, name) {}
3273
3274
976dbff5
RD
3275 bool DoEraseBackground(wxDC* dc) {
3276#ifdef __WXMSW__
3277 return wxWindow::DoEraseBackground(dc->GetHDC());
3278#else
3279 dc->SetBackground(wxBrush(GetBackgroundColour()));
3280 dc->Clear();
3281 return true;
3282#endif
3283 }
3284
d14a1e28
RD
3285 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3286 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3287 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3288 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3289
3290 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3291 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3292 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3293
3294 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3295 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3296
3297 DEC_PYCALLBACK__(InitDialog);
3298 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3299 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3300 DEC_PYCALLBACK_BOOL_(Validate);
3301
3302 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3303 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3304 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3305
3306 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3307 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3308
db3e571a 3309 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
db3e571a 3310 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
4276dc52 3311
51b83b37
RD
3312 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3313
8d38bd1d
RD
3314 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3315
d14a1e28
RD
3316 PYPRIVATE;
3317};
3318
3319IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3320
3321IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3322IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3323IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3324IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3325
3326IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3327IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3328IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3329
3330IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3331IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3332
3333IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3334IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3335IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3336IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3337
3338IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3339IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3340IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3341
3342IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3343IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3344
db3e571a 3345IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
db3e571a 3346IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d14a1e28 3347
51b83b37 3348IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3349
3350IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3351
d14a1e28
RD
3352
3353
0085ce49 3354SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
e811c8ce
RD
3355
3356#include <wx/generic/dragimgg.h>
3357
53aa7709 3358 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
0085ce49 3359SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3360 wxDateTime rv;
3361 self->GetRange(&rv, NULL);
3362 return rv;
3363 }
0085ce49 3364SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3365 wxDateTime rv;
3366 self->GetRange(NULL, &rv);
3367 return rv;
3368 }
704eda0c 3369 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3370 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3371 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3372 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3373 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3374 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3375 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3376 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
5172800e 3377 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
d14a1e28
RD
3378#ifdef __cplusplus
3379extern "C" {
3380#endif
0085ce49
RD
3381SWIGINTERN int ButtonNameStr_set(PyObject *) {
3382 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3383 return 1;
b2dc1044
RD
3384}
3385
3386
0085ce49
RD
3387SWIGINTERN PyObject *ButtonNameStr_get(void) {
3388 PyObject *pyobj = 0;
3389
3390 {
b2dc1044 3391#if wxUSE_UNICODE
0085ce49 3392 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
b2dc1044 3393#else
0085ce49 3394 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
b2dc1044 3395#endif
0085ce49
RD
3396 }
3397 return pyobj;
3398}
3399
3400
3401SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3402 PyObject *resultobj = 0;
3403 wxWindow *arg1 = (wxWindow *) 0 ;
3404 int arg2 = (int) -1 ;
3405 wxString const &arg3_defvalue = wxPyEmptyString ;
3406 wxString *arg3 = (wxString *) &arg3_defvalue ;
3407 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3408 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3409 wxSize const &arg5_defvalue = wxDefaultSize ;
3410 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3411 long arg6 = (long) 0 ;
3412 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3413 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3414 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3415 wxString *arg8 = (wxString *) &arg8_defvalue ;
3416 wxButton *result = 0 ;
3417 void *argp1 = 0 ;
3418 int res1 = 0 ;
3419 int val2 ;
3420 int ecode2 = 0 ;
3421 bool temp3 = false ;
3422 wxPoint temp4 ;
3423 wxSize temp5 ;
3424 long val6 ;
3425 int ecode6 = 0 ;
3426 void *argp7 = 0 ;
3427 int res7 = 0 ;
3428 bool temp8 = false ;
3429 PyObject * obj0 = 0 ;
3430 PyObject * obj1 = 0 ;
3431 PyObject * obj2 = 0 ;
3432 PyObject * obj3 = 0 ;
3433 PyObject * obj4 = 0 ;
3434 PyObject * obj5 = 0 ;
3435 PyObject * obj6 = 0 ;
3436 PyObject * obj7 = 0 ;
3437 char * kwnames[] = {
3438 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3439 };
3440
3441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3443 if (!SWIG_IsOK(res1)) {
3444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3445 }
3446 arg1 = reinterpret_cast< wxWindow * >(argp1);
3447 if (obj1) {
3448 ecode2 = SWIG_AsVal_int(obj1, &val2);
3449 if (!SWIG_IsOK(ecode2)) {
3450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3451 }
3452 arg2 = static_cast< int >(val2);
3453 }
3454 if (obj2) {
d14a1e28 3455 {
0085ce49
RD
3456 arg3 = wxString_in_helper(obj2);
3457 if (arg3 == NULL) SWIG_fail;
3458 temp3 = true;
d14a1e28 3459 }
0085ce49
RD
3460 }
3461 if (obj3) {
d14a1e28 3462 {
0085ce49
RD
3463 arg4 = &temp4;
3464 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 3465 }
0085ce49
RD
3466 }
3467 if (obj4) {
d14a1e28 3468 {
0085ce49
RD
3469 arg5 = &temp5;
3470 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3471 }
0085ce49
RD
3472 }
3473 if (obj5) {
3474 ecode6 = SWIG_AsVal_long(obj5, &val6);
3475 if (!SWIG_IsOK(ecode6)) {
3476 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3477 }
3478 arg6 = static_cast< long >(val6);
3479 }
3480 if (obj6) {
3481 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3482 if (!SWIG_IsOK(res7)) {
3483 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 3484 }
0085ce49
RD
3485 if (!argp7) {
3486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 3487 }
0085ce49
RD
3488 arg7 = reinterpret_cast< wxValidator * >(argp7);
3489 }
3490 if (obj7) {
d14a1e28 3491 {
0085ce49
RD
3492 arg8 = wxString_in_helper(obj7);
3493 if (arg8 == NULL) SWIG_fail;
3494 temp8 = true;
d14a1e28 3495 }
0085ce49
RD
3496 }
3497 {
3498 if (!wxPyCheckForApp()) SWIG_fail;
3499 PyThreadState* __tstate = wxPyBeginAllowThreads();
3500 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3501 wxPyEndAllowThreads(__tstate);
3502 if (PyErr_Occurred()) SWIG_fail;
3503 }
3504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3505 {
3506 if (temp3)
3507 delete arg3;
3508 }
3509 {
3510 if (temp8)
3511 delete arg8;
3512 }
3513 return resultobj;
3514fail:
3515 {
3516 if (temp3)
3517 delete arg3;
3518 }
3519 {
3520 if (temp8)
3521 delete arg8;
3522 }
3523 return NULL;
d14a1e28
RD
3524}
3525
3526
0085ce49
RD
3527SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3528 PyObject *resultobj = 0;
3529 wxButton *result = 0 ;
3530
3531 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3532 {
3533 if (!wxPyCheckForApp()) SWIG_fail;
3534 PyThreadState* __tstate = wxPyBeginAllowThreads();
3535 result = (wxButton *)new wxButton();
3536 wxPyEndAllowThreads(__tstate);
3537 if (PyErr_Occurred()) SWIG_fail;
3538 }
3539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3540 return resultobj;
3541fail:
3542 return NULL;
3543}
3544
3545
3546SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3547 PyObject *resultobj = 0;
3548 wxButton *arg1 = (wxButton *) 0 ;
3549 wxWindow *arg2 = (wxWindow *) 0 ;
3550 int arg3 = (int) -1 ;
3551 wxString const &arg4_defvalue = wxPyEmptyString ;
3552 wxString *arg4 = (wxString *) &arg4_defvalue ;
3553 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3554 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3555 wxSize const &arg6_defvalue = wxDefaultSize ;
3556 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3557 long arg7 = (long) 0 ;
3558 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3559 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3560 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3561 wxString *arg9 = (wxString *) &arg9_defvalue ;
3562 bool result;
3563 void *argp1 = 0 ;
3564 int res1 = 0 ;
3565 void *argp2 = 0 ;
3566 int res2 = 0 ;
3567 int val3 ;
3568 int ecode3 = 0 ;
3569 bool temp4 = false ;
3570 wxPoint temp5 ;
3571 wxSize temp6 ;
3572 long val7 ;
3573 int ecode7 = 0 ;
3574 void *argp8 = 0 ;
3575 int res8 = 0 ;
3576 bool temp9 = false ;
3577 PyObject * obj0 = 0 ;
3578 PyObject * obj1 = 0 ;
3579 PyObject * obj2 = 0 ;
3580 PyObject * obj3 = 0 ;
3581 PyObject * obj4 = 0 ;
3582 PyObject * obj5 = 0 ;
3583 PyObject * obj6 = 0 ;
3584 PyObject * obj7 = 0 ;
3585 PyObject * obj8 = 0 ;
3586 char * kwnames[] = {
3587 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3588 };
3589
3590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3592 if (!SWIG_IsOK(res1)) {
3593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3594 }
3595 arg1 = reinterpret_cast< wxButton * >(argp1);
3596 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3597 if (!SWIG_IsOK(res2)) {
3598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3599 }
3600 arg2 = reinterpret_cast< wxWindow * >(argp2);
3601 if (obj2) {
3602 ecode3 = SWIG_AsVal_int(obj2, &val3);
3603 if (!SWIG_IsOK(ecode3)) {
3604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3605 }
3606 arg3 = static_cast< int >(val3);
3607 }
3608 if (obj3) {
d14a1e28 3609 {
0085ce49
RD
3610 arg4 = wxString_in_helper(obj3);
3611 if (arg4 == NULL) SWIG_fail;
3612 temp4 = true;
d14a1e28 3613 }
0085ce49
RD
3614 }
3615 if (obj4) {
4f89f6a3 3616 {
0085ce49
RD
3617 arg5 = &temp5;
3618 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4f89f6a3 3619 }
0085ce49
RD
3620 }
3621 if (obj5) {
d14a1e28 3622 {
0085ce49
RD
3623 arg6 = &temp6;
3624 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 3625 }
0085ce49
RD
3626 }
3627 if (obj6) {
3628 ecode7 = SWIG_AsVal_long(obj6, &val7);
3629 if (!SWIG_IsOK(ecode7)) {
3630 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3631 }
3632 arg7 = static_cast< long >(val7);
3633 }
3634 if (obj7) {
3635 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3636 if (!SWIG_IsOK(res8)) {
3637 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3638 }
0085ce49
RD
3639 if (!argp8) {
3640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3641 }
0085ce49
RD
3642 arg8 = reinterpret_cast< wxValidator * >(argp8);
3643 }
3644 if (obj8) {
d14a1e28 3645 {
0085ce49
RD
3646 arg9 = wxString_in_helper(obj8);
3647 if (arg9 == NULL) SWIG_fail;
3648 temp9 = true;
d14a1e28 3649 }
0085ce49
RD
3650 }
3651 {
3652 PyThreadState* __tstate = wxPyBeginAllowThreads();
3653 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3654 wxPyEndAllowThreads(__tstate);
3655 if (PyErr_Occurred()) SWIG_fail;
3656 }
3657 {
3658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3659 }
3660 {
3661 if (temp4)
3662 delete arg4;
3663 }
3664 {
3665 if (temp9)
3666 delete arg9;
3667 }
3668 return resultobj;
3669fail:
3670 {
3671 if (temp4)
3672 delete arg4;
3673 }
3674 {
3675 if (temp9)
3676 delete arg9;
3677 }
3678 return NULL;
d14a1e28
RD
3679}
3680
3681
0085ce49
RD
3682SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3683 PyObject *resultobj = 0;
3684 wxButton *arg1 = (wxButton *) 0 ;
3685 void *argp1 = 0 ;
3686 int res1 = 0 ;
3687 PyObject *swig_obj[1] ;
3688
3689 if (!args) SWIG_fail;
3690 swig_obj[0] = args;
3691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3692 if (!SWIG_IsOK(res1)) {
3693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3694 }
3695 arg1 = reinterpret_cast< wxButton * >(argp1);
3696 {
3697 PyThreadState* __tstate = wxPyBeginAllowThreads();
3698 (arg1)->SetDefault();
3699 wxPyEndAllowThreads(__tstate);
3700 if (PyErr_Occurred()) SWIG_fail;
3701 }
3702 resultobj = SWIG_Py_Void();
3703 return resultobj;
3704fail:
3705 return NULL;
d14a1e28
RD
3706}
3707
3708
0085ce49
RD
3709SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3710 PyObject *resultobj = 0;
3711 wxSize result;
3712
3713 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3714 {
3715 PyThreadState* __tstate = wxPyBeginAllowThreads();
3716 result = wxButton::GetDefaultSize();
3717 wxPyEndAllowThreads(__tstate);
3718 if (PyErr_Occurred()) SWIG_fail;
3719 }
3720 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3721 return resultobj;
3722fail:
3723 return NULL;
3724}
3725
3726
3727SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3728 PyObject *resultobj = 0;
3729 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3730 SwigValueWrapper<wxVisualAttributes > result;
3731 int val1 ;
3732 int ecode1 = 0 ;
3733 PyObject * obj0 = 0 ;
3734 char * kwnames[] = {
3735 (char *) "variant", NULL
3736 };
3737
3738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3739 if (obj0) {
3740 ecode1 = SWIG_AsVal_int(obj0, &val1);
3741 if (!SWIG_IsOK(ecode1)) {
3742 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3743 }
3744 arg1 = static_cast< wxWindowVariant >(val1);
3745 }
3746 {
3747 if (!wxPyCheckForApp()) SWIG_fail;
3748 PyThreadState* __tstate = wxPyBeginAllowThreads();
3749 result = wxButton::GetClassDefaultAttributes(arg1);
3750 wxPyEndAllowThreads(__tstate);
3751 if (PyErr_Occurred()) SWIG_fail;
3752 }
3753 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3754 return resultobj;
3755fail:
3756 return NULL;
3757}
3758
3759
3760SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3761 PyObject *obj;
3762 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3763 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3764 return SWIG_Py_Void();
3765}
3766
3767SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3768 return SWIG_Python_InitShadowInstance(args);
3769}
3770
3771SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3772 PyObject *resultobj = 0;
3773 wxWindow *arg1 = (wxWindow *) 0 ;
3774 int arg2 = (int) -1 ;
3775 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3776 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3777 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3778 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3779 wxSize const &arg5_defvalue = wxDefaultSize ;
3780 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3781 long arg6 = (long) wxBU_AUTODRAW ;
3782 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3783 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3784 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3785 wxString *arg8 = (wxString *) &arg8_defvalue ;
3786 wxBitmapButton *result = 0 ;
3787 void *argp1 = 0 ;
3788 int res1 = 0 ;
3789 int val2 ;
3790 int ecode2 = 0 ;
3791 void *argp3 = 0 ;
3792 int res3 = 0 ;
3793 wxPoint temp4 ;
3794 wxSize temp5 ;
3795 long val6 ;
3796 int ecode6 = 0 ;
3797 void *argp7 = 0 ;
3798 int res7 = 0 ;
3799 bool temp8 = false ;
3800 PyObject * obj0 = 0 ;
3801 PyObject * obj1 = 0 ;
3802 PyObject * obj2 = 0 ;
3803 PyObject * obj3 = 0 ;
3804 PyObject * obj4 = 0 ;
3805 PyObject * obj5 = 0 ;
3806 PyObject * obj6 = 0 ;
3807 PyObject * obj7 = 0 ;
3808 char * kwnames[] = {
3809 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3810 };
3811
3812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3814 if (!SWIG_IsOK(res1)) {
3815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3816 }
3817 arg1 = reinterpret_cast< wxWindow * >(argp1);
3818 if (obj1) {
3819 ecode2 = SWIG_AsVal_int(obj1, &val2);
3820 if (!SWIG_IsOK(ecode2)) {
3821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3822 }
3823 arg2 = static_cast< int >(val2);
3824 }
3825 if (obj2) {
3826 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3827 if (!SWIG_IsOK(res3)) {
3828 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3829 }
3830 if (!argp3) {
3831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3832 }
3833 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3834 }
3835 if (obj3) {
d14a1e28 3836 {
0085ce49
RD
3837 arg4 = &temp4;
3838 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 3839 }
0085ce49
RD
3840 }
3841 if (obj4) {
d14a1e28 3842 {
0085ce49
RD
3843 arg5 = &temp5;
3844 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3845 }
0085ce49
RD
3846 }
3847 if (obj5) {
3848 ecode6 = SWIG_AsVal_long(obj5, &val6);
3849 if (!SWIG_IsOK(ecode6)) {
3850 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3851 }
3852 arg6 = static_cast< long >(val6);
3853 }
3854 if (obj6) {
3855 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3856 if (!SWIG_IsOK(res7)) {
3857 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
22bfe96c 3858 }
0085ce49
RD
3859 if (!argp7) {
3860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
22bfe96c 3861 }
0085ce49
RD
3862 arg7 = reinterpret_cast< wxValidator * >(argp7);
3863 }
3864 if (obj7) {
22bfe96c 3865 {
0085ce49
RD
3866 arg8 = wxString_in_helper(obj7);
3867 if (arg8 == NULL) SWIG_fail;
3868 temp8 = true;
22bfe96c 3869 }
0085ce49
RD
3870 }
3871 {
3872 if (!wxPyCheckForApp()) SWIG_fail;
3873 PyThreadState* __tstate = wxPyBeginAllowThreads();
3874 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3875 wxPyEndAllowThreads(__tstate);
3876 if (PyErr_Occurred()) SWIG_fail;
3877 }
3878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3879 {
3880 if (temp8)
3881 delete arg8;
3882 }
3883 return resultobj;
3884fail:
3885 {
3886 if (temp8)
3887 delete arg8;
3888 }
3889 return NULL;
22bfe96c
RD
3890}
3891
3892
0085ce49
RD
3893SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3894 PyObject *resultobj = 0;
3895 wxBitmapButton *result = 0 ;
3896
3897 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3898 {
3899 if (!wxPyCheckForApp()) SWIG_fail;
3900 PyThreadState* __tstate = wxPyBeginAllowThreads();
3901 result = (wxBitmapButton *)new wxBitmapButton();
3902 wxPyEndAllowThreads(__tstate);
3903 if (PyErr_Occurred()) SWIG_fail;
3904 }
3905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3906 return resultobj;
3907fail:
3908 return NULL;
3909}
3910
3911
3912SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3913 PyObject *resultobj = 0;
3914 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3915 wxWindow *arg2 = (wxWindow *) 0 ;
3916 int arg3 = (int) -1 ;
3917 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3918 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3919 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3920 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3921 wxSize const &arg6_defvalue = wxDefaultSize ;
3922 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3923 long arg7 = (long) wxBU_AUTODRAW ;
3924 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3925 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3926 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3927 wxString *arg9 = (wxString *) &arg9_defvalue ;
3928 bool result;
3929 void *argp1 = 0 ;
3930 int res1 = 0 ;
3931 void *argp2 = 0 ;
3932 int res2 = 0 ;
3933 int val3 ;
3934 int ecode3 = 0 ;
3935 void *argp4 = 0 ;
3936 int res4 = 0 ;
3937 wxPoint temp5 ;
3938 wxSize temp6 ;
3939 long val7 ;
3940 int ecode7 = 0 ;
3941 void *argp8 = 0 ;
3942 int res8 = 0 ;
3943 bool temp9 = false ;
3944 PyObject * obj0 = 0 ;
3945 PyObject * obj1 = 0 ;
3946 PyObject * obj2 = 0 ;
3947 PyObject * obj3 = 0 ;
3948 PyObject * obj4 = 0 ;
3949 PyObject * obj5 = 0 ;
3950 PyObject * obj6 = 0 ;
3951 PyObject * obj7 = 0 ;
3952 PyObject * obj8 = 0 ;
3953 char * kwnames[] = {
3954 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3955 };
3956
3957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3959 if (!SWIG_IsOK(res1)) {
3960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3961 }
3962 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3963 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3964 if (!SWIG_IsOK(res2)) {
3965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3966 }
3967 arg2 = reinterpret_cast< wxWindow * >(argp2);
3968 if (obj2) {
3969 ecode3 = SWIG_AsVal_int(obj2, &val3);
3970 if (!SWIG_IsOK(ecode3)) {
3971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3972 }
3973 arg3 = static_cast< int >(val3);
3974 }
3975 if (obj3) {
3976 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3977 if (!SWIG_IsOK(res4)) {
3978 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d14a1e28 3979 }
0085ce49
RD
3980 if (!argp4) {
3981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d14a1e28 3982 }
0085ce49
RD
3983 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3984 }
3985 if (obj4) {
d14a1e28 3986 {
0085ce49
RD
3987 arg5 = &temp5;
3988 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3989 }
0085ce49
RD
3990 }
3991 if (obj5) {
d14a1e28 3992 {
0085ce49
RD
3993 arg6 = &temp6;
3994 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3995 }
3996 }
3997 if (obj6) {
3998 ecode7 = SWIG_AsVal_long(obj6, &val7);
3999 if (!SWIG_IsOK(ecode7)) {
4000 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4001 }
4002 arg7 = static_cast< long >(val7);
4003 }
4004 if (obj7) {
4005 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4006 if (!SWIG_IsOK(res8)) {
4007 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4008 }
4009 if (!argp8) {
4010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 4011 }
0085ce49
RD
4012 arg8 = reinterpret_cast< wxValidator * >(argp8);
4013 }
4014 if (obj8) {
d14a1e28 4015 {
0085ce49
RD
4016 arg9 = wxString_in_helper(obj8);
4017 if (arg9 == NULL) SWIG_fail;
4018 temp9 = true;
d14a1e28 4019 }
0085ce49
RD
4020 }
4021 {
4022 PyThreadState* __tstate = wxPyBeginAllowThreads();
4023 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4024 wxPyEndAllowThreads(__tstate);
4025 if (PyErr_Occurred()) SWIG_fail;
4026 }
4027 {
4028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4029 }
4030 {
4031 if (temp9)
4032 delete arg9;
4033 }
4034 return resultobj;
4035fail:
4036 {
4037 if (temp9)
4038 delete arg9;
4039 }
4040 return NULL;
d14a1e28
RD
4041}
4042
4043
0085ce49
RD
4044SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4045 PyObject *resultobj = 0;
4046 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4047 wxBitmap result;
4048 void *argp1 = 0 ;
4049 int res1 = 0 ;
4050 PyObject *swig_obj[1] ;
4051
4052 if (!args) SWIG_fail;
4053 swig_obj[0] = args;
4054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4055 if (!SWIG_IsOK(res1)) {
4056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4057 }
4058 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4059 {
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
4061 result = (arg1)->GetBitmapLabel();
4062 wxPyEndAllowThreads(__tstate);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 }
4065 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4066 return resultobj;
4067fail:
4068 return NULL;
d14a1e28
RD
4069}
4070
4071
0085ce49
RD
4072SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4073 PyObject *resultobj = 0;
4074 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4075 wxBitmap result;
4076 void *argp1 = 0 ;
4077 int res1 = 0 ;
4078 PyObject *swig_obj[1] ;
4079
4080 if (!args) SWIG_fail;
4081 swig_obj[0] = args;
4082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4083 if (!SWIG_IsOK(res1)) {
4084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4085 }
4086 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4087 {
4088 PyThreadState* __tstate = wxPyBeginAllowThreads();
4089 result = (arg1)->GetBitmapDisabled();
4090 wxPyEndAllowThreads(__tstate);
4091 if (PyErr_Occurred()) SWIG_fail;
4092 }
4093 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4094 return resultobj;
4095fail:
4096 return NULL;
d14a1e28
RD
4097}
4098
4099
0085ce49
RD
4100SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4101 PyObject *resultobj = 0;
4102 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4103 wxBitmap result;
4104 void *argp1 = 0 ;
4105 int res1 = 0 ;
4106 PyObject *swig_obj[1] ;
4107
4108 if (!args) SWIG_fail;
4109 swig_obj[0] = args;
4110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4111 if (!SWIG_IsOK(res1)) {
4112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4113 }
4114 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4115 {
4116 PyThreadState* __tstate = wxPyBeginAllowThreads();
4117 result = (arg1)->GetBitmapFocus();
4118 wxPyEndAllowThreads(__tstate);
4119 if (PyErr_Occurred()) SWIG_fail;
4120 }
4121 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4122 return resultobj;
4123fail:
4124 return NULL;
d14a1e28
RD
4125}
4126
4127
0085ce49
RD
4128SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4129 PyObject *resultobj = 0;
4130 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4131 wxBitmap result;
4132 void *argp1 = 0 ;
4133 int res1 = 0 ;
4134 PyObject *swig_obj[1] ;
4135
4136 if (!args) SWIG_fail;
4137 swig_obj[0] = args;
4138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4139 if (!SWIG_IsOK(res1)) {
4140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4141 }
4142 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4143 {
4144 PyThreadState* __tstate = wxPyBeginAllowThreads();
4145 result = (arg1)->GetBitmapSelected();
4146 wxPyEndAllowThreads(__tstate);
4147 if (PyErr_Occurred()) SWIG_fail;
4148 }
4149 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4150 return resultobj;
4151fail:
4152 return NULL;
d14a1e28
RD
4153}
4154
4155
0085ce49
RD
4156SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4157 PyObject *resultobj = 0;
4158 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4159 wxBitmap result;
4160 void *argp1 = 0 ;
4161 int res1 = 0 ;
4162 PyObject *swig_obj[1] ;
4163
4164 if (!args) SWIG_fail;
4165 swig_obj[0] = args;
4166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4167 if (!SWIG_IsOK(res1)) {
4168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4169 }
4170 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4171 {
4172 PyThreadState* __tstate = wxPyBeginAllowThreads();
4173 result = (arg1)->GetBitmapHover();
4174 wxPyEndAllowThreads(__tstate);
4175 if (PyErr_Occurred()) SWIG_fail;
4176 }
4177 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4178 return resultobj;
4179fail:
4180 return NULL;
4181}
4182
4183
4184SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4185 PyObject *resultobj = 0;
4186 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4187 wxBitmap *arg2 = 0 ;
4188 void *argp1 = 0 ;
4189 int res1 = 0 ;
4190 void *argp2 = 0 ;
4191 int res2 = 0 ;
4192 PyObject * obj0 = 0 ;
4193 PyObject * obj1 = 0 ;
4194 char * kwnames[] = {
4195 (char *) "self",(char *) "bitmap", NULL
4196 };
4197
4198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4200 if (!SWIG_IsOK(res1)) {
4201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4202 }
4203 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4205 if (!SWIG_IsOK(res2)) {
4206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4207 }
4208 if (!argp2) {
4209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4210 }
4211 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4212 {
4213 PyThreadState* __tstate = wxPyBeginAllowThreads();
4214 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4215 wxPyEndAllowThreads(__tstate);
4216 if (PyErr_Occurred()) SWIG_fail;
4217 }
4218 resultobj = SWIG_Py_Void();
4219 return resultobj;
4220fail:
4221 return NULL;
4222}
4223
4224
4225SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4226 PyObject *resultobj = 0;
4227 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4228 wxBitmap *arg2 = 0 ;
4229 void *argp1 = 0 ;
4230 int res1 = 0 ;
4231 void *argp2 = 0 ;
4232 int res2 = 0 ;
4233 PyObject * obj0 = 0 ;
4234 PyObject * obj1 = 0 ;
4235 char * kwnames[] = {
4236 (char *) "self",(char *) "bitmap", NULL
4237 };
4238
4239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4241 if (!SWIG_IsOK(res1)) {
4242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4243 }
4244 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4245 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4246 if (!SWIG_IsOK(res2)) {
4247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4248 }
4249 if (!argp2) {
4250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4251 }
4252 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4253 {
4254 PyThreadState* __tstate = wxPyBeginAllowThreads();
4255 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4256 wxPyEndAllowThreads(__tstate);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 resultobj = SWIG_Py_Void();
4260 return resultobj;
4261fail:
4262 return NULL;
4263}
4264
4265
4266SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4267 PyObject *resultobj = 0;
4268 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4269 wxBitmap *arg2 = 0 ;
4270 void *argp1 = 0 ;
4271 int res1 = 0 ;
4272 void *argp2 = 0 ;
4273 int res2 = 0 ;
4274 PyObject * obj0 = 0 ;
4275 PyObject * obj1 = 0 ;
4276 char * kwnames[] = {
4277 (char *) "self",(char *) "bitmap", NULL
4278 };
4279
4280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4282 if (!SWIG_IsOK(res1)) {
4283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4284 }
4285 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4286 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4287 if (!SWIG_IsOK(res2)) {
4288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4289 }
4290 if (!argp2) {
4291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4292 }
4293 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4294 {
4295 PyThreadState* __tstate = wxPyBeginAllowThreads();
4296 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4297 wxPyEndAllowThreads(__tstate);
4298 if (PyErr_Occurred()) SWIG_fail;
4299 }
4300 resultobj = SWIG_Py_Void();
4301 return resultobj;
4302fail:
4303 return NULL;
4304}
4305
4306
4307SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4308 PyObject *resultobj = 0;
4309 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4310 wxBitmap *arg2 = 0 ;
4311 void *argp1 = 0 ;
4312 int res1 = 0 ;
4313 void *argp2 = 0 ;
4314 int res2 = 0 ;
4315 PyObject * obj0 = 0 ;
4316 PyObject * obj1 = 0 ;
4317 char * kwnames[] = {
4318 (char *) "self",(char *) "bitmap", NULL
4319 };
4320
4321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4323 if (!SWIG_IsOK(res1)) {
4324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4325 }
4326 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4327 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4328 if (!SWIG_IsOK(res2)) {
4329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4330 }
4331 if (!argp2) {
4332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4333 }
4334 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4335 {
4336 PyThreadState* __tstate = wxPyBeginAllowThreads();
4337 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4338 wxPyEndAllowThreads(__tstate);
4339 if (PyErr_Occurred()) SWIG_fail;
4340 }
4341 resultobj = SWIG_Py_Void();
4342 return resultobj;
4343fail:
4344 return NULL;
4345}
4346
4347
4348SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4349 PyObject *resultobj = 0;
4350 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4351 wxBitmap *arg2 = 0 ;
4352 void *argp1 = 0 ;
4353 int res1 = 0 ;
4354 void *argp2 = 0 ;
4355 int res2 = 0 ;
4356 PyObject * obj0 = 0 ;
4357 PyObject * obj1 = 0 ;
4358 char * kwnames[] = {
4359 (char *) "self",(char *) "hover", NULL
4360 };
4361
4362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4364 if (!SWIG_IsOK(res1)) {
4365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4366 }
4367 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4368 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4369 if (!SWIG_IsOK(res2)) {
4370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4371 }
4372 if (!argp2) {
4373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4374 }
4375 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4376 {
4377 PyThreadState* __tstate = wxPyBeginAllowThreads();
4378 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4379 wxPyEndAllowThreads(__tstate);
4380 if (PyErr_Occurred()) SWIG_fail;
4381 }
4382 resultobj = SWIG_Py_Void();
4383 return resultobj;
4384fail:
4385 return NULL;
4386}
4387
4388
4389SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4390 PyObject *resultobj = 0;
4391 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4392 int arg2 ;
4393 int arg3 ;
4394 void *argp1 = 0 ;
4395 int res1 = 0 ;
4396 int val2 ;
4397 int ecode2 = 0 ;
4398 int val3 ;
4399 int ecode3 = 0 ;
4400 PyObject * obj0 = 0 ;
4401 PyObject * obj1 = 0 ;
4402 PyObject * obj2 = 0 ;
4403 char * kwnames[] = {
4404 (char *) "self",(char *) "x",(char *) "y", NULL
4405 };
4406
4407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4409 if (!SWIG_IsOK(res1)) {
4410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4411 }
4412 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4413 ecode2 = SWIG_AsVal_int(obj1, &val2);
4414 if (!SWIG_IsOK(ecode2)) {
4415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4416 }
4417 arg2 = static_cast< int >(val2);
4418 ecode3 = SWIG_AsVal_int(obj2, &val3);
4419 if (!SWIG_IsOK(ecode3)) {
4420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4421 }
4422 arg3 = static_cast< int >(val3);
4423 {
4424 PyThreadState* __tstate = wxPyBeginAllowThreads();
4425 (arg1)->SetMargins(arg2,arg3);
4426 wxPyEndAllowThreads(__tstate);
4427 if (PyErr_Occurred()) SWIG_fail;
4428 }
4429 resultobj = SWIG_Py_Void();
4430 return resultobj;
4431fail:
4432 return NULL;
d14a1e28
RD
4433}
4434
4435
0085ce49
RD
4436SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4437 PyObject *resultobj = 0;
4438 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4439 int result;
4440 void *argp1 = 0 ;
4441 int res1 = 0 ;
4442 PyObject *swig_obj[1] ;
4443
4444 if (!args) SWIG_fail;
4445 swig_obj[0] = args;
4446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4447 if (!SWIG_IsOK(res1)) {
4448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4449 }
4450 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4451 {
4452 PyThreadState* __tstate = wxPyBeginAllowThreads();
4453 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4454 wxPyEndAllowThreads(__tstate);
4455 if (PyErr_Occurred()) SWIG_fail;
4456 }
4457 resultobj = SWIG_From_int(static_cast< int >(result));
4458 return resultobj;
4459fail:
4460 return NULL;
d14a1e28
RD
4461}
4462
4463
0085ce49
RD
4464SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4465 PyObject *resultobj = 0;
4466 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4467 int result;
4468 void *argp1 = 0 ;
4469 int res1 = 0 ;
4470 PyObject *swig_obj[1] ;
4471
4472 if (!args) SWIG_fail;
4473 swig_obj[0] = args;
4474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4475 if (!SWIG_IsOK(res1)) {
4476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4477 }
4478 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4479 {
4480 PyThreadState* __tstate = wxPyBeginAllowThreads();
4481 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4482 wxPyEndAllowThreads(__tstate);
4483 if (PyErr_Occurred()) SWIG_fail;
4484 }
4485 resultobj = SWIG_From_int(static_cast< int >(result));
4486 return resultobj;
4487fail:
4488 return NULL;
b1fcee84
RD
4489}
4490
4491
0085ce49
RD
4492SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4493 PyObject *obj;
4494 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4495 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4496 return SWIG_Py_Void();
d14a1e28
RD
4497}
4498
0085ce49
RD
4499SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4500 return SWIG_Python_InitShadowInstance(args);
4501}
d14a1e28 4502
0085ce49
RD
4503SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4504 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4505 return 1;
d14a1e28
RD
4506}
4507
4508
0085ce49
RD
4509SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4510 PyObject *pyobj = 0;
4511
4512 {
4513#if wxUSE_UNICODE
4514 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4515#else
4516 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4517#endif
4518 }
4519 return pyobj;
4520}
4521
4522
4523SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4524 PyObject *resultobj = 0;
4525 wxWindow *arg1 = (wxWindow *) 0 ;
4526 int arg2 = (int) -1 ;
4527 wxString const &arg3_defvalue = wxPyEmptyString ;
4528 wxString *arg3 = (wxString *) &arg3_defvalue ;
4529 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4530 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4531 wxSize const &arg5_defvalue = wxDefaultSize ;
4532 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4533 long arg6 = (long) 0 ;
4534 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4535 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4536 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4537 wxString *arg8 = (wxString *) &arg8_defvalue ;
4538 wxCheckBox *result = 0 ;
4539 void *argp1 = 0 ;
4540 int res1 = 0 ;
4541 int val2 ;
4542 int ecode2 = 0 ;
4543 bool temp3 = false ;
4544 wxPoint temp4 ;
4545 wxSize temp5 ;
4546 long val6 ;
4547 int ecode6 = 0 ;
4548 void *argp7 = 0 ;
4549 int res7 = 0 ;
4550 bool temp8 = false ;
4551 PyObject * obj0 = 0 ;
4552 PyObject * obj1 = 0 ;
4553 PyObject * obj2 = 0 ;
4554 PyObject * obj3 = 0 ;
4555 PyObject * obj4 = 0 ;
4556 PyObject * obj5 = 0 ;
4557 PyObject * obj6 = 0 ;
4558 PyObject * obj7 = 0 ;
4559 char * kwnames[] = {
4560 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4561 };
4562
4563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4565 if (!SWIG_IsOK(res1)) {
4566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4567 }
4568 arg1 = reinterpret_cast< wxWindow * >(argp1);
4569 if (obj1) {
4570 ecode2 = SWIG_AsVal_int(obj1, &val2);
4571 if (!SWIG_IsOK(ecode2)) {
4572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4573 }
4574 arg2 = static_cast< int >(val2);
4575 }
4576 if (obj2) {
d14a1e28 4577 {
0085ce49
RD
4578 arg3 = wxString_in_helper(obj2);
4579 if (arg3 == NULL) SWIG_fail;
4580 temp3 = true;
d14a1e28 4581 }
0085ce49
RD
4582 }
4583 if (obj3) {
4584 {
4585 arg4 = &temp4;
4586 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 4587 }
0085ce49
RD
4588 }
4589 if (obj4) {
d14a1e28 4590 {
0085ce49
RD
4591 arg5 = &temp5;
4592 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 4593 }
0085ce49
RD
4594 }
4595 if (obj5) {
4596 ecode6 = SWIG_AsVal_long(obj5, &val6);
4597 if (!SWIG_IsOK(ecode6)) {
4598 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4599 }
4600 arg6 = static_cast< long >(val6);
4601 }
4602 if (obj6) {
4603 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4604 if (!SWIG_IsOK(res7)) {
4605 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4606 }
0085ce49
RD
4607 if (!argp7) {
4608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4609 }
4610 arg7 = reinterpret_cast< wxValidator * >(argp7);
4611 }
4612 if (obj7) {
b1fcee84 4613 {
0085ce49
RD
4614 arg8 = wxString_in_helper(obj7);
4615 if (arg8 == NULL) SWIG_fail;
4616 temp8 = true;
b1fcee84 4617 }
0085ce49
RD
4618 }
4619 {
4620 if (!wxPyCheckForApp()) SWIG_fail;
4621 PyThreadState* __tstate = wxPyBeginAllowThreads();
4622 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4623 wxPyEndAllowThreads(__tstate);
4624 if (PyErr_Occurred()) SWIG_fail;
4625 }
4626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4627 {
4628 if (temp3)
4629 delete arg3;
4630 }
4631 {
4632 if (temp8)
4633 delete arg8;
4634 }
4635 return resultobj;
4636fail:
4637 {
4638 if (temp3)
4639 delete arg3;
4640 }
4641 {
4642 if (temp8)
4643 delete arg8;
4644 }
4645 return NULL;
b1fcee84
RD
4646}
4647
4648
0085ce49
RD
4649SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4650 PyObject *resultobj = 0;
4651 wxCheckBox *result = 0 ;
4652
4653 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4654 {
4655 if (!wxPyCheckForApp()) SWIG_fail;
4656 PyThreadState* __tstate = wxPyBeginAllowThreads();
4657 result = (wxCheckBox *)new wxCheckBox();
4658 wxPyEndAllowThreads(__tstate);
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4662 return resultobj;
4663fail:
4664 return NULL;
4665}
4666
4667
4668SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4669 PyObject *resultobj = 0;
4670 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4671 wxWindow *arg2 = (wxWindow *) 0 ;
4672 int arg3 = (int) -1 ;
4673 wxString const &arg4_defvalue = wxPyEmptyString ;
4674 wxString *arg4 = (wxString *) &arg4_defvalue ;
4675 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4676 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4677 wxSize const &arg6_defvalue = wxDefaultSize ;
4678 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4679 long arg7 = (long) 0 ;
4680 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4681 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4682 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4683 wxString *arg9 = (wxString *) &arg9_defvalue ;
4684 bool result;
4685 void *argp1 = 0 ;
4686 int res1 = 0 ;
4687 void *argp2 = 0 ;
4688 int res2 = 0 ;
4689 int val3 ;
4690 int ecode3 = 0 ;
4691 bool temp4 = false ;
4692 wxPoint temp5 ;
4693 wxSize temp6 ;
4694 long val7 ;
4695 int ecode7 = 0 ;
4696 void *argp8 = 0 ;
4697 int res8 = 0 ;
4698 bool temp9 = false ;
4699 PyObject * obj0 = 0 ;
4700 PyObject * obj1 = 0 ;
4701 PyObject * obj2 = 0 ;
4702 PyObject * obj3 = 0 ;
4703 PyObject * obj4 = 0 ;
4704 PyObject * obj5 = 0 ;
4705 PyObject * obj6 = 0 ;
4706 PyObject * obj7 = 0 ;
4707 PyObject * obj8 = 0 ;
4708 char * kwnames[] = {
4709 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4710 };
4711
4712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4714 if (!SWIG_IsOK(res1)) {
4715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4716 }
4717 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4718 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4719 if (!SWIG_IsOK(res2)) {
4720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4721 }
4722 arg2 = reinterpret_cast< wxWindow * >(argp2);
4723 if (obj2) {
4724 ecode3 = SWIG_AsVal_int(obj2, &val3);
4725 if (!SWIG_IsOK(ecode3)) {
4726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4727 }
4728 arg3 = static_cast< int >(val3);
4729 }
4730 if (obj3) {
093d3ff1 4731 {
0085ce49
RD
4732 arg4 = wxString_in_helper(obj3);
4733 if (arg4 == NULL) SWIG_fail;
4734 temp4 = true;
093d3ff1 4735 }
0085ce49
RD
4736 }
4737 if (obj4) {
093d3ff1 4738 {
0085ce49
RD
4739 arg5 = &temp5;
4740 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 4741 }
0085ce49
RD
4742 }
4743 if (obj5) {
d14a1e28 4744 {
0085ce49
RD
4745 arg6 = &temp6;
4746 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 4747 }
0085ce49
RD
4748 }
4749 if (obj6) {
4750 ecode7 = SWIG_AsVal_long(obj6, &val7);
4751 if (!SWIG_IsOK(ecode7)) {
4752 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4753 }
4754 arg7 = static_cast< long >(val7);
4755 }
4756 if (obj7) {
4757 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4758 if (!SWIG_IsOK(res8)) {
4759 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 4760 }
0085ce49
RD
4761 if (!argp8) {
4762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4763 }
4764 arg8 = reinterpret_cast< wxValidator * >(argp8);
4765 }
4766 if (obj8) {
093d3ff1 4767 {
0085ce49
RD
4768 arg9 = wxString_in_helper(obj8);
4769 if (arg9 == NULL) SWIG_fail;
4770 temp9 = true;
093d3ff1 4771 }
0085ce49
RD
4772 }
4773 {
4774 PyThreadState* __tstate = wxPyBeginAllowThreads();
4775 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4776 wxPyEndAllowThreads(__tstate);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 }
4779 {
4780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4781 }
4782 {
4783 if (temp4)
4784 delete arg4;
4785 }
4786 {
4787 if (temp9)
4788 delete arg9;
4789 }
4790 return resultobj;
4791fail:
4792 {
4793 if (temp4)
4794 delete arg4;
4795 }
4796 {
4797 if (temp9)
4798 delete arg9;
4799 }
4800 return NULL;
d14a1e28
RD
4801}
4802
4803
0085ce49
RD
4804SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4805 PyObject *resultobj = 0;
4806 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4807 bool result;
4808 void *argp1 = 0 ;
4809 int res1 = 0 ;
4810 PyObject *swig_obj[1] ;
4811
4812 if (!args) SWIG_fail;
4813 swig_obj[0] = args;
4814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4815 if (!SWIG_IsOK(res1)) {
4816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4817 }
4818 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4819 {
4820 PyThreadState* __tstate = wxPyBeginAllowThreads();
4821 result = (bool)(arg1)->GetValue();
4822 wxPyEndAllowThreads(__tstate);
4823 if (PyErr_Occurred()) SWIG_fail;
4824 }
4825 {
4826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4827 }
4828 return resultobj;
4829fail:
4830 return NULL;
d14a1e28
RD
4831}
4832
4833
0085ce49
RD
4834SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4835 PyObject *resultobj = 0;
4836 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4837 bool result;
4838 void *argp1 = 0 ;
4839 int res1 = 0 ;
4840 PyObject *swig_obj[1] ;
4841
4842 if (!args) SWIG_fail;
4843 swig_obj[0] = args;
4844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4845 if (!SWIG_IsOK(res1)) {
4846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4847 }
4848 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4849 {
4850 PyThreadState* __tstate = wxPyBeginAllowThreads();
4851 result = (bool)(arg1)->IsChecked();
4852 wxPyEndAllowThreads(__tstate);
4853 if (PyErr_Occurred()) SWIG_fail;
4854 }
4855 {
4856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4857 }
4858 return resultobj;
4859fail:
4860 return NULL;
4861}
4862
4863
4864SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4865 PyObject *resultobj = 0;
4866 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4867 bool arg2 ;
4868 void *argp1 = 0 ;
4869 int res1 = 0 ;
4870 bool val2 ;
4871 int ecode2 = 0 ;
4872 PyObject * obj0 = 0 ;
4873 PyObject * obj1 = 0 ;
4874 char * kwnames[] = {
4875 (char *) "self",(char *) "state", NULL
4876 };
4877
4878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4880 if (!SWIG_IsOK(res1)) {
4881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4882 }
4883 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4884 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4885 if (!SWIG_IsOK(ecode2)) {
4886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4887 }
4888 arg2 = static_cast< bool >(val2);
4889 {
4890 PyThreadState* __tstate = wxPyBeginAllowThreads();
4891 (arg1)->SetValue(arg2);
4892 wxPyEndAllowThreads(__tstate);
4893 if (PyErr_Occurred()) SWIG_fail;
4894 }
4895 resultobj = SWIG_Py_Void();
4896 return resultobj;
4897fail:
4898 return NULL;
d14a1e28 4899}
0085ce49
RD
4900
4901
4902SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4903 PyObject *resultobj = 0;
4904 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4905 wxCheckBoxState result;
4906 void *argp1 = 0 ;
4907 int res1 = 0 ;
4908 PyObject *swig_obj[1] ;
4909
4910 if (!args) SWIG_fail;
4911 swig_obj[0] = args;
4912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4913 if (!SWIG_IsOK(res1)) {
4914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4915 }
4916 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4917 {
4918 PyThreadState* __tstate = wxPyBeginAllowThreads();
4919 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4920 wxPyEndAllowThreads(__tstate);
4921 if (PyErr_Occurred()) SWIG_fail;
4922 }
4923 resultobj = SWIG_From_int(static_cast< int >(result));
4924 return resultobj;
4925fail:
4926 return NULL;
4927}
4928
4929
4930SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4931 PyObject *resultobj = 0;
4932 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4933 wxCheckBoxState arg2 ;
4934 void *argp1 = 0 ;
4935 int res1 = 0 ;
4936 int val2 ;
4937 int ecode2 = 0 ;
4938 PyObject * obj0 = 0 ;
4939 PyObject * obj1 = 0 ;
4940 char * kwnames[] = {
4941 (char *) "self",(char *) "state", NULL
4942 };
4943
4944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4946 if (!SWIG_IsOK(res1)) {
4947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4948 }
4949 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4950 ecode2 = SWIG_AsVal_int(obj1, &val2);
4951 if (!SWIG_IsOK(ecode2)) {
4952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4953 }
4954 arg2 = static_cast< wxCheckBoxState >(val2);
4955 {
4956 PyThreadState* __tstate = wxPyBeginAllowThreads();
4957 (arg1)->Set3StateValue(arg2);
4958 wxPyEndAllowThreads(__tstate);
4959 if (PyErr_Occurred()) SWIG_fail;
4960 }
4961 resultobj = SWIG_Py_Void();
4962 return resultobj;
4963fail:
4964 return NULL;
b2dc1044
RD
4965}
4966
4967
0085ce49
RD
4968SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4969 PyObject *resultobj = 0;
4970 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4971 bool result;
4972 void *argp1 = 0 ;
4973 int res1 = 0 ;
4974 PyObject *swig_obj[1] ;
4975
4976 if (!args) SWIG_fail;
4977 swig_obj[0] = args;
4978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4979 if (!SWIG_IsOK(res1)) {
4980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4981 }
4982 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4983 {
4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
4985 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4986 wxPyEndAllowThreads(__tstate);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 }
4989 {
4990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4991 }
4992 return resultobj;
4993fail:
4994 return NULL;
d14a1e28
RD
4995}
4996
4997
0085ce49
RD
4998SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4999 PyObject *resultobj = 0;
5000 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5001 bool result;
5002 void *argp1 = 0 ;
5003 int res1 = 0 ;
5004 PyObject *swig_obj[1] ;
5005
5006 if (!args) SWIG_fail;
5007 swig_obj[0] = args;
5008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5009 if (!SWIG_IsOK(res1)) {
5010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5011 }
5012 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5013 {
5014 PyThreadState* __tstate = wxPyBeginAllowThreads();
5015 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5016 wxPyEndAllowThreads(__tstate);
5017 if (PyErr_Occurred()) SWIG_fail;
5018 }
5019 {
5020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5021 }
5022 return resultobj;
5023fail:
5024 return NULL;
d14a1e28
RD
5025}
5026
5027
0085ce49
RD
5028SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5029 PyObject *resultobj = 0;
5030 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5031 SwigValueWrapper<wxVisualAttributes > result;
5032 int val1 ;
5033 int ecode1 = 0 ;
5034 PyObject * obj0 = 0 ;
5035 char * kwnames[] = {
5036 (char *) "variant", NULL
5037 };
5038
5039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5040 if (obj0) {
5041 ecode1 = SWIG_AsVal_int(obj0, &val1);
5042 if (!SWIG_IsOK(ecode1)) {
5043 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5044 }
5045 arg1 = static_cast< wxWindowVariant >(val1);
5046 }
5047 {
5048 if (!wxPyCheckForApp()) SWIG_fail;
5049 PyThreadState* __tstate = wxPyBeginAllowThreads();
5050 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5051 wxPyEndAllowThreads(__tstate);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 }
5054 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5055 return resultobj;
5056fail:
5057 return NULL;
d14a1e28
RD
5058}
5059
5060
0085ce49
RD
5061SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5062 PyObject *obj;
5063 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5064 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5065 return SWIG_Py_Void();
d14a1e28
RD
5066}
5067
0085ce49
RD
5068SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5069 return SWIG_Python_InitShadowInstance(args);
5070}
d14a1e28 5071
0085ce49
RD
5072SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5073 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5074 return 1;
d14a1e28
RD
5075}
5076
5077
0085ce49
RD
5078SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5079 PyObject *pyobj = 0;
5080
5081 {
5082#if wxUSE_UNICODE
5083 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5084#else
5085 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5086#endif
5087 }
5088 return pyobj;
5089}
5090
5091
5092SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5093 PyObject *resultobj = 0;
5094 wxWindow *arg1 = (wxWindow *) 0 ;
5095 int arg2 = (int) -1 ;
5096 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5097 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5098 wxSize const &arg4_defvalue = wxDefaultSize ;
5099 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5100 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5101 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5102 long arg6 = (long) 0 ;
5103 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5104 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5105 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5106 wxString *arg8 = (wxString *) &arg8_defvalue ;
5107 wxChoice *result = 0 ;
5108 void *argp1 = 0 ;
5109 int res1 = 0 ;
5110 int val2 ;
5111 int ecode2 = 0 ;
5112 wxPoint temp3 ;
5113 wxSize temp4 ;
5114 bool temp5 = false ;
5115 long val6 ;
5116 int ecode6 = 0 ;
5117 void *argp7 = 0 ;
5118 int res7 = 0 ;
5119 bool temp8 = false ;
5120 PyObject * obj0 = 0 ;
5121 PyObject * obj1 = 0 ;
5122 PyObject * obj2 = 0 ;
5123 PyObject * obj3 = 0 ;
5124 PyObject * obj4 = 0 ;
5125 PyObject * obj5 = 0 ;
5126 PyObject * obj6 = 0 ;
5127 PyObject * obj7 = 0 ;
5128 char * kwnames[] = {
5129 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5130 };
5131
5132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5134 if (!SWIG_IsOK(res1)) {
5135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5136 }
5137 arg1 = reinterpret_cast< wxWindow * >(argp1);
5138 if (obj1) {
5139 ecode2 = SWIG_AsVal_int(obj1, &val2);
5140 if (!SWIG_IsOK(ecode2)) {
5141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5142 }
5143 arg2 = static_cast< int >(val2);
5144 }
5145 if (obj2) {
093d3ff1 5146 {
0085ce49
RD
5147 arg3 = &temp3;
5148 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 5149 }
0085ce49
RD
5150 }
5151 if (obj3) {
d14a1e28 5152 {
0085ce49
RD
5153 arg4 = &temp4;
5154 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5155 }
0085ce49
RD
5156 }
5157 if (obj4) {
d14a1e28 5158 {
0085ce49
RD
5159 if (! PySequence_Check(obj4)) {
5160 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5161 SWIG_fail;
5162 }
5163 arg5 = new wxArrayString;
5164 temp5 = true;
5165 int i, len=PySequence_Length(obj4);
5166 for (i=0; i<len; i++) {
5167 PyObject* item = PySequence_GetItem(obj4, i);
5168 wxString* s = wxString_in_helper(item);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 arg5->Add(*s);
5171 delete s;
5172 Py_DECREF(item);
5173 }
d14a1e28 5174 }
0085ce49
RD
5175 }
5176 if (obj5) {
5177 ecode6 = SWIG_AsVal_long(obj5, &val6);
5178 if (!SWIG_IsOK(ecode6)) {
5179 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5180 }
5181 arg6 = static_cast< long >(val6);
5182 }
5183 if (obj6) {
5184 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5185 if (!SWIG_IsOK(res7)) {
5186 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 5187 }
0085ce49
RD
5188 if (!argp7) {
5189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5190 }
5191 arg7 = reinterpret_cast< wxValidator * >(argp7);
5192 }
5193 if (obj7) {
d14a1e28 5194 {
0085ce49
RD
5195 arg8 = wxString_in_helper(obj7);
5196 if (arg8 == NULL) SWIG_fail;
5197 temp8 = true;
d14a1e28 5198 }
0085ce49
RD
5199 }
5200 {
5201 if (!wxPyCheckForApp()) SWIG_fail;
5202 PyThreadState* __tstate = wxPyBeginAllowThreads();
5203 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5204 wxPyEndAllowThreads(__tstate);
5205 if (PyErr_Occurred()) SWIG_fail;
5206 }
5207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5208 {
5209 if (temp5) delete arg5;
5210 }
5211 {
5212 if (temp8)
5213 delete arg8;
5214 }
5215 return resultobj;
5216fail:
5217 {
5218 if (temp5) delete arg5;
5219 }
5220 {
5221 if (temp8)
5222 delete arg8;
5223 }
5224 return NULL;
d14a1e28
RD
5225}
5226
5227
0085ce49
RD
5228SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5229 PyObject *resultobj = 0;
5230 wxChoice *result = 0 ;
5231
5232 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5233 {
5234 if (!wxPyCheckForApp()) SWIG_fail;
5235 PyThreadState* __tstate = wxPyBeginAllowThreads();
5236 result = (wxChoice *)new wxChoice();
5237 wxPyEndAllowThreads(__tstate);
5238 if (PyErr_Occurred()) SWIG_fail;
5239 }
5240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5241 return resultobj;
5242fail:
5243 return NULL;
5244}
5245
5246
5247SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5248 PyObject *resultobj = 0;
5249 wxChoice *arg1 = (wxChoice *) 0 ;
5250 wxWindow *arg2 = (wxWindow *) 0 ;
5251 int arg3 = (int) -1 ;
5252 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5253 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5254 wxSize const &arg5_defvalue = wxDefaultSize ;
5255 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5256 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5257 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5258 long arg7 = (long) 0 ;
5259 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5260 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5261 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5262 wxString *arg9 = (wxString *) &arg9_defvalue ;
5263 bool result;
5264 void *argp1 = 0 ;
5265 int res1 = 0 ;
5266 void *argp2 = 0 ;
5267 int res2 = 0 ;
5268 int val3 ;
5269 int ecode3 = 0 ;
5270 wxPoint temp4 ;
5271 wxSize temp5 ;
5272 bool temp6 = false ;
5273 long val7 ;
5274 int ecode7 = 0 ;
5275 void *argp8 = 0 ;
5276 int res8 = 0 ;
5277 bool temp9 = false ;
5278 PyObject * obj0 = 0 ;
5279 PyObject * obj1 = 0 ;
5280 PyObject * obj2 = 0 ;
5281 PyObject * obj3 = 0 ;
5282 PyObject * obj4 = 0 ;
5283 PyObject * obj5 = 0 ;
5284 PyObject * obj6 = 0 ;
5285 PyObject * obj7 = 0 ;
5286 PyObject * obj8 = 0 ;
5287 char * kwnames[] = {
5288 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5289 };
5290
5291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5293 if (!SWIG_IsOK(res1)) {
5294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5295 }
5296 arg1 = reinterpret_cast< wxChoice * >(argp1);
5297 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5298 if (!SWIG_IsOK(res2)) {
5299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5300 }
5301 arg2 = reinterpret_cast< wxWindow * >(argp2);
5302 if (obj2) {
5303 ecode3 = SWIG_AsVal_int(obj2, &val3);
5304 if (!SWIG_IsOK(ecode3)) {
5305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5306 }
5307 arg3 = static_cast< int >(val3);
5308 }
5309 if (obj3) {
d14a1e28 5310 {
0085ce49
RD
5311 arg4 = &temp4;
5312 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5313 }
0085ce49
RD
5314 }
5315 if (obj4) {
4f89f6a3 5316 {
0085ce49
RD
5317 arg5 = &temp5;
5318 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4f89f6a3 5319 }
0085ce49
RD
5320 }
5321 if (obj5) {
d14a1e28 5322 {
0085ce49
RD
5323 if (! PySequence_Check(obj5)) {
5324 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5325 SWIG_fail;
5326 }
5327 arg6 = new wxArrayString;
5328 temp6 = true;
5329 int i, len=PySequence_Length(obj5);
5330 for (i=0; i<len; i++) {
5331 PyObject* item = PySequence_GetItem(obj5, i);
5332 wxString* s = wxString_in_helper(item);
5333 if (PyErr_Occurred()) SWIG_fail;
5334 arg6->Add(*s);
5335 delete s;
5336 Py_DECREF(item);
5337 }
5338 }
5339 }
5340 if (obj6) {
5341 ecode7 = SWIG_AsVal_long(obj6, &val7);
5342 if (!SWIG_IsOK(ecode7)) {
5343 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5344 }
5345 arg7 = static_cast< long >(val7);
5346 }
5347 if (obj7) {
5348 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5349 if (!SWIG_IsOK(res8)) {
5350 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 5351 }
0085ce49
RD
5352 if (!argp8) {
5353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5354 }
5355 arg8 = reinterpret_cast< wxValidator * >(argp8);
5356 }
5357 if (obj8) {
4f89f6a3 5358 {
0085ce49
RD
5359 arg9 = wxString_in_helper(obj8);
5360 if (arg9 == NULL) SWIG_fail;
5361 temp9 = true;
4f89f6a3 5362 }
0085ce49
RD
5363 }
5364 {
5365 PyThreadState* __tstate = wxPyBeginAllowThreads();
5366 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5367 wxPyEndAllowThreads(__tstate);
5368 if (PyErr_Occurred()) SWIG_fail;
5369 }
5370 {
5371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5372 }
5373 {
5374 if (temp6) delete arg6;
5375 }
5376 {
5377 if (temp9)
5378 delete arg9;
5379 }
5380 return resultobj;
5381fail:
5382 {
5383 if (temp6) delete arg6;
5384 }
5385 {
5386 if (temp9)
5387 delete arg9;
5388 }
5389 return NULL;
d14a1e28
RD
5390}
5391
5392
0085ce49
RD
5393SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5394 PyObject *resultobj = 0;
5395 wxChoice *arg1 = (wxChoice *) 0 ;
5396 int result;
5397 void *argp1 = 0 ;
5398 int res1 = 0 ;
5399 PyObject *swig_obj[1] ;
5400
5401 if (!args) SWIG_fail;
5402 swig_obj[0] = args;
5403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5404 if (!SWIG_IsOK(res1)) {
5405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5406 }
5407 arg1 = reinterpret_cast< wxChoice * >(argp1);
5408 {
5409 PyThreadState* __tstate = wxPyBeginAllowThreads();
5410 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5411 wxPyEndAllowThreads(__tstate);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 }
5414 resultobj = SWIG_From_int(static_cast< int >(result));
5415 return resultobj;
5416fail:
5417 return NULL;
5418}
5419
5420
5421SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5422 PyObject *resultobj = 0;
5423 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5424 SwigValueWrapper<wxVisualAttributes > result;
5425 int val1 ;
5426 int ecode1 = 0 ;
5427 PyObject * obj0 = 0 ;
5428 char * kwnames[] = {
5429 (char *) "variant", NULL
5430 };
5431
5432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5433 if (obj0) {
5434 ecode1 = SWIG_AsVal_int(obj0, &val1);
5435 if (!SWIG_IsOK(ecode1)) {
5436 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5437 }
5438 arg1 = static_cast< wxWindowVariant >(val1);
5439 }
5440 {
5441 if (!wxPyCheckForApp()) SWIG_fail;
5442 PyThreadState* __tstate = wxPyBeginAllowThreads();
5443 result = wxChoice::GetClassDefaultAttributes(arg1);
5444 wxPyEndAllowThreads(__tstate);
5445 if (PyErr_Occurred()) SWIG_fail;
5446 }
5447 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5448 return resultobj;
5449fail:
5450 return NULL;
22bfe96c
RD
5451}
5452
5453
0085ce49
RD
5454SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5455 PyObject *obj;
5456 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5457 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5458 return SWIG_Py_Void();
d14a1e28 5459}
0085ce49
RD
5460
5461SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5462 return SWIG_Python_InitShadowInstance(args);
5463}
5464
5465SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5466 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5467 return 1;
b2dc1044
RD
5468}
5469
5470
0085ce49
RD
5471SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5472 PyObject *pyobj = 0;
5473
5474 {
b2dc1044 5475#if wxUSE_UNICODE
0085ce49 5476 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
b2dc1044 5477#else
0085ce49 5478 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
b2dc1044 5479#endif
0085ce49
RD
5480 }
5481 return pyobj;
5482}
5483
5484
5485SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5486 PyObject *resultobj = 0;
5487 wxWindow *arg1 = (wxWindow *) 0 ;
5488 int arg2 = (int) -1 ;
5489 wxString const &arg3_defvalue = wxPyEmptyString ;
5490 wxString *arg3 = (wxString *) &arg3_defvalue ;
5491 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5492 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5493 wxSize const &arg5_defvalue = wxDefaultSize ;
5494 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5495 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5496 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5497 long arg7 = (long) 0 ;
5498 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5499 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5500 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5501 wxString *arg9 = (wxString *) &arg9_defvalue ;
5502 wxComboBox *result = 0 ;
5503 void *argp1 = 0 ;
5504 int res1 = 0 ;
5505 int val2 ;
5506 int ecode2 = 0 ;
5507 bool temp3 = false ;
5508 wxPoint temp4 ;
5509 wxSize temp5 ;
5510 bool temp6 = false ;
5511 long val7 ;
5512 int ecode7 = 0 ;
5513 void *argp8 = 0 ;
5514 int res8 = 0 ;
5515 bool temp9 = false ;
5516 PyObject * obj0 = 0 ;
5517 PyObject * obj1 = 0 ;
5518 PyObject * obj2 = 0 ;
5519 PyObject * obj3 = 0 ;
5520 PyObject * obj4 = 0 ;
5521 PyObject * obj5 = 0 ;
5522 PyObject * obj6 = 0 ;
5523 PyObject * obj7 = 0 ;
5524 PyObject * obj8 = 0 ;
5525 char * kwnames[] = {
5526 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5527 };
5528
5529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5531 if (!SWIG_IsOK(res1)) {
5532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5533 }
5534 arg1 = reinterpret_cast< wxWindow * >(argp1);
5535 if (obj1) {
5536 ecode2 = SWIG_AsVal_int(obj1, &val2);
5537 if (!SWIG_IsOK(ecode2)) {
5538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5539 }
5540 arg2 = static_cast< int >(val2);
5541 }
5542 if (obj2) {
d14a1e28 5543 {
0085ce49
RD
5544 arg3 = wxString_in_helper(obj2);
5545 if (arg3 == NULL) SWIG_fail;
5546 temp3 = true;
d14a1e28 5547 }
0085ce49
RD
5548 }
5549 if (obj3) {
d14a1e28 5550 {
0085ce49
RD
5551 arg4 = &temp4;
5552 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5553 }
0085ce49
RD
5554 }
5555 if (obj4) {
d14a1e28 5556 {
0085ce49
RD
5557 arg5 = &temp5;
5558 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 5559 }
0085ce49
RD
5560 }
5561 if (obj5) {
d14a1e28 5562 {
0085ce49
RD
5563 if (! PySequence_Check(obj5)) {
5564 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5565 SWIG_fail;
5566 }
5567 arg6 = new wxArrayString;
5568 temp6 = true;
5569 int i, len=PySequence_Length(obj5);
5570 for (i=0; i<len; i++) {
5571 PyObject* item = PySequence_GetItem(obj5, i);
5572 wxString* s = wxString_in_helper(item);
5573 if (PyErr_Occurred()) SWIG_fail;
5574 arg6->Add(*s);
5575 delete s;
5576 Py_DECREF(item);
5577 }
d14a1e28 5578 }
0085ce49
RD
5579 }
5580 if (obj6) {
5581 ecode7 = SWIG_AsVal_long(obj6, &val7);
5582 if (!SWIG_IsOK(ecode7)) {
5583 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5584 }
5585 arg7 = static_cast< long >(val7);
5586 }
5587 if (obj7) {
5588 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5589 if (!SWIG_IsOK(res8)) {
5590 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5591 }
5592 if (!argp8) {
5593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5594 }
5595 arg8 = reinterpret_cast< wxValidator * >(argp8);
5596 }
5597 if (obj8) {
d14a1e28 5598 {
0085ce49
RD
5599 arg9 = wxString_in_helper(obj8);
5600 if (arg9 == NULL) SWIG_fail;
5601 temp9 = true;
d14a1e28 5602 }
0085ce49
RD
5603 }
5604 {
5605 if (!wxPyCheckForApp()) SWIG_fail;
5606 PyThreadState* __tstate = wxPyBeginAllowThreads();
5607 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5608 wxPyEndAllowThreads(__tstate);
5609 if (PyErr_Occurred()) SWIG_fail;
5610 }
5611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5612 {
5613 if (temp3)
5614 delete arg3;
5615 }
5616 {
5617 if (temp6) delete arg6;
5618 }
5619 {
5620 if (temp9)
5621 delete arg9;
5622 }
5623 return resultobj;
5624fail:
5625 {
5626 if (temp3)
5627 delete arg3;
5628 }
5629 {
5630 if (temp6) delete arg6;
5631 }
5632 {
5633 if (temp9)
5634 delete arg9;
5635 }
5636 return NULL;
d14a1e28
RD
5637}
5638
5639
0085ce49
RD
5640SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5641 PyObject *resultobj = 0;
5642 wxComboBox *result = 0 ;
5643
5644 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5645 {
5646 if (!wxPyCheckForApp()) SWIG_fail;
5647 PyThreadState* __tstate = wxPyBeginAllowThreads();
5648 result = (wxComboBox *)new wxComboBox();
5649 wxPyEndAllowThreads(__tstate);
5650 if (PyErr_Occurred()) SWIG_fail;
5651 }
5652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5653 return resultobj;
5654fail:
5655 return NULL;
5656}
5657
5658
5659SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5660 PyObject *resultobj = 0;
5661 wxComboBox *arg1 = (wxComboBox *) 0 ;
5662 wxWindow *arg2 = (wxWindow *) 0 ;
5663 int arg3 = (int) -1 ;
5664 wxString const &arg4_defvalue = wxPyEmptyString ;
5665 wxString *arg4 = (wxString *) &arg4_defvalue ;
5666 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5667 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5668 wxSize const &arg6_defvalue = wxDefaultSize ;
5669 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5670 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5671 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5672 long arg8 = (long) 0 ;
5673 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5674 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5675 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5676 wxString *arg10 = (wxString *) &arg10_defvalue ;
5677 bool result;
5678 void *argp1 = 0 ;
5679 int res1 = 0 ;
5680 void *argp2 = 0 ;
5681 int res2 = 0 ;
5682 int val3 ;
5683 int ecode3 = 0 ;
5684 bool temp4 = false ;
5685 wxPoint temp5 ;
5686 wxSize temp6 ;
5687 bool temp7 = false ;
5688 long val8 ;
5689 int ecode8 = 0 ;
5690 void *argp9 = 0 ;
5691 int res9 = 0 ;
5692 bool temp10 = false ;
5693 PyObject * obj0 = 0 ;
5694 PyObject * obj1 = 0 ;
5695 PyObject * obj2 = 0 ;
5696 PyObject * obj3 = 0 ;
5697 PyObject * obj4 = 0 ;
5698 PyObject * obj5 = 0 ;
5699 PyObject * obj6 = 0 ;
5700 PyObject * obj7 = 0 ;
5701 PyObject * obj8 = 0 ;
5702 PyObject * obj9 = 0 ;
5703 char * kwnames[] = {
5704 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5705 };
5706
5707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5709 if (!SWIG_IsOK(res1)) {
5710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5711 }
5712 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5713 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5714 if (!SWIG_IsOK(res2)) {
5715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5716 }
5717 arg2 = reinterpret_cast< wxWindow * >(argp2);
5718 if (obj2) {
5719 ecode3 = SWIG_AsVal_int(obj2, &val3);
5720 if (!SWIG_IsOK(ecode3)) {
5721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5722 }
5723 arg3 = static_cast< int >(val3);
5724 }
5725 if (obj3) {
4f89f6a3 5726 {
0085ce49
RD
5727 arg4 = wxString_in_helper(obj3);
5728 if (arg4 == NULL) SWIG_fail;
5729 temp4 = true;
4f89f6a3 5730 }
0085ce49
RD
5731 }
5732 if (obj4) {
d14a1e28 5733 {
0085ce49
RD
5734 arg5 = &temp5;
5735 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 5736 }
0085ce49
RD
5737 }
5738 if (obj5) {
d14a1e28 5739 {
0085ce49
RD
5740 arg6 = &temp6;
5741 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 5742 }
0085ce49
RD
5743 }
5744 if (obj6) {
d14a1e28 5745 {
0085ce49
RD
5746 if (! PySequence_Check(obj6)) {
5747 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5748 SWIG_fail;
5749 }
5750 arg7 = new wxArrayString;
5751 temp7 = true;
5752 int i, len=PySequence_Length(obj6);
5753 for (i=0; i<len; i++) {
5754 PyObject* item = PySequence_GetItem(obj6, i);
5755 wxString* s = wxString_in_helper(item);
5756 if (PyErr_Occurred()) SWIG_fail;
5757 arg7->Add(*s);
5758 delete s;
5759 Py_DECREF(item);
5760 }
d14a1e28 5761 }
0085ce49
RD
5762 }
5763 if (obj7) {
5764 ecode8 = SWIG_AsVal_long(obj7, &val8);
5765 if (!SWIG_IsOK(ecode8)) {
5766 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5767 }
5768 arg8 = static_cast< long >(val8);
5769 }
5770 if (obj8) {
5771 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5772 if (!SWIG_IsOK(res9)) {
5773 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 5774 }
0085ce49
RD
5775 if (!argp9) {
5776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 5777 }
0085ce49
RD
5778 arg9 = reinterpret_cast< wxValidator * >(argp9);
5779 }
5780 if (obj9) {
d14a1e28 5781 {
0085ce49
RD
5782 arg10 = wxString_in_helper(obj9);
5783 if (arg10 == NULL) SWIG_fail;
5784 temp10 = true;
d14a1e28 5785 }
0085ce49
RD
5786 }
5787 {
5788 PyThreadState* __tstate = wxPyBeginAllowThreads();
5789 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
5790 wxPyEndAllowThreads(__tstate);
5791 if (PyErr_Occurred()) SWIG_fail;
5792 }
5793 {
5794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5795 }
5796 {
5797 if (temp4)
5798 delete arg4;
5799 }
5800 {
5801 if (temp7) delete arg7;
5802 }
5803 {
5804 if (temp10)
5805 delete arg10;
5806 }
5807 return resultobj;
5808fail:
5809 {
5810 if (temp4)
5811 delete arg4;
5812 }
5813 {
5814 if (temp7) delete arg7;
5815 }
5816 {
5817 if (temp10)
5818 delete arg10;
5819 }
5820 return NULL;
d14a1e28
RD
5821}
5822
5823
0085ce49
RD
5824SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5825 PyObject *resultobj = 0;
5826 wxComboBox *arg1 = (wxComboBox *) 0 ;
5827 wxString result;
5828 void *argp1 = 0 ;
5829 int res1 = 0 ;
5830 PyObject *swig_obj[1] ;
5831
5832 if (!args) SWIG_fail;
5833 swig_obj[0] = args;
5834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5835 if (!SWIG_IsOK(res1)) {
5836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5837 }
5838 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5839 {
5840 PyThreadState* __tstate = wxPyBeginAllowThreads();
5841 result = ((wxComboBox const *)arg1)->GetValue();
5842 wxPyEndAllowThreads(__tstate);
5843 if (PyErr_Occurred()) SWIG_fail;
5844 }
5845 {
d14a1e28 5846#if wxUSE_UNICODE
0085ce49 5847 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 5848#else
0085ce49 5849 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 5850#endif
0085ce49
RD
5851 }
5852 return resultobj;
5853fail:
5854 return NULL;
5855}
5856
5857
5858SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5859 PyObject *resultobj = 0;
5860 wxComboBox *arg1 = (wxComboBox *) 0 ;
5861 wxString *arg2 = 0 ;
5862 void *argp1 = 0 ;
5863 int res1 = 0 ;
5864 bool temp2 = false ;
5865 PyObject * obj0 = 0 ;
5866 PyObject * obj1 = 0 ;
5867 char * kwnames[] = {
5868 (char *) "self",(char *) "value", NULL
5869 };
5870
5871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5873 if (!SWIG_IsOK(res1)) {
5874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5875 }
5876 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5877 {
5878 arg2 = wxString_in_helper(obj1);
5879 if (arg2 == NULL) SWIG_fail;
5880 temp2 = true;
5881 }
5882 {
5883 PyThreadState* __tstate = wxPyBeginAllowThreads();
5884 (arg1)->SetValue((wxString const &)*arg2);
5885 wxPyEndAllowThreads(__tstate);
5886 if (PyErr_Occurred()) SWIG_fail;
5887 }
5888 resultobj = SWIG_Py_Void();
5889 {
5890 if (temp2)
5891 delete arg2;
5892 }
5893 return resultobj;
5894fail:
5895 {
5896 if (temp2)
5897 delete arg2;
5898 }
5899 return NULL;
d14a1e28
RD
5900}
5901
5902
0085ce49
RD
5903SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5904 PyObject *resultobj = 0;
5905 wxComboBox *arg1 = (wxComboBox *) 0 ;
5906 void *argp1 = 0 ;
5907 int res1 = 0 ;
5908 PyObject *swig_obj[1] ;
5909
5910 if (!args) SWIG_fail;
5911 swig_obj[0] = args;
5912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5913 if (!SWIG_IsOK(res1)) {
5914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5915 }
5916 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 (arg1)->Copy();
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) SWIG_fail;
5922 }
5923 resultobj = SWIG_Py_Void();
5924 return resultobj;
5925fail:
5926 return NULL;
d14a1e28
RD
5927}
5928
5929
0085ce49
RD
5930SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5931 PyObject *resultobj = 0;
5932 wxComboBox *arg1 = (wxComboBox *) 0 ;
5933 void *argp1 = 0 ;
5934 int res1 = 0 ;
5935 PyObject *swig_obj[1] ;
5936
5937 if (!args) SWIG_fail;
5938 swig_obj[0] = args;
5939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5940 if (!SWIG_IsOK(res1)) {
5941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5942 }
5943 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5944 {
5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
5946 (arg1)->Cut();
5947 wxPyEndAllowThreads(__tstate);
5948 if (PyErr_Occurred()) SWIG_fail;
5949 }
5950 resultobj = SWIG_Py_Void();
5951 return resultobj;
5952fail:
5953 return NULL;
d14a1e28
RD
5954}
5955
5956
0085ce49
RD
5957SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5958 PyObject *resultobj = 0;
5959 wxComboBox *arg1 = (wxComboBox *) 0 ;
5960 void *argp1 = 0 ;
5961 int res1 = 0 ;
5962 PyObject *swig_obj[1] ;
5963
5964 if (!args) SWIG_fail;
5965 swig_obj[0] = args;
5966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5967 if (!SWIG_IsOK(res1)) {
5968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5969 }
5970 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5971 {
5972 PyThreadState* __tstate = wxPyBeginAllowThreads();
5973 (arg1)->Paste();
5974 wxPyEndAllowThreads(__tstate);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 }
5977 resultobj = SWIG_Py_Void();
5978 return resultobj;
5979fail:
5980 return NULL;
5981}
5982
5983
5984SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5985 PyObject *resultobj = 0;
5986 wxComboBox *arg1 = (wxComboBox *) 0 ;
5987 long arg2 ;
5988 void *argp1 = 0 ;
5989 int res1 = 0 ;
5990 long val2 ;
5991 int ecode2 = 0 ;
5992 PyObject * obj0 = 0 ;
5993 PyObject * obj1 = 0 ;
5994 char * kwnames[] = {
5995 (char *) "self",(char *) "pos", NULL
5996 };
5997
5998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6000 if (!SWIG_IsOK(res1)) {
6001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6002 }
6003 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6004 ecode2 = SWIG_AsVal_long(obj1, &val2);
6005 if (!SWIG_IsOK(ecode2)) {
6006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6007 }
6008 arg2 = static_cast< long >(val2);
6009 {
6010 PyThreadState* __tstate = wxPyBeginAllowThreads();
6011 (arg1)->SetInsertionPoint(arg2);
6012 wxPyEndAllowThreads(__tstate);
6013 if (PyErr_Occurred()) SWIG_fail;
6014 }
6015 resultobj = SWIG_Py_Void();
6016 return resultobj;
6017fail:
6018 return NULL;
d14a1e28
RD
6019}
6020
6021
0085ce49
RD
6022SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6023 PyObject *resultobj = 0;
6024 wxComboBox *arg1 = (wxComboBox *) 0 ;
6025 long result;
6026 void *argp1 = 0 ;
6027 int res1 = 0 ;
6028 PyObject *swig_obj[1] ;
6029
6030 if (!args) SWIG_fail;
6031 swig_obj[0] = args;
6032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6033 if (!SWIG_IsOK(res1)) {
6034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6035 }
6036 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6037 {
6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6039 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6040 wxPyEndAllowThreads(__tstate);
6041 if (PyErr_Occurred()) SWIG_fail;
6042 }
6043 resultobj = SWIG_From_long(static_cast< long >(result));
6044 return resultobj;
6045fail:
6046 return NULL;
d14a1e28
RD
6047}
6048
6049
0085ce49
RD
6050SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6051 PyObject *resultobj = 0;
6052 wxComboBox *arg1 = (wxComboBox *) 0 ;
6053 long result;
6054 void *argp1 = 0 ;
6055 int res1 = 0 ;
6056 PyObject *swig_obj[1] ;
6057
6058 if (!args) SWIG_fail;
6059 swig_obj[0] = args;
6060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6061 if (!SWIG_IsOK(res1)) {
6062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6063 }
6064 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6065 {
6066 PyThreadState* __tstate = wxPyBeginAllowThreads();
6067 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6068 wxPyEndAllowThreads(__tstate);
6069 if (PyErr_Occurred()) SWIG_fail;
6070 }
6071 resultobj = SWIG_From_long(static_cast< long >(result));
6072 return resultobj;
6073fail:
6074 return NULL;
6075}
6076
6077
6078SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6079 PyObject *resultobj = 0;
6080 wxComboBox *arg1 = (wxComboBox *) 0 ;
6081 long arg2 ;
6082 long arg3 ;
6083 wxString *arg4 = 0 ;
6084 void *argp1 = 0 ;
6085 int res1 = 0 ;
6086 long val2 ;
6087 int ecode2 = 0 ;
6088 long val3 ;
6089 int ecode3 = 0 ;
6090 bool temp4 = false ;
6091 PyObject * obj0 = 0 ;
6092 PyObject * obj1 = 0 ;
6093 PyObject * obj2 = 0 ;
6094 PyObject * obj3 = 0 ;
6095 char * kwnames[] = {
2131d850 6096 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
0085ce49
RD
6097 };
6098
6099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6101 if (!SWIG_IsOK(res1)) {
6102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6103 }
6104 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6105 ecode2 = SWIG_AsVal_long(obj1, &val2);
6106 if (!SWIG_IsOK(ecode2)) {
6107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6108 }
6109 arg2 = static_cast< long >(val2);
6110 ecode3 = SWIG_AsVal_long(obj2, &val3);
6111 if (!SWIG_IsOK(ecode3)) {
6112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6113 }
6114 arg3 = static_cast< long >(val3);
6115 {
6116 arg4 = wxString_in_helper(obj3);
6117 if (arg4 == NULL) SWIG_fail;
6118 temp4 = true;
6119 }
6120 {
6121 PyThreadState* __tstate = wxPyBeginAllowThreads();
6122 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6123 wxPyEndAllowThreads(__tstate);
6124 if (PyErr_Occurred()) SWIG_fail;
6125 }
6126 resultobj = SWIG_Py_Void();
6127 {
6128 if (temp4)
6129 delete arg4;
6130 }
6131 return resultobj;
6132fail:
6133 {
6134 if (temp4)
6135 delete arg4;
6136 }
6137 return NULL;
6138}
6139
6140
6141SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6142 PyObject *resultobj = 0;
6143 wxComboBox *arg1 = (wxComboBox *) 0 ;
6144 long arg2 ;
6145 long arg3 ;
6146 void *argp1 = 0 ;
6147 int res1 = 0 ;
6148 long val2 ;
6149 int ecode2 = 0 ;
6150 long val3 ;
6151 int ecode3 = 0 ;
6152 PyObject * obj0 = 0 ;
6153 PyObject * obj1 = 0 ;
6154 PyObject * obj2 = 0 ;
6155 char * kwnames[] = {
2131d850 6156 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
6157 };
6158
6159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6161 if (!SWIG_IsOK(res1)) {
6162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6163 }
6164 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6165 ecode2 = SWIG_AsVal_long(obj1, &val2);
6166 if (!SWIG_IsOK(ecode2)) {
6167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6168 }
6169 arg2 = static_cast< long >(val2);
6170 ecode3 = SWIG_AsVal_long(obj2, &val3);
6171 if (!SWIG_IsOK(ecode3)) {
6172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6173 }
6174 arg3 = static_cast< long >(val3);
6175 {
6176 PyThreadState* __tstate = wxPyBeginAllowThreads();
6177 (arg1)->SetSelection(arg2,arg3);
6178 wxPyEndAllowThreads(__tstate);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 resultobj = SWIG_Py_Void();
6182 return resultobj;
6183fail:
6184 return NULL;
6185}
6186
6187
6188SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6189 PyObject *resultobj = 0;
6190 wxComboBox *arg1 = (wxComboBox *) 0 ;
6191 long *arg2 = (long *) 0 ;
6192 long *arg3 = (long *) 0 ;
6193 void *argp1 = 0 ;
6194 int res1 = 0 ;
6195 long temp2 ;
6196 int res2 = SWIG_TMPOBJ ;
6197 long temp3 ;
6198 int res3 = SWIG_TMPOBJ ;
6199 PyObject *swig_obj[1] ;
6200
6201 arg2 = &temp2;
6202 arg3 = &temp3;
6203 if (!args) SWIG_fail;
6204 swig_obj[0] = args;
6205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6206 if (!SWIG_IsOK(res1)) {
6207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6208 }
6209 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6210 {
6211 PyThreadState* __tstate = wxPyBeginAllowThreads();
6212 (arg1)->GetSelection(arg2,arg3);
6213 wxPyEndAllowThreads(__tstate);
6214 if (PyErr_Occurred()) SWIG_fail;
6215 }
6216 resultobj = SWIG_Py_Void();
6217 if (SWIG_IsTmpObj(res2)) {
6218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6219 } else {
6220 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6222 }
6223 if (SWIG_IsTmpObj(res3)) {
6224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6225 } else {
6226 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6227 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6228 }
6229 return resultobj;
6230fail:
6231 return NULL;
d14a1e28
RD
6232}
6233
6234
0085ce49
RD
6235SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6236 PyObject *resultobj = 0;
6237 wxComboBox *arg1 = (wxComboBox *) 0 ;
6238 int result;
6239 void *argp1 = 0 ;
6240 int res1 = 0 ;
6241 PyObject *swig_obj[1] ;
6242
6243 if (!args) SWIG_fail;
6244 swig_obj[0] = args;
6245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6246 if (!SWIG_IsOK(res1)) {
6247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6248 }
6249 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6250 {
6251 PyThreadState* __tstate = wxPyBeginAllowThreads();
6252 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6253 wxPyEndAllowThreads(__tstate);
6254 if (PyErr_Occurred()) SWIG_fail;
6255 }
6256 resultobj = SWIG_From_int(static_cast< int >(result));
6257 return resultobj;
6258fail:
6259 return NULL;
6260}
6261
6262
6263SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6264 PyObject *resultobj = 0;
6265 wxComboBox *arg1 = (wxComboBox *) 0 ;
6266 wxString *arg2 = 0 ;
6267 bool result;
6268 void *argp1 = 0 ;
6269 int res1 = 0 ;
6270 bool temp2 = false ;
6271 PyObject * obj0 = 0 ;
6272 PyObject * obj1 = 0 ;
6273 char * kwnames[] = {
6274 (char *) "self",(char *) "string", NULL
6275 };
6276
6277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6279 if (!SWIG_IsOK(res1)) {
6280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6281 }
6282 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6283 {
6284 arg2 = wxString_in_helper(obj1);
6285 if (arg2 == NULL) SWIG_fail;
6286 temp2 = true;
6287 }
6288 {
6289 PyThreadState* __tstate = wxPyBeginAllowThreads();
6290 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6291 wxPyEndAllowThreads(__tstate);
6292 if (PyErr_Occurred()) SWIG_fail;
6293 }
6294 {
6295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6296 }
6297 {
6298 if (temp2)
6299 delete arg2;
6300 }
6301 return resultobj;
6302fail:
6303 {
6304 if (temp2)
6305 delete arg2;
6306 }
6307 return NULL;
6308}
6309
6310
50f151d7
RD
6311SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6312 PyObject *resultobj = 0;
6313 wxComboBox *arg1 = (wxComboBox *) 0 ;
6314 int arg2 ;
6315 wxString *arg3 = 0 ;
6316 void *argp1 = 0 ;
6317 int res1 = 0 ;
6318 int val2 ;
6319 int ecode2 = 0 ;
6320 bool temp3 = false ;
6321 PyObject * obj0 = 0 ;
6322 PyObject * obj1 = 0 ;
6323 PyObject * obj2 = 0 ;
6324 char * kwnames[] = {
6325 (char *) "self",(char *) "n",(char *) "string", NULL
6326 };
6327
6328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6330 if (!SWIG_IsOK(res1)) {
6331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6332 }
6333 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6334 ecode2 = SWIG_AsVal_int(obj1, &val2);
6335 if (!SWIG_IsOK(ecode2)) {
6336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6337 }
6338 arg2 = static_cast< int >(val2);
6339 {
6340 arg3 = wxString_in_helper(obj2);
6341 if (arg3 == NULL) SWIG_fail;
6342 temp3 = true;
6343 }
6344 {
6345 PyThreadState* __tstate = wxPyBeginAllowThreads();
6346 (arg1)->SetString(arg2,(wxString const &)*arg3);
6347 wxPyEndAllowThreads(__tstate);
6348 if (PyErr_Occurred()) SWIG_fail;
6349 }
6350 resultobj = SWIG_Py_Void();
6351 {
6352 if (temp3)
6353 delete arg3;
6354 }
6355 return resultobj;
6356fail:
6357 {
6358 if (temp3)
6359 delete arg3;
6360 }
6361 return NULL;
6362}
6363
6364
0085ce49
RD
6365SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6366 PyObject *resultobj = 0;
6367 wxComboBox *arg1 = (wxComboBox *) 0 ;
6368 bool arg2 ;
6369 void *argp1 = 0 ;
6370 int res1 = 0 ;
6371 bool val2 ;
6372 int ecode2 = 0 ;
6373 PyObject * obj0 = 0 ;
6374 PyObject * obj1 = 0 ;
6375 char * kwnames[] = {
6376 (char *) "self",(char *) "editable", NULL
6377 };
6378
6379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6381 if (!SWIG_IsOK(res1)) {
6382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6383 }
6384 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6385 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6386 if (!SWIG_IsOK(ecode2)) {
6387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6388 }
6389 arg2 = static_cast< bool >(val2);
6390 {
6391 PyThreadState* __tstate = wxPyBeginAllowThreads();
6392 (arg1)->SetEditable(arg2);
6393 wxPyEndAllowThreads(__tstate);
6394 if (PyErr_Occurred()) SWIG_fail;
6395 }
6396 resultobj = SWIG_Py_Void();
6397 return resultobj;
6398fail:
6399 return NULL;
d14a1e28
RD
6400}
6401
6402
0085ce49
RD
6403SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6404 PyObject *resultobj = 0;
6405 wxComboBox *arg1 = (wxComboBox *) 0 ;
6406 void *argp1 = 0 ;
6407 int res1 = 0 ;
6408 PyObject *swig_obj[1] ;
6409
6410 if (!args) SWIG_fail;
6411 swig_obj[0] = args;
6412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6413 if (!SWIG_IsOK(res1)) {
6414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6415 }
6416 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6417 {
6418 PyThreadState* __tstate = wxPyBeginAllowThreads();
6419 (arg1)->SetInsertionPointEnd();
6420 wxPyEndAllowThreads(__tstate);
6421 if (PyErr_Occurred()) SWIG_fail;
6422 }
6423 resultobj = SWIG_Py_Void();
6424 return resultobj;
6425fail:
6426 return NULL;
6427}
6428
6429
6430SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6431 PyObject *resultobj = 0;
6432 wxComboBox *arg1 = (wxComboBox *) 0 ;
6433 long arg2 ;
6434 long arg3 ;
6435 void *argp1 = 0 ;
6436 int res1 = 0 ;
6437 long val2 ;
6438 int ecode2 = 0 ;
6439 long val3 ;
6440 int ecode3 = 0 ;
6441 PyObject * obj0 = 0 ;
6442 PyObject * obj1 = 0 ;
6443 PyObject * obj2 = 0 ;
6444 char * kwnames[] = {
2131d850 6445 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
6446 };
6447
6448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6450 if (!SWIG_IsOK(res1)) {
6451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6452 }
6453 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6454 ecode2 = SWIG_AsVal_long(obj1, &val2);
6455 if (!SWIG_IsOK(ecode2)) {
6456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6457 }
6458 arg2 = static_cast< long >(val2);
6459 ecode3 = SWIG_AsVal_long(obj2, &val3);
6460 if (!SWIG_IsOK(ecode3)) {
6461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6462 }
6463 arg3 = static_cast< long >(val3);
6464 {
6465 PyThreadState* __tstate = wxPyBeginAllowThreads();
6466 (arg1)->Remove(arg2,arg3);
6467 wxPyEndAllowThreads(__tstate);
6468 if (PyErr_Occurred()) SWIG_fail;
6469 }
6470 resultobj = SWIG_Py_Void();
6471 return resultobj;
6472fail:
6473 return NULL;
d14a1e28
RD
6474}
6475
6476
0085ce49
RD
6477SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6478 PyObject *resultobj = 0;
6479 wxComboBox *arg1 = (wxComboBox *) 0 ;
6480 bool result;
6481 void *argp1 = 0 ;
6482 int res1 = 0 ;
6483 PyObject *swig_obj[1] ;
6484
6485 if (!args) SWIG_fail;
6486 swig_obj[0] = args;
6487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6488 if (!SWIG_IsOK(res1)) {
6489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6490 }
6491 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6492 {
6493 PyThreadState* __tstate = wxPyBeginAllowThreads();
6494 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6495 wxPyEndAllowThreads(__tstate);
6496 if (PyErr_Occurred()) SWIG_fail;
6497 }
6498 {
6499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6500 }
6501 return resultobj;
6502fail:
6503 return NULL;
d14a1e28
RD
6504}
6505
6506
0085ce49
RD
6507SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6508 PyObject *resultobj = 0;
6509 wxComboBox *arg1 = (wxComboBox *) 0 ;
6510 void *argp1 = 0 ;
6511 int res1 = 0 ;
6512 PyObject *swig_obj[1] ;
6513
6514 if (!args) SWIG_fail;
6515 swig_obj[0] = args;
6516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6517 if (!SWIG_IsOK(res1)) {
6518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6519 }
6520 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6521 {
6522 PyThreadState* __tstate = wxPyBeginAllowThreads();
6523 (arg1)->Undo();
6524 wxPyEndAllowThreads(__tstate);
6525 if (PyErr_Occurred()) SWIG_fail;
6526 }
6527 resultobj = SWIG_Py_Void();
6528 return resultobj;
6529fail:
6530 return NULL;
fd3f2efe
RD
6531}
6532
6533
0085ce49
RD
6534SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6535 PyObject *resultobj = 0;
6536 wxComboBox *arg1 = (wxComboBox *) 0 ;
6537 void *argp1 = 0 ;
6538 int res1 = 0 ;
6539 PyObject *swig_obj[1] ;
6540
6541 if (!args) SWIG_fail;
6542 swig_obj[0] = args;
6543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6544 if (!SWIG_IsOK(res1)) {
6545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6546 }
6547 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6548 {
6549 PyThreadState* __tstate = wxPyBeginAllowThreads();
6550 (arg1)->Redo();
6551 wxPyEndAllowThreads(__tstate);
6552 if (PyErr_Occurred()) SWIG_fail;
6553 }
6554 resultobj = SWIG_Py_Void();
6555 return resultobj;
6556fail:
6557 return NULL;
d14a1e28
RD
6558}
6559
6560
0085ce49
RD
6561SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6562 PyObject *resultobj = 0;
6563 wxComboBox *arg1 = (wxComboBox *) 0 ;
6564 void *argp1 = 0 ;
6565 int res1 = 0 ;
6566 PyObject *swig_obj[1] ;
6567
6568 if (!args) SWIG_fail;
6569 swig_obj[0] = args;
6570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6571 if (!SWIG_IsOK(res1)) {
6572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6573 }
6574 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6575 {
6576 PyThreadState* __tstate = wxPyBeginAllowThreads();
6577 (arg1)->SelectAll();
6578 wxPyEndAllowThreads(__tstate);
6579 if (PyErr_Occurred()) SWIG_fail;
6580 }
6581 resultobj = SWIG_Py_Void();
6582 return resultobj;
6583fail:
6584 return NULL;
b9d6a5f3
RD
6585}
6586
6587
0085ce49
RD
6588SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6589 PyObject *resultobj = 0;
6590 wxComboBox *arg1 = (wxComboBox *) 0 ;
6591 bool result;
6592 void *argp1 = 0 ;
6593 int res1 = 0 ;
6594 PyObject *swig_obj[1] ;
6595
6596 if (!args) SWIG_fail;
6597 swig_obj[0] = args;
6598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6599 if (!SWIG_IsOK(res1)) {
6600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6601 }
6602 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6603 {
6604 PyThreadState* __tstate = wxPyBeginAllowThreads();
6605 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6606 wxPyEndAllowThreads(__tstate);
6607 if (PyErr_Occurred()) SWIG_fail;
6608 }
6609 {
6610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6611 }
6612 return resultobj;
6613fail:
6614 return NULL;
943e8dfd
RD
6615}
6616
6617
0085ce49
RD
6618SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6619 PyObject *resultobj = 0;
6620 wxComboBox *arg1 = (wxComboBox *) 0 ;
6621 bool result;
6622 void *argp1 = 0 ;
6623 int res1 = 0 ;
6624 PyObject *swig_obj[1] ;
6625
6626 if (!args) SWIG_fail;
6627 swig_obj[0] = args;
6628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6629 if (!SWIG_IsOK(res1)) {
6630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6631 }
6632 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6633 {
6634 PyThreadState* __tstate = wxPyBeginAllowThreads();
6635 result = (bool)((wxComboBox const *)arg1)->CanCut();
6636 wxPyEndAllowThreads(__tstate);
6637 if (PyErr_Occurred()) SWIG_fail;
6638 }
6639 {
6640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6641 }
6642 return resultobj;
6643fail:
6644 return NULL;
121b9a67
RD
6645}
6646
6647
0085ce49
RD
6648SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6649 PyObject *resultobj = 0;
6650 wxComboBox *arg1 = (wxComboBox *) 0 ;
6651 bool result;
6652 void *argp1 = 0 ;
6653 int res1 = 0 ;
6654 PyObject *swig_obj[1] ;
6655
6656 if (!args) SWIG_fail;
6657 swig_obj[0] = args;
6658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6659 if (!SWIG_IsOK(res1)) {
6660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6661 }
6662 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6663 {
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6666 wxPyEndAllowThreads(__tstate);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 {
6670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6671 }
6672 return resultobj;
6673fail:
6674 return NULL;
121b9a67
RD
6675}
6676
6677
0085ce49
RD
6678SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6679 PyObject *resultobj = 0;
6680 wxComboBox *arg1 = (wxComboBox *) 0 ;
6681 bool result;
6682 void *argp1 = 0 ;
6683 int res1 = 0 ;
6684 PyObject *swig_obj[1] ;
6685
6686 if (!args) SWIG_fail;
6687 swig_obj[0] = args;
6688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6689 if (!SWIG_IsOK(res1)) {
6690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6691 }
6692 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6693 {
6694 PyThreadState* __tstate = wxPyBeginAllowThreads();
6695 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6696 wxPyEndAllowThreads(__tstate);
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 {
6700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6701 }
6702 return resultobj;
6703fail:
6704 return NULL;
d14a1e28
RD
6705}
6706
6707
0085ce49
RD
6708SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6709 PyObject *resultobj = 0;
6710 wxComboBox *arg1 = (wxComboBox *) 0 ;
6711 bool result;
6712 void *argp1 = 0 ;
6713 int res1 = 0 ;
6714 PyObject *swig_obj[1] ;
6715
6716 if (!args) SWIG_fail;
6717 swig_obj[0] = args;
6718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6719 if (!SWIG_IsOK(res1)) {
6720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6721 }
6722 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6723 {
6724 PyThreadState* __tstate = wxPyBeginAllowThreads();
6725 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6726 wxPyEndAllowThreads(__tstate);
6727 if (PyErr_Occurred()) SWIG_fail;
6728 }
6729 {
6730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6731 }
6732 return resultobj;
6733fail:
6734 return NULL;
d14a1e28
RD
6735}
6736
6737
0085ce49
RD
6738SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6739 PyObject *resultobj = 0;
6740 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6741 SwigValueWrapper<wxVisualAttributes > result;
6742 int val1 ;
6743 int ecode1 = 0 ;
6744 PyObject * obj0 = 0 ;
6745 char * kwnames[] = {
6746 (char *) "variant", NULL
6747 };
6748
6749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6750 if (obj0) {
6751 ecode1 = SWIG_AsVal_int(obj0, &val1);
6752 if (!SWIG_IsOK(ecode1)) {
6753 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6754 }
6755 arg1 = static_cast< wxWindowVariant >(val1);
6756 }
6757 {
6758 if (!wxPyCheckForApp()) SWIG_fail;
6759 PyThreadState* __tstate = wxPyBeginAllowThreads();
6760 result = wxComboBox::GetClassDefaultAttributes(arg1);
6761 wxPyEndAllowThreads(__tstate);
6762 if (PyErr_Occurred()) SWIG_fail;
6763 }
6764 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6765 return resultobj;
6766fail:
6767 return NULL;
d14a1e28
RD
6768}
6769
6770
0085ce49
RD
6771SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6772 PyObject *obj;
6773 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6774 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6775 return SWIG_Py_Void();
5cbf236d
RD
6776}
6777
0085ce49
RD
6778SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6779 return SWIG_Python_InitShadowInstance(args);
6780}
5cbf236d 6781
0085ce49
RD
6782SWIGINTERN int GaugeNameStr_set(PyObject *) {
6783 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6784 return 1;
5cbf236d
RD
6785}
6786
6787
0085ce49
RD
6788SWIGINTERN PyObject *GaugeNameStr_get(void) {
6789 PyObject *pyobj = 0;
6790
6791 {
6792#if wxUSE_UNICODE
6793 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6794#else
6795 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6796#endif
6797 }
6798 return pyobj;
6799}
6800
6801
6802SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6803 PyObject *resultobj = 0;
6804 wxWindow *arg1 = (wxWindow *) 0 ;
6805 int arg2 = (int) -1 ;
6806 int arg3 = (int) 100 ;
6807 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6808 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6809 wxSize const &arg5_defvalue = wxDefaultSize ;
6810 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6811 long arg6 = (long) wxGA_HORIZONTAL ;
6812 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6813 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6814 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6815 wxString *arg8 = (wxString *) &arg8_defvalue ;
6816 wxGauge *result = 0 ;
6817 void *argp1 = 0 ;
6818 int res1 = 0 ;
6819 int val2 ;
6820 int ecode2 = 0 ;
6821 int val3 ;
6822 int ecode3 = 0 ;
6823 wxPoint temp4 ;
6824 wxSize temp5 ;
6825 long val6 ;
6826 int ecode6 = 0 ;
6827 void *argp7 = 0 ;
6828 int res7 = 0 ;
6829 bool temp8 = false ;
6830 PyObject * obj0 = 0 ;
6831 PyObject * obj1 = 0 ;
6832 PyObject * obj2 = 0 ;
6833 PyObject * obj3 = 0 ;
6834 PyObject * obj4 = 0 ;
6835 PyObject * obj5 = 0 ;
6836 PyObject * obj6 = 0 ;
6837 PyObject * obj7 = 0 ;
6838 char * kwnames[] = {
6839 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6840 };
6841
6842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6844 if (!SWIG_IsOK(res1)) {
6845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6846 }
6847 arg1 = reinterpret_cast< wxWindow * >(argp1);
6848 if (obj1) {
6849 ecode2 = SWIG_AsVal_int(obj1, &val2);
6850 if (!SWIG_IsOK(ecode2)) {
6851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6852 }
6853 arg2 = static_cast< int >(val2);
6854 }
6855 if (obj2) {
6856 ecode3 = SWIG_AsVal_int(obj2, &val3);
6857 if (!SWIG_IsOK(ecode3)) {
6858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6859 }
6860 arg3 = static_cast< int >(val3);
6861 }
6862 if (obj3) {
5cbf236d 6863 {
0085ce49
RD
6864 arg4 = &temp4;
6865 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6866 }
0085ce49
RD
6867 }
6868 if (obj4) {
5cbf236d 6869 {
0085ce49
RD
6870 arg5 = &temp5;
6871 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6872 }
0085ce49
RD
6873 }
6874 if (obj5) {
6875 ecode6 = SWIG_AsVal_long(obj5, &val6);
6876 if (!SWIG_IsOK(ecode6)) {
6877 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6878 }
6879 arg6 = static_cast< long >(val6);
6880 }
6881 if (obj6) {
6882 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6883 if (!SWIG_IsOK(res7)) {
6884 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6885 }
6886 if (!argp7) {
6887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
5cbf236d 6888 }
0085ce49
RD
6889 arg7 = reinterpret_cast< wxValidator * >(argp7);
6890 }
6891 if (obj7) {
5cbf236d 6892 {
0085ce49
RD
6893 arg8 = wxString_in_helper(obj7);
6894 if (arg8 == NULL) SWIG_fail;
6895 temp8 = true;
5cbf236d 6896 }
0085ce49
RD
6897 }
6898 {
6899 if (!wxPyCheckForApp()) SWIG_fail;
6900 PyThreadState* __tstate = wxPyBeginAllowThreads();
6901 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6906 {
6907 if (temp8)
6908 delete arg8;
6909 }
6910 return resultobj;
6911fail:
6912 {
6913 if (temp8)
6914 delete arg8;
6915 }
6916 return NULL;
5cbf236d
RD
6917}
6918
6919
0085ce49
RD
6920SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6921 PyObject *resultobj = 0;
6922 wxGauge *result = 0 ;
6923
6924 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6925 {
6926 if (!wxPyCheckForApp()) SWIG_fail;
6927 PyThreadState* __tstate = wxPyBeginAllowThreads();
6928 result = (wxGauge *)new wxGauge();
6929 wxPyEndAllowThreads(__tstate);
6930 if (PyErr_Occurred()) SWIG_fail;
6931 }
6932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6933 return resultobj;
6934fail:
6935 return NULL;
6936}
6937
6938
6939SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6940 PyObject *resultobj = 0;
6941 wxGauge *arg1 = (wxGauge *) 0 ;
6942 wxWindow *arg2 = (wxWindow *) 0 ;
6943 int arg3 = (int) -1 ;
6944 int arg4 = (int) 100 ;
6945 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6946 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6947 wxSize const &arg6_defvalue = wxDefaultSize ;
6948 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6949 long arg7 = (long) wxGA_HORIZONTAL ;
6950 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6951 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6952 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6953 wxString *arg9 = (wxString *) &arg9_defvalue ;
6954 bool result;
6955 void *argp1 = 0 ;
6956 int res1 = 0 ;
6957 void *argp2 = 0 ;
6958 int res2 = 0 ;
6959 int val3 ;
6960 int ecode3 = 0 ;
6961 int val4 ;
6962 int ecode4 = 0 ;
6963 wxPoint temp5 ;
6964 wxSize temp6 ;
6965 long val7 ;
6966 int ecode7 = 0 ;
6967 void *argp8 = 0 ;
6968 int res8 = 0 ;
6969 bool temp9 = false ;
6970 PyObject * obj0 = 0 ;
6971 PyObject * obj1 = 0 ;
6972 PyObject * obj2 = 0 ;
6973 PyObject * obj3 = 0 ;
6974 PyObject * obj4 = 0 ;
6975 PyObject * obj5 = 0 ;
6976 PyObject * obj6 = 0 ;
6977 PyObject * obj7 = 0 ;
6978 PyObject * obj8 = 0 ;
6979 char * kwnames[] = {
6980 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6981 };
6982
6983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6985 if (!SWIG_IsOK(res1)) {
6986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6987 }
6988 arg1 = reinterpret_cast< wxGauge * >(argp1);
6989 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6990 if (!SWIG_IsOK(res2)) {
6991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6992 }
6993 arg2 = reinterpret_cast< wxWindow * >(argp2);
6994 if (obj2) {
6995 ecode3 = SWIG_AsVal_int(obj2, &val3);
6996 if (!SWIG_IsOK(ecode3)) {
6997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6998 }
6999 arg3 = static_cast< int >(val3);
7000 }
7001 if (obj3) {
7002 ecode4 = SWIG_AsVal_int(obj3, &val4);
7003 if (!SWIG_IsOK(ecode4)) {
7004 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
7005 }
7006 arg4 = static_cast< int >(val4);
7007 }
7008 if (obj4) {
5cbf236d 7009 {
0085ce49
RD
7010 arg5 = &temp5;
7011 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 7012 }
0085ce49
RD
7013 }
7014 if (obj5) {
5cbf236d 7015 {
0085ce49
RD
7016 arg6 = &temp6;
7017 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 7018 }
0085ce49
RD
7019 }
7020 if (obj6) {
7021 ecode7 = SWIG_AsVal_long(obj6, &val7);
7022 if (!SWIG_IsOK(ecode7)) {
7023 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7024 }
7025 arg7 = static_cast< long >(val7);
7026 }
7027 if (obj7) {
7028 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7029 if (!SWIG_IsOK(res8)) {
7030 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5cbf236d 7031 }
0085ce49
RD
7032 if (!argp8) {
7033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7034 }
7035 arg8 = reinterpret_cast< wxValidator * >(argp8);
7036 }
7037 if (obj8) {
5cbf236d 7038 {
0085ce49
RD
7039 arg9 = wxString_in_helper(obj8);
7040 if (arg9 == NULL) SWIG_fail;
7041 temp9 = true;
5cbf236d 7042 }
0085ce49
RD
7043 }
7044 {
7045 PyThreadState* __tstate = wxPyBeginAllowThreads();
7046 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7047 wxPyEndAllowThreads(__tstate);
7048 if (PyErr_Occurred()) SWIG_fail;
7049 }
7050 {
7051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7052 }
7053 {
7054 if (temp9)
7055 delete arg9;
7056 }
7057 return resultobj;
7058fail:
7059 {
7060 if (temp9)
7061 delete arg9;
7062 }
7063 return NULL;
7064}
7065
7066
7067SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7068 PyObject *resultobj = 0;
7069 wxGauge *arg1 = (wxGauge *) 0 ;
7070 int arg2 ;
7071 void *argp1 = 0 ;
7072 int res1 = 0 ;
7073 int val2 ;
7074 int ecode2 = 0 ;
7075 PyObject * obj0 = 0 ;
7076 PyObject * obj1 = 0 ;
7077 char * kwnames[] = {
7078 (char *) "self",(char *) "range", NULL
7079 };
7080
7081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7083 if (!SWIG_IsOK(res1)) {
7084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7085 }
7086 arg1 = reinterpret_cast< wxGauge * >(argp1);
7087 ecode2 = SWIG_AsVal_int(obj1, &val2);
7088 if (!SWIG_IsOK(ecode2)) {
7089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7090 }
7091 arg2 = static_cast< int >(val2);
7092 {
7093 PyThreadState* __tstate = wxPyBeginAllowThreads();
7094 (arg1)->SetRange(arg2);
7095 wxPyEndAllowThreads(__tstate);
7096 if (PyErr_Occurred()) SWIG_fail;
7097 }
7098 resultobj = SWIG_Py_Void();
7099 return resultobj;
7100fail:
7101 return NULL;
5cbf236d
RD
7102}
7103
7104
0085ce49
RD
7105SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7106 PyObject *resultobj = 0;
7107 wxGauge *arg1 = (wxGauge *) 0 ;
7108 int result;
7109 void *argp1 = 0 ;
7110 int res1 = 0 ;
7111 PyObject *swig_obj[1] ;
7112
7113 if (!args) SWIG_fail;
7114 swig_obj[0] = args;
7115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7116 if (!SWIG_IsOK(res1)) {
7117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7118 }
7119 arg1 = reinterpret_cast< wxGauge * >(argp1);
7120 {
7121 PyThreadState* __tstate = wxPyBeginAllowThreads();
7122 result = (int)((wxGauge const *)arg1)->GetRange();
7123 wxPyEndAllowThreads(__tstate);
7124 if (PyErr_Occurred()) SWIG_fail;
7125 }
7126 resultobj = SWIG_From_int(static_cast< int >(result));
7127 return resultobj;
7128fail:
7129 return NULL;
7130}
7131
7132
7133SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7134 PyObject *resultobj = 0;
7135 wxGauge *arg1 = (wxGauge *) 0 ;
7136 int arg2 ;
7137 void *argp1 = 0 ;
7138 int res1 = 0 ;
7139 int val2 ;
7140 int ecode2 = 0 ;
7141 PyObject * obj0 = 0 ;
7142 PyObject * obj1 = 0 ;
7143 char * kwnames[] = {
7144 (char *) "self",(char *) "pos", NULL
7145 };
7146
7147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7149 if (!SWIG_IsOK(res1)) {
7150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7151 }
7152 arg1 = reinterpret_cast< wxGauge * >(argp1);
7153 ecode2 = SWIG_AsVal_int(obj1, &val2);
7154 if (!SWIG_IsOK(ecode2)) {
7155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7156 }
7157 arg2 = static_cast< int >(val2);
7158 {
7159 PyThreadState* __tstate = wxPyBeginAllowThreads();
7160 (arg1)->SetValue(arg2);
7161 wxPyEndAllowThreads(__tstate);
7162 if (PyErr_Occurred()) SWIG_fail;
7163 }
7164 resultobj = SWIG_Py_Void();
7165 return resultobj;
7166fail:
7167 return NULL;
5cbf236d
RD
7168}
7169
7170
0085ce49
RD
7171SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7172 PyObject *resultobj = 0;
7173 wxGauge *arg1 = (wxGauge *) 0 ;
7174 int result;
7175 void *argp1 = 0 ;
7176 int res1 = 0 ;
7177 PyObject *swig_obj[1] ;
7178
7179 if (!args) SWIG_fail;
7180 swig_obj[0] = args;
7181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7182 if (!SWIG_IsOK(res1)) {
7183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7184 }
7185 arg1 = reinterpret_cast< wxGauge * >(argp1);
7186 {
7187 PyThreadState* __tstate = wxPyBeginAllowThreads();
7188 result = (int)((wxGauge const *)arg1)->GetValue();
7189 wxPyEndAllowThreads(__tstate);
7190 if (PyErr_Occurred()) SWIG_fail;
7191 }
7192 resultobj = SWIG_From_int(static_cast< int >(result));
7193 return resultobj;
7194fail:
7195 return NULL;
5cbf236d
RD
7196}
7197
7198
ae5bc7f3
RD
7199SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7200 PyObject *resultobj = 0;
7201 wxGauge *arg1 = (wxGauge *) 0 ;
7202 void *argp1 = 0 ;
7203 int res1 = 0 ;
7204 PyObject *swig_obj[1] ;
7205
7206 if (!args) SWIG_fail;
7207 swig_obj[0] = args;
7208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7209 if (!SWIG_IsOK(res1)) {
7210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7211 }
7212 arg1 = reinterpret_cast< wxGauge * >(argp1);
7213 {
7214 PyThreadState* __tstate = wxPyBeginAllowThreads();
7215 (arg1)->Pulse();
7216 wxPyEndAllowThreads(__tstate);
7217 if (PyErr_Occurred()) SWIG_fail;
7218 }
7219 resultobj = SWIG_Py_Void();
7220 return resultobj;
7221fail:
7222 return NULL;
7223}
7224
7225
0085ce49
RD
7226SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7227 PyObject *resultobj = 0;
7228 wxGauge *arg1 = (wxGauge *) 0 ;
7229 bool result;
7230 void *argp1 = 0 ;
7231 int res1 = 0 ;
7232 PyObject *swig_obj[1] ;
7233
7234 if (!args) SWIG_fail;
7235 swig_obj[0] = args;
7236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7237 if (!SWIG_IsOK(res1)) {
7238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7239 }
7240 arg1 = reinterpret_cast< wxGauge * >(argp1);
7241 {
7242 PyThreadState* __tstate = wxPyBeginAllowThreads();
7243 result = (bool)((wxGauge const *)arg1)->IsVertical();
7244 wxPyEndAllowThreads(__tstate);
7245 if (PyErr_Occurred()) SWIG_fail;
7246 }
7247 {
7248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7249 }
7250 return resultobj;
7251fail:
7252 return NULL;
7253}
7254
7255
7256SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj = 0;
7258 wxGauge *arg1 = (wxGauge *) 0 ;
7259 int arg2 ;
7260 void *argp1 = 0 ;
7261 int res1 = 0 ;
7262 int val2 ;
7263 int ecode2 = 0 ;
7264 PyObject * obj0 = 0 ;
7265 PyObject * obj1 = 0 ;
7266 char * kwnames[] = {
7267 (char *) "self",(char *) "w", NULL
7268 };
7269
7270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7272 if (!SWIG_IsOK(res1)) {
7273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7274 }
7275 arg1 = reinterpret_cast< wxGauge * >(argp1);
7276 ecode2 = SWIG_AsVal_int(obj1, &val2);
7277 if (!SWIG_IsOK(ecode2)) {
7278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7279 }
7280 arg2 = static_cast< int >(val2);
7281 {
7282 PyThreadState* __tstate = wxPyBeginAllowThreads();
7283 (arg1)->SetShadowWidth(arg2);
7284 wxPyEndAllowThreads(__tstate);
7285 if (PyErr_Occurred()) SWIG_fail;
7286 }
7287 resultobj = SWIG_Py_Void();
7288 return resultobj;
7289fail:
7290 return NULL;
22bfe96c
RD
7291}
7292
7293
0085ce49
RD
7294SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7295 PyObject *resultobj = 0;
7296 wxGauge *arg1 = (wxGauge *) 0 ;
7297 int result;
7298 void *argp1 = 0 ;
7299 int res1 = 0 ;
7300 PyObject *swig_obj[1] ;
7301
7302 if (!args) SWIG_fail;
7303 swig_obj[0] = args;
7304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7305 if (!SWIG_IsOK(res1)) {
7306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7307 }
7308 arg1 = reinterpret_cast< wxGauge * >(argp1);
7309 {
7310 PyThreadState* __tstate = wxPyBeginAllowThreads();
7311 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7312 wxPyEndAllowThreads(__tstate);
7313 if (PyErr_Occurred()) SWIG_fail;
7314 }
7315 resultobj = SWIG_From_int(static_cast< int >(result));
7316 return resultobj;
7317fail:
7318 return NULL;
7319}
7320
7321
7322SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7323 PyObject *resultobj = 0;
7324 wxGauge *arg1 = (wxGauge *) 0 ;
7325 int arg2 ;
7326 void *argp1 = 0 ;
7327 int res1 = 0 ;
7328 int val2 ;
7329 int ecode2 = 0 ;
7330 PyObject * obj0 = 0 ;
7331 PyObject * obj1 = 0 ;
7332 char * kwnames[] = {
7333 (char *) "self",(char *) "w", NULL
7334 };
7335
7336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7338 if (!SWIG_IsOK(res1)) {
7339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7340 }
7341 arg1 = reinterpret_cast< wxGauge * >(argp1);
7342 ecode2 = SWIG_AsVal_int(obj1, &val2);
7343 if (!SWIG_IsOK(ecode2)) {
7344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7345 }
7346 arg2 = static_cast< int >(val2);
7347 {
7348 PyThreadState* __tstate = wxPyBeginAllowThreads();
7349 (arg1)->SetBezelFace(arg2);
7350 wxPyEndAllowThreads(__tstate);
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 resultobj = SWIG_Py_Void();
7354 return resultobj;
7355fail:
7356 return NULL;
d14a1e28 7357}
0085ce49
RD
7358
7359
7360SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7361 PyObject *resultobj = 0;
7362 wxGauge *arg1 = (wxGauge *) 0 ;
7363 int result;
7364 void *argp1 = 0 ;
7365 int res1 = 0 ;
7366 PyObject *swig_obj[1] ;
7367
7368 if (!args) SWIG_fail;
7369 swig_obj[0] = args;
7370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7371 if (!SWIG_IsOK(res1)) {
7372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7373 }
7374 arg1 = reinterpret_cast< wxGauge * >(argp1);
7375 {
7376 PyThreadState* __tstate = wxPyBeginAllowThreads();
7377 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7378 wxPyEndAllowThreads(__tstate);
7379 if (PyErr_Occurred()) SWIG_fail;
7380 }
7381 resultobj = SWIG_From_int(static_cast< int >(result));
7382 return resultobj;
7383fail:
7384 return NULL;
7385}
7386
7387
7388SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7389 PyObject *resultobj = 0;
7390 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7391 SwigValueWrapper<wxVisualAttributes > result;
7392 int val1 ;
7393 int ecode1 = 0 ;
7394 PyObject * obj0 = 0 ;
7395 char * kwnames[] = {
7396 (char *) "variant", NULL
7397 };
7398
7399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7400 if (obj0) {
7401 ecode1 = SWIG_AsVal_int(obj0, &val1);
7402 if (!SWIG_IsOK(ecode1)) {
7403 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7404 }
7405 arg1 = static_cast< wxWindowVariant >(val1);
7406 }
7407 {
7408 if (!wxPyCheckForApp()) SWIG_fail;
7409 PyThreadState* __tstate = wxPyBeginAllowThreads();
7410 result = wxGauge::GetClassDefaultAttributes(arg1);
7411 wxPyEndAllowThreads(__tstate);
7412 if (PyErr_Occurred()) SWIG_fail;
7413 }
7414 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7415 return resultobj;
7416fail:
7417 return NULL;
b2dc1044
RD
7418}
7419
7420
0085ce49
RD
7421SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7422 PyObject *obj;
7423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7424 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7425 return SWIG_Py_Void();
7426}
7427
7428SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7429 return SWIG_Python_InitShadowInstance(args);
7430}
7431
7432SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7433 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7434 return 1;
7435}
7436
7437
7438SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7439 PyObject *pyobj = 0;
7440
7441 {
b2dc1044 7442#if wxUSE_UNICODE
0085ce49 7443 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7444#else
0085ce49 7445 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7446#endif
0085ce49
RD
7447 }
7448 return pyobj;
d14a1e28
RD
7449}
7450
7451
0085ce49
RD
7452SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7453 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7454 return 1;
d14a1e28
RD
7455}
7456
7457
0085ce49
RD
7458SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7459 PyObject *pyobj = 0;
7460
7461 {
7462#if wxUSE_UNICODE
7463 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7464#else
7465 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7466#endif
7467 }
7468 return pyobj;
7469}
7470
7471
7472SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7473 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7474 return 1;
7475}
7476
7477
7478SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7479 PyObject *pyobj = 0;
7480
7481 {
7482#if wxUSE_UNICODE
7483 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7484#else
7485 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7486#endif
7487 }
7488 return pyobj;
7489}
7490
7491
7492SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7493 PyObject *resultobj = 0;
7494 wxWindow *arg1 = (wxWindow *) 0 ;
7495 int arg2 = (int) -1 ;
7496 wxString const &arg3_defvalue = wxPyEmptyString ;
7497 wxString *arg3 = (wxString *) &arg3_defvalue ;
7498 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7499 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7500 wxSize const &arg5_defvalue = wxDefaultSize ;
7501 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7502 long arg6 = (long) 0 ;
7503 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7504 wxString *arg7 = (wxString *) &arg7_defvalue ;
7505 wxStaticBox *result = 0 ;
7506 void *argp1 = 0 ;
7507 int res1 = 0 ;
7508 int val2 ;
7509 int ecode2 = 0 ;
7510 bool temp3 = false ;
7511 wxPoint temp4 ;
7512 wxSize temp5 ;
7513 long val6 ;
7514 int ecode6 = 0 ;
7515 bool temp7 = false ;
7516 PyObject * obj0 = 0 ;
7517 PyObject * obj1 = 0 ;
7518 PyObject * obj2 = 0 ;
7519 PyObject * obj3 = 0 ;
7520 PyObject * obj4 = 0 ;
7521 PyObject * obj5 = 0 ;
7522 PyObject * obj6 = 0 ;
7523 char * kwnames[] = {
7524 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7525 };
7526
7527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7529 if (!SWIG_IsOK(res1)) {
7530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7531 }
7532 arg1 = reinterpret_cast< wxWindow * >(argp1);
7533 if (obj1) {
7534 ecode2 = SWIG_AsVal_int(obj1, &val2);
7535 if (!SWIG_IsOK(ecode2)) {
7536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7537 }
7538 arg2 = static_cast< int >(val2);
7539 }
7540 if (obj2) {
d14a1e28 7541 {
0085ce49
RD
7542 arg3 = wxString_in_helper(obj2);
7543 if (arg3 == NULL) SWIG_fail;
7544 temp3 = true;
d14a1e28 7545 }
0085ce49
RD
7546 }
7547 if (obj3) {
4f89f6a3 7548 {
0085ce49
RD
7549 arg4 = &temp4;
7550 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 7551 }
0085ce49
RD
7552 }
7553 if (obj4) {
d14a1e28 7554 {
0085ce49
RD
7555 arg5 = &temp5;
7556 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7557 }
0085ce49
RD
7558 }
7559 if (obj5) {
7560 ecode6 = SWIG_AsVal_long(obj5, &val6);
7561 if (!SWIG_IsOK(ecode6)) {
7562 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7563 }
7564 arg6 = static_cast< long >(val6);
7565 }
7566 if (obj6) {
d14a1e28 7567 {
0085ce49
RD
7568 arg7 = wxString_in_helper(obj6);
7569 if (arg7 == NULL) SWIG_fail;
7570 temp7 = true;
d14a1e28 7571 }
0085ce49
RD
7572 }
7573 {
7574 if (!wxPyCheckForApp()) SWIG_fail;
7575 PyThreadState* __tstate = wxPyBeginAllowThreads();
7576 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7577 wxPyEndAllowThreads(__tstate);
7578 if (PyErr_Occurred()) SWIG_fail;
7579 }
7580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7581 {
7582 if (temp3)
7583 delete arg3;
7584 }
7585 {
7586 if (temp7)
7587 delete arg7;
7588 }
7589 return resultobj;
7590fail:
7591 {
7592 if (temp3)
7593 delete arg3;
7594 }
7595 {
7596 if (temp7)
7597 delete arg7;
7598 }
7599 return NULL;
d14a1e28
RD
7600}
7601
7602
0085ce49
RD
7603SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7604 PyObject *resultobj = 0;
7605 wxStaticBox *result = 0 ;
7606
7607 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7608 {
7609 if (!wxPyCheckForApp()) SWIG_fail;
7610 PyThreadState* __tstate = wxPyBeginAllowThreads();
7611 result = (wxStaticBox *)new wxStaticBox();
7612 wxPyEndAllowThreads(__tstate);
7613 if (PyErr_Occurred()) SWIG_fail;
7614 }
7615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7616 return resultobj;
7617fail:
7618 return NULL;
7619}
7620
7621
7622SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7623 PyObject *resultobj = 0;
7624 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7625 wxWindow *arg2 = (wxWindow *) 0 ;
7626 int arg3 = (int) -1 ;
7627 wxString const &arg4_defvalue = wxPyEmptyString ;
7628 wxString *arg4 = (wxString *) &arg4_defvalue ;
7629 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7630 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7631 wxSize const &arg6_defvalue = wxDefaultSize ;
7632 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7633 long arg7 = (long) 0 ;
7634 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7635 wxString *arg8 = (wxString *) &arg8_defvalue ;
7636 bool result;
7637 void *argp1 = 0 ;
7638 int res1 = 0 ;
7639 void *argp2 = 0 ;
7640 int res2 = 0 ;
7641 int val3 ;
7642 int ecode3 = 0 ;
7643 bool temp4 = false ;
7644 wxPoint temp5 ;
7645 wxSize temp6 ;
7646 long val7 ;
7647 int ecode7 = 0 ;
7648 bool temp8 = false ;
7649 PyObject * obj0 = 0 ;
7650 PyObject * obj1 = 0 ;
7651 PyObject * obj2 = 0 ;
7652 PyObject * obj3 = 0 ;
7653 PyObject * obj4 = 0 ;
7654 PyObject * obj5 = 0 ;
7655 PyObject * obj6 = 0 ;
7656 PyObject * obj7 = 0 ;
7657 char * kwnames[] = {
7658 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7659 };
7660
7661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7663 if (!SWIG_IsOK(res1)) {
7664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7665 }
7666 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7667 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7668 if (!SWIG_IsOK(res2)) {
7669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7670 }
7671 arg2 = reinterpret_cast< wxWindow * >(argp2);
7672 if (obj2) {
7673 ecode3 = SWIG_AsVal_int(obj2, &val3);
7674 if (!SWIG_IsOK(ecode3)) {
7675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7676 }
7677 arg3 = static_cast< int >(val3);
7678 }
7679 if (obj3) {
093d3ff1 7680 {
0085ce49
RD
7681 arg4 = wxString_in_helper(obj3);
7682 if (arg4 == NULL) SWIG_fail;
7683 temp4 = true;
093d3ff1 7684 }
0085ce49
RD
7685 }
7686 if (obj4) {
d14a1e28 7687 {
0085ce49
RD
7688 arg5 = &temp5;
7689 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7690 }
0085ce49
RD
7691 }
7692 if (obj5) {
d14a1e28 7693 {
0085ce49
RD
7694 arg6 = &temp6;
7695 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 7696 }
0085ce49
RD
7697 }
7698 if (obj6) {
7699 ecode7 = SWIG_AsVal_long(obj6, &val7);
7700 if (!SWIG_IsOK(ecode7)) {
7701 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7702 }
7703 arg7 = static_cast< long >(val7);
7704 }
7705 if (obj7) {
093d3ff1 7706 {
0085ce49
RD
7707 arg8 = wxString_in_helper(obj7);
7708 if (arg8 == NULL) SWIG_fail;
7709 temp8 = true;
093d3ff1 7710 }
0085ce49
RD
7711 }
7712 {
7713 PyThreadState* __tstate = wxPyBeginAllowThreads();
7714 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7715 wxPyEndAllowThreads(__tstate);
7716 if (PyErr_Occurred()) SWIG_fail;
7717 }
7718 {
7719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7720 }
7721 {
7722 if (temp4)
7723 delete arg4;
7724 }
7725 {
7726 if (temp8)
7727 delete arg8;
7728 }
7729 return resultobj;
7730fail:
7731 {
7732 if (temp4)
7733 delete arg4;
7734 }
7735 {
7736 if (temp8)
7737 delete arg8;
7738 }
7739 return NULL;
7740}
d14a1e28 7741
0085ce49
RD
7742
7743SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7744 PyObject *resultobj = 0;
7745 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7746 SwigValueWrapper<wxVisualAttributes > result;
7747 int val1 ;
7748 int ecode1 = 0 ;
7749 PyObject * obj0 = 0 ;
7750 char * kwnames[] = {
7751 (char *) "variant", NULL
7752 };
7753
7754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7755 if (obj0) {
7756 ecode1 = SWIG_AsVal_int(obj0, &val1);
7757 if (!SWIG_IsOK(ecode1)) {
7758 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7759 }
7760 arg1 = static_cast< wxWindowVariant >(val1);
7761 }
7762 {
7763 if (!wxPyCheckForApp()) SWIG_fail;
7764 PyThreadState* __tstate = wxPyBeginAllowThreads();
7765 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7766 wxPyEndAllowThreads(__tstate);
7767 if (PyErr_Occurred()) SWIG_fail;
7768 }
7769 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7770 return resultobj;
7771fail:
7772 return NULL;
7773}
7774
7775
7776SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7777 PyObject *obj;
7778 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7779 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7780 return SWIG_Py_Void();
7781}
7782
7783SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7784 return SWIG_Python_InitShadowInstance(args);
7785}
7786
7787SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7788 PyObject *resultobj = 0;
7789 wxWindow *arg1 = (wxWindow *) 0 ;
7790 int arg2 = (int) -1 ;
7791 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7792 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7793 wxSize const &arg4_defvalue = wxDefaultSize ;
7794 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7795 long arg5 = (long) wxLI_HORIZONTAL ;
7796 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7797 wxString *arg6 = (wxString *) &arg6_defvalue ;
7798 wxStaticLine *result = 0 ;
7799 void *argp1 = 0 ;
7800 int res1 = 0 ;
7801 int val2 ;
7802 int ecode2 = 0 ;
7803 wxPoint temp3 ;
7804 wxSize temp4 ;
7805 long val5 ;
7806 int ecode5 = 0 ;
7807 bool temp6 = false ;
7808 PyObject * obj0 = 0 ;
7809 PyObject * obj1 = 0 ;
7810 PyObject * obj2 = 0 ;
7811 PyObject * obj3 = 0 ;
7812 PyObject * obj4 = 0 ;
7813 PyObject * obj5 = 0 ;
7814 char * kwnames[] = {
7815 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7816 };
7817
7818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7820 if (!SWIG_IsOK(res1)) {
7821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7822 }
7823 arg1 = reinterpret_cast< wxWindow * >(argp1);
7824 if (obj1) {
7825 ecode2 = SWIG_AsVal_int(obj1, &val2);
7826 if (!SWIG_IsOK(ecode2)) {
7827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7828 }
7829 arg2 = static_cast< int >(val2);
7830 }
7831 if (obj2) {
093d3ff1 7832 {
0085ce49
RD
7833 arg3 = &temp3;
7834 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 7835 }
0085ce49
RD
7836 }
7837 if (obj3) {
d14a1e28 7838 {
0085ce49
RD
7839 arg4 = &temp4;
7840 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7841 }
0085ce49
RD
7842 }
7843 if (obj4) {
7844 ecode5 = SWIG_AsVal_long(obj4, &val5);
7845 if (!SWIG_IsOK(ecode5)) {
7846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7847 }
7848 arg5 = static_cast< long >(val5);
7849 }
7850 if (obj5) {
7851 {
7852 arg6 = wxString_in_helper(obj5);
7853 if (arg6 == NULL) SWIG_fail;
7854 temp6 = true;
7855 }
7856 }
7857 {
7858 if (!wxPyCheckForApp()) SWIG_fail;
7859 PyThreadState* __tstate = wxPyBeginAllowThreads();
7860 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7861 wxPyEndAllowThreads(__tstate);
7862 if (PyErr_Occurred()) SWIG_fail;
7863 }
7864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7865 {
7866 if (temp6)
7867 delete arg6;
7868 }
7869 return resultobj;
7870fail:
7871 {
7872 if (temp6)
7873 delete arg6;
7874 }
7875 return NULL;
d14a1e28
RD
7876}
7877
7878
0085ce49
RD
7879SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7880 PyObject *resultobj = 0;
7881 wxStaticLine *result = 0 ;
7882
7883 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7884 {
7885 if (!wxPyCheckForApp()) SWIG_fail;
7886 PyThreadState* __tstate = wxPyBeginAllowThreads();
7887 result = (wxStaticLine *)new wxStaticLine();
7888 wxPyEndAllowThreads(__tstate);
7889 if (PyErr_Occurred()) SWIG_fail;
7890 }
7891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7892 return resultobj;
7893fail:
7894 return NULL;
7895}
7896
7897
7898SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7899 PyObject *resultobj = 0;
7900 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7901 wxWindow *arg2 = (wxWindow *) 0 ;
7902 int arg3 = (int) -1 ;
7903 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7904 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7905 wxSize const &arg5_defvalue = wxDefaultSize ;
7906 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7907 long arg6 = (long) wxLI_HORIZONTAL ;
7908 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7909 wxString *arg7 = (wxString *) &arg7_defvalue ;
7910 bool result;
7911 void *argp1 = 0 ;
7912 int res1 = 0 ;
7913 void *argp2 = 0 ;
7914 int res2 = 0 ;
7915 int val3 ;
7916 int ecode3 = 0 ;
7917 wxPoint temp4 ;
7918 wxSize temp5 ;
7919 long val6 ;
7920 int ecode6 = 0 ;
7921 bool temp7 = false ;
7922 PyObject * obj0 = 0 ;
7923 PyObject * obj1 = 0 ;
7924 PyObject * obj2 = 0 ;
7925 PyObject * obj3 = 0 ;
7926 PyObject * obj4 = 0 ;
7927 PyObject * obj5 = 0 ;
7928 PyObject * obj6 = 0 ;
7929 char * kwnames[] = {
7930 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7931 };
7932
7933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7935 if (!SWIG_IsOK(res1)) {
7936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7937 }
7938 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7939 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7940 if (!SWIG_IsOK(res2)) {
7941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7942 }
7943 arg2 = reinterpret_cast< wxWindow * >(argp2);
7944 if (obj2) {
7945 ecode3 = SWIG_AsVal_int(obj2, &val3);
7946 if (!SWIG_IsOK(ecode3)) {
7947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7948 }
7949 arg3 = static_cast< int >(val3);
7950 }
7951 if (obj3) {
d14a1e28 7952 {
0085ce49
RD
7953 arg4 = &temp4;
7954 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7955 }
0085ce49
RD
7956 }
7957 if (obj4) {
093d3ff1 7958 {
0085ce49
RD
7959 arg5 = &temp5;
7960 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 7961 }
0085ce49
RD
7962 }
7963 if (obj5) {
7964 ecode6 = SWIG_AsVal_long(obj5, &val6);
7965 if (!SWIG_IsOK(ecode6)) {
7966 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7967 }
7968 arg6 = static_cast< long >(val6);
7969 }
7970 if (obj6) {
7971 {
7972 arg7 = wxString_in_helper(obj6);
7973 if (arg7 == NULL) SWIG_fail;
7974 temp7 = true;
7975 }
7976 }
7977 {
7978 PyThreadState* __tstate = wxPyBeginAllowThreads();
7979 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7980 wxPyEndAllowThreads(__tstate);
7981 if (PyErr_Occurred()) SWIG_fail;
7982 }
7983 {
7984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7985 }
7986 {
7987 if (temp7)
7988 delete arg7;
7989 }
7990 return resultobj;
7991fail:
7992 {
7993 if (temp7)
7994 delete arg7;
7995 }
7996 return NULL;
d14a1e28
RD
7997}
7998
7999
0085ce49
RD
8000SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8001 PyObject *resultobj = 0;
8002 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
8003 bool result;
8004 void *argp1 = 0 ;
8005 int res1 = 0 ;
8006 PyObject *swig_obj[1] ;
8007
8008 if (!args) SWIG_fail;
8009 swig_obj[0] = args;
8010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
8011 if (!SWIG_IsOK(res1)) {
8012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
8013 }
8014 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
8015 {
8016 PyThreadState* __tstate = wxPyBeginAllowThreads();
8017 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
8018 wxPyEndAllowThreads(__tstate);
8019 if (PyErr_Occurred()) SWIG_fail;
8020 }
8021 {
8022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8023 }
8024 return resultobj;
8025fail:
8026 return NULL;
8027}
8028
8029
8030SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8031 PyObject *resultobj = 0;
8032 int result;
8033
8034 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8035 {
8036 PyThreadState* __tstate = wxPyBeginAllowThreads();
8037 result = (int)wxStaticLine::GetDefaultSize();
8038 wxPyEndAllowThreads(__tstate);
8039 if (PyErr_Occurred()) SWIG_fail;
8040 }
8041 resultobj = SWIG_From_int(static_cast< int >(result));
8042 return resultobj;
8043fail:
8044 return NULL;
8045}
8046
8047
8048SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8049 PyObject *resultobj = 0;
8050 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8051 SwigValueWrapper<wxVisualAttributes > result;
8052 int val1 ;
8053 int ecode1 = 0 ;
8054 PyObject * obj0 = 0 ;
8055 char * kwnames[] = {
8056 (char *) "variant", NULL
8057 };
8058
8059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8060 if (obj0) {
8061 ecode1 = SWIG_AsVal_int(obj0, &val1);
8062 if (!SWIG_IsOK(ecode1)) {
8063 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8064 }
8065 arg1 = static_cast< wxWindowVariant >(val1);
8066 }
8067 {
8068 if (!wxPyCheckForApp()) SWIG_fail;
8069 PyThreadState* __tstate = wxPyBeginAllowThreads();
8070 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8075 return resultobj;
8076fail:
8077 return NULL;
8078}
8079
8080
8081SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8082 PyObject *obj;
8083 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8084 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8085 return SWIG_Py_Void();
8086}
8087
8088SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8089 return SWIG_Python_InitShadowInstance(args);
8090}
8091
8092SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8093 PyObject *resultobj = 0;
8094 wxWindow *arg1 = (wxWindow *) 0 ;
8095 int arg2 = (int) -1 ;
8096 wxString const &arg3_defvalue = wxPyEmptyString ;
8097 wxString *arg3 = (wxString *) &arg3_defvalue ;
8098 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8099 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8100 wxSize const &arg5_defvalue = wxDefaultSize ;
8101 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8102 long arg6 = (long) 0 ;
8103 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8104 wxString *arg7 = (wxString *) &arg7_defvalue ;
8105 wxStaticText *result = 0 ;
8106 void *argp1 = 0 ;
8107 int res1 = 0 ;
8108 int val2 ;
8109 int ecode2 = 0 ;
8110 bool temp3 = false ;
8111 wxPoint temp4 ;
8112 wxSize temp5 ;
8113 long val6 ;
8114 int ecode6 = 0 ;
8115 bool temp7 = false ;
8116 PyObject * obj0 = 0 ;
8117 PyObject * obj1 = 0 ;
8118 PyObject * obj2 = 0 ;
8119 PyObject * obj3 = 0 ;
8120 PyObject * obj4 = 0 ;
8121 PyObject * obj5 = 0 ;
8122 PyObject * obj6 = 0 ;
8123 char * kwnames[] = {
8124 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8125 };
8126
8127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8129 if (!SWIG_IsOK(res1)) {
8130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8131 }
8132 arg1 = reinterpret_cast< wxWindow * >(argp1);
8133 if (obj1) {
8134 ecode2 = SWIG_AsVal_int(obj1, &val2);
8135 if (!SWIG_IsOK(ecode2)) {
8136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8137 }
8138 arg2 = static_cast< int >(val2);
8139 }
8140 if (obj2) {
d14a1e28 8141 {
0085ce49
RD
8142 arg3 = wxString_in_helper(obj2);
8143 if (arg3 == NULL) SWIG_fail;
8144 temp3 = true;
d14a1e28 8145 }
0085ce49
RD
8146 }
8147 if (obj3) {
4f89f6a3 8148 {
0085ce49
RD
8149 arg4 = &temp4;
8150 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 8151 }
0085ce49
RD
8152 }
8153 if (obj4) {
093d3ff1 8154 {
0085ce49
RD
8155 arg5 = &temp5;
8156 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 8157 }
0085ce49
RD
8158 }
8159 if (obj5) {
8160 ecode6 = SWIG_AsVal_long(obj5, &val6);
8161 if (!SWIG_IsOK(ecode6)) {
8162 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8163 }
8164 arg6 = static_cast< long >(val6);
8165 }
8166 if (obj6) {
d14a1e28 8167 {
0085ce49
RD
8168 arg7 = wxString_in_helper(obj6);
8169 if (arg7 == NULL) SWIG_fail;
8170 temp7 = true;
d14a1e28 8171 }
0085ce49
RD
8172 }
8173 {
8174 if (!wxPyCheckForApp()) SWIG_fail;
8175 PyThreadState* __tstate = wxPyBeginAllowThreads();
8176 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8177 wxPyEndAllowThreads(__tstate);
8178 if (PyErr_Occurred()) SWIG_fail;
8179 }
8180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8181 {
8182 if (temp3)
8183 delete arg3;
8184 }
8185 {
8186 if (temp7)
8187 delete arg7;
8188 }
8189 return resultobj;
8190fail:
8191 {
8192 if (temp3)
8193 delete arg3;
8194 }
8195 {
8196 if (temp7)
8197 delete arg7;
8198 }
8199 return NULL;
d14a1e28
RD
8200}
8201
8202
0085ce49
RD
8203SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8204 PyObject *resultobj = 0;
8205 wxStaticText *result = 0 ;
8206
8207 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8208 {
8209 if (!wxPyCheckForApp()) SWIG_fail;
8210 PyThreadState* __tstate = wxPyBeginAllowThreads();
8211 result = (wxStaticText *)new wxStaticText();
8212 wxPyEndAllowThreads(__tstate);
8213 if (PyErr_Occurred()) SWIG_fail;
8214 }
8215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8216 return resultobj;
8217fail:
8218 return NULL;
8219}
8220
8221
8222SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8223 PyObject *resultobj = 0;
8224 wxStaticText *arg1 = (wxStaticText *) 0 ;
8225 wxWindow *arg2 = (wxWindow *) 0 ;
8226 int arg3 = (int) -1 ;
8227 wxString const &arg4_defvalue = wxPyEmptyString ;
8228 wxString *arg4 = (wxString *) &arg4_defvalue ;
8229 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8230 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8231 wxSize const &arg6_defvalue = wxDefaultSize ;
8232 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8233 long arg7 = (long) 0 ;
8234 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8235 wxString *arg8 = (wxString *) &arg8_defvalue ;
8236 bool result;
8237 void *argp1 = 0 ;
8238 int res1 = 0 ;
8239 void *argp2 = 0 ;
8240 int res2 = 0 ;
8241 int val3 ;
8242 int ecode3 = 0 ;
8243 bool temp4 = false ;
8244 wxPoint temp5 ;
8245 wxSize temp6 ;
8246 long val7 ;
8247 int ecode7 = 0 ;
8248 bool temp8 = false ;
8249 PyObject * obj0 = 0 ;
8250 PyObject * obj1 = 0 ;
8251 PyObject * obj2 = 0 ;
8252 PyObject * obj3 = 0 ;
8253 PyObject * obj4 = 0 ;
8254 PyObject * obj5 = 0 ;
8255 PyObject * obj6 = 0 ;
8256 PyObject * obj7 = 0 ;
8257 char * kwnames[] = {
8258 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8259 };
8260
8261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8263 if (!SWIG_IsOK(res1)) {
8264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8265 }
8266 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8268 if (!SWIG_IsOK(res2)) {
8269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8270 }
8271 arg2 = reinterpret_cast< wxWindow * >(argp2);
8272 if (obj2) {
8273 ecode3 = SWIG_AsVal_int(obj2, &val3);
8274 if (!SWIG_IsOK(ecode3)) {
8275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8276 }
8277 arg3 = static_cast< int >(val3);
8278 }
8279 if (obj3) {
d14a1e28 8280 {
0085ce49
RD
8281 arg4 = wxString_in_helper(obj3);
8282 if (arg4 == NULL) SWIG_fail;
8283 temp4 = true;
8284 }
8285 }
8286 if (obj4) {
8287 {
8288 arg5 = &temp5;
8289 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8290 }
0085ce49
RD
8291 }
8292 if (obj5) {
093d3ff1 8293 {
0085ce49
RD
8294 arg6 = &temp6;
8295 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 8296 }
0085ce49
RD
8297 }
8298 if (obj6) {
8299 ecode7 = SWIG_AsVal_long(obj6, &val7);
8300 if (!SWIG_IsOK(ecode7)) {
8301 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8302 }
8303 arg7 = static_cast< long >(val7);
8304 }
8305 if (obj7) {
093d3ff1 8306 {
0085ce49
RD
8307 arg8 = wxString_in_helper(obj7);
8308 if (arg8 == NULL) SWIG_fail;
8309 temp8 = true;
8310 }
8311 }
8312 {
8313 PyThreadState* __tstate = wxPyBeginAllowThreads();
8314 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8315 wxPyEndAllowThreads(__tstate);
8316 if (PyErr_Occurred()) SWIG_fail;
8317 }
8318 {
8319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8320 }
8321 {
8322 if (temp4)
8323 delete arg4;
8324 }
8325 {
8326 if (temp8)
8327 delete arg8;
8328 }
8329 return resultobj;
8330fail:
8331 {
8332 if (temp4)
8333 delete arg4;
8334 }
8335 {
8336 if (temp8)
8337 delete arg8;
8338 }
8339 return NULL;
8340}
8341
8342
8343SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8344 PyObject *resultobj = 0;
8345 wxStaticText *arg1 = (wxStaticText *) 0 ;
8346 int arg2 ;
8347 void *argp1 = 0 ;
8348 int res1 = 0 ;
8349 int val2 ;
8350 int ecode2 = 0 ;
8351 PyObject * obj0 = 0 ;
8352 PyObject * obj1 = 0 ;
8353 char * kwnames[] = {
8354 (char *) "self",(char *) "width", NULL
8355 };
8356
8357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8359 if (!SWIG_IsOK(res1)) {
8360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8361 }
8362 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8363 ecode2 = SWIG_AsVal_int(obj1, &val2);
8364 if (!SWIG_IsOK(ecode2)) {
8365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8366 }
8367 arg2 = static_cast< int >(val2);
8368 {
8369 PyThreadState* __tstate = wxPyBeginAllowThreads();
8370 (arg1)->Wrap(arg2);
8371 wxPyEndAllowThreads(__tstate);
8372 if (PyErr_Occurred()) SWIG_fail;
8373 }
8374 resultobj = SWIG_Py_Void();
8375 return resultobj;
8376fail:
8377 return NULL;
8378}
8379
8380
8381SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8382 PyObject *resultobj = 0;
8383 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8384 SwigValueWrapper<wxVisualAttributes > result;
8385 int val1 ;
8386 int ecode1 = 0 ;
8387 PyObject * obj0 = 0 ;
8388 char * kwnames[] = {
8389 (char *) "variant", NULL
8390 };
8391
8392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8393 if (obj0) {
8394 ecode1 = SWIG_AsVal_int(obj0, &val1);
8395 if (!SWIG_IsOK(ecode1)) {
8396 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8397 }
8398 arg1 = static_cast< wxWindowVariant >(val1);
8399 }
8400 {
8401 if (!wxPyCheckForApp()) SWIG_fail;
8402 PyThreadState* __tstate = wxPyBeginAllowThreads();
8403 result = wxStaticText::GetClassDefaultAttributes(arg1);
8404 wxPyEndAllowThreads(__tstate);
8405 if (PyErr_Occurred()) SWIG_fail;
8406 }
8407 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8408 return resultobj;
8409fail:
8410 return NULL;
8411}
8412
8413
8414SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8415 PyObject *obj;
8416 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8417 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8418 return SWIG_Py_Void();
8419}
8420
8421SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8422 return SWIG_Python_InitShadowInstance(args);
8423}
8424
8425SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8426 PyObject *resultobj = 0;
8427 wxWindow *arg1 = (wxWindow *) 0 ;
8428 int arg2 = (int) -1 ;
8429 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8430 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8431 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8432 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8433 wxSize const &arg5_defvalue = wxDefaultSize ;
8434 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8435 long arg6 = (long) 0 ;
8436 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8437 wxString *arg7 = (wxString *) &arg7_defvalue ;
8438 wxStaticBitmap *result = 0 ;
8439 void *argp1 = 0 ;
8440 int res1 = 0 ;
8441 int val2 ;
8442 int ecode2 = 0 ;
8443 void *argp3 = 0 ;
8444 int res3 = 0 ;
8445 wxPoint temp4 ;
8446 wxSize temp5 ;
8447 long val6 ;
8448 int ecode6 = 0 ;
8449 bool temp7 = false ;
8450 PyObject * obj0 = 0 ;
8451 PyObject * obj1 = 0 ;
8452 PyObject * obj2 = 0 ;
8453 PyObject * obj3 = 0 ;
8454 PyObject * obj4 = 0 ;
8455 PyObject * obj5 = 0 ;
8456 PyObject * obj6 = 0 ;
8457 char * kwnames[] = {
8458 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8459 };
8460
8461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8463 if (!SWIG_IsOK(res1)) {
8464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8465 }
8466 arg1 = reinterpret_cast< wxWindow * >(argp1);
8467 if (obj1) {
8468 ecode2 = SWIG_AsVal_int(obj1, &val2);
8469 if (!SWIG_IsOK(ecode2)) {
8470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8471 }
8472 arg2 = static_cast< int >(val2);
8473 }
8474 if (obj2) {
8475 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8476 if (!SWIG_IsOK(res3)) {
8477 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8478 }
8479 if (!argp3) {
8480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 8481 }
0085ce49
RD
8482 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8483 }
8484 if (obj3) {
d14a1e28 8485 {
0085ce49
RD
8486 arg4 = &temp4;
8487 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8488 }
0085ce49
RD
8489 }
8490 if (obj4) {
d14a1e28 8491 {
0085ce49
RD
8492 arg5 = &temp5;
8493 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8494 }
0085ce49
RD
8495 }
8496 if (obj5) {
8497 ecode6 = SWIG_AsVal_long(obj5, &val6);
8498 if (!SWIG_IsOK(ecode6)) {
8499 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8500 }
8501 arg6 = static_cast< long >(val6);
8502 }
8503 if (obj6) {
093d3ff1 8504 {
0085ce49
RD
8505 arg7 = wxString_in_helper(obj6);
8506 if (arg7 == NULL) SWIG_fail;
8507 temp7 = true;
093d3ff1 8508 }
0085ce49
RD
8509 }
8510 {
8511 if (!wxPyCheckForApp()) SWIG_fail;
8512 PyThreadState* __tstate = wxPyBeginAllowThreads();
8513 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8514 wxPyEndAllowThreads(__tstate);
8515 if (PyErr_Occurred()) SWIG_fail;
8516 }
8517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8518 {
8519 if (temp7)
8520 delete arg7;
8521 }
8522 return resultobj;
8523fail:
8524 {
8525 if (temp7)
8526 delete arg7;
8527 }
8528 return NULL;
d14a1e28
RD
8529}
8530
8531
0085ce49
RD
8532SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8533 PyObject *resultobj = 0;
8534 wxStaticBitmap *result = 0 ;
8535
8536 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8537 {
8538 if (!wxPyCheckForApp()) SWIG_fail;
8539 PyThreadState* __tstate = wxPyBeginAllowThreads();
8540 result = (wxStaticBitmap *)new wxStaticBitmap();
8541 wxPyEndAllowThreads(__tstate);
8542 if (PyErr_Occurred()) SWIG_fail;
8543 }
8544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8545 return resultobj;
8546fail:
8547 return NULL;
8548}
8549
8550
8551SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8552 PyObject *resultobj = 0;
8553 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8554 wxWindow *arg2 = (wxWindow *) 0 ;
8555 int arg3 = (int) -1 ;
8556 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8557 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8558 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8559 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8560 wxSize const &arg6_defvalue = wxDefaultSize ;
8561 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8562 long arg7 = (long) 0 ;
8563 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8564 wxString *arg8 = (wxString *) &arg8_defvalue ;
8565 bool result;
8566 void *argp1 = 0 ;
8567 int res1 = 0 ;
8568 void *argp2 = 0 ;
8569 int res2 = 0 ;
8570 int val3 ;
8571 int ecode3 = 0 ;
8572 void *argp4 = 0 ;
8573 int res4 = 0 ;
8574 wxPoint temp5 ;
8575 wxSize temp6 ;
8576 long val7 ;
8577 int ecode7 = 0 ;
8578 bool temp8 = false ;
8579 PyObject * obj0 = 0 ;
8580 PyObject * obj1 = 0 ;
8581 PyObject * obj2 = 0 ;
8582 PyObject * obj3 = 0 ;
8583 PyObject * obj4 = 0 ;
8584 PyObject * obj5 = 0 ;
8585 PyObject * obj6 = 0 ;
8586 PyObject * obj7 = 0 ;
8587 char * kwnames[] = {
8588 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8589 };
8590
8591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8593 if (!SWIG_IsOK(res1)) {
8594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8595 }
8596 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8597 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8598 if (!SWIG_IsOK(res2)) {
8599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8600 }
8601 arg2 = reinterpret_cast< wxWindow * >(argp2);
8602 if (obj2) {
8603 ecode3 = SWIG_AsVal_int(obj2, &val3);
8604 if (!SWIG_IsOK(ecode3)) {
8605 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8606 }
8607 arg3 = static_cast< int >(val3);
8608 }
8609 if (obj3) {
8610 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8611 if (!SWIG_IsOK(res4)) {
8612 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8613 }
8614 if (!argp4) {
8615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22bfe96c 8616 }
0085ce49
RD
8617 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8618 }
8619 if (obj4) {
22bfe96c 8620 {
0085ce49
RD
8621 arg5 = &temp5;
8622 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 8623 }
0085ce49
RD
8624 }
8625 if (obj5) {
22bfe96c 8626 {
0085ce49
RD
8627 arg6 = &temp6;
8628 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
22bfe96c 8629 }
0085ce49
RD
8630 }
8631 if (obj6) {
8632 ecode7 = SWIG_AsVal_long(obj6, &val7);
8633 if (!SWIG_IsOK(ecode7)) {
8634 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8635 }
8636 arg7 = static_cast< long >(val7);
8637 }
8638 if (obj7) {
b2dc1044 8639 {
0085ce49
RD
8640 arg8 = wxString_in_helper(obj7);
8641 if (arg8 == NULL) SWIG_fail;
8642 temp8 = true;
b2dc1044 8643 }
0085ce49
RD
8644 }
8645 {
8646 PyThreadState* __tstate = wxPyBeginAllowThreads();
8647 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8648 wxPyEndAllowThreads(__tstate);
8649 if (PyErr_Occurred()) SWIG_fail;
8650 }
8651 {
8652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8653 }
8654 {
8655 if (temp8)
8656 delete arg8;
8657 }
8658 return resultobj;
8659fail:
8660 {
8661 if (temp8)
8662 delete arg8;
8663 }
8664 return NULL;
b2dc1044
RD
8665}
8666
8667
0085ce49
RD
8668SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8669 PyObject *resultobj = 0;
8670 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8671 wxBitmap result;
8672 void *argp1 = 0 ;
8673 int res1 = 0 ;
8674 PyObject *swig_obj[1] ;
8675
8676 if (!args) SWIG_fail;
8677 swig_obj[0] = args;
8678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8679 if (!SWIG_IsOK(res1)) {
8680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8681 }
8682 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8683 {
8684 PyThreadState* __tstate = wxPyBeginAllowThreads();
8685 result = (arg1)->GetBitmap();
8686 wxPyEndAllowThreads(__tstate);
8687 if (PyErr_Occurred()) SWIG_fail;
8688 }
8689 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8690 return resultobj;
8691fail:
8692 return NULL;
8693}
8694
8695
8696SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8697 PyObject *resultobj = 0;
8698 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8699 wxBitmap *arg2 = 0 ;
8700 void *argp1 = 0 ;
8701 int res1 = 0 ;
8702 void *argp2 = 0 ;
8703 int res2 = 0 ;
8704 PyObject * obj0 = 0 ;
8705 PyObject * obj1 = 0 ;
8706 char * kwnames[] = {
8707 (char *) "self",(char *) "bitmap", NULL
8708 };
8709
8710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8712 if (!SWIG_IsOK(res1)) {
8713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8714 }
8715 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8717 if (!SWIG_IsOK(res2)) {
8718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8719 }
8720 if (!argp2) {
8721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8722 }
8723 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8724 {
8725 PyThreadState* __tstate = wxPyBeginAllowThreads();
8726 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8727 wxPyEndAllowThreads(__tstate);
8728 if (PyErr_Occurred()) SWIG_fail;
8729 }
8730 resultobj = SWIG_Py_Void();
8731 return resultobj;
8732fail:
8733 return NULL;
8734}
8735
8736
8737SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8738 PyObject *resultobj = 0;
8739 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8740 wxIcon *arg2 = 0 ;
8741 void *argp1 = 0 ;
8742 int res1 = 0 ;
8743 void *argp2 = 0 ;
8744 int res2 = 0 ;
8745 PyObject * obj0 = 0 ;
8746 PyObject * obj1 = 0 ;
8747 char * kwnames[] = {
8748 (char *) "self",(char *) "icon", NULL
8749 };
8750
8751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8753 if (!SWIG_IsOK(res1)) {
8754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8755 }
8756 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8757 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8758 if (!SWIG_IsOK(res2)) {
8759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8760 }
8761 if (!argp2) {
8762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8763 }
8764 arg2 = reinterpret_cast< wxIcon * >(argp2);
8765 {
8766 PyThreadState* __tstate = wxPyBeginAllowThreads();
8767 (arg1)->SetIcon((wxIcon const &)*arg2);
8768 wxPyEndAllowThreads(__tstate);
8769 if (PyErr_Occurred()) SWIG_fail;
8770 }
8771 resultobj = SWIG_Py_Void();
8772 return resultobj;
8773fail:
8774 return NULL;
8775}
8776
8777
8778SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8779 PyObject *resultobj = 0;
8780 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8781 SwigValueWrapper<wxVisualAttributes > result;
8782 int val1 ;
8783 int ecode1 = 0 ;
8784 PyObject * obj0 = 0 ;
8785 char * kwnames[] = {
8786 (char *) "variant", NULL
8787 };
8788
8789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8790 if (obj0) {
8791 ecode1 = SWIG_AsVal_int(obj0, &val1);
8792 if (!SWIG_IsOK(ecode1)) {
8793 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8794 }
8795 arg1 = static_cast< wxWindowVariant >(val1);
8796 }
8797 {
8798 if (!wxPyCheckForApp()) SWIG_fail;
8799 PyThreadState* __tstate = wxPyBeginAllowThreads();
8800 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8801 wxPyEndAllowThreads(__tstate);
8802 if (PyErr_Occurred()) SWIG_fail;
8803 }
8804 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8805 return resultobj;
8806fail:
8807 return NULL;
b2dc1044
RD
8808}
8809
8810
0085ce49
RD
8811SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8812 PyObject *obj;
8813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8814 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8815 return SWIG_Py_Void();
b2dc1044
RD
8816}
8817
0085ce49
RD
8818SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8819 return SWIG_Python_InitShadowInstance(args);
8820}
b2dc1044 8821
0085ce49
RD
8822SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8823 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8824 return 1;
b2dc1044
RD
8825}
8826
8827
0085ce49
RD
8828SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8829 PyObject *pyobj = 0;
8830
8831 {
b2dc1044 8832#if wxUSE_UNICODE
0085ce49 8833 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8834#else
0085ce49 8835 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8836#endif
0085ce49
RD
8837 }
8838 return pyobj;
8839}
8840
8841
8842SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8843 PyObject *resultobj = 0;
8844 wxWindow *arg1 = (wxWindow *) 0 ;
8845 int arg2 = (int) -1 ;
8846 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8847 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8848 wxSize const &arg4_defvalue = wxDefaultSize ;
8849 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8850 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8851 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8852 long arg6 = (long) 0 ;
8853 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8854 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8855 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8856 wxString *arg8 = (wxString *) &arg8_defvalue ;
8857 wxListBox *result = 0 ;
8858 void *argp1 = 0 ;
8859 int res1 = 0 ;
8860 int val2 ;
8861 int ecode2 = 0 ;
8862 wxPoint temp3 ;
8863 wxSize temp4 ;
8864 bool temp5 = false ;
8865 long val6 ;
8866 int ecode6 = 0 ;
8867 void *argp7 = 0 ;
8868 int res7 = 0 ;
8869 bool temp8 = false ;
8870 PyObject * obj0 = 0 ;
8871 PyObject * obj1 = 0 ;
8872 PyObject * obj2 = 0 ;
8873 PyObject * obj3 = 0 ;
8874 PyObject * obj4 = 0 ;
8875 PyObject * obj5 = 0 ;
8876 PyObject * obj6 = 0 ;
8877 PyObject * obj7 = 0 ;
8878 char * kwnames[] = {
8879 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8880 };
8881
8882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8884 if (!SWIG_IsOK(res1)) {
8885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8886 }
8887 arg1 = reinterpret_cast< wxWindow * >(argp1);
8888 if (obj1) {
8889 ecode2 = SWIG_AsVal_int(obj1, &val2);
8890 if (!SWIG_IsOK(ecode2)) {
8891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8892 }
8893 arg2 = static_cast< int >(val2);
8894 }
8895 if (obj2) {
d14a1e28 8896 {
0085ce49
RD
8897 arg3 = &temp3;
8898 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 8899 }
0085ce49
RD
8900 }
8901 if (obj3) {
d14a1e28 8902 {
0085ce49
RD
8903 arg4 = &temp4;
8904 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8905 }
0085ce49
RD
8906 }
8907 if (obj4) {
d14a1e28 8908 {
0085ce49
RD
8909 if (! PySequence_Check(obj4)) {
8910 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8911 SWIG_fail;
8912 }
8913 arg5 = new wxArrayString;
8914 temp5 = true;
8915 int i, len=PySequence_Length(obj4);
8916 for (i=0; i<len; i++) {
8917 PyObject* item = PySequence_GetItem(obj4, i);
8918 wxString* s = wxString_in_helper(item);
8919 if (PyErr_Occurred()) SWIG_fail;
8920 arg5->Add(*s);
8921 delete s;
8922 Py_DECREF(item);
8923 }
d14a1e28 8924 }
0085ce49
RD
8925 }
8926 if (obj5) {
8927 ecode6 = SWIG_AsVal_long(obj5, &val6);
8928 if (!SWIG_IsOK(ecode6)) {
8929 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8930 }
8931 arg6 = static_cast< long >(val6);
8932 }
8933 if (obj6) {
8934 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8935 if (!SWIG_IsOK(res7)) {
8936 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8937 }
0085ce49
RD
8938 if (!argp7) {
8939 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8940 }
0085ce49
RD
8941 arg7 = reinterpret_cast< wxValidator * >(argp7);
8942 }
8943 if (obj7) {
d14a1e28 8944 {
0085ce49
RD
8945 arg8 = wxString_in_helper(obj7);
8946 if (arg8 == NULL) SWIG_fail;
8947 temp8 = true;
d14a1e28 8948 }
0085ce49
RD
8949 }
8950 {
8951 if (!wxPyCheckForApp()) SWIG_fail;
8952 PyThreadState* __tstate = wxPyBeginAllowThreads();
8953 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8954 wxPyEndAllowThreads(__tstate);
8955 if (PyErr_Occurred()) SWIG_fail;
8956 }
8957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8958 {
8959 if (temp5) delete arg5;
8960 }
8961 {
8962 if (temp8)
8963 delete arg8;
8964 }
8965 return resultobj;
8966fail:
8967 {
8968 if (temp5) delete arg5;
8969 }
8970 {
8971 if (temp8)
8972 delete arg8;
8973 }
8974 return NULL;
d14a1e28
RD
8975}
8976
8977
0085ce49
RD
8978SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8979 PyObject *resultobj = 0;
8980 wxListBox *result = 0 ;
8981
8982 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8983 {
8984 if (!wxPyCheckForApp()) SWIG_fail;
8985 PyThreadState* __tstate = wxPyBeginAllowThreads();
8986 result = (wxListBox *)new wxListBox();
8987 wxPyEndAllowThreads(__tstate);
8988 if (PyErr_Occurred()) SWIG_fail;
8989 }
8990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8991 return resultobj;
8992fail:
8993 return NULL;
8994}
8995
8996
8997SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj = 0;
8999 wxListBox *arg1 = (wxListBox *) 0 ;
9000 wxWindow *arg2 = (wxWindow *) 0 ;
9001 int arg3 = (int) -1 ;
9002 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9003 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9004 wxSize const &arg5_defvalue = wxDefaultSize ;
9005 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9006 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
9007 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
9008 long arg7 = (long) 0 ;
9009 wxValidator const &arg8_defvalue = wxDefaultValidator ;
9010 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
9011 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
9012 wxString *arg9 = (wxString *) &arg9_defvalue ;
9013 bool result;
9014 void *argp1 = 0 ;
9015 int res1 = 0 ;
9016 void *argp2 = 0 ;
9017 int res2 = 0 ;
9018 int val3 ;
9019 int ecode3 = 0 ;
9020 wxPoint temp4 ;
9021 wxSize temp5 ;
9022 bool temp6 = false ;
9023 long val7 ;
9024 int ecode7 = 0 ;
9025 void *argp8 = 0 ;
9026 int res8 = 0 ;
9027 bool temp9 = false ;
9028 PyObject * obj0 = 0 ;
9029 PyObject * obj1 = 0 ;
9030 PyObject * obj2 = 0 ;
9031 PyObject * obj3 = 0 ;
9032 PyObject * obj4 = 0 ;
9033 PyObject * obj5 = 0 ;
9034 PyObject * obj6 = 0 ;
9035 PyObject * obj7 = 0 ;
9036 PyObject * obj8 = 0 ;
9037 char * kwnames[] = {
9038 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9039 };
9040
9041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9043 if (!SWIG_IsOK(res1)) {
9044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9045 }
9046 arg1 = reinterpret_cast< wxListBox * >(argp1);
9047 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9048 if (!SWIG_IsOK(res2)) {
9049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9050 }
9051 arg2 = reinterpret_cast< wxWindow * >(argp2);
9052 if (obj2) {
9053 ecode3 = SWIG_AsVal_int(obj2, &val3);
9054 if (!SWIG_IsOK(ecode3)) {
9055 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9056 }
9057 arg3 = static_cast< int >(val3);
9058 }
9059 if (obj3) {
d14a1e28 9060 {
0085ce49
RD
9061 arg4 = &temp4;
9062 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 9063 }
0085ce49
RD
9064 }
9065 if (obj4) {
d14a1e28 9066 {
0085ce49
RD
9067 arg5 = &temp5;
9068 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 9069 }
0085ce49
RD
9070 }
9071 if (obj5) {
d14a1e28 9072 {
0085ce49
RD
9073 if (! PySequence_Check(obj5)) {
9074 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9075 SWIG_fail;
9076 }
9077 arg6 = new wxArrayString;
9078 temp6 = true;
9079 int i, len=PySequence_Length(obj5);
9080 for (i=0; i<len; i++) {
9081 PyObject* item = PySequence_GetItem(obj5, i);
9082 wxString* s = wxString_in_helper(item);
9083 if (PyErr_Occurred()) SWIG_fail;
9084 arg6->Add(*s);
9085 delete s;
9086 Py_DECREF(item);
9087 }
d14a1e28 9088 }
0085ce49
RD
9089 }
9090 if (obj6) {
9091 ecode7 = SWIG_AsVal_long(obj6, &val7);
9092 if (!SWIG_IsOK(ecode7)) {
9093 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9094 }
9095 arg7 = static_cast< long >(val7);
9096 }
9097 if (obj7) {
9098 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9099 if (!SWIG_IsOK(res8)) {
9100 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 9101 }
0085ce49
RD
9102 if (!argp8) {
9103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
22bfe96c 9104 }
0085ce49
RD
9105 arg8 = reinterpret_cast< wxValidator * >(argp8);
9106 }
9107 if (obj8) {
22bfe96c 9108 {
0085ce49
RD
9109 arg9 = wxString_in_helper(obj8);
9110 if (arg9 == NULL) SWIG_fail;
9111 temp9 = true;
22bfe96c 9112 }
0085ce49
RD
9113 }
9114 {
9115 PyThreadState* __tstate = wxPyBeginAllowThreads();
9116 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9117 wxPyEndAllowThreads(__tstate);
9118 if (PyErr_Occurred()) SWIG_fail;
9119 }
9120 {
9121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9122 }
9123 {
9124 if (temp6) delete arg6;
9125 }
9126 {
9127 if (temp9)
9128 delete arg9;
9129 }
9130 return resultobj;
9131fail:
9132 {
9133 if (temp6) delete arg6;
9134 }
9135 {
9136 if (temp9)
9137 delete arg9;
9138 }
9139 return NULL;
9140}
9141
9142
9143SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9144 PyObject *resultobj = 0;
9145 wxListBox *arg1 = (wxListBox *) 0 ;
9146 wxString *arg2 = 0 ;
9147 int arg3 ;
9148 PyObject *arg4 = (PyObject *) NULL ;
9149 void *argp1 = 0 ;
9150 int res1 = 0 ;
9151 bool temp2 = false ;
9152 int val3 ;
9153 int ecode3 = 0 ;
9154 PyObject * obj0 = 0 ;
9155 PyObject * obj1 = 0 ;
9156 PyObject * obj2 = 0 ;
9157 PyObject * obj3 = 0 ;
9158 char * kwnames[] = {
9159 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9160 };
9161
9162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9164 if (!SWIG_IsOK(res1)) {
9165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9166 }
9167 arg1 = reinterpret_cast< wxListBox * >(argp1);
9168 {
9169 arg2 = wxString_in_helper(obj1);
9170 if (arg2 == NULL) SWIG_fail;
9171 temp2 = true;
9172 }
9173 ecode3 = SWIG_AsVal_int(obj2, &val3);
9174 if (!SWIG_IsOK(ecode3)) {
9175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9176 }
9177 arg3 = static_cast< int >(val3);
9178 if (obj3) {
9179 arg4 = obj3;
9180 }
9181 {
9182 PyThreadState* __tstate = wxPyBeginAllowThreads();
9183 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9184 wxPyEndAllowThreads(__tstate);
9185 if (PyErr_Occurred()) SWIG_fail;
9186 }
9187 resultobj = SWIG_Py_Void();
9188 {
9189 if (temp2)
9190 delete arg2;
9191 }
9192 return resultobj;
9193fail:
9194 {
9195 if (temp2)
9196 delete arg2;
9197 }
9198 return NULL;
9199}
9200
9201
9202SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9203 PyObject *resultobj = 0;
9204 wxListBox *arg1 = (wxListBox *) 0 ;
9205 wxArrayString *arg2 = 0 ;
50f151d7 9206 unsigned int arg3 ;
0085ce49
RD
9207 void *argp1 = 0 ;
9208 int res1 = 0 ;
9209 bool temp2 = false ;
50f151d7 9210 unsigned int val3 ;
0085ce49
RD
9211 int ecode3 = 0 ;
9212 PyObject * obj0 = 0 ;
9213 PyObject * obj1 = 0 ;
9214 PyObject * obj2 = 0 ;
9215 char * kwnames[] = {
9216 (char *) "self",(char *) "items",(char *) "pos", NULL
9217 };
9218
9219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9221 if (!SWIG_IsOK(res1)) {
9222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9223 }
9224 arg1 = reinterpret_cast< wxListBox * >(argp1);
9225 {
9226 if (! PySequence_Check(obj1)) {
9227 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9228 SWIG_fail;
9229 }
9230 arg2 = new wxArrayString;
9231 temp2 = true;
9232 int i, len=PySequence_Length(obj1);
9233 for (i=0; i<len; i++) {
9234 PyObject* item = PySequence_GetItem(obj1, i);
9235 wxString* s = wxString_in_helper(item);
9236 if (PyErr_Occurred()) SWIG_fail;
9237 arg2->Add(*s);
9238 delete s;
9239 Py_DECREF(item);
22bfe96c 9240 }
0085ce49 9241 }
50f151d7 9242 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
0085ce49 9243 if (!SWIG_IsOK(ecode3)) {
50f151d7 9244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
0085ce49 9245 }
50f151d7 9246 arg3 = static_cast< unsigned int >(val3);
0085ce49
RD
9247 {
9248 PyThreadState* __tstate = wxPyBeginAllowThreads();
9249 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) SWIG_fail;
9252 }
9253 resultobj = SWIG_Py_Void();
9254 {
9255 if (temp2) delete arg2;
9256 }
9257 return resultobj;
9258fail:
9259 {
9260 if (temp2) delete arg2;
9261 }
9262 return NULL;
22bfe96c
RD
9263}
9264
9265
0085ce49
RD
9266SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9267 PyObject *resultobj = 0;
9268 wxListBox *arg1 = (wxListBox *) 0 ;
9269 wxArrayString *arg2 = 0 ;
9270 void *argp1 = 0 ;
9271 int res1 = 0 ;
9272 bool temp2 = false ;
9273 PyObject * obj0 = 0 ;
9274 PyObject * obj1 = 0 ;
9275 char * kwnames[] = {
9276 (char *) "self",(char *) "items", NULL
9277 };
9278
9279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9281 if (!SWIG_IsOK(res1)) {
9282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9283 }
9284 arg1 = reinterpret_cast< wxListBox * >(argp1);
9285 {
9286 if (! PySequence_Check(obj1)) {
9287 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9288 SWIG_fail;
9289 }
9290 arg2 = new wxArrayString;
9291 temp2 = true;
9292 int i, len=PySequence_Length(obj1);
9293 for (i=0; i<len; i++) {
9294 PyObject* item = PySequence_GetItem(obj1, i);
9295 wxString* s = wxString_in_helper(item);
9296 if (PyErr_Occurred()) SWIG_fail;
9297 arg2->Add(*s);
9298 delete s;
9299 Py_DECREF(item);
d14a1e28 9300 }
0085ce49
RD
9301 }
9302 {
9303 PyThreadState* __tstate = wxPyBeginAllowThreads();
9304 (arg1)->Set((wxArrayString const &)*arg2);
9305 wxPyEndAllowThreads(__tstate);
9306 if (PyErr_Occurred()) SWIG_fail;
9307 }
9308 resultobj = SWIG_Py_Void();
9309 {
9310 if (temp2) delete arg2;
9311 }
9312 return resultobj;
9313fail:
9314 {
9315 if (temp2) delete arg2;
9316 }
9317 return NULL;
9318}
9319
9320
9321SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9322 PyObject *resultobj = 0;
9323 wxListBox *arg1 = (wxListBox *) 0 ;
9324 int arg2 ;
9325 bool result;
9326 void *argp1 = 0 ;
9327 int res1 = 0 ;
9328 int val2 ;
9329 int ecode2 = 0 ;
9330 PyObject * obj0 = 0 ;
9331 PyObject * obj1 = 0 ;
9332 char * kwnames[] = {
9333 (char *) "self",(char *) "n", NULL
9334 };
9335
9336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9338 if (!SWIG_IsOK(res1)) {
9339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9340 }
9341 arg1 = reinterpret_cast< wxListBox * >(argp1);
9342 ecode2 = SWIG_AsVal_int(obj1, &val2);
9343 if (!SWIG_IsOK(ecode2)) {
9344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9345 }
9346 arg2 = static_cast< int >(val2);
9347 {
9348 PyThreadState* __tstate = wxPyBeginAllowThreads();
9349 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9350 wxPyEndAllowThreads(__tstate);
9351 if (PyErr_Occurred()) SWIG_fail;
9352 }
9353 {
9354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9355 }
9356 return resultobj;
9357fail:
9358 return NULL;
9359}
9360
9361
9362SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9363 PyObject *resultobj = 0;
9364 wxListBox *arg1 = (wxListBox *) 0 ;
9365 int arg2 ;
9366 bool arg3 = (bool) true ;
9367 void *argp1 = 0 ;
9368 int res1 = 0 ;
9369 int val2 ;
9370 int ecode2 = 0 ;
9371 bool val3 ;
9372 int ecode3 = 0 ;
9373 PyObject * obj0 = 0 ;
9374 PyObject * obj1 = 0 ;
9375 PyObject * obj2 = 0 ;
9376 char * kwnames[] = {
9377 (char *) "self",(char *) "n",(char *) "select", NULL
9378 };
9379
9380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9382 if (!SWIG_IsOK(res1)) {
9383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9384 }
9385 arg1 = reinterpret_cast< wxListBox * >(argp1);
9386 ecode2 = SWIG_AsVal_int(obj1, &val2);
9387 if (!SWIG_IsOK(ecode2)) {
9388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9389 }
9390 arg2 = static_cast< int >(val2);
9391 if (obj2) {
9392 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9393 if (!SWIG_IsOK(ecode3)) {
9394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9395 }
9396 arg3 = static_cast< bool >(val3);
9397 }
9398 {
9399 PyThreadState* __tstate = wxPyBeginAllowThreads();
9400 (arg1)->SetSelection(arg2,arg3);
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 resultobj = SWIG_Py_Void();
9405 return resultobj;
9406fail:
9407 return NULL;
9408}
9409
9410
9411SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9412 PyObject *resultobj = 0;
9413 wxListBox *arg1 = (wxListBox *) 0 ;
9414 int arg2 ;
9415 void *argp1 = 0 ;
9416 int res1 = 0 ;
9417 int val2 ;
9418 int ecode2 = 0 ;
9419 PyObject * obj0 = 0 ;
9420 PyObject * obj1 = 0 ;
9421 char * kwnames[] = {
9422 (char *) "self",(char *) "n", NULL
9423 };
9424
9425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9427 if (!SWIG_IsOK(res1)) {
9428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9429 }
9430 arg1 = reinterpret_cast< wxListBox * >(argp1);
9431 ecode2 = SWIG_AsVal_int(obj1, &val2);
9432 if (!SWIG_IsOK(ecode2)) {
9433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9434 }
9435 arg2 = static_cast< int >(val2);
9436 {
9437 PyThreadState* __tstate = wxPyBeginAllowThreads();
9438 (arg1)->Select(arg2);
9439 wxPyEndAllowThreads(__tstate);
9440 if (PyErr_Occurred()) SWIG_fail;
9441 }
9442 resultobj = SWIG_Py_Void();
9443 return resultobj;
9444fail:
9445 return NULL;
9446}
9447
9448
9449SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9450 PyObject *resultobj = 0;
9451 wxListBox *arg1 = (wxListBox *) 0 ;
9452 int arg2 ;
9453 void *argp1 = 0 ;
9454 int res1 = 0 ;
9455 int val2 ;
9456 int ecode2 = 0 ;
9457 PyObject * obj0 = 0 ;
9458 PyObject * obj1 = 0 ;
9459 char * kwnames[] = {
9460 (char *) "self",(char *) "n", NULL
9461 };
9462
9463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9465 if (!SWIG_IsOK(res1)) {
9466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9467 }
9468 arg1 = reinterpret_cast< wxListBox * >(argp1);
9469 ecode2 = SWIG_AsVal_int(obj1, &val2);
9470 if (!SWIG_IsOK(ecode2)) {
9471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9472 }
9473 arg2 = static_cast< int >(val2);
9474 {
9475 PyThreadState* __tstate = wxPyBeginAllowThreads();
9476 (arg1)->Deselect(arg2);
9477 wxPyEndAllowThreads(__tstate);
9478 if (PyErr_Occurred()) SWIG_fail;
9479 }
9480 resultobj = SWIG_Py_Void();
9481 return resultobj;
9482fail:
9483 return NULL;
9484}
9485
9486
9487SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9488 PyObject *resultobj = 0;
9489 wxListBox *arg1 = (wxListBox *) 0 ;
9490 int arg2 = (int) -1 ;
9491 void *argp1 = 0 ;
9492 int res1 = 0 ;
9493 int val2 ;
9494 int ecode2 = 0 ;
9495 PyObject * obj0 = 0 ;
9496 PyObject * obj1 = 0 ;
9497 char * kwnames[] = {
9498 (char *) "self",(char *) "itemToLeaveSelected", NULL
9499 };
9500
9501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9503 if (!SWIG_IsOK(res1)) {
9504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9505 }
9506 arg1 = reinterpret_cast< wxListBox * >(argp1);
9507 if (obj1) {
9508 ecode2 = SWIG_AsVal_int(obj1, &val2);
9509 if (!SWIG_IsOK(ecode2)) {
9510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9511 }
9512 arg2 = static_cast< int >(val2);
9513 }
9514 {
9515 PyThreadState* __tstate = wxPyBeginAllowThreads();
9516 (arg1)->DeselectAll(arg2);
9517 wxPyEndAllowThreads(__tstate);
9518 if (PyErr_Occurred()) SWIG_fail;
9519 }
9520 resultobj = SWIG_Py_Void();
9521 return resultobj;
9522fail:
9523 return NULL;
9524}
9525
9526
9527SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9528 PyObject *resultobj = 0;
9529 wxListBox *arg1 = (wxListBox *) 0 ;
9530 wxString *arg2 = 0 ;
9531 bool arg3 = (bool) true ;
9532 bool result;
9533 void *argp1 = 0 ;
9534 int res1 = 0 ;
9535 bool temp2 = false ;
9536 bool val3 ;
9537 int ecode3 = 0 ;
9538 PyObject * obj0 = 0 ;
9539 PyObject * obj1 = 0 ;
9540 PyObject * obj2 = 0 ;
9541 char * kwnames[] = {
9542 (char *) "self",(char *) "s",(char *) "select", NULL
9543 };
9544
9545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9547 if (!SWIG_IsOK(res1)) {
9548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9549 }
9550 arg1 = reinterpret_cast< wxListBox * >(argp1);
9551 {
9552 arg2 = wxString_in_helper(obj1);
9553 if (arg2 == NULL) SWIG_fail;
9554 temp2 = true;
9555 }
9556 if (obj2) {
9557 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9558 if (!SWIG_IsOK(ecode3)) {
9559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9560 }
9561 arg3 = static_cast< bool >(val3);
9562 }
9563 {
9564 PyThreadState* __tstate = wxPyBeginAllowThreads();
9565 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9566 wxPyEndAllowThreads(__tstate);
9567 if (PyErr_Occurred()) SWIG_fail;
9568 }
9569 {
9570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9571 }
9572 {
9573 if (temp2)
9574 delete arg2;
9575 }
9576 return resultobj;
9577fail:
9578 {
9579 if (temp2)
9580 delete arg2;
9581 }
9582 return NULL;
d14a1e28
RD
9583}
9584
9585
0085ce49
RD
9586SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9587 PyObject *resultobj = 0;
9588 wxListBox *arg1 = (wxListBox *) 0 ;
9589 PyObject *result = 0 ;
9590 void *argp1 = 0 ;
9591 int res1 = 0 ;
9592 PyObject *swig_obj[1] ;
9593
9594 if (!args) SWIG_fail;
9595 swig_obj[0] = args;
9596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9597 if (!SWIG_IsOK(res1)) {
9598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9599 }
9600 arg1 = reinterpret_cast< wxListBox * >(argp1);
9601 {
9602 PyThreadState* __tstate = wxPyBeginAllowThreads();
9603 result = (PyObject *)wxListBox_GetSelections(arg1);
9604 wxPyEndAllowThreads(__tstate);
9605 if (PyErr_Occurred()) SWIG_fail;
9606 }
9607 resultobj = result;
9608 return resultobj;
9609fail:
9610 return NULL;
9611}
9612
9613
9614SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9615 PyObject *resultobj = 0;
9616 wxListBox *arg1 = (wxListBox *) 0 ;
9617 int arg2 ;
9618 void *argp1 = 0 ;
9619 int res1 = 0 ;
9620 int val2 ;
9621 int ecode2 = 0 ;
9622 PyObject * obj0 = 0 ;
9623 PyObject * obj1 = 0 ;
9624 char * kwnames[] = {
9625 (char *) "self",(char *) "n", NULL
9626 };
9627
9628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9630 if (!SWIG_IsOK(res1)) {
9631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9632 }
9633 arg1 = reinterpret_cast< wxListBox * >(argp1);
9634 ecode2 = SWIG_AsVal_int(obj1, &val2);
9635 if (!SWIG_IsOK(ecode2)) {
9636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9637 }
9638 arg2 = static_cast< int >(val2);
9639 {
9640 PyThreadState* __tstate = wxPyBeginAllowThreads();
9641 (arg1)->SetFirstItem(arg2);
9642 wxPyEndAllowThreads(__tstate);
9643 if (PyErr_Occurred()) SWIG_fail;
9644 }
9645 resultobj = SWIG_Py_Void();
9646 return resultobj;
9647fail:
9648 return NULL;
9649}
9650
9651
9652SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9653 PyObject *resultobj = 0;
9654 wxListBox *arg1 = (wxListBox *) 0 ;
9655 wxString *arg2 = 0 ;
9656 void *argp1 = 0 ;
9657 int res1 = 0 ;
9658 bool temp2 = false ;
9659 PyObject * obj0 = 0 ;
9660 PyObject * obj1 = 0 ;
9661 char * kwnames[] = {
9662 (char *) "self",(char *) "s", NULL
9663 };
9664
9665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9667 if (!SWIG_IsOK(res1)) {
9668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9669 }
9670 arg1 = reinterpret_cast< wxListBox * >(argp1);
9671 {
9672 arg2 = wxString_in_helper(obj1);
9673 if (arg2 == NULL) SWIG_fail;
9674 temp2 = true;
9675 }
9676 {
9677 PyThreadState* __tstate = wxPyBeginAllowThreads();
9678 (arg1)->SetFirstItem((wxString const &)*arg2);
9679 wxPyEndAllowThreads(__tstate);
9680 if (PyErr_Occurred()) SWIG_fail;
9681 }
9682 resultobj = SWIG_Py_Void();
9683 {
9684 if (temp2)
9685 delete arg2;
9686 }
9687 return resultobj;
9688fail:
9689 {
9690 if (temp2)
9691 delete arg2;
9692 }
9693 return NULL;
9694}
9695
9696
9697SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9698 PyObject *resultobj = 0;
9699 wxListBox *arg1 = (wxListBox *) 0 ;
9700 int arg2 ;
9701 void *argp1 = 0 ;
9702 int res1 = 0 ;
9703 int val2 ;
9704 int ecode2 = 0 ;
9705 PyObject * obj0 = 0 ;
9706 PyObject * obj1 = 0 ;
9707 char * kwnames[] = {
9708 (char *) "self",(char *) "n", NULL
9709 };
9710
9711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9713 if (!SWIG_IsOK(res1)) {
9714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9715 }
9716 arg1 = reinterpret_cast< wxListBox * >(argp1);
9717 ecode2 = SWIG_AsVal_int(obj1, &val2);
9718 if (!SWIG_IsOK(ecode2)) {
9719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9720 }
9721 arg2 = static_cast< int >(val2);
9722 {
9723 PyThreadState* __tstate = wxPyBeginAllowThreads();
9724 (arg1)->EnsureVisible(arg2);
9725 wxPyEndAllowThreads(__tstate);
9726 if (PyErr_Occurred()) SWIG_fail;
9727 }
9728 resultobj = SWIG_Py_Void();
9729 return resultobj;
9730fail:
9731 return NULL;
9732}
9733
9734
9735SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9736 PyObject *resultobj = 0;
9737 wxListBox *arg1 = (wxListBox *) 0 ;
9738 wxString *arg2 = 0 ;
9739 void *argp1 = 0 ;
9740 int res1 = 0 ;
9741 bool temp2 = false ;
9742 PyObject * obj0 = 0 ;
9743 PyObject * obj1 = 0 ;
9744 char * kwnames[] = {
9745 (char *) "self",(char *) "s", NULL
9746 };
9747
9748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9750 if (!SWIG_IsOK(res1)) {
9751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9752 }
9753 arg1 = reinterpret_cast< wxListBox * >(argp1);
9754 {
9755 arg2 = wxString_in_helper(obj1);
9756 if (arg2 == NULL) SWIG_fail;
9757 temp2 = true;
9758 }
9759 {
9760 PyThreadState* __tstate = wxPyBeginAllowThreads();
9761 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9762 wxPyEndAllowThreads(__tstate);
9763 if (PyErr_Occurred()) SWIG_fail;
9764 }
9765 resultobj = SWIG_Py_Void();
9766 {
9767 if (temp2)
9768 delete arg2;
9769 }
9770 return resultobj;
9771fail:
9772 {
9773 if (temp2)
9774 delete arg2;
9775 }
9776 return NULL;
d14a1e28
RD
9777}
9778
9779
0085ce49
RD
9780SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9781 PyObject *resultobj = 0;
9782 wxListBox *arg1 = (wxListBox *) 0 ;
9783 bool result;
9784 void *argp1 = 0 ;
9785 int res1 = 0 ;
9786 PyObject *swig_obj[1] ;
9787
9788 if (!args) SWIG_fail;
9789 swig_obj[0] = args;
9790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9791 if (!SWIG_IsOK(res1)) {
9792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9793 }
9794 arg1 = reinterpret_cast< wxListBox * >(argp1);
9795 {
9796 PyThreadState* __tstate = wxPyBeginAllowThreads();
9797 result = (bool)((wxListBox const *)arg1)->IsSorted();
9798 wxPyEndAllowThreads(__tstate);
9799 if (PyErr_Occurred()) SWIG_fail;
9800 }
9801 {
9802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9803 }
9804 return resultobj;
9805fail:
9806 return NULL;
9807}
9808
9809
9810SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9811 PyObject *resultobj = 0;
9812 wxListBox *arg1 = (wxListBox *) 0 ;
9813 wxPoint *arg2 = 0 ;
9814 int result;
9815 void *argp1 = 0 ;
9816 int res1 = 0 ;
9817 wxPoint temp2 ;
9818 PyObject * obj0 = 0 ;
9819 PyObject * obj1 = 0 ;
9820 char * kwnames[] = {
9821 (char *) "self",(char *) "pt", NULL
9822 };
9823
9824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9826 if (!SWIG_IsOK(res1)) {
9827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9828 }
9829 arg1 = reinterpret_cast< wxListBox * >(argp1);
9830 {
9831 arg2 = &temp2;
9832 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9833 }
9834 {
9835 PyThreadState* __tstate = wxPyBeginAllowThreads();
9836 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9837 wxPyEndAllowThreads(__tstate);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 }
9840 resultobj = SWIG_From_int(static_cast< int >(result));
9841 return resultobj;
9842fail:
9843 return NULL;
9844}
9845
9846
9847SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9848 PyObject *resultobj = 0;
9849 wxListBox *arg1 = (wxListBox *) 0 ;
9850 int arg2 ;
9851 wxColour *arg3 = 0 ;
9852 void *argp1 = 0 ;
9853 int res1 = 0 ;
9854 int val2 ;
9855 int ecode2 = 0 ;
9856 wxColour temp3 ;
9857 PyObject * obj0 = 0 ;
9858 PyObject * obj1 = 0 ;
9859 PyObject * obj2 = 0 ;
9860 char * kwnames[] = {
9861 (char *) "self",(char *) "item",(char *) "c", NULL
9862 };
9863
9864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9866 if (!SWIG_IsOK(res1)) {
9867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9868 }
9869 arg1 = reinterpret_cast< wxListBox * >(argp1);
9870 ecode2 = SWIG_AsVal_int(obj1, &val2);
9871 if (!SWIG_IsOK(ecode2)) {
9872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9873 }
9874 arg2 = static_cast< int >(val2);
9875 {
9876 arg3 = &temp3;
9877 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9878 }
9879 {
9880 PyThreadState* __tstate = wxPyBeginAllowThreads();
9881 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9882 wxPyEndAllowThreads(__tstate);
9883 if (PyErr_Occurred()) SWIG_fail;
9884 }
9885 resultobj = SWIG_Py_Void();
9886 return resultobj;
9887fail:
9888 return NULL;
9889}
9890
9891
9892SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9893 PyObject *resultobj = 0;
9894 wxListBox *arg1 = (wxListBox *) 0 ;
9895 int arg2 ;
9896 wxColour *arg3 = 0 ;
9897 void *argp1 = 0 ;
9898 int res1 = 0 ;
9899 int val2 ;
9900 int ecode2 = 0 ;
9901 wxColour temp3 ;
9902 PyObject * obj0 = 0 ;
9903 PyObject * obj1 = 0 ;
9904 PyObject * obj2 = 0 ;
9905 char * kwnames[] = {
9906 (char *) "self",(char *) "item",(char *) "c", NULL
9907 };
9908
9909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9911 if (!SWIG_IsOK(res1)) {
9912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9913 }
9914 arg1 = reinterpret_cast< wxListBox * >(argp1);
9915 ecode2 = SWIG_AsVal_int(obj1, &val2);
9916 if (!SWIG_IsOK(ecode2)) {
9917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9918 }
9919 arg2 = static_cast< int >(val2);
9920 {
9921 arg3 = &temp3;
9922 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9923 }
9924 {
9925 PyThreadState* __tstate = wxPyBeginAllowThreads();
9926 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9927 wxPyEndAllowThreads(__tstate);
9928 if (PyErr_Occurred()) SWIG_fail;
9929 }
9930 resultobj = SWIG_Py_Void();
9931 return resultobj;
9932fail:
9933 return NULL;
9934}
9935
9936
9937SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9938 PyObject *resultobj = 0;
9939 wxListBox *arg1 = (wxListBox *) 0 ;
9940 int arg2 ;
9941 wxFont *arg3 = 0 ;
9942 void *argp1 = 0 ;
9943 int res1 = 0 ;
9944 int val2 ;
9945 int ecode2 = 0 ;
9946 void *argp3 = 0 ;
9947 int res3 = 0 ;
9948 PyObject * obj0 = 0 ;
9949 PyObject * obj1 = 0 ;
9950 PyObject * obj2 = 0 ;
9951 char * kwnames[] = {
9952 (char *) "self",(char *) "item",(char *) "f", NULL
9953 };
9954
9955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9957 if (!SWIG_IsOK(res1)) {
9958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9959 }
9960 arg1 = reinterpret_cast< wxListBox * >(argp1);
9961 ecode2 = SWIG_AsVal_int(obj1, &val2);
9962 if (!SWIG_IsOK(ecode2)) {
9963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9964 }
9965 arg2 = static_cast< int >(val2);
9966 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9967 if (!SWIG_IsOK(res3)) {
9968 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9969 }
9970 if (!argp3) {
9971 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9972 }
9973 arg3 = reinterpret_cast< wxFont * >(argp3);
9974 {
9975 PyThreadState* __tstate = wxPyBeginAllowThreads();
9976 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9977 wxPyEndAllowThreads(__tstate);
9978 if (PyErr_Occurred()) SWIG_fail;
9979 }
9980 resultobj = SWIG_Py_Void();
9981 return resultobj;
9982fail:
9983 return NULL;
9984}
9985
9986
9987SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9988 PyObject *resultobj = 0;
9989 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9990 SwigValueWrapper<wxVisualAttributes > result;
9991 int val1 ;
9992 int ecode1 = 0 ;
9993 PyObject * obj0 = 0 ;
9994 char * kwnames[] = {
9995 (char *) "variant", NULL
9996 };
9997
9998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9999 if (obj0) {
10000 ecode1 = SWIG_AsVal_int(obj0, &val1);
10001 if (!SWIG_IsOK(ecode1)) {
10002 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
10003 }
10004 arg1 = static_cast< wxWindowVariant >(val1);
10005 }
10006 {
10007 if (!wxPyCheckForApp()) SWIG_fail;
10008 PyThreadState* __tstate = wxPyBeginAllowThreads();
10009 result = wxListBox::GetClassDefaultAttributes(arg1);
10010 wxPyEndAllowThreads(__tstate);
10011 if (PyErr_Occurred()) SWIG_fail;
10012 }
10013 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
10014 return resultobj;
10015fail:
10016 return NULL;
10017}
10018
10019
10020SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10021 PyObject *obj;
10022 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10023 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
10024 return SWIG_Py_Void();
10025}
10026
10027SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10028 return SWIG_Python_InitShadowInstance(args);
10029}
10030
10031SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10032 PyObject *resultobj = 0;
10033 wxWindow *arg1 = (wxWindow *) 0 ;
10034 int arg2 = (int) -1 ;
10035 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10036 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10037 wxSize const &arg4_defvalue = wxDefaultSize ;
10038 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10039 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10040 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10041 long arg6 = (long) 0 ;
10042 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10043 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10044 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10045 wxString *arg8 = (wxString *) &arg8_defvalue ;
10046 wxCheckListBox *result = 0 ;
10047 void *argp1 = 0 ;
10048 int res1 = 0 ;
10049 int val2 ;
10050 int ecode2 = 0 ;
10051 wxPoint temp3 ;
10052 wxSize temp4 ;
10053 bool temp5 = false ;
10054 long val6 ;
10055 int ecode6 = 0 ;
10056 void *argp7 = 0 ;
10057 int res7 = 0 ;
10058 bool temp8 = false ;
10059 PyObject * obj0 = 0 ;
10060 PyObject * obj1 = 0 ;
10061 PyObject * obj2 = 0 ;
10062 PyObject * obj3 = 0 ;
10063 PyObject * obj4 = 0 ;
10064 PyObject * obj5 = 0 ;
10065 PyObject * obj6 = 0 ;
10066 PyObject * obj7 = 0 ;
10067 char * kwnames[] = {
10068 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10069 };
10070
10071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10073 if (!SWIG_IsOK(res1)) {
10074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10075 }
10076 arg1 = reinterpret_cast< wxWindow * >(argp1);
10077 if (obj1) {
10078 ecode2 = SWIG_AsVal_int(obj1, &val2);
10079 if (!SWIG_IsOK(ecode2)) {
10080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10081 }
10082 arg2 = static_cast< int >(val2);
10083 }
10084 if (obj2) {
d14a1e28 10085 {
0085ce49
RD
10086 arg3 = &temp3;
10087 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 10088 }
0085ce49
RD
10089 }
10090 if (obj3) {
d14a1e28 10091 {
0085ce49
RD
10092 arg4 = &temp4;
10093 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10094 }
0085ce49
RD
10095 }
10096 if (obj4) {
d14a1e28 10097 {
0085ce49
RD
10098 if (! PySequence_Check(obj4)) {
10099 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10100 SWIG_fail;
10101 }
10102 arg5 = new wxArrayString;
10103 temp5 = true;
10104 int i, len=PySequence_Length(obj4);
10105 for (i=0; i<len; i++) {
10106 PyObject* item = PySequence_GetItem(obj4, i);
10107 wxString* s = wxString_in_helper(item);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 arg5->Add(*s);
10110 delete s;
10111 Py_DECREF(item);
10112 }
d14a1e28 10113 }
0085ce49
RD
10114 }
10115 if (obj5) {
10116 ecode6 = SWIG_AsVal_long(obj5, &val6);
10117 if (!SWIG_IsOK(ecode6)) {
10118 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10119 }
10120 arg6 = static_cast< long >(val6);
10121 }
10122 if (obj6) {
10123 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10124 if (!SWIG_IsOK(res7)) {
10125 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 10126 }
0085ce49
RD
10127 if (!argp7) {
10128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 10129 }
0085ce49
RD
10130 arg7 = reinterpret_cast< wxValidator * >(argp7);
10131 }
10132 if (obj7) {
093d3ff1 10133 {
0085ce49
RD
10134 arg8 = wxString_in_helper(obj7);
10135 if (arg8 == NULL) SWIG_fail;
10136 temp8 = true;
093d3ff1 10137 }
0085ce49
RD
10138 }
10139 {
10140 if (!wxPyCheckForApp()) SWIG_fail;
10141 PyThreadState* __tstate = wxPyBeginAllowThreads();
10142 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10143 wxPyEndAllowThreads(__tstate);
10144 if (PyErr_Occurred()) SWIG_fail;
10145 }
10146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10147 {
10148 if (temp5) delete arg5;
10149 }
10150 {
10151 if (temp8)
10152 delete arg8;
10153 }
10154 return resultobj;
10155fail:
10156 {
10157 if (temp5) delete arg5;
10158 }
10159 {
10160 if (temp8)
10161 delete arg8;
10162 }
10163 return NULL;
d14a1e28
RD
10164}
10165
10166
0085ce49
RD
10167SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10168 PyObject *resultobj = 0;
10169 wxCheckListBox *result = 0 ;
10170
10171 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10172 {
10173 if (!wxPyCheckForApp()) SWIG_fail;
10174 PyThreadState* __tstate = wxPyBeginAllowThreads();
10175 result = (wxCheckListBox *)new wxCheckListBox();
10176 wxPyEndAllowThreads(__tstate);
10177 if (PyErr_Occurred()) SWIG_fail;
10178 }
10179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10180 return resultobj;
10181fail:
10182 return NULL;
10183}
10184
10185
10186SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10187 PyObject *resultobj = 0;
10188 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10189 wxWindow *arg2 = (wxWindow *) 0 ;
10190 int arg3 = (int) -1 ;
10191 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10192 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10193 wxSize const &arg5_defvalue = wxDefaultSize ;
10194 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10195 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10196 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10197 long arg7 = (long) 0 ;
10198 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10199 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10200 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10201 wxString *arg9 = (wxString *) &arg9_defvalue ;
10202 bool result;
10203 void *argp1 = 0 ;
10204 int res1 = 0 ;
10205 void *argp2 = 0 ;
10206 int res2 = 0 ;
10207 int val3 ;
10208 int ecode3 = 0 ;
10209 wxPoint temp4 ;
10210 wxSize temp5 ;
10211 bool temp6 = false ;
10212 long val7 ;
10213 int ecode7 = 0 ;
10214 void *argp8 = 0 ;
10215 int res8 = 0 ;
10216 bool temp9 = false ;
10217 PyObject * obj0 = 0 ;
10218 PyObject * obj1 = 0 ;
10219 PyObject * obj2 = 0 ;
10220 PyObject * obj3 = 0 ;
10221 PyObject * obj4 = 0 ;
10222 PyObject * obj5 = 0 ;
10223 PyObject * obj6 = 0 ;
10224 PyObject * obj7 = 0 ;
10225 PyObject * obj8 = 0 ;
10226 char * kwnames[] = {
10227 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10228 };
10229
10230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10232 if (!SWIG_IsOK(res1)) {
10233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10234 }
10235 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10236 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10237 if (!SWIG_IsOK(res2)) {
10238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10239 }
10240 arg2 = reinterpret_cast< wxWindow * >(argp2);
10241 if (obj2) {
10242 ecode3 = SWIG_AsVal_int(obj2, &val3);
10243 if (!SWIG_IsOK(ecode3)) {
10244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10245 }
10246 arg3 = static_cast< int >(val3);
10247 }
10248 if (obj3) {
22bfe96c 10249 {
0085ce49
RD
10250 arg4 = &temp4;
10251 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10252 }
0085ce49
RD
10253 }
10254 if (obj4) {
d14a1e28 10255 {
0085ce49
RD
10256 arg5 = &temp5;
10257 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 10258 }
0085ce49
RD
10259 }
10260 if (obj5) {
d14a1e28 10261 {
0085ce49
RD
10262 if (! PySequence_Check(obj5)) {
10263 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10264 SWIG_fail;
10265 }
10266 arg6 = new wxArrayString;
10267 temp6 = true;
10268 int i, len=PySequence_Length(obj5);
10269 for (i=0; i<len; i++) {
10270 PyObject* item = PySequence_GetItem(obj5, i);
10271 wxString* s = wxString_in_helper(item);
10272 if (PyErr_Occurred()) SWIG_fail;
10273 arg6->Add(*s);
10274 delete s;
10275 Py_DECREF(item);
10276 }
d14a1e28 10277 }
0085ce49
RD
10278 }
10279 if (obj6) {
10280 ecode7 = SWIG_AsVal_long(obj6, &val7);
10281 if (!SWIG_IsOK(ecode7)) {
10282 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10283 }
10284 arg7 = static_cast< long >(val7);
10285 }
10286 if (obj7) {
10287 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10288 if (!SWIG_IsOK(res8)) {
10289 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10290 }
0085ce49
RD
10291 if (!argp8) {
10292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10293 }
0085ce49
RD
10294 arg8 = reinterpret_cast< wxValidator * >(argp8);
10295 }
10296 if (obj8) {
d14a1e28 10297 {
0085ce49
RD
10298 arg9 = wxString_in_helper(obj8);
10299 if (arg9 == NULL) SWIG_fail;
10300 temp9 = true;
d14a1e28 10301 }
0085ce49
RD
10302 }
10303 {
10304 PyThreadState* __tstate = wxPyBeginAllowThreads();
10305 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10306 wxPyEndAllowThreads(__tstate);
10307 if (PyErr_Occurred()) SWIG_fail;
10308 }
10309 {
10310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10311 }
10312 {
10313 if (temp6) delete arg6;
10314 }
10315 {
10316 if (temp9)
10317 delete arg9;
10318 }
10319 return resultobj;
10320fail:
10321 {
10322 if (temp6) delete arg6;
10323 }
10324 {
10325 if (temp9)
10326 delete arg9;
10327 }
10328 return NULL;
10329}
10330
10331
10332SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10333 PyObject *resultobj = 0;
10334 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10335 unsigned int arg2 ;
0085ce49
RD
10336 bool result;
10337 void *argp1 = 0 ;
10338 int res1 = 0 ;
50f151d7 10339 unsigned int val2 ;
0085ce49
RD
10340 int ecode2 = 0 ;
10341 PyObject * obj0 = 0 ;
10342 PyObject * obj1 = 0 ;
10343 char * kwnames[] = {
10344 (char *) "self",(char *) "index", NULL
10345 };
10346
10347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10349 if (!SWIG_IsOK(res1)) {
10350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10351 }
10352 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10353 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 10354 if (!SWIG_IsOK(ecode2)) {
50f151d7 10355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10356 }
50f151d7 10357 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
10358 {
10359 PyThreadState* __tstate = wxPyBeginAllowThreads();
10360 result = (bool)(arg1)->IsChecked(arg2);
10361 wxPyEndAllowThreads(__tstate);
10362 if (PyErr_Occurred()) SWIG_fail;
10363 }
10364 {
10365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10366 }
10367 return resultobj;
10368fail:
10369 return NULL;
10370}
10371
10372
10373SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10374 PyObject *resultobj = 0;
10375 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10376 unsigned int arg2 ;
0085ce49
RD
10377 int arg3 = (int) true ;
10378 void *argp1 = 0 ;
10379 int res1 = 0 ;
50f151d7 10380 unsigned int val2 ;
0085ce49
RD
10381 int ecode2 = 0 ;
10382 int val3 ;
10383 int ecode3 = 0 ;
10384 PyObject * obj0 = 0 ;
10385 PyObject * obj1 = 0 ;
10386 PyObject * obj2 = 0 ;
10387 char * kwnames[] = {
10388 (char *) "self",(char *) "index",(char *) "check", NULL
10389 };
10390
10391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10393 if (!SWIG_IsOK(res1)) {
10394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10395 }
10396 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10397 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 10398 if (!SWIG_IsOK(ecode2)) {
50f151d7 10399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10400 }
50f151d7 10401 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
10402 if (obj2) {
10403 ecode3 = SWIG_AsVal_int(obj2, &val3);
10404 if (!SWIG_IsOK(ecode3)) {
10405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10406 }
10407 arg3 = static_cast< int >(val3);
10408 }
10409 {
10410 PyThreadState* __tstate = wxPyBeginAllowThreads();
10411 (arg1)->Check(arg2,arg3);
10412 wxPyEndAllowThreads(__tstate);
10413 if (PyErr_Occurred()) SWIG_fail;
10414 }
10415 resultobj = SWIG_Py_Void();
10416 return resultobj;
10417fail:
10418 return NULL;
d14a1e28
RD
10419}
10420
10421
0085ce49
RD
10422SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10423 PyObject *resultobj = 0;
10424 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10425 int result;
10426 void *argp1 = 0 ;
10427 int res1 = 0 ;
10428 PyObject *swig_obj[1] ;
10429
10430 if (!args) SWIG_fail;
10431 swig_obj[0] = args;
10432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10433 if (!SWIG_IsOK(res1)) {
10434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10435 }
10436 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10437 {
10438 PyThreadState* __tstate = wxPyBeginAllowThreads();
10439 result = (int)(arg1)->GetItemHeight();
10440 wxPyEndAllowThreads(__tstate);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
10443 resultobj = SWIG_From_int(static_cast< int >(result));
10444 return resultobj;
10445fail:
10446 return NULL;
d14a1e28
RD
10447}
10448
10449
0085ce49
RD
10450SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10451 PyObject *obj;
10452 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10453 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10454 return SWIG_Py_Void();
d14a1e28
RD
10455}
10456
0085ce49
RD
10457SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10458 return SWIG_Python_InitShadowInstance(args);
943e8dfd
RD
10459}
10460
0085ce49
RD
10461SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10462 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10463 return 1;
22bfe96c
RD
10464}
10465
10466
0085ce49
RD
10467SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10468 PyObject *pyobj = 0;
10469
10470 {
10471#if wxUSE_UNICODE
10472 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10473#else
10474 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10475#endif
10476 }
10477 return pyobj;
10478}
10479
10480
10481SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10482 PyObject *resultobj = 0;
10483 wxColour const &arg1_defvalue = wxNullColour ;
10484 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10485 wxColour const &arg2_defvalue = wxNullColour ;
10486 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10487 wxFont const &arg3_defvalue = wxNullFont ;
10488 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10489 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10490 wxTextAttr *result = 0 ;
10491 wxColour temp1 ;
10492 wxColour temp2 ;
10493 void *argp3 = 0 ;
10494 int res3 = 0 ;
10495 int val4 ;
10496 int ecode4 = 0 ;
10497 PyObject * obj0 = 0 ;
10498 PyObject * obj1 = 0 ;
10499 PyObject * obj2 = 0 ;
10500 PyObject * obj3 = 0 ;
10501 char * kwnames[] = {
10502 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10503 };
10504
10505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10506 if (obj0) {
d14a1e28 10507 {
0085ce49
RD
10508 arg1 = &temp1;
10509 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 10510 }
0085ce49
RD
10511 }
10512 if (obj1) {
d14a1e28 10513 {
0085ce49
RD
10514 arg2 = &temp2;
10515 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 10516 }
0085ce49
RD
10517 }
10518 if (obj2) {
10519 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10520 if (!SWIG_IsOK(res3)) {
10521 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 10522 }
0085ce49
RD
10523 if (!argp3) {
10524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10525 }
10526 arg3 = reinterpret_cast< wxFont * >(argp3);
10527 }
10528 if (obj3) {
10529 ecode4 = SWIG_AsVal_int(obj3, &val4);
10530 if (!SWIG_IsOK(ecode4)) {
10531 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10532 }
10533 arg4 = static_cast< wxTextAttrAlignment >(val4);
10534 }
10535 {
10536 PyThreadState* __tstate = wxPyBeginAllowThreads();
10537 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10538 wxPyEndAllowThreads(__tstate);
10539 if (PyErr_Occurred()) SWIG_fail;
10540 }
10541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10542 return resultobj;
10543fail:
10544 return NULL;
d14a1e28
RD
10545}
10546
10547
0085ce49
RD
10548SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10549 PyObject *resultobj = 0;
10550 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10551 void *argp1 = 0 ;
10552 int res1 = 0 ;
10553 PyObject *swig_obj[1] ;
10554
10555 if (!args) SWIG_fail;
10556 swig_obj[0] = args;
10557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10558 if (!SWIG_IsOK(res1)) {
10559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10560 }
10561 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10562 {
10563 PyThreadState* __tstate = wxPyBeginAllowThreads();
10564 delete arg1;
d14a1e28 10565
0085ce49
RD
10566 wxPyEndAllowThreads(__tstate);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 }
10569 resultobj = SWIG_Py_Void();
10570 return resultobj;
10571fail:
10572 return NULL;
d14a1e28
RD
10573}
10574
10575
0085ce49
RD
10576SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10577 PyObject *resultobj = 0;
10578 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10579 void *argp1 = 0 ;
10580 int res1 = 0 ;
10581 PyObject *swig_obj[1] ;
10582
10583 if (!args) SWIG_fail;
10584 swig_obj[0] = args;
10585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10586 if (!SWIG_IsOK(res1)) {
10587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10588 }
10589 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10590 {
10591 PyThreadState* __tstate = wxPyBeginAllowThreads();
10592 (arg1)->Init();
10593 wxPyEndAllowThreads(__tstate);
10594 if (PyErr_Occurred()) SWIG_fail;
10595 }
10596 resultobj = SWIG_Py_Void();
10597 return resultobj;
10598fail:
10599 return NULL;
10600}
10601
10602
01f6b6d3
RD
10603SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10604 PyObject *resultobj = 0;
10605 wxTextAttr *arg1 = 0 ;
10606 wxTextAttr *arg2 = 0 ;
10607 wxTextAttr result;
10608 void *argp1 = 0 ;
10609 int res1 = 0 ;
10610 void *argp2 = 0 ;
10611 int res2 = 0 ;
10612 PyObject * obj0 = 0 ;
10613 PyObject * obj1 = 0 ;
10614 char * kwnames[] = {
10615 (char *) "base",(char *) "overlay", NULL
10616 };
10617
10618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10619 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10620 if (!SWIG_IsOK(res1)) {
10621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10622 }
10623 if (!argp1) {
10624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10625 }
10626 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10627 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10628 if (!SWIG_IsOK(res2)) {
10629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10630 }
10631 if (!argp2) {
10632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10633 }
10634 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10635 {
10636 PyThreadState* __tstate = wxPyBeginAllowThreads();
10637 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10638 wxPyEndAllowThreads(__tstate);
10639 if (PyErr_Occurred()) SWIG_fail;
10640 }
10641 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10642 return resultobj;
10643fail:
10644 return NULL;
10645}
10646
10647
0085ce49
RD
10648SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10649 PyObject *resultobj = 0;
10650 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10651 wxColour *arg2 = 0 ;
10652 void *argp1 = 0 ;
10653 int res1 = 0 ;
10654 wxColour temp2 ;
10655 PyObject * obj0 = 0 ;
10656 PyObject * obj1 = 0 ;
10657 char * kwnames[] = {
10658 (char *) "self",(char *) "colText", NULL
10659 };
10660
10661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10663 if (!SWIG_IsOK(res1)) {
10664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10665 }
10666 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10667 {
10668 arg2 = &temp2;
10669 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10670 }
10671 {
10672 PyThreadState* __tstate = wxPyBeginAllowThreads();
10673 (arg1)->SetTextColour((wxColour const &)*arg2);
10674 wxPyEndAllowThreads(__tstate);
10675 if (PyErr_Occurred()) SWIG_fail;
10676 }
10677 resultobj = SWIG_Py_Void();
10678 return resultobj;
10679fail:
10680 return NULL;
10681}
10682
10683
10684SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10685 PyObject *resultobj = 0;
10686 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10687 wxColour *arg2 = 0 ;
10688 void *argp1 = 0 ;
10689 int res1 = 0 ;
10690 wxColour temp2 ;
10691 PyObject * obj0 = 0 ;
10692 PyObject * obj1 = 0 ;
10693 char * kwnames[] = {
10694 (char *) "self",(char *) "colBack", NULL
10695 };
10696
10697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10699 if (!SWIG_IsOK(res1)) {
10700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10701 }
10702 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10703 {
10704 arg2 = &temp2;
10705 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10706 }
10707 {
10708 PyThreadState* __tstate = wxPyBeginAllowThreads();
10709 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10710 wxPyEndAllowThreads(__tstate);
10711 if (PyErr_Occurred()) SWIG_fail;
10712 }
10713 resultobj = SWIG_Py_Void();
10714 return resultobj;
10715fail:
10716 return NULL;
10717}
10718
10719
10720SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10721 PyObject *resultobj = 0;
10722 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10723 wxFont *arg2 = 0 ;
10724 long arg3 = (long) wxTEXT_ATTR_FONT ;
10725 void *argp1 = 0 ;
10726 int res1 = 0 ;
10727 void *argp2 = 0 ;
10728 int res2 = 0 ;
10729 long val3 ;
10730 int ecode3 = 0 ;
10731 PyObject * obj0 = 0 ;
10732 PyObject * obj1 = 0 ;
10733 PyObject * obj2 = 0 ;
10734 char * kwnames[] = {
10735 (char *) "self",(char *) "font",(char *) "flags", NULL
10736 };
10737
10738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10740 if (!SWIG_IsOK(res1)) {
10741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10742 }
10743 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10744 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10745 if (!SWIG_IsOK(res2)) {
10746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10747 }
10748 if (!argp2) {
10749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10750 }
10751 arg2 = reinterpret_cast< wxFont * >(argp2);
10752 if (obj2) {
10753 ecode3 = SWIG_AsVal_long(obj2, &val3);
10754 if (!SWIG_IsOK(ecode3)) {
10755 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10756 }
10757 arg3 = static_cast< long >(val3);
10758 }
10759 {
10760 PyThreadState* __tstate = wxPyBeginAllowThreads();
10761 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10762 wxPyEndAllowThreads(__tstate);
10763 if (PyErr_Occurred()) SWIG_fail;
10764 }
10765 resultobj = SWIG_Py_Void();
10766 return resultobj;
10767fail:
10768 return NULL;
10769}
10770
10771
10772SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10773 PyObject *resultobj = 0;
10774 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10775 wxTextAttrAlignment arg2 ;
10776 void *argp1 = 0 ;
10777 int res1 = 0 ;
10778 int val2 ;
10779 int ecode2 = 0 ;
10780 PyObject * obj0 = 0 ;
10781 PyObject * obj1 = 0 ;
10782 char * kwnames[] = {
10783 (char *) "self",(char *) "alignment", NULL
10784 };
10785
10786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10788 if (!SWIG_IsOK(res1)) {
10789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10790 }
10791 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10792 ecode2 = SWIG_AsVal_int(obj1, &val2);
10793 if (!SWIG_IsOK(ecode2)) {
10794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10795 }
10796 arg2 = static_cast< wxTextAttrAlignment >(val2);
10797 {
10798 PyThreadState* __tstate = wxPyBeginAllowThreads();
10799 (arg1)->SetAlignment(arg2);
10800 wxPyEndAllowThreads(__tstate);
10801 if (PyErr_Occurred()) SWIG_fail;
10802 }
10803 resultobj = SWIG_Py_Void();
10804 return resultobj;
10805fail:
10806 return NULL;
10807}
10808
10809
10810SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10811 PyObject *resultobj = 0;
10812 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10813 wxArrayInt *arg2 = 0 ;
10814 void *argp1 = 0 ;
10815 int res1 = 0 ;
10816 bool temp2 = false ;
10817 PyObject * obj0 = 0 ;
10818 PyObject * obj1 = 0 ;
10819 char * kwnames[] = {
10820 (char *) "self",(char *) "tabs", NULL
10821 };
10822
10823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10825 if (!SWIG_IsOK(res1)) {
10826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10827 }
10828 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10829 {
10830 if (! PySequence_Check(obj1)) {
10831 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10832 SWIG_fail;
10833 }
10834 arg2 = new wxArrayInt;
10835 temp2 = true;
10836 int i, len=PySequence_Length(obj1);
10837 for (i=0; i<len; i++) {
10838 PyObject* item = PySequence_GetItem(obj1, i);
10839 PyObject* number = PyNumber_Int(item);
ec8a7755
RD
10840 if (!number) {
10841 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10842 SWIG_fail;
10843 }
0085ce49
RD
10844 arg2->Add(PyInt_AS_LONG(number));
10845 Py_DECREF(item);
10846 Py_DECREF(number);
d14a1e28 10847 }
0085ce49
RD
10848 }
10849 {
10850 PyThreadState* __tstate = wxPyBeginAllowThreads();
10851 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10852 wxPyEndAllowThreads(__tstate);
10853 if (PyErr_Occurred()) SWIG_fail;
10854 }
10855 resultobj = SWIG_Py_Void();
10856 {
10857 if (temp2) delete arg2;
10858 }
10859 return resultobj;
10860fail:
10861 {
10862 if (temp2) delete arg2;
10863 }
10864 return NULL;
10865}
10866
10867
10868SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10869 PyObject *resultobj = 0;
10870 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10871 int arg2 ;
10872 int arg3 = (int) 0 ;
10873 void *argp1 = 0 ;
10874 int res1 = 0 ;
10875 int val2 ;
10876 int ecode2 = 0 ;
10877 int val3 ;
10878 int ecode3 = 0 ;
10879 PyObject * obj0 = 0 ;
10880 PyObject * obj1 = 0 ;
10881 PyObject * obj2 = 0 ;
10882 char * kwnames[] = {
10883 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10884 };
10885
10886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10888 if (!SWIG_IsOK(res1)) {
10889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10890 }
10891 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10892 ecode2 = SWIG_AsVal_int(obj1, &val2);
10893 if (!SWIG_IsOK(ecode2)) {
10894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10895 }
10896 arg2 = static_cast< int >(val2);
10897 if (obj2) {
10898 ecode3 = SWIG_AsVal_int(obj2, &val3);
10899 if (!SWIG_IsOK(ecode3)) {
10900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10901 }
10902 arg3 = static_cast< int >(val3);
10903 }
10904 {
10905 PyThreadState* __tstate = wxPyBeginAllowThreads();
10906 (arg1)->SetLeftIndent(arg2,arg3);
10907 wxPyEndAllowThreads(__tstate);
10908 if (PyErr_Occurred()) SWIG_fail;
10909 }
10910 resultobj = SWIG_Py_Void();
10911 return resultobj;
10912fail:
10913 return NULL;
10914}
10915
10916
10917SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10918 PyObject *resultobj = 0;
10919 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10920 int arg2 ;
10921 void *argp1 = 0 ;
10922 int res1 = 0 ;
10923 int val2 ;
10924 int ecode2 = 0 ;
10925 PyObject * obj0 = 0 ;
10926 PyObject * obj1 = 0 ;
10927 char * kwnames[] = {
10928 (char *) "self",(char *) "indent", NULL
10929 };
10930
10931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10933 if (!SWIG_IsOK(res1)) {
10934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10935 }
10936 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10937 ecode2 = SWIG_AsVal_int(obj1, &val2);
10938 if (!SWIG_IsOK(ecode2)) {
10939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10940 }
10941 arg2 = static_cast< int >(val2);
10942 {
10943 PyThreadState* __tstate = wxPyBeginAllowThreads();
10944 (arg1)->SetRightIndent(arg2);
10945 wxPyEndAllowThreads(__tstate);
10946 if (PyErr_Occurred()) SWIG_fail;
10947 }
10948 resultobj = SWIG_Py_Void();
10949 return resultobj;
10950fail:
10951 return NULL;
10952}
10953
10954
10955SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10956 PyObject *resultobj = 0;
10957 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10958 long arg2 ;
10959 void *argp1 = 0 ;
10960 int res1 = 0 ;
10961 long val2 ;
10962 int ecode2 = 0 ;
10963 PyObject * obj0 = 0 ;
10964 PyObject * obj1 = 0 ;
10965 char * kwnames[] = {
10966 (char *) "self",(char *) "flags", NULL
10967 };
10968
10969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10971 if (!SWIG_IsOK(res1)) {
10972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10973 }
10974 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10975 ecode2 = SWIG_AsVal_long(obj1, &val2);
10976 if (!SWIG_IsOK(ecode2)) {
10977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10978 }
10979 arg2 = static_cast< long >(val2);
10980 {
10981 PyThreadState* __tstate = wxPyBeginAllowThreads();
10982 (arg1)->SetFlags(arg2);
10983 wxPyEndAllowThreads(__tstate);
10984 if (PyErr_Occurred()) SWIG_fail;
10985 }
10986 resultobj = SWIG_Py_Void();
10987 return resultobj;
10988fail:
10989 return NULL;
d14a1e28
RD
10990}
10991
10992
0085ce49
RD
10993SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10994 PyObject *resultobj = 0;
10995 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10996 bool result;
10997 void *argp1 = 0 ;
10998 int res1 = 0 ;
10999 PyObject *swig_obj[1] ;
11000
11001 if (!args) SWIG_fail;
11002 swig_obj[0] = args;
11003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11004 if (!SWIG_IsOK(res1)) {
11005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11006 }
11007 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11008 {
11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
11010 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
11011 wxPyEndAllowThreads(__tstate);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 }
11014 {
11015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11016 }
11017 return resultobj;
11018fail:
11019 return NULL;
d14a1e28
RD
11020}
11021
11022
0085ce49
RD
11023SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11024 PyObject *resultobj = 0;
11025 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11026 bool result;
11027 void *argp1 = 0 ;
11028 int res1 = 0 ;
11029 PyObject *swig_obj[1] ;
11030
11031 if (!args) SWIG_fail;
11032 swig_obj[0] = args;
11033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11034 if (!SWIG_IsOK(res1)) {
11035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11036 }
11037 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
11040 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11041 wxPyEndAllowThreads(__tstate);
11042 if (PyErr_Occurred()) SWIG_fail;
11043 }
11044 {
11045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11046 }
11047 return resultobj;
11048fail:
11049 return NULL;
d14a1e28
RD
11050}
11051
11052
0085ce49
RD
11053SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11054 PyObject *resultobj = 0;
11055 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11056 bool result;
11057 void *argp1 = 0 ;
11058 int res1 = 0 ;
11059 PyObject *swig_obj[1] ;
11060
11061 if (!args) SWIG_fail;
11062 swig_obj[0] = args;
11063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11064 if (!SWIG_IsOK(res1)) {
11065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11066 }
11067 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11068 {
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11071 wxPyEndAllowThreads(__tstate);
11072 if (PyErr_Occurred()) SWIG_fail;
11073 }
11074 {
11075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11076 }
11077 return resultobj;
11078fail:
11079 return NULL;
d14a1e28
RD
11080}
11081
11082
0085ce49
RD
11083SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11084 PyObject *resultobj = 0;
11085 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11086 bool result;
11087 void *argp1 = 0 ;
11088 int res1 = 0 ;
11089 PyObject *swig_obj[1] ;
11090
11091 if (!args) SWIG_fail;
11092 swig_obj[0] = args;
11093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11094 if (!SWIG_IsOK(res1)) {
11095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11096 }
11097 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11101 wxPyEndAllowThreads(__tstate);
11102 if (PyErr_Occurred()) SWIG_fail;
11103 }
11104 {
11105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11106 }
11107 return resultobj;
11108fail:
11109 return NULL;
22bfe96c
RD
11110}
11111
11112
0085ce49
RD
11113SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11114 PyObject *resultobj = 0;
11115 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11116 bool result;
11117 void *argp1 = 0 ;
11118 int res1 = 0 ;
11119 PyObject *swig_obj[1] ;
11120
11121 if (!args) SWIG_fail;
11122 swig_obj[0] = args;
11123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11124 if (!SWIG_IsOK(res1)) {
11125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11126 }
11127 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 {
11135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11136 }
11137 return resultobj;
11138fail:
11139 return NULL;
b2dc1044
RD
11140}
11141
11142
0085ce49
RD
11143SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11144 PyObject *resultobj = 0;
11145 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11146 bool result;
11147 void *argp1 = 0 ;
11148 int res1 = 0 ;
11149 PyObject *swig_obj[1] ;
11150
11151 if (!args) SWIG_fail;
11152 swig_obj[0] = args;
11153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11154 if (!SWIG_IsOK(res1)) {
11155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11156 }
11157 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11158 {
11159 PyThreadState* __tstate = wxPyBeginAllowThreads();
11160 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11161 wxPyEndAllowThreads(__tstate);
11162 if (PyErr_Occurred()) SWIG_fail;
11163 }
11164 {
11165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11166 }
11167 return resultobj;
11168fail:
11169 return NULL;
d14a1e28
RD
11170}
11171
11172
0085ce49
RD
11173SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11174 PyObject *resultobj = 0;
11175 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11176 bool result;
11177 void *argp1 = 0 ;
11178 int res1 = 0 ;
11179 PyObject *swig_obj[1] ;
11180
11181 if (!args) SWIG_fail;
11182 swig_obj[0] = args;
11183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11184 if (!SWIG_IsOK(res1)) {
11185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11186 }
11187 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11188 {
11189 PyThreadState* __tstate = wxPyBeginAllowThreads();
11190 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11191 wxPyEndAllowThreads(__tstate);
11192 if (PyErr_Occurred()) SWIG_fail;
11193 }
11194 {
11195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11196 }
11197 return resultobj;
11198fail:
11199 return NULL;
11200}
11201
11202
11203SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11204 PyObject *resultobj = 0;
11205 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11206 long arg2 ;
11207 bool result;
11208 void *argp1 = 0 ;
11209 int res1 = 0 ;
11210 long val2 ;
11211 int ecode2 = 0 ;
11212 PyObject * obj0 = 0 ;
11213 PyObject * obj1 = 0 ;
11214 char * kwnames[] = {
11215 (char *) "self",(char *) "flag", NULL
11216 };
11217
11218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11220 if (!SWIG_IsOK(res1)) {
11221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11222 }
11223 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11224 ecode2 = SWIG_AsVal_long(obj1, &val2);
11225 if (!SWIG_IsOK(ecode2)) {
11226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11227 }
11228 arg2 = static_cast< long >(val2);
11229 {
11230 PyThreadState* __tstate = wxPyBeginAllowThreads();
11231 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11232 wxPyEndAllowThreads(__tstate);
11233 if (PyErr_Occurred()) SWIG_fail;
11234 }
11235 {
11236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11237 }
11238 return resultobj;
11239fail:
11240 return NULL;
d14a1e28
RD
11241}
11242
11243
0085ce49
RD
11244SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11245 PyObject *resultobj = 0;
11246 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11247 wxColour *result = 0 ;
11248 void *argp1 = 0 ;
11249 int res1 = 0 ;
11250 PyObject *swig_obj[1] ;
11251
11252 if (!args) SWIG_fail;
11253 swig_obj[0] = args;
11254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11255 if (!SWIG_IsOK(res1)) {
11256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11257 }
11258 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11259 {
11260 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11261 {
0085ce49
RD
11262 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11263 result = (wxColour *) &_result_ref;
d14a1e28 11264 }
0085ce49
RD
11265 wxPyEndAllowThreads(__tstate);
11266 if (PyErr_Occurred()) SWIG_fail;
11267 }
11268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11269 return resultobj;
11270fail:
11271 return NULL;
d14a1e28
RD
11272}
11273
11274
0085ce49
RD
11275SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11276 PyObject *resultobj = 0;
11277 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11278 wxColour *result = 0 ;
11279 void *argp1 = 0 ;
11280 int res1 = 0 ;
11281 PyObject *swig_obj[1] ;
11282
11283 if (!args) SWIG_fail;
11284 swig_obj[0] = args;
11285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11286 if (!SWIG_IsOK(res1)) {
11287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11288 }
11289 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11290 {
11291 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11292 {
0085ce49
RD
11293 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11294 result = (wxColour *) &_result_ref;
d14a1e28 11295 }
0085ce49
RD
11296 wxPyEndAllowThreads(__tstate);
11297 if (PyErr_Occurred()) SWIG_fail;
11298 }
11299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11300 return resultobj;
11301fail:
11302 return NULL;
d14a1e28
RD
11303}
11304
11305
0085ce49
RD
11306SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11307 PyObject *resultobj = 0;
11308 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11309 wxFont *result = 0 ;
11310 void *argp1 = 0 ;
11311 int res1 = 0 ;
11312 PyObject *swig_obj[1] ;
11313
11314 if (!args) SWIG_fail;
11315 swig_obj[0] = args;
11316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11317 if (!SWIG_IsOK(res1)) {
11318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11319 }
11320 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11321 {
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11323 {
0085ce49
RD
11324 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11325 result = (wxFont *) &_result_ref;
d14a1e28 11326 }
0085ce49
RD
11327 wxPyEndAllowThreads(__tstate);
11328 if (PyErr_Occurred()) SWIG_fail;
11329 }
11330 {
11331 wxFont* resultptr = new wxFont(*result);
11332 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11333 }
11334 return resultobj;
11335fail:
11336 return NULL;
d14a1e28
RD
11337}
11338
11339
0085ce49
RD
11340SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11341 PyObject *resultobj = 0;
11342 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11343 wxTextAttrAlignment result;
11344 void *argp1 = 0 ;
11345 int res1 = 0 ;
11346 PyObject *swig_obj[1] ;
11347
11348 if (!args) SWIG_fail;
11349 swig_obj[0] = args;
11350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11351 if (!SWIG_IsOK(res1)) {
11352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11353 }
11354 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11355 {
11356 PyThreadState* __tstate = wxPyBeginAllowThreads();
11357 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11358 wxPyEndAllowThreads(__tstate);
11359 if (PyErr_Occurred()) SWIG_fail;
11360 }
11361 resultobj = SWIG_From_int(static_cast< int >(result));
11362 return resultobj;
11363fail:
11364 return NULL;
d14a1e28
RD
11365}
11366
11367
0085ce49
RD
11368SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11369 PyObject *resultobj = 0;
11370 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11371 wxArrayInt *result = 0 ;
11372 void *argp1 = 0 ;
11373 int res1 = 0 ;
11374 PyObject *swig_obj[1] ;
11375
11376 if (!args) SWIG_fail;
11377 swig_obj[0] = args;
11378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11379 if (!SWIG_IsOK(res1)) {
11380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11381 }
11382 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11383 {
11384 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11385 {
0085ce49
RD
11386 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11387 result = (wxArrayInt *) &_result_ref;
d14a1e28 11388 }
0085ce49
RD
11389 wxPyEndAllowThreads(__tstate);
11390 if (PyErr_Occurred()) SWIG_fail;
11391 }
11392 {
b39fe951 11393 resultobj = wxArrayInt2PyList_helper(*result);
0085ce49
RD
11394 }
11395 return resultobj;
11396fail:
11397 return NULL;
d14a1e28
RD
11398}
11399
11400
0085ce49
RD
11401SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11402 PyObject *resultobj = 0;
11403 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11404 long result;
11405 void *argp1 = 0 ;
11406 int res1 = 0 ;
11407 PyObject *swig_obj[1] ;
11408
11409 if (!args) SWIG_fail;
11410 swig_obj[0] = args;
11411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11412 if (!SWIG_IsOK(res1)) {
11413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11414 }
11415 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11416 {
11417 PyThreadState* __tstate = wxPyBeginAllowThreads();
11418 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11419 wxPyEndAllowThreads(__tstate);
11420 if (PyErr_Occurred()) SWIG_fail;
11421 }
11422 resultobj = SWIG_From_long(static_cast< long >(result));
11423 return resultobj;
11424fail:
11425 return NULL;
d14a1e28
RD
11426}
11427
11428
0085ce49
RD
11429SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11430 PyObject *resultobj = 0;
11431 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11432 long result;
11433 void *argp1 = 0 ;
11434 int res1 = 0 ;
11435 PyObject *swig_obj[1] ;
11436
11437 if (!args) SWIG_fail;
11438 swig_obj[0] = args;
11439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11440 if (!SWIG_IsOK(res1)) {
11441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11442 }
11443 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11444 {
11445 PyThreadState* __tstate = wxPyBeginAllowThreads();
11446 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11447 wxPyEndAllowThreads(__tstate);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 }
11450 resultobj = SWIG_From_long(static_cast< long >(result));
11451 return resultobj;
11452fail:
11453 return NULL;
d14a1e28
RD
11454}
11455
11456
0085ce49
RD
11457SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11458 PyObject *resultobj = 0;
11459 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11460 long result;
11461 void *argp1 = 0 ;
11462 int res1 = 0 ;
11463 PyObject *swig_obj[1] ;
11464
11465 if (!args) SWIG_fail;
11466 swig_obj[0] = args;
11467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11468 if (!SWIG_IsOK(res1)) {
11469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11470 }
11471 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11475 wxPyEndAllowThreads(__tstate);
11476 if (PyErr_Occurred()) SWIG_fail;
11477 }
11478 resultobj = SWIG_From_long(static_cast< long >(result));
11479 return resultobj;
11480fail:
11481 return NULL;
d14a1e28
RD
11482}
11483
11484
0085ce49
RD
11485SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11486 PyObject *resultobj = 0;
11487 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11488 long result;
11489 void *argp1 = 0 ;
11490 int res1 = 0 ;
11491 PyObject *swig_obj[1] ;
11492
11493 if (!args) SWIG_fail;
11494 swig_obj[0] = args;
11495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11496 if (!SWIG_IsOK(res1)) {
11497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11498 }
11499 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11503 wxPyEndAllowThreads(__tstate);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 }
11506 resultobj = SWIG_From_long(static_cast< long >(result));
11507 return resultobj;
11508fail:
11509 return NULL;
d14a1e28
RD
11510}
11511
11512
0085ce49
RD
11513SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11514 PyObject *resultobj = 0;
11515 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11516 bool result;
11517 void *argp1 = 0 ;
11518 int res1 = 0 ;
11519 PyObject *swig_obj[1] ;
11520
11521 if (!args) SWIG_fail;
11522 swig_obj[0] = args;
11523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11524 if (!SWIG_IsOK(res1)) {
11525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11526 }
11527 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11528 {
11529 PyThreadState* __tstate = wxPyBeginAllowThreads();
11530 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11531 wxPyEndAllowThreads(__tstate);
11532 if (PyErr_Occurred()) SWIG_fail;
11533 }
11534 {
11535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11536 }
11537 return resultobj;
11538fail:
11539 return NULL;
11540}
11541
11542
11543SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11544 PyObject *resultobj = 0;
11545 wxTextAttr *arg1 = 0 ;
11546 wxTextAttr *arg2 = 0 ;
11547 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11548 wxTextAttr result;
11549 void *argp1 = 0 ;
11550 int res1 = 0 ;
11551 void *argp2 = 0 ;
11552 int res2 = 0 ;
11553 void *argp3 = 0 ;
11554 int res3 = 0 ;
11555 PyObject * obj0 = 0 ;
11556 PyObject * obj1 = 0 ;
11557 PyObject * obj2 = 0 ;
11558 char * kwnames[] = {
11559 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11560 };
11561
11562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11563 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11564 if (!SWIG_IsOK(res1)) {
11565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11566 }
11567 if (!argp1) {
11568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11569 }
11570 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11571 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11572 if (!SWIG_IsOK(res2)) {
11573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11574 }
11575 if (!argp2) {
11576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11577 }
11578 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11579 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11580 if (!SWIG_IsOK(res3)) {
11581 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11582 }
11583 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11584 {
11585 PyThreadState* __tstate = wxPyBeginAllowThreads();
11586 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11587 wxPyEndAllowThreads(__tstate);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 }
11590 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11591 return resultobj;
11592fail:
11593 return NULL;
11594}
11595
11596
11597SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11598 PyObject *obj;
11599 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11600 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11601 return SWIG_Py_Void();
11602}
11603
11604SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11605 return SWIG_Python_InitShadowInstance(args);
11606}
11607
11608SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11609 PyObject *resultobj = 0;
11610 wxWindow *arg1 = (wxWindow *) 0 ;
11611 int arg2 = (int) -1 ;
11612 wxString const &arg3_defvalue = wxPyEmptyString ;
11613 wxString *arg3 = (wxString *) &arg3_defvalue ;
11614 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11615 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11616 wxSize const &arg5_defvalue = wxDefaultSize ;
11617 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11618 long arg6 = (long) 0 ;
11619 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11620 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11621 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11622 wxString *arg8 = (wxString *) &arg8_defvalue ;
11623 wxTextCtrl *result = 0 ;
11624 void *argp1 = 0 ;
11625 int res1 = 0 ;
11626 int val2 ;
11627 int ecode2 = 0 ;
11628 bool temp3 = false ;
11629 wxPoint temp4 ;
11630 wxSize temp5 ;
11631 long val6 ;
11632 int ecode6 = 0 ;
11633 void *argp7 = 0 ;
11634 int res7 = 0 ;
11635 bool temp8 = false ;
11636 PyObject * obj0 = 0 ;
11637 PyObject * obj1 = 0 ;
11638 PyObject * obj2 = 0 ;
11639 PyObject * obj3 = 0 ;
11640 PyObject * obj4 = 0 ;
11641 PyObject * obj5 = 0 ;
11642 PyObject * obj6 = 0 ;
11643 PyObject * obj7 = 0 ;
11644 char * kwnames[] = {
11645 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11646 };
11647
11648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11650 if (!SWIG_IsOK(res1)) {
11651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11652 }
11653 arg1 = reinterpret_cast< wxWindow * >(argp1);
11654 if (obj1) {
11655 ecode2 = SWIG_AsVal_int(obj1, &val2);
11656 if (!SWIG_IsOK(ecode2)) {
11657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11658 }
11659 arg2 = static_cast< int >(val2);
11660 }
11661 if (obj2) {
4f89f6a3 11662 {
0085ce49
RD
11663 arg3 = wxString_in_helper(obj2);
11664 if (arg3 == NULL) SWIG_fail;
11665 temp3 = true;
4f89f6a3 11666 }
0085ce49
RD
11667 }
11668 if (obj3) {
d14a1e28 11669 {
0085ce49
RD
11670 arg4 = &temp4;
11671 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 11672 }
0085ce49
RD
11673 }
11674 if (obj4) {
d14a1e28 11675 {
0085ce49
RD
11676 arg5 = &temp5;
11677 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11678 }
0085ce49
RD
11679 }
11680 if (obj5) {
11681 ecode6 = SWIG_AsVal_long(obj5, &val6);
11682 if (!SWIG_IsOK(ecode6)) {
11683 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11684 }
11685 arg6 = static_cast< long >(val6);
11686 }
11687 if (obj6) {
11688 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11689 if (!SWIG_IsOK(res7)) {
11690 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 11691 }
0085ce49
RD
11692 if (!argp7) {
11693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 11694 }
0085ce49
RD
11695 arg7 = reinterpret_cast< wxValidator * >(argp7);
11696 }
11697 if (obj7) {
d14a1e28 11698 {
0085ce49
RD
11699 arg8 = wxString_in_helper(obj7);
11700 if (arg8 == NULL) SWIG_fail;
11701 temp8 = true;
d14a1e28 11702 }
0085ce49
RD
11703 }
11704 {
11705 if (!wxPyCheckForApp()) SWIG_fail;
11706 PyThreadState* __tstate = wxPyBeginAllowThreads();
11707 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11708 wxPyEndAllowThreads(__tstate);
11709 if (PyErr_Occurred()) SWIG_fail;
11710 }
11711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11712 {
11713 if (temp3)
11714 delete arg3;
11715 }
11716 {
11717 if (temp8)
11718 delete arg8;
11719 }
11720 return resultobj;
11721fail:
11722 {
11723 if (temp3)
11724 delete arg3;
11725 }
11726 {
11727 if (temp8)
11728 delete arg8;
11729 }
11730 return NULL;
d14a1e28
RD
11731}
11732
11733
0085ce49
RD
11734SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11735 PyObject *resultobj = 0;
11736 wxTextCtrl *result = 0 ;
11737
11738 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11739 {
11740 if (!wxPyCheckForApp()) SWIG_fail;
11741 PyThreadState* __tstate = wxPyBeginAllowThreads();
11742 result = (wxTextCtrl *)new wxTextCtrl();
11743 wxPyEndAllowThreads(__tstate);
11744 if (PyErr_Occurred()) SWIG_fail;
11745 }
11746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11747 return resultobj;
11748fail:
11749 return NULL;
11750}
11751
11752
11753SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11754 PyObject *resultobj = 0;
11755 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11756 wxWindow *arg2 = (wxWindow *) 0 ;
11757 int arg3 = (int) -1 ;
11758 wxString const &arg4_defvalue = wxPyEmptyString ;
11759 wxString *arg4 = (wxString *) &arg4_defvalue ;
11760 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11761 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11762 wxSize const &arg6_defvalue = wxDefaultSize ;
11763 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11764 long arg7 = (long) 0 ;
11765 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11766 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11767 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11768 wxString *arg9 = (wxString *) &arg9_defvalue ;
11769 bool result;
11770 void *argp1 = 0 ;
11771 int res1 = 0 ;
11772 void *argp2 = 0 ;
11773 int res2 = 0 ;
11774 int val3 ;
11775 int ecode3 = 0 ;
11776 bool temp4 = false ;
11777 wxPoint temp5 ;
11778 wxSize temp6 ;
11779 long val7 ;
11780 int ecode7 = 0 ;
11781 void *argp8 = 0 ;
11782 int res8 = 0 ;
11783 bool temp9 = false ;
11784 PyObject * obj0 = 0 ;
11785 PyObject * obj1 = 0 ;
11786 PyObject * obj2 = 0 ;
11787 PyObject * obj3 = 0 ;
11788 PyObject * obj4 = 0 ;
11789 PyObject * obj5 = 0 ;
11790 PyObject * obj6 = 0 ;
11791 PyObject * obj7 = 0 ;
11792 PyObject * obj8 = 0 ;
11793 char * kwnames[] = {
11794 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11795 };
11796
11797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11799 if (!SWIG_IsOK(res1)) {
11800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11801 }
11802 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11803 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11804 if (!SWIG_IsOK(res2)) {
11805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11806 }
11807 arg2 = reinterpret_cast< wxWindow * >(argp2);
11808 if (obj2) {
11809 ecode3 = SWIG_AsVal_int(obj2, &val3);
11810 if (!SWIG_IsOK(ecode3)) {
11811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11812 }
11813 arg3 = static_cast< int >(val3);
11814 }
11815 if (obj3) {
d14a1e28 11816 {
0085ce49
RD
11817 arg4 = wxString_in_helper(obj3);
11818 if (arg4 == NULL) SWIG_fail;
11819 temp4 = true;
d14a1e28 11820 }
0085ce49
RD
11821 }
11822 if (obj4) {
d14a1e28 11823 {
0085ce49
RD
11824 arg5 = &temp5;
11825 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11826 }
0085ce49
RD
11827 }
11828 if (obj5) {
d14a1e28 11829 {
0085ce49
RD
11830 arg6 = &temp6;
11831 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 11832 }
0085ce49
RD
11833 }
11834 if (obj6) {
11835 ecode7 = SWIG_AsVal_long(obj6, &val7);
11836 if (!SWIG_IsOK(ecode7)) {
11837 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11838 }
11839 arg7 = static_cast< long >(val7);
11840 }
11841 if (obj7) {
11842 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11843 if (!SWIG_IsOK(res8)) {
11844 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 11845 }
0085ce49
RD
11846 if (!argp8) {
11847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 11848 }
0085ce49
RD
11849 arg8 = reinterpret_cast< wxValidator * >(argp8);
11850 }
11851 if (obj8) {
d14a1e28 11852 {
0085ce49
RD
11853 arg9 = wxString_in_helper(obj8);
11854 if (arg9 == NULL) SWIG_fail;
11855 temp9 = true;
d14a1e28 11856 }
0085ce49
RD
11857 }
11858 {
11859 PyThreadState* __tstate = wxPyBeginAllowThreads();
11860 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11861 wxPyEndAllowThreads(__tstate);
11862 if (PyErr_Occurred()) SWIG_fail;
11863 }
11864 {
11865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11866 }
11867 {
11868 if (temp4)
11869 delete arg4;
11870 }
11871 {
11872 if (temp9)
11873 delete arg9;
11874 }
11875 return resultobj;
11876fail:
11877 {
11878 if (temp4)
11879 delete arg4;
11880 }
11881 {
11882 if (temp9)
11883 delete arg9;
11884 }
11885 return NULL;
d14a1e28
RD
11886}
11887
11888
0085ce49
RD
11889SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11890 PyObject *resultobj = 0;
11891 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11892 wxString result;
11893 void *argp1 = 0 ;
11894 int res1 = 0 ;
11895 PyObject *swig_obj[1] ;
11896
11897 if (!args) SWIG_fail;
11898 swig_obj[0] = args;
11899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11900 if (!SWIG_IsOK(res1)) {
11901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11902 }
11903 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11904 {
11905 PyThreadState* __tstate = wxPyBeginAllowThreads();
11906 result = ((wxTextCtrl const *)arg1)->GetValue();
11907 wxPyEndAllowThreads(__tstate);
11908 if (PyErr_Occurred()) SWIG_fail;
11909 }
11910 {
11911#if wxUSE_UNICODE
11912 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11913#else
11914 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11915#endif
11916 }
11917 return resultobj;
11918fail:
11919 return NULL;
11920}
11921
11922
11923SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11924 PyObject *resultobj = 0;
11925 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11926 wxString *arg2 = 0 ;
11927 void *argp1 = 0 ;
11928 int res1 = 0 ;
11929 bool temp2 = false ;
11930 PyObject * obj0 = 0 ;
11931 PyObject * obj1 = 0 ;
11932 char * kwnames[] = {
11933 (char *) "self",(char *) "value", NULL
11934 };
11935
11936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11938 if (!SWIG_IsOK(res1)) {
11939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11940 }
11941 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11942 {
11943 arg2 = wxString_in_helper(obj1);
11944 if (arg2 == NULL) SWIG_fail;
11945 temp2 = true;
11946 }
11947 {
11948 PyThreadState* __tstate = wxPyBeginAllowThreads();
11949 (arg1)->SetValue((wxString const &)*arg2);
11950 wxPyEndAllowThreads(__tstate);
11951 if (PyErr_Occurred()) SWIG_fail;
11952 }
11953 resultobj = SWIG_Py_Void();
11954 {
11955 if (temp2)
11956 delete arg2;
11957 }
11958 return resultobj;
11959fail:
11960 {
11961 if (temp2)
11962 delete arg2;
11963 }
11964 return NULL;
11965}
11966
11967
b39fe951
RD
11968SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11969 PyObject *resultobj = 0;
11970 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11971 bool result;
11972 void *argp1 = 0 ;
11973 int res1 = 0 ;
11974 PyObject *swig_obj[1] ;
11975
11976 if (!args) SWIG_fail;
11977 swig_obj[0] = args;
11978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11979 if (!SWIG_IsOK(res1)) {
11980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11981 }
11982 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11983 {
11984 PyThreadState* __tstate = wxPyBeginAllowThreads();
11985 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11986 wxPyEndAllowThreads(__tstate);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 }
11989 {
11990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11991 }
11992 return resultobj;
11993fail:
11994 return NULL;
11995}
11996
11997
11998SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11999 PyObject *resultobj = 0;
12000 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12001 wxString *arg2 = 0 ;
12002 void *argp1 = 0 ;
12003 int res1 = 0 ;
12004 bool temp2 = false ;
12005 PyObject * obj0 = 0 ;
12006 PyObject * obj1 = 0 ;
12007 char * kwnames[] = {
12008 (char *) "self",(char *) "value", NULL
12009 };
12010
12011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
12012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12013 if (!SWIG_IsOK(res1)) {
12014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12015 }
12016 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12017 {
12018 arg2 = wxString_in_helper(obj1);
12019 if (arg2 == NULL) SWIG_fail;
12020 temp2 = true;
12021 }
12022 {
12023 PyThreadState* __tstate = wxPyBeginAllowThreads();
12024 (arg1)->ChangeValue((wxString const &)*arg2);
12025 wxPyEndAllowThreads(__tstate);
12026 if (PyErr_Occurred()) SWIG_fail;
12027 }
12028 resultobj = SWIG_Py_Void();
12029 {
12030 if (temp2)
12031 delete arg2;
12032 }
12033 return resultobj;
12034fail:
12035 {
12036 if (temp2)
12037 delete arg2;
12038 }
12039 return NULL;
12040}
12041
12042
0085ce49
RD
12043SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12044 PyObject *resultobj = 0;
12045 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12046 long arg2 ;
12047 long arg3 ;
12048 wxString result;
12049 void *argp1 = 0 ;
12050 int res1 = 0 ;
12051 long val2 ;
12052 int ecode2 = 0 ;
12053 long val3 ;
12054 int ecode3 = 0 ;
12055 PyObject * obj0 = 0 ;
12056 PyObject * obj1 = 0 ;
12057 PyObject * obj2 = 0 ;
12058 char * kwnames[] = {
2131d850 12059 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
12060 };
12061
12062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12064 if (!SWIG_IsOK(res1)) {
12065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12066 }
12067 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12068 ecode2 = SWIG_AsVal_long(obj1, &val2);
12069 if (!SWIG_IsOK(ecode2)) {
12070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12071 }
12072 arg2 = static_cast< long >(val2);
12073 ecode3 = SWIG_AsVal_long(obj2, &val3);
12074 if (!SWIG_IsOK(ecode3)) {
12075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12076 }
12077 arg3 = static_cast< long >(val3);
12078 {
12079 PyThreadState* __tstate = wxPyBeginAllowThreads();
12080 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12081 wxPyEndAllowThreads(__tstate);
12082 if (PyErr_Occurred()) SWIG_fail;
12083 }
12084 {
12085#if wxUSE_UNICODE
12086 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12087#else
12088 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12089#endif
12090 }
12091 return resultobj;
12092fail:
12093 return NULL;
12094}
12095
12096
12097SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12098 PyObject *resultobj = 0;
12099 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12100 long arg2 ;
12101 int result;
12102 void *argp1 = 0 ;
12103 int res1 = 0 ;
12104 long val2 ;
12105 int ecode2 = 0 ;
12106 PyObject * obj0 = 0 ;
12107 PyObject * obj1 = 0 ;
12108 char * kwnames[] = {
12109 (char *) "self",(char *) "lineNo", NULL
12110 };
12111
12112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12114 if (!SWIG_IsOK(res1)) {
12115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12116 }
12117 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12118 ecode2 = SWIG_AsVal_long(obj1, &val2);
12119 if (!SWIG_IsOK(ecode2)) {
12120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12121 }
12122 arg2 = static_cast< long >(val2);
12123 {
12124 PyThreadState* __tstate = wxPyBeginAllowThreads();
12125 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12126 wxPyEndAllowThreads(__tstate);
12127 if (PyErr_Occurred()) SWIG_fail;
12128 }
12129 resultobj = SWIG_From_int(static_cast< int >(result));
12130 return resultobj;
12131fail:
12132 return NULL;
12133}
12134
12135
12136SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12137 PyObject *resultobj = 0;
12138 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12139 long arg2 ;
12140 wxString result;
12141 void *argp1 = 0 ;
12142 int res1 = 0 ;
12143 long val2 ;
12144 int ecode2 = 0 ;
12145 PyObject * obj0 = 0 ;
12146 PyObject * obj1 = 0 ;
12147 char * kwnames[] = {
12148 (char *) "self",(char *) "lineNo", NULL
12149 };
12150
12151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12153 if (!SWIG_IsOK(res1)) {
12154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12155 }
12156 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12157 ecode2 = SWIG_AsVal_long(obj1, &val2);
12158 if (!SWIG_IsOK(ecode2)) {
12159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12160 }
12161 arg2 = static_cast< long >(val2);
12162 {
12163 PyThreadState* __tstate = wxPyBeginAllowThreads();
12164 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12165 wxPyEndAllowThreads(__tstate);
12166 if (PyErr_Occurred()) SWIG_fail;
12167 }
12168 {
12169#if wxUSE_UNICODE
12170 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12171#else
12172 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12173#endif
12174 }
12175 return resultobj;
12176fail:
12177 return NULL;
d14a1e28
RD
12178}
12179
12180
0085ce49
RD
12181SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12182 PyObject *resultobj = 0;
12183 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12184 int result;
12185 void *argp1 = 0 ;
12186 int res1 = 0 ;
12187 PyObject *swig_obj[1] ;
12188
12189 if (!args) SWIG_fail;
12190 swig_obj[0] = args;
12191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12192 if (!SWIG_IsOK(res1)) {
12193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12194 }
12195 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12196 {
12197 PyThreadState* __tstate = wxPyBeginAllowThreads();
12198 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12199 wxPyEndAllowThreads(__tstate);
12200 if (PyErr_Occurred()) SWIG_fail;
12201 }
12202 resultobj = SWIG_From_int(static_cast< int >(result));
12203 return resultobj;
12204fail:
12205 return NULL;
d14a1e28
RD
12206}
12207
12208
0085ce49
RD
12209SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12210 PyObject *resultobj = 0;
12211 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12212 bool result;
12213 void *argp1 = 0 ;
12214 int res1 = 0 ;
12215 PyObject *swig_obj[1] ;
12216
12217 if (!args) SWIG_fail;
12218 swig_obj[0] = args;
12219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12220 if (!SWIG_IsOK(res1)) {
12221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12222 }
12223 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12224 {
12225 PyThreadState* __tstate = wxPyBeginAllowThreads();
12226 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12227 wxPyEndAllowThreads(__tstate);
12228 if (PyErr_Occurred()) SWIG_fail;
12229 }
12230 {
12231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12232 }
12233 return resultobj;
12234fail:
12235 return NULL;
c3eb6258
RD
12236}
12237
12238
0085ce49
RD
12239SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12240 PyObject *resultobj = 0;
12241 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12242 bool result;
12243 void *argp1 = 0 ;
12244 int res1 = 0 ;
12245 PyObject *swig_obj[1] ;
12246
12247 if (!args) SWIG_fail;
12248 swig_obj[0] = args;
12249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12250 if (!SWIG_IsOK(res1)) {
12251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12252 }
12253 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12254 {
12255 PyThreadState* __tstate = wxPyBeginAllowThreads();
12256 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12257 wxPyEndAllowThreads(__tstate);
12258 if (PyErr_Occurred()) SWIG_fail;
12259 }
12260 {
12261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12262 }
12263 return resultobj;
12264fail:
12265 return NULL;
74a57fcd
RD
12266}
12267
12268
0085ce49
RD
12269SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12270 PyObject *resultobj = 0;
12271 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12272 bool result;
12273 void *argp1 = 0 ;
12274 int res1 = 0 ;
12275 PyObject *swig_obj[1] ;
12276
12277 if (!args) SWIG_fail;
12278 swig_obj[0] = args;
12279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12280 if (!SWIG_IsOK(res1)) {
12281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12282 }
12283 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 {
12291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12292 }
12293 return resultobj;
12294fail:
12295 return NULL;
d14a1e28
RD
12296}
12297
12298
0085ce49
RD
12299SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12300 PyObject *resultobj = 0;
12301 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12302 bool result;
12303 void *argp1 = 0 ;
12304 int res1 = 0 ;
12305 PyObject *swig_obj[1] ;
12306
12307 if (!args) SWIG_fail;
12308 swig_obj[0] = args;
12309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12310 if (!SWIG_IsOK(res1)) {
12311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12312 }
12313 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12314 {
12315 PyThreadState* __tstate = wxPyBeginAllowThreads();
12316 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12317 wxPyEndAllowThreads(__tstate);
12318 if (PyErr_Occurred()) SWIG_fail;
12319 }
12320 {
12321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12322 }
12323 return resultobj;
12324fail:
12325 return NULL;
12326}
12327
12328
12329SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12330 PyObject *resultobj = 0;
12331 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12332 long *arg2 = (long *) 0 ;
12333 long *arg3 = (long *) 0 ;
12334 void *argp1 = 0 ;
12335 int res1 = 0 ;
12336 long temp2 ;
12337 int res2 = SWIG_TMPOBJ ;
12338 long temp3 ;
12339 int res3 = SWIG_TMPOBJ ;
12340 PyObject *swig_obj[1] ;
12341
12342 arg2 = &temp2;
12343 arg3 = &temp3;
12344 if (!args) SWIG_fail;
12345 swig_obj[0] = args;
12346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12347 if (!SWIG_IsOK(res1)) {
12348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12349 }
12350 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12351 {
12352 PyThreadState* __tstate = wxPyBeginAllowThreads();
12353 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12354 wxPyEndAllowThreads(__tstate);
12355 if (PyErr_Occurred()) SWIG_fail;
12356 }
12357 resultobj = SWIG_Py_Void();
12358 if (SWIG_IsTmpObj(res2)) {
12359 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12360 } else {
12361 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12362 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12363 }
12364 if (SWIG_IsTmpObj(res3)) {
12365 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12366 } else {
12367 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12368 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12369 }
12370 return resultobj;
12371fail:
12372 return NULL;
d14a1e28
RD
12373}
12374
12375
0085ce49
RD
12376SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12377 PyObject *resultobj = 0;
12378 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12379 wxString result;
12380 void *argp1 = 0 ;
12381 int res1 = 0 ;
12382 PyObject *swig_obj[1] ;
12383
12384 if (!args) SWIG_fail;
12385 swig_obj[0] = args;
12386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12387 if (!SWIG_IsOK(res1)) {
12388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12389 }
12390 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12391 {
12392 PyThreadState* __tstate = wxPyBeginAllowThreads();
12393 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12394 wxPyEndAllowThreads(__tstate);
12395 if (PyErr_Occurred()) SWIG_fail;
12396 }
12397 {
12398#if wxUSE_UNICODE
12399 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12400#else
12401 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12402#endif
12403 }
12404 return resultobj;
12405fail:
12406 return NULL;
d14a1e28
RD
12407}
12408
12409
0085ce49
RD
12410SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12411 PyObject *resultobj = 0;
12412 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12413 void *argp1 = 0 ;
12414 int res1 = 0 ;
12415 PyObject *swig_obj[1] ;
12416
12417 if (!args) SWIG_fail;
12418 swig_obj[0] = args;
12419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12420 if (!SWIG_IsOK(res1)) {
12421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12422 }
12423 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12424 {
12425 PyThreadState* __tstate = wxPyBeginAllowThreads();
12426 (arg1)->Clear();
12427 wxPyEndAllowThreads(__tstate);
12428 if (PyErr_Occurred()) SWIG_fail;
12429 }
12430 resultobj = SWIG_Py_Void();
12431 return resultobj;
12432fail:
12433 return NULL;
12434}
12435
12436
12437SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12438 PyObject *resultobj = 0;
12439 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12440 long arg2 ;
12441 long arg3 ;
12442 wxString *arg4 = 0 ;
12443 void *argp1 = 0 ;
12444 int res1 = 0 ;
12445 long val2 ;
12446 int ecode2 = 0 ;
12447 long val3 ;
12448 int ecode3 = 0 ;
12449 bool temp4 = false ;
12450 PyObject * obj0 = 0 ;
12451 PyObject * obj1 = 0 ;
12452 PyObject * obj2 = 0 ;
12453 PyObject * obj3 = 0 ;
12454 char * kwnames[] = {
2131d850 12455 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
0085ce49
RD
12456 };
12457
12458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12460 if (!SWIG_IsOK(res1)) {
12461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12462 }
12463 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12464 ecode2 = SWIG_AsVal_long(obj1, &val2);
12465 if (!SWIG_IsOK(ecode2)) {
12466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12467 }
12468 arg2 = static_cast< long >(val2);
12469 ecode3 = SWIG_AsVal_long(obj2, &val3);
12470 if (!SWIG_IsOK(ecode3)) {
12471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12472 }
12473 arg3 = static_cast< long >(val3);
12474 {
12475 arg4 = wxString_in_helper(obj3);
12476 if (arg4 == NULL) SWIG_fail;
12477 temp4 = true;
12478 }
12479 {
12480 PyThreadState* __tstate = wxPyBeginAllowThreads();
12481 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 resultobj = SWIG_Py_Void();
12486 {
12487 if (temp4)
12488 delete arg4;
12489 }
12490 return resultobj;
12491fail:
12492 {
12493 if (temp4)
12494 delete arg4;
12495 }
12496 return NULL;
12497}
12498
12499
12500SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12501 PyObject *resultobj = 0;
12502 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12503 long arg2 ;
12504 long arg3 ;
12505 void *argp1 = 0 ;
12506 int res1 = 0 ;
12507 long val2 ;
12508 int ecode2 = 0 ;
12509 long val3 ;
12510 int ecode3 = 0 ;
12511 PyObject * obj0 = 0 ;
12512 PyObject * obj1 = 0 ;
12513 PyObject * obj2 = 0 ;
12514 char * kwnames[] = {
2131d850 12515 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
12516 };
12517
12518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12520 if (!SWIG_IsOK(res1)) {
12521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12522 }
12523 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12524 ecode2 = SWIG_AsVal_long(obj1, &val2);
12525 if (!SWIG_IsOK(ecode2)) {
12526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12527 }
12528 arg2 = static_cast< long >(val2);
12529 ecode3 = SWIG_AsVal_long(obj2, &val3);
12530 if (!SWIG_IsOK(ecode3)) {
12531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12532 }
12533 arg3 = static_cast< long >(val3);
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 (arg1)->Remove(arg2,arg3);
12537 wxPyEndAllowThreads(__tstate);
12538 if (PyErr_Occurred()) SWIG_fail;
12539 }
12540 resultobj = SWIG_Py_Void();
12541 return resultobj;
12542fail:
12543 return NULL;
12544}
12545
12546
12547SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12548 PyObject *resultobj = 0;
12549 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12550 wxString *arg2 = 0 ;
f5263701 12551 int arg3 = (int) wxTEXT_TYPE_ANY ;
0085ce49
RD
12552 bool result;
12553 void *argp1 = 0 ;
12554 int res1 = 0 ;
12555 bool temp2 = false ;
f5263701
RD
12556 int val3 ;
12557 int ecode3 = 0 ;
0085ce49
RD
12558 PyObject * obj0 = 0 ;
12559 PyObject * obj1 = 0 ;
f5263701 12560 PyObject * obj2 = 0 ;
0085ce49 12561 char * kwnames[] = {
f5263701 12562 (char *) "self",(char *) "file",(char *) "fileType", NULL
0085ce49
RD
12563 };
12564
f5263701 12565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
0085ce49
RD
12566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12567 if (!SWIG_IsOK(res1)) {
12568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12569 }
12570 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12571 {
12572 arg2 = wxString_in_helper(obj1);
12573 if (arg2 == NULL) SWIG_fail;
12574 temp2 = true;
12575 }
f5263701
RD
12576 if (obj2) {
12577 ecode3 = SWIG_AsVal_int(obj2, &val3);
12578 if (!SWIG_IsOK(ecode3)) {
12579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12580 }
12581 arg3 = static_cast< int >(val3);
12582 }
0085ce49
RD
12583 {
12584 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12585 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
0085ce49
RD
12586 wxPyEndAllowThreads(__tstate);
12587 if (PyErr_Occurred()) SWIG_fail;
12588 }
12589 {
12590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12591 }
12592 {
12593 if (temp2)
12594 delete arg2;
12595 }
12596 return resultobj;
12597fail:
12598 {
12599 if (temp2)
12600 delete arg2;
12601 }
12602 return NULL;
12603}
12604
12605
12606SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12607 PyObject *resultobj = 0;
12608 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12609 wxString const &arg2_defvalue = wxPyEmptyString ;
12610 wxString *arg2 = (wxString *) &arg2_defvalue ;
f5263701 12611 int arg3 = (int) wxTEXT_TYPE_ANY ;
0085ce49
RD
12612 bool result;
12613 void *argp1 = 0 ;
12614 int res1 = 0 ;
12615 bool temp2 = false ;
f5263701
RD
12616 int val3 ;
12617 int ecode3 = 0 ;
0085ce49
RD
12618 PyObject * obj0 = 0 ;
12619 PyObject * obj1 = 0 ;
f5263701 12620 PyObject * obj2 = 0 ;
0085ce49 12621 char * kwnames[] = {
f5263701 12622 (char *) "self",(char *) "file",(char *) "fileType", NULL
0085ce49
RD
12623 };
12624
f5263701 12625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
0085ce49
RD
12626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12627 if (!SWIG_IsOK(res1)) {
12628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12629 }
12630 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12631 if (obj1) {
4f89f6a3 12632 {
0085ce49
RD
12633 arg2 = wxString_in_helper(obj1);
12634 if (arg2 == NULL) SWIG_fail;
12635 temp2 = true;
4f89f6a3 12636 }
0085ce49 12637 }
f5263701
RD
12638 if (obj2) {
12639 ecode3 = SWIG_AsVal_int(obj2, &val3);
12640 if (!SWIG_IsOK(ecode3)) {
12641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12642 }
12643 arg3 = static_cast< int >(val3);
12644 }
0085ce49
RD
12645 {
12646 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12647 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
0085ce49
RD
12648 wxPyEndAllowThreads(__tstate);
12649 if (PyErr_Occurred()) SWIG_fail;
12650 }
12651 {
12652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12653 }
12654 {
12655 if (temp2)
12656 delete arg2;
12657 }
12658 return resultobj;
12659fail:
12660 {
12661 if (temp2)
12662 delete arg2;
12663 }
12664 return NULL;
d14a1e28
RD
12665}
12666
12667
0085ce49
RD
12668SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12669 PyObject *resultobj = 0;
12670 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12671 void *argp1 = 0 ;
12672 int res1 = 0 ;
12673 PyObject *swig_obj[1] ;
12674
12675 if (!args) SWIG_fail;
12676 swig_obj[0] = args;
12677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12678 if (!SWIG_IsOK(res1)) {
12679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12680 }
12681 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12682 {
12683 PyThreadState* __tstate = wxPyBeginAllowThreads();
12684 (arg1)->MarkDirty();
12685 wxPyEndAllowThreads(__tstate);
12686 if (PyErr_Occurred()) SWIG_fail;
12687 }
12688 resultobj = SWIG_Py_Void();
12689 return resultobj;
12690fail:
12691 return NULL;
d14a1e28
RD
12692}
12693
12694
0085ce49
RD
12695SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12696 PyObject *resultobj = 0;
12697 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12698 void *argp1 = 0 ;
12699 int res1 = 0 ;
12700 PyObject *swig_obj[1] ;
12701
12702 if (!args) SWIG_fail;
12703 swig_obj[0] = args;
12704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12705 if (!SWIG_IsOK(res1)) {
12706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12707 }
12708 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12709 {
12710 PyThreadState* __tstate = wxPyBeginAllowThreads();
12711 (arg1)->DiscardEdits();
12712 wxPyEndAllowThreads(__tstate);
12713 if (PyErr_Occurred()) SWIG_fail;
12714 }
12715 resultobj = SWIG_Py_Void();
12716 return resultobj;
12717fail:
12718 return NULL;
12719}
12720
12721
b02396e8
RD
12722SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12723 PyObject *resultobj = 0;
12724 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12725 bool arg2 ;
12726 void *argp1 = 0 ;
12727 int res1 = 0 ;
12728 bool val2 ;
12729 int ecode2 = 0 ;
12730 PyObject * obj0 = 0 ;
12731 PyObject * obj1 = 0 ;
12732 char * kwnames[] = {
12733 (char *) "self",(char *) "modified", NULL
12734 };
12735
12736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12738 if (!SWIG_IsOK(res1)) {
12739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12740 }
12741 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12742 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12743 if (!SWIG_IsOK(ecode2)) {
12744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12745 }
12746 arg2 = static_cast< bool >(val2);
12747 {
12748 PyThreadState* __tstate = wxPyBeginAllowThreads();
12749 (arg1)->SetModified(arg2);
12750 wxPyEndAllowThreads(__tstate);
12751 if (PyErr_Occurred()) SWIG_fail;
12752 }
12753 resultobj = SWIG_Py_Void();
12754 return resultobj;
12755fail:
12756 return NULL;
12757}
12758
12759
0085ce49
RD
12760SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12761 PyObject *resultobj = 0;
12762 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12763 unsigned long arg2 ;
12764 void *argp1 = 0 ;
12765 int res1 = 0 ;
12766 unsigned long val2 ;
12767 int ecode2 = 0 ;
12768 PyObject * obj0 = 0 ;
12769 PyObject * obj1 = 0 ;
12770 char * kwnames[] = {
12771 (char *) "self",(char *) "len", NULL
12772 };
12773
12774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12776 if (!SWIG_IsOK(res1)) {
12777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12778 }
12779 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12780 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12781 if (!SWIG_IsOK(ecode2)) {
12782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12783 }
12784 arg2 = static_cast< unsigned long >(val2);
12785 {
12786 PyThreadState* __tstate = wxPyBeginAllowThreads();
12787 (arg1)->SetMaxLength(arg2);
12788 wxPyEndAllowThreads(__tstate);
12789 if (PyErr_Occurred()) SWIG_fail;
12790 }
12791 resultobj = SWIG_Py_Void();
12792 return resultobj;
12793fail:
12794 return NULL;
12795}
12796
12797
12798SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12799 PyObject *resultobj = 0;
12800 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12801 wxString *arg2 = 0 ;
12802 void *argp1 = 0 ;
12803 int res1 = 0 ;
12804 bool temp2 = false ;
12805 PyObject * obj0 = 0 ;
12806 PyObject * obj1 = 0 ;
12807 char * kwnames[] = {
12808 (char *) "self",(char *) "text", NULL
12809 };
12810
12811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12813 if (!SWIG_IsOK(res1)) {
12814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12815 }
12816 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12817 {
12818 arg2 = wxString_in_helper(obj1);
12819 if (arg2 == NULL) SWIG_fail;
12820 temp2 = true;
12821 }
12822 {
12823 PyThreadState* __tstate = wxPyBeginAllowThreads();
12824 (arg1)->WriteText((wxString const &)*arg2);
12825 wxPyEndAllowThreads(__tstate);
12826 if (PyErr_Occurred()) SWIG_fail;
12827 }
12828 resultobj = SWIG_Py_Void();
12829 {
12830 if (temp2)
12831 delete arg2;
12832 }
12833 return resultobj;
12834fail:
12835 {
12836 if (temp2)
12837 delete arg2;
12838 }
12839 return NULL;
d14a1e28
RD
12840}
12841
12842
0085ce49
RD
12843SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12844 PyObject *resultobj = 0;
12845 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12846 wxString *arg2 = 0 ;
12847 void *argp1 = 0 ;
12848 int res1 = 0 ;
12849 bool temp2 = false ;
12850 PyObject * obj0 = 0 ;
12851 PyObject * obj1 = 0 ;
12852 char * kwnames[] = {
12853 (char *) "self",(char *) "text", NULL
12854 };
12855
12856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12858 if (!SWIG_IsOK(res1)) {
12859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12860 }
12861 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12862 {
12863 arg2 = wxString_in_helper(obj1);
12864 if (arg2 == NULL) SWIG_fail;
12865 temp2 = true;
12866 }
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
12869 (arg1)->AppendText((wxString const &)*arg2);
12870 wxPyEndAllowThreads(__tstate);
12871 if (PyErr_Occurred()) SWIG_fail;
12872 }
12873 resultobj = SWIG_Py_Void();
12874 {
12875 if (temp2)
12876 delete arg2;
12877 }
12878 return resultobj;
12879fail:
12880 {
12881 if (temp2)
12882 delete arg2;
12883 }
12884 return NULL;
12885}
12886
12887
12888SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12889 PyObject *resultobj = 0;
12890 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12891 wxKeyEvent *arg2 = 0 ;
12892 bool result;
12893 void *argp1 = 0 ;
12894 int res1 = 0 ;
12895 void *argp2 = 0 ;
12896 int res2 = 0 ;
12897 PyObject * obj0 = 0 ;
12898 PyObject * obj1 = 0 ;
12899 char * kwnames[] = {
12900 (char *) "self",(char *) "event", NULL
12901 };
12902
12903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12905 if (!SWIG_IsOK(res1)) {
12906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12907 }
12908 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12909 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12910 if (!SWIG_IsOK(res2)) {
12911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12912 }
12913 if (!argp2) {
12914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12915 }
12916 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12917 {
12918 PyThreadState* __tstate = wxPyBeginAllowThreads();
12919 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12920 wxPyEndAllowThreads(__tstate);
12921 if (PyErr_Occurred()) SWIG_fail;
12922 }
12923 {
12924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12925 }
12926 return resultobj;
12927fail:
12928 return NULL;
12929}
12930
12931
12932SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12933 PyObject *resultobj = 0;
12934 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12935 long arg2 ;
12936 long arg3 ;
12937 wxTextAttr *arg4 = 0 ;
12938 bool result;
12939 void *argp1 = 0 ;
12940 int res1 = 0 ;
12941 long val2 ;
12942 int ecode2 = 0 ;
12943 long val3 ;
12944 int ecode3 = 0 ;
12945 void *argp4 = 0 ;
12946 int res4 = 0 ;
12947 PyObject * obj0 = 0 ;
12948 PyObject * obj1 = 0 ;
12949 PyObject * obj2 = 0 ;
12950 PyObject * obj3 = 0 ;
12951 char * kwnames[] = {
12952 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12953 };
12954
12955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12957 if (!SWIG_IsOK(res1)) {
12958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12959 }
12960 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12961 ecode2 = SWIG_AsVal_long(obj1, &val2);
12962 if (!SWIG_IsOK(ecode2)) {
12963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12964 }
12965 arg2 = static_cast< long >(val2);
12966 ecode3 = SWIG_AsVal_long(obj2, &val3);
12967 if (!SWIG_IsOK(ecode3)) {
12968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12969 }
12970 arg3 = static_cast< long >(val3);
12971 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12972 if (!SWIG_IsOK(res4)) {
12973 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12974 }
12975 if (!argp4) {
12976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12977 }
12978 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12979 {
12980 PyThreadState* __tstate = wxPyBeginAllowThreads();
12981 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12982 wxPyEndAllowThreads(__tstate);
12983 if (PyErr_Occurred()) SWIG_fail;
12984 }
12985 {
12986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12987 }
12988 return resultobj;
12989fail:
12990 return NULL;
12991}
12992
12993
12994SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12995 PyObject *resultobj = 0;
12996 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12997 long arg2 ;
12998 wxTextAttr *arg3 = 0 ;
12999 bool result;
13000 void *argp1 = 0 ;
13001 int res1 = 0 ;
13002 long val2 ;
13003 int ecode2 = 0 ;
13004 void *argp3 = 0 ;
13005 int res3 = 0 ;
13006 PyObject * obj0 = 0 ;
13007 PyObject * obj1 = 0 ;
13008 PyObject * obj2 = 0 ;
13009 char * kwnames[] = {
13010 (char *) "self",(char *) "position",(char *) "style", NULL
13011 };
13012
13013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13015 if (!SWIG_IsOK(res1)) {
13016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13017 }
13018 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13019 ecode2 = SWIG_AsVal_long(obj1, &val2);
13020 if (!SWIG_IsOK(ecode2)) {
13021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
13022 }
13023 arg2 = static_cast< long >(val2);
13024 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
13025 if (!SWIG_IsOK(res3)) {
13026 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13027 }
13028 if (!argp3) {
13029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13030 }
13031 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
13032 {
13033 PyThreadState* __tstate = wxPyBeginAllowThreads();
13034 result = (bool)(arg1)->GetStyle(arg2,*arg3);
13035 wxPyEndAllowThreads(__tstate);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 }
13038 {
13039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13040 }
13041 return resultobj;
13042fail:
13043 return NULL;
13044}
13045
13046
13047SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13048 PyObject *resultobj = 0;
13049 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13050 wxTextAttr *arg2 = 0 ;
13051 bool result;
13052 void *argp1 = 0 ;
13053 int res1 = 0 ;
13054 void *argp2 = 0 ;
13055 int res2 = 0 ;
13056 PyObject * obj0 = 0 ;
13057 PyObject * obj1 = 0 ;
13058 char * kwnames[] = {
13059 (char *) "self",(char *) "style", NULL
13060 };
13061
13062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13064 if (!SWIG_IsOK(res1)) {
13065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13066 }
13067 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13068 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13069 if (!SWIG_IsOK(res2)) {
13070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13071 }
13072 if (!argp2) {
13073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13074 }
13075 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13076 {
13077 PyThreadState* __tstate = wxPyBeginAllowThreads();
13078 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13079 wxPyEndAllowThreads(__tstate);
13080 if (PyErr_Occurred()) SWIG_fail;
13081 }
13082 {
13083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13084 }
13085 return resultobj;
13086fail:
13087 return NULL;
d14a1e28
RD
13088}
13089
13090
0085ce49
RD
13091SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13092 PyObject *resultobj = 0;
13093 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13094 wxTextAttr *result = 0 ;
13095 void *argp1 = 0 ;
13096 int res1 = 0 ;
13097 PyObject *swig_obj[1] ;
13098
13099 if (!args) SWIG_fail;
13100 swig_obj[0] = args;
13101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13102 if (!SWIG_IsOK(res1)) {
13103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13104 }
13105 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13106 {
13107 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13108 {
0085ce49
RD
13109 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13110 result = (wxTextAttr *) &_result_ref;
093d3ff1 13111 }
0085ce49
RD
13112 wxPyEndAllowThreads(__tstate);
13113 if (PyErr_Occurred()) SWIG_fail;
13114 }
13115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13116 return resultobj;
13117fail:
13118 return NULL;
13119}
13120
13121
13122SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13123 PyObject *resultobj = 0;
13124 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13125 long arg2 ;
13126 long arg3 ;
13127 long result;
13128 void *argp1 = 0 ;
13129 int res1 = 0 ;
13130 long val2 ;
13131 int ecode2 = 0 ;
13132 long val3 ;
13133 int ecode3 = 0 ;
13134 PyObject * obj0 = 0 ;
13135 PyObject * obj1 = 0 ;
13136 PyObject * obj2 = 0 ;
13137 char * kwnames[] = {
13138 (char *) "self",(char *) "x",(char *) "y", NULL
13139 };
13140
13141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13143 if (!SWIG_IsOK(res1)) {
13144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13145 }
13146 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13147 ecode2 = SWIG_AsVal_long(obj1, &val2);
13148 if (!SWIG_IsOK(ecode2)) {
13149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13150 }
13151 arg2 = static_cast< long >(val2);
13152 ecode3 = SWIG_AsVal_long(obj2, &val3);
13153 if (!SWIG_IsOK(ecode3)) {
13154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13155 }
13156 arg3 = static_cast< long >(val3);
13157 {
13158 PyThreadState* __tstate = wxPyBeginAllowThreads();
13159 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13160 wxPyEndAllowThreads(__tstate);
13161 if (PyErr_Occurred()) SWIG_fail;
13162 }
13163 resultobj = SWIG_From_long(static_cast< long >(result));
13164 return resultobj;
13165fail:
13166 return NULL;
13167}
13168
13169
13170SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13171 PyObject *resultobj = 0;
13172 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13173 long arg2 ;
13174 long *arg3 = (long *) 0 ;
13175 long *arg4 = (long *) 0 ;
13176 void *argp1 = 0 ;
13177 int res1 = 0 ;
13178 long val2 ;
13179 int ecode2 = 0 ;
13180 long temp3 ;
13181 int res3 = SWIG_TMPOBJ ;
13182 long temp4 ;
13183 int res4 = SWIG_TMPOBJ ;
13184 PyObject * obj0 = 0 ;
13185 PyObject * obj1 = 0 ;
13186 char * kwnames[] = {
13187 (char *) "self",(char *) "pos", NULL
13188 };
13189
13190 arg3 = &temp3;
13191 arg4 = &temp4;
13192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13194 if (!SWIG_IsOK(res1)) {
13195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13196 }
13197 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13198 ecode2 = SWIG_AsVal_long(obj1, &val2);
13199 if (!SWIG_IsOK(ecode2)) {
13200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13201 }
13202 arg2 = static_cast< long >(val2);
13203 {
13204 PyThreadState* __tstate = wxPyBeginAllowThreads();
13205 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13206 wxPyEndAllowThreads(__tstate);
13207 if (PyErr_Occurred()) SWIG_fail;
13208 }
13209 resultobj = SWIG_Py_Void();
13210 if (SWIG_IsTmpObj(res3)) {
13211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13212 } else {
13213 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13215 }
13216 if (SWIG_IsTmpObj(res4)) {
13217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13218 } else {
13219 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13220 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13221 }
13222 return resultobj;
13223fail:
13224 return NULL;
13225}
13226
13227
13228SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13229 PyObject *resultobj = 0;
13230 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13231 long arg2 ;
13232 void *argp1 = 0 ;
13233 int res1 = 0 ;
13234 long val2 ;
13235 int ecode2 = 0 ;
13236 PyObject * obj0 = 0 ;
13237 PyObject * obj1 = 0 ;
13238 char * kwnames[] = {
13239 (char *) "self",(char *) "pos", NULL
13240 };
13241
13242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13244 if (!SWIG_IsOK(res1)) {
13245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13246 }
13247 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13248 ecode2 = SWIG_AsVal_long(obj1, &val2);
13249 if (!SWIG_IsOK(ecode2)) {
13250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13251 }
13252 arg2 = static_cast< long >(val2);
13253 {
13254 PyThreadState* __tstate = wxPyBeginAllowThreads();
13255 (arg1)->ShowPosition(arg2);
13256 wxPyEndAllowThreads(__tstate);
13257 if (PyErr_Occurred()) SWIG_fail;
13258 }
13259 resultobj = SWIG_Py_Void();
13260 return resultobj;
13261fail:
13262 return NULL;
13263}
13264
13265
13266SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13267 PyObject *resultobj = 0;
13268 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13269 wxPoint *arg2 = 0 ;
13270 long *arg3 = (long *) 0 ;
13271 long *arg4 = (long *) 0 ;
13272 wxTextCtrlHitTestResult result;
13273 void *argp1 = 0 ;
13274 int res1 = 0 ;
13275 wxPoint temp2 ;
13276 long temp3 ;
13277 int res3 = SWIG_TMPOBJ ;
13278 long temp4 ;
13279 int res4 = SWIG_TMPOBJ ;
13280 PyObject * obj0 = 0 ;
13281 PyObject * obj1 = 0 ;
13282 char * kwnames[] = {
13283 (char *) "self",(char *) "pt", NULL
13284 };
13285
13286 arg3 = &temp3;
13287 arg4 = &temp4;
13288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13290 if (!SWIG_IsOK(res1)) {
13291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13292 }
13293 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13294 {
13295 arg2 = &temp2;
13296 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13297 }
13298 {
13299 PyThreadState* __tstate = wxPyBeginAllowThreads();
13300 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13301 wxPyEndAllowThreads(__tstate);
13302 if (PyErr_Occurred()) SWIG_fail;
13303 }
13304 resultobj = SWIG_From_int(static_cast< int >(result));
13305 if (SWIG_IsTmpObj(res3)) {
13306 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13307 } else {
13308 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13309 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13310 }
13311 if (SWIG_IsTmpObj(res4)) {
13312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13313 } else {
13314 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13315 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13316 }
13317 return resultobj;
13318fail:
13319 return NULL;
13320}
13321
13322
13323SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13324 PyObject *resultobj = 0;
13325 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13326 wxPoint *arg2 = 0 ;
13327 long *arg3 = (long *) 0 ;
13328 wxTextCtrlHitTestResult result;
13329 void *argp1 = 0 ;
13330 int res1 = 0 ;
13331 wxPoint temp2 ;
13332 long temp3 ;
13333 int res3 = SWIG_TMPOBJ ;
13334 PyObject * obj0 = 0 ;
13335 PyObject * obj1 = 0 ;
13336 char * kwnames[] = {
13337 (char *) "self",(char *) "pt", NULL
13338 };
13339
13340 arg3 = &temp3;
13341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13343 if (!SWIG_IsOK(res1)) {
13344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13345 }
13346 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13347 {
13348 arg2 = &temp2;
13349 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13350 }
13351 {
13352 PyThreadState* __tstate = wxPyBeginAllowThreads();
13353 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13354 wxPyEndAllowThreads(__tstate);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 }
13357 resultobj = SWIG_From_int(static_cast< int >(result));
13358 if (SWIG_IsTmpObj(res3)) {
13359 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13360 } else {
13361 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13362 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13363 }
13364 return resultobj;
13365fail:
13366 return NULL;
d14a1e28
RD
13367}
13368
13369
0085ce49
RD
13370SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13371 PyObject *resultobj = 0;
13372 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13373 void *argp1 = 0 ;
13374 int res1 = 0 ;
13375 PyObject *swig_obj[1] ;
13376
13377 if (!args) SWIG_fail;
13378 swig_obj[0] = args;
13379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13380 if (!SWIG_IsOK(res1)) {
13381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13382 }
13383 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13384 {
13385 PyThreadState* __tstate = wxPyBeginAllowThreads();
13386 (arg1)->Copy();
13387 wxPyEndAllowThreads(__tstate);
13388 if (PyErr_Occurred()) SWIG_fail;
13389 }
13390 resultobj = SWIG_Py_Void();
13391 return resultobj;
13392fail:
13393 return NULL;
d14a1e28 13394}
0085ce49
RD
13395
13396
13397SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13398 PyObject *resultobj = 0;
13399 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13400 void *argp1 = 0 ;
13401 int res1 = 0 ;
13402 PyObject *swig_obj[1] ;
13403
13404 if (!args) SWIG_fail;
13405 swig_obj[0] = args;
13406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13407 if (!SWIG_IsOK(res1)) {
13408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13409 }
13410 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13411 {
13412 PyThreadState* __tstate = wxPyBeginAllowThreads();
13413 (arg1)->Cut();
13414 wxPyEndAllowThreads(__tstate);
13415 if (PyErr_Occurred()) SWIG_fail;
13416 }
13417 resultobj = SWIG_Py_Void();
13418 return resultobj;
13419fail:
13420 return NULL;
b2dc1044
RD
13421}
13422
13423
0085ce49
RD
13424SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13425 PyObject *resultobj = 0;
13426 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13427 void *argp1 = 0 ;
13428 int res1 = 0 ;
13429 PyObject *swig_obj[1] ;
13430
13431 if (!args) SWIG_fail;
13432 swig_obj[0] = args;
13433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13434 if (!SWIG_IsOK(res1)) {
13435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13436 }
13437 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13438 {
13439 PyThreadState* __tstate = wxPyBeginAllowThreads();
13440 (arg1)->Paste();
13441 wxPyEndAllowThreads(__tstate);
13442 if (PyErr_Occurred()) SWIG_fail;
13443 }
13444 resultobj = SWIG_Py_Void();
13445 return resultobj;
13446fail:
13447 return NULL;
d14a1e28
RD
13448}
13449
13450
0085ce49
RD
13451SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13452 PyObject *resultobj = 0;
13453 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13454 bool result;
13455 void *argp1 = 0 ;
13456 int res1 = 0 ;
13457 PyObject *swig_obj[1] ;
13458
13459 if (!args) SWIG_fail;
13460 swig_obj[0] = args;
13461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13462 if (!SWIG_IsOK(res1)) {
13463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13464 }
13465 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13466 {
13467 PyThreadState* __tstate = wxPyBeginAllowThreads();
13468 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13469 wxPyEndAllowThreads(__tstate);
13470 if (PyErr_Occurred()) SWIG_fail;
13471 }
13472 {
13473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13474 }
13475 return resultobj;
13476fail:
13477 return NULL;
d14a1e28
RD
13478}
13479
13480
0085ce49
RD
13481SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13482 PyObject *resultobj = 0;
13483 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13484 bool result;
13485 void *argp1 = 0 ;
13486 int res1 = 0 ;
13487 PyObject *swig_obj[1] ;
13488
13489 if (!args) SWIG_fail;
13490 swig_obj[0] = args;
13491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13492 if (!SWIG_IsOK(res1)) {
13493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13494 }
13495 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13496 {
13497 PyThreadState* __tstate = wxPyBeginAllowThreads();
13498 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13499 wxPyEndAllowThreads(__tstate);
13500 if (PyErr_Occurred()) SWIG_fail;
13501 }
13502 {
13503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13504 }
13505 return resultobj;
13506fail:
13507 return NULL;
994141e6
RD
13508}
13509
13510
0085ce49
RD
13511SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13512 PyObject *resultobj = 0;
13513 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13514 bool result;
13515 void *argp1 = 0 ;
13516 int res1 = 0 ;
13517 PyObject *swig_obj[1] ;
13518
13519 if (!args) SWIG_fail;
13520 swig_obj[0] = args;
13521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13522 if (!SWIG_IsOK(res1)) {
13523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13524 }
13525 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13526 {
13527 PyThreadState* __tstate = wxPyBeginAllowThreads();
13528 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13529 wxPyEndAllowThreads(__tstate);
13530 if (PyErr_Occurred()) SWIG_fail;
13531 }
13532 {
13533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13534 }
13535 return resultobj;
13536fail:
13537 return NULL;
d14a1e28
RD
13538}
13539
13540
0085ce49
RD
13541SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13542 PyObject *resultobj = 0;
13543 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13544 void *argp1 = 0 ;
13545 int res1 = 0 ;
13546 PyObject *swig_obj[1] ;
13547
13548 if (!args) SWIG_fail;
13549 swig_obj[0] = args;
13550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13551 if (!SWIG_IsOK(res1)) {
13552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13553 }
13554 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13555 {
13556 PyThreadState* __tstate = wxPyBeginAllowThreads();
13557 (arg1)->Undo();
13558 wxPyEndAllowThreads(__tstate);
13559 if (PyErr_Occurred()) SWIG_fail;
13560 }
13561 resultobj = SWIG_Py_Void();
13562 return resultobj;
13563fail:
13564 return NULL;
d14a1e28
RD
13565}
13566
13567
0085ce49
RD
13568SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13569 PyObject *resultobj = 0;
13570 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13571 void *argp1 = 0 ;
13572 int res1 = 0 ;
13573 PyObject *swig_obj[1] ;
13574
13575 if (!args) SWIG_fail;
13576 swig_obj[0] = args;
13577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13578 if (!SWIG_IsOK(res1)) {
13579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13580 }
13581 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13582 {
13583 PyThreadState* __tstate = wxPyBeginAllowThreads();
13584 (arg1)->Redo();
13585 wxPyEndAllowThreads(__tstate);
13586 if (PyErr_Occurred()) SWIG_fail;
13587 }
13588 resultobj = SWIG_Py_Void();
13589 return resultobj;
13590fail:
13591 return NULL;
d14a1e28
RD
13592}
13593
13594
0085ce49
RD
13595SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13596 PyObject *resultobj = 0;
13597 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13598 bool result;
13599 void *argp1 = 0 ;
13600 int res1 = 0 ;
13601 PyObject *swig_obj[1] ;
13602
13603 if (!args) SWIG_fail;
13604 swig_obj[0] = args;
13605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13606 if (!SWIG_IsOK(res1)) {
13607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13608 }
13609 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13610 {
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 {
13617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13618 }
13619 return resultobj;
13620fail:
13621 return NULL;
d14a1e28
RD
13622}
13623
13624
0085ce49
RD
13625SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13626 PyObject *resultobj = 0;
13627 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13628 bool result;
13629 void *argp1 = 0 ;
13630 int res1 = 0 ;
13631 PyObject *swig_obj[1] ;
13632
13633 if (!args) SWIG_fail;
13634 swig_obj[0] = args;
13635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13636 if (!SWIG_IsOK(res1)) {
13637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13638 }
13639 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13640 {
13641 PyThreadState* __tstate = wxPyBeginAllowThreads();
13642 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13643 wxPyEndAllowThreads(__tstate);
13644 if (PyErr_Occurred()) SWIG_fail;
13645 }
13646 {
13647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13648 }
13649 return resultobj;
13650fail:
13651 return NULL;
13652}
13653
13654
13655SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13656 PyObject *resultobj = 0;
13657 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13658 long arg2 ;
13659 void *argp1 = 0 ;
13660 int res1 = 0 ;
13661 long val2 ;
13662 int ecode2 = 0 ;
13663 PyObject * obj0 = 0 ;
13664 PyObject * obj1 = 0 ;
13665 char * kwnames[] = {
13666 (char *) "self",(char *) "pos", NULL
13667 };
13668
13669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13671 if (!SWIG_IsOK(res1)) {
13672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13673 }
13674 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13675 ecode2 = SWIG_AsVal_long(obj1, &val2);
13676 if (!SWIG_IsOK(ecode2)) {
13677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13678 }
13679 arg2 = static_cast< long >(val2);
13680 {
13681 PyThreadState* __tstate = wxPyBeginAllowThreads();
13682 (arg1)->SetInsertionPoint(arg2);
13683 wxPyEndAllowThreads(__tstate);
13684 if (PyErr_Occurred()) SWIG_fail;
13685 }
13686 resultobj = SWIG_Py_Void();
13687 return resultobj;
13688fail:
13689 return NULL;
d14a1e28
RD
13690}
13691
13692
0085ce49
RD
13693SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13694 PyObject *resultobj = 0;
13695 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13696 void *argp1 = 0 ;
13697 int res1 = 0 ;
13698 PyObject *swig_obj[1] ;
13699
13700 if (!args) SWIG_fail;
13701 swig_obj[0] = args;
13702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13703 if (!SWIG_IsOK(res1)) {
13704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13705 }
13706 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13707 {
13708 PyThreadState* __tstate = wxPyBeginAllowThreads();
13709 (arg1)->SetInsertionPointEnd();
13710 wxPyEndAllowThreads(__tstate);
13711 if (PyErr_Occurred()) SWIG_fail;
13712 }
13713 resultobj = SWIG_Py_Void();
13714 return resultobj;
13715fail:
13716 return NULL;
d14a1e28
RD
13717}
13718
13719
0085ce49
RD
13720SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13721 PyObject *resultobj = 0;
13722 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13723 long result;
13724 void *argp1 = 0 ;
13725 int res1 = 0 ;
13726 PyObject *swig_obj[1] ;
13727
13728 if (!args) SWIG_fail;
13729 swig_obj[0] = args;
13730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13731 if (!SWIG_IsOK(res1)) {
13732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13733 }
13734 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13735 {
13736 PyThreadState* __tstate = wxPyBeginAllowThreads();
13737 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13738 wxPyEndAllowThreads(__tstate);
13739 if (PyErr_Occurred()) SWIG_fail;
13740 }
13741 resultobj = SWIG_From_long(static_cast< long >(result));
13742 return resultobj;
13743fail:
13744 return NULL;
d14a1e28
RD
13745}
13746
13747
0085ce49
RD
13748SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13749 PyObject *resultobj = 0;
13750 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13751 long result;
13752 void *argp1 = 0 ;
13753 int res1 = 0 ;
13754 PyObject *swig_obj[1] ;
13755
13756 if (!args) SWIG_fail;
13757 swig_obj[0] = args;
13758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13759 if (!SWIG_IsOK(res1)) {
13760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13761 }
13762 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13763 {
13764 PyThreadState* __tstate = wxPyBeginAllowThreads();
13765 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13766 wxPyEndAllowThreads(__tstate);
13767 if (PyErr_Occurred()) SWIG_fail;
13768 }
13769 resultobj = SWIG_From_long(static_cast< long >(result));
13770 return resultobj;
13771fail:
13772 return NULL;
13773}
13774
13775
13776SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13777 PyObject *resultobj = 0;
13778 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13779 long arg2 ;
13780 long arg3 ;
13781 void *argp1 = 0 ;
13782 int res1 = 0 ;
13783 long val2 ;
13784 int ecode2 = 0 ;
13785 long val3 ;
13786 int ecode3 = 0 ;
13787 PyObject * obj0 = 0 ;
13788 PyObject * obj1 = 0 ;
13789 PyObject * obj2 = 0 ;
13790 char * kwnames[] = {
2131d850 13791 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
13792 };
13793
13794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13796 if (!SWIG_IsOK(res1)) {
13797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13798 }
13799 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13800 ecode2 = SWIG_AsVal_long(obj1, &val2);
13801 if (!SWIG_IsOK(ecode2)) {
13802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13803 }
13804 arg2 = static_cast< long >(val2);
13805 ecode3 = SWIG_AsVal_long(obj2, &val3);
13806 if (!SWIG_IsOK(ecode3)) {
13807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13808 }
13809 arg3 = static_cast< long >(val3);
13810 {
13811 PyThreadState* __tstate = wxPyBeginAllowThreads();
13812 (arg1)->SetSelection(arg2,arg3);
13813 wxPyEndAllowThreads(__tstate);
13814 if (PyErr_Occurred()) SWIG_fail;
13815 }
13816 resultobj = SWIG_Py_Void();
13817 return resultobj;
13818fail:
13819 return NULL;
d14a1e28
RD
13820}
13821
13822
0085ce49
RD
13823SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13824 PyObject *resultobj = 0;
13825 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13826 void *argp1 = 0 ;
13827 int res1 = 0 ;
13828 PyObject *swig_obj[1] ;
13829
13830 if (!args) SWIG_fail;
13831 swig_obj[0] = args;
13832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13833 if (!SWIG_IsOK(res1)) {
13834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13835 }
13836 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13837 {
13838 PyThreadState* __tstate = wxPyBeginAllowThreads();
13839 (arg1)->SelectAll();
13840 wxPyEndAllowThreads(__tstate);
13841 if (PyErr_Occurred()) SWIG_fail;
13842 }
13843 resultobj = SWIG_Py_Void();
13844 return resultobj;
13845fail:
13846 return NULL;
13847}
13848
13849
13850SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13851 PyObject *resultobj = 0;
13852 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13853 bool arg2 ;
13854 void *argp1 = 0 ;
13855 int res1 = 0 ;
13856 bool val2 ;
13857 int ecode2 = 0 ;
13858 PyObject * obj0 = 0 ;
13859 PyObject * obj1 = 0 ;
13860 char * kwnames[] = {
13861 (char *) "self",(char *) "editable", NULL
13862 };
13863
13864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13866 if (!SWIG_IsOK(res1)) {
13867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13868 }
13869 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13870 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13871 if (!SWIG_IsOK(ecode2)) {
13872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13873 }
13874 arg2 = static_cast< bool >(val2);
13875 {
13876 PyThreadState* __tstate = wxPyBeginAllowThreads();
13877 (arg1)->SetEditable(arg2);
13878 wxPyEndAllowThreads(__tstate);
13879 if (PyErr_Occurred()) SWIG_fail;
13880 }
13881 resultobj = SWIG_Py_Void();
13882 return resultobj;
13883fail:
13884 return NULL;
13885}
13886
13887
b39fe951
RD
13888SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13889 PyObject *resultobj = 0;
13890 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13891 void *argp1 = 0 ;
13892 int res1 = 0 ;
13893 PyObject *swig_obj[1] ;
13894
13895 if (!args) SWIG_fail;
13896 swig_obj[0] = args;
13897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13898 if (!SWIG_IsOK(res1)) {
13899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13900 }
13901 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13902 {
13903 PyThreadState* __tstate = wxPyBeginAllowThreads();
13904 (arg1)->SendTextUpdatedEvent();
13905 wxPyEndAllowThreads(__tstate);
13906 if (PyErr_Occurred()) SWIG_fail;
13907 }
13908 resultobj = SWIG_Py_Void();
13909 return resultobj;
13910fail:
13911 return NULL;
13912}
13913
13914
0085ce49
RD
13915SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13916 PyObject *resultobj = 0;
13917 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13918 wxString *arg2 = 0 ;
13919 void *argp1 = 0 ;
13920 int res1 = 0 ;
13921 bool temp2 = false ;
13922 PyObject * obj0 = 0 ;
13923 PyObject * obj1 = 0 ;
13924 char * kwnames[] = {
13925 (char *) "self",(char *) "text", NULL
13926 };
13927
13928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13930 if (!SWIG_IsOK(res1)) {
13931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13932 }
13933 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13934 {
13935 arg2 = wxString_in_helper(obj1);
13936 if (arg2 == NULL) SWIG_fail;
13937 temp2 = true;
13938 }
13939 {
13940 PyThreadState* __tstate = wxPyBeginAllowThreads();
13941 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13942 wxPyEndAllowThreads(__tstate);
13943 if (PyErr_Occurred()) SWIG_fail;
13944 }
13945 resultobj = SWIG_Py_Void();
13946 {
13947 if (temp2)
13948 delete arg2;
13949 }
13950 return resultobj;
13951fail:
13952 {
13953 if (temp2)
13954 delete arg2;
13955 }
13956 return NULL;
13957}
13958
13959
13960SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13961 PyObject *resultobj = 0;
13962 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13963 long arg2 ;
13964 long arg3 ;
13965 wxString result;
13966 void *argp1 = 0 ;
13967 int res1 = 0 ;
13968 long val2 ;
13969 int ecode2 = 0 ;
13970 long val3 ;
13971 int ecode3 = 0 ;
13972 PyObject * obj0 = 0 ;
13973 PyObject * obj1 = 0 ;
13974 PyObject * obj2 = 0 ;
13975 char * kwnames[] = {
2131d850 13976 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
13977 };
13978
13979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13981 if (!SWIG_IsOK(res1)) {
13982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13983 }
13984 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13985 ecode2 = SWIG_AsVal_long(obj1, &val2);
13986 if (!SWIG_IsOK(ecode2)) {
13987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13988 }
13989 arg2 = static_cast< long >(val2);
13990 ecode3 = SWIG_AsVal_long(obj2, &val3);
13991 if (!SWIG_IsOK(ecode3)) {
13992 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13993 }
13994 arg3 = static_cast< long >(val3);
13995 {
13996 PyThreadState* __tstate = wxPyBeginAllowThreads();
13997 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13998 wxPyEndAllowThreads(__tstate);
13999 if (PyErr_Occurred()) SWIG_fail;
14000 }
14001 {
14002#if wxUSE_UNICODE
14003 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14004#else
14005 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14006#endif
14007 }
14008 return resultobj;
14009fail:
14010 return NULL;
d14a1e28
RD
14011}
14012
14013
0085ce49
RD
14014SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14015 PyObject *resultobj = 0;
14016 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14017 SwigValueWrapper<wxVisualAttributes > result;
14018 int val1 ;
14019 int ecode1 = 0 ;
14020 PyObject * obj0 = 0 ;
14021 char * kwnames[] = {
14022 (char *) "variant", NULL
14023 };
14024
14025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14026 if (obj0) {
14027 ecode1 = SWIG_AsVal_int(obj0, &val1);
14028 if (!SWIG_IsOK(ecode1)) {
14029 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14030 }
14031 arg1 = static_cast< wxWindowVariant >(val1);
14032 }
14033 {
14034 if (!wxPyCheckForApp()) SWIG_fail;
14035 PyThreadState* __tstate = wxPyBeginAllowThreads();
14036 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14037 wxPyEndAllowThreads(__tstate);
14038 if (PyErr_Occurred()) SWIG_fail;
14039 }
14040 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14041 return resultobj;
14042fail:
14043 return NULL;
14044}
14045
14046
14047SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14048 PyObject *obj;
14049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14050 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14051 return SWIG_Py_Void();
14052}
14053
14054SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14055 return SWIG_Python_InitShadowInstance(args);
14056}
14057
14058SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14059 PyObject *resultobj = 0;
14060 int arg1 ;
14061 wxMouseEvent *arg2 = 0 ;
14062 long arg3 ;
14063 long arg4 ;
14064 wxTextUrlEvent *result = 0 ;
14065 int val1 ;
14066 int ecode1 = 0 ;
14067 void *argp2 = 0 ;
14068 int res2 = 0 ;
14069 long val3 ;
14070 int ecode3 = 0 ;
14071 long val4 ;
14072 int ecode4 = 0 ;
14073 PyObject * obj0 = 0 ;
14074 PyObject * obj1 = 0 ;
14075 PyObject * obj2 = 0 ;
14076 PyObject * obj3 = 0 ;
14077 char * kwnames[] = {
14078 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14079 };
14080
14081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14082 ecode1 = SWIG_AsVal_int(obj0, &val1);
14083 if (!SWIG_IsOK(ecode1)) {
14084 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14085 }
14086 arg1 = static_cast< int >(val1);
14087 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14088 if (!SWIG_IsOK(res2)) {
14089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14090 }
14091 if (!argp2) {
14092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14093 }
14094 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14095 ecode3 = SWIG_AsVal_long(obj2, &val3);
14096 if (!SWIG_IsOK(ecode3)) {
14097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14098 }
14099 arg3 = static_cast< long >(val3);
14100 ecode4 = SWIG_AsVal_long(obj3, &val4);
14101 if (!SWIG_IsOK(ecode4)) {
14102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14103 }
14104 arg4 = static_cast< long >(val4);
14105 {
14106 PyThreadState* __tstate = wxPyBeginAllowThreads();
14107 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14108 wxPyEndAllowThreads(__tstate);
14109 if (PyErr_Occurred()) SWIG_fail;
14110 }
14111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14112 return resultobj;
14113fail:
14114 return NULL;
d14a1e28
RD
14115}
14116
14117
0085ce49
RD
14118SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14119 PyObject *resultobj = 0;
14120 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14121 wxMouseEvent *result = 0 ;
14122 void *argp1 = 0 ;
14123 int res1 = 0 ;
14124 PyObject *swig_obj[1] ;
14125
14126 if (!args) SWIG_fail;
14127 swig_obj[0] = args;
14128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14129 if (!SWIG_IsOK(res1)) {
14130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14131 }
14132 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14133 {
14134 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 14135 {
0085ce49
RD
14136 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14137 result = (wxMouseEvent *) &_result_ref;
4f89f6a3 14138 }
0085ce49
RD
14139 wxPyEndAllowThreads(__tstate);
14140 if (PyErr_Occurred()) SWIG_fail;
14141 }
14142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14143 return resultobj;
14144fail:
14145 return NULL;
d14a1e28
RD
14146}
14147
14148
0085ce49
RD
14149SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14150 PyObject *resultobj = 0;
14151 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14152 long result;
14153 void *argp1 = 0 ;
14154 int res1 = 0 ;
14155 PyObject *swig_obj[1] ;
14156
14157 if (!args) SWIG_fail;
14158 swig_obj[0] = args;
14159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14160 if (!SWIG_IsOK(res1)) {
14161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14162 }
14163 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14164 {
14165 PyThreadState* __tstate = wxPyBeginAllowThreads();
14166 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14167 wxPyEndAllowThreads(__tstate);
14168 if (PyErr_Occurred()) SWIG_fail;
14169 }
14170 resultobj = SWIG_From_long(static_cast< long >(result));
14171 return resultobj;
14172fail:
14173 return NULL;
d14a1e28
RD
14174}
14175
14176
0085ce49
RD
14177SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14178 PyObject *resultobj = 0;
14179 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14180 long result;
14181 void *argp1 = 0 ;
14182 int res1 = 0 ;
14183 PyObject *swig_obj[1] ;
14184
14185 if (!args) SWIG_fail;
14186 swig_obj[0] = args;
14187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14188 if (!SWIG_IsOK(res1)) {
14189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14190 }
14191 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14192 {
14193 PyThreadState* __tstate = wxPyBeginAllowThreads();
14194 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14195 wxPyEndAllowThreads(__tstate);
14196 if (PyErr_Occurred()) SWIG_fail;
14197 }
14198 resultobj = SWIG_From_long(static_cast< long >(result));
14199 return resultobj;
14200fail:
14201 return NULL;
d14a1e28
RD
14202}
14203
14204
0085ce49
RD
14205SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14206 PyObject *obj;
14207 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14208 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14209 return SWIG_Py_Void();
d14a1e28
RD
14210}
14211
0085ce49
RD
14212SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14213 return SWIG_Python_InitShadowInstance(args);
14214}
d14a1e28 14215
0085ce49
RD
14216SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14217 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14218 return 1;
14219}
14220
14221
14222SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14223 PyObject *pyobj = 0;
14224
14225 {
14226#if wxUSE_UNICODE
14227 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14228#else
14229 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14230#endif
14231 }
14232 return pyobj;
14233}
14234
14235
14236SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14237 PyObject *resultobj = 0;
14238 wxWindow *arg1 = (wxWindow *) 0 ;
14239 int arg2 = (int) -1 ;
14240 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14241 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14242 wxSize const &arg4_defvalue = wxDefaultSize ;
14243 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14244 long arg5 = (long) wxSB_HORIZONTAL ;
14245 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14246 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14247 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14248 wxString *arg7 = (wxString *) &arg7_defvalue ;
14249 wxScrollBar *result = 0 ;
14250 void *argp1 = 0 ;
14251 int res1 = 0 ;
14252 int val2 ;
14253 int ecode2 = 0 ;
14254 wxPoint temp3 ;
14255 wxSize temp4 ;
14256 long val5 ;
14257 int ecode5 = 0 ;
14258 void *argp6 = 0 ;
14259 int res6 = 0 ;
14260 bool temp7 = false ;
14261 PyObject * obj0 = 0 ;
14262 PyObject * obj1 = 0 ;
14263 PyObject * obj2 = 0 ;
14264 PyObject * obj3 = 0 ;
14265 PyObject * obj4 = 0 ;
14266 PyObject * obj5 = 0 ;
14267 PyObject * obj6 = 0 ;
14268 char * kwnames[] = {
14269 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14270 };
14271
14272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14274 if (!SWIG_IsOK(res1)) {
14275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14276 }
14277 arg1 = reinterpret_cast< wxWindow * >(argp1);
14278 if (obj1) {
14279 ecode2 = SWIG_AsVal_int(obj1, &val2);
14280 if (!SWIG_IsOK(ecode2)) {
14281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14282 }
14283 arg2 = static_cast< int >(val2);
14284 }
14285 if (obj2) {
d14a1e28 14286 {
0085ce49
RD
14287 arg3 = &temp3;
14288 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14289 }
0085ce49
RD
14290 }
14291 if (obj3) {
4f89f6a3 14292 {
0085ce49
RD
14293 arg4 = &temp4;
14294 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 14295 }
0085ce49
RD
14296 }
14297 if (obj4) {
14298 ecode5 = SWIG_AsVal_long(obj4, &val5);
14299 if (!SWIG_IsOK(ecode5)) {
14300 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14301 }
14302 arg5 = static_cast< long >(val5);
14303 }
14304 if (obj5) {
14305 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14306 if (!SWIG_IsOK(res6)) {
14307 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14308 }
14309 if (!argp6) {
14310 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14311 }
14312 arg6 = reinterpret_cast< wxValidator * >(argp6);
14313 }
14314 if (obj6) {
14315 {
14316 arg7 = wxString_in_helper(obj6);
14317 if (arg7 == NULL) SWIG_fail;
14318 temp7 = true;
14319 }
14320 }
14321 {
14322 if (!wxPyCheckForApp()) SWIG_fail;
14323 PyThreadState* __tstate = wxPyBeginAllowThreads();
14324 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14325 wxPyEndAllowThreads(__tstate);
14326 if (PyErr_Occurred()) SWIG_fail;
14327 }
14328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14329 {
14330 if (temp7)
14331 delete arg7;
14332 }
14333 return resultobj;
14334fail:
14335 {
14336 if (temp7)
14337 delete arg7;
14338 }
14339 return NULL;
d14a1e28
RD
14340}
14341
14342
0085ce49
RD
14343SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14344 PyObject *resultobj = 0;
14345 wxScrollBar *result = 0 ;
14346
14347 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14348 {
14349 if (!wxPyCheckForApp()) SWIG_fail;
14350 PyThreadState* __tstate = wxPyBeginAllowThreads();
14351 result = (wxScrollBar *)new wxScrollBar();
14352 wxPyEndAllowThreads(__tstate);
14353 if (PyErr_Occurred()) SWIG_fail;
14354 }
14355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14356 return resultobj;
14357fail:
14358 return NULL;
14359}
14360
14361
14362SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14363 PyObject *resultobj = 0;
14364 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14365 wxWindow *arg2 = (wxWindow *) 0 ;
14366 int arg3 = (int) -1 ;
14367 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14368 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14369 wxSize const &arg5_defvalue = wxDefaultSize ;
14370 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14371 long arg6 = (long) wxSB_HORIZONTAL ;
14372 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14373 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14374 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14375 wxString *arg8 = (wxString *) &arg8_defvalue ;
14376 bool result;
14377 void *argp1 = 0 ;
14378 int res1 = 0 ;
14379 void *argp2 = 0 ;
14380 int res2 = 0 ;
14381 int val3 ;
14382 int ecode3 = 0 ;
14383 wxPoint temp4 ;
14384 wxSize temp5 ;
14385 long val6 ;
14386 int ecode6 = 0 ;
14387 void *argp7 = 0 ;
14388 int res7 = 0 ;
14389 bool temp8 = false ;
14390 PyObject * obj0 = 0 ;
14391 PyObject * obj1 = 0 ;
14392 PyObject * obj2 = 0 ;
14393 PyObject * obj3 = 0 ;
14394 PyObject * obj4 = 0 ;
14395 PyObject * obj5 = 0 ;
14396 PyObject * obj6 = 0 ;
14397 PyObject * obj7 = 0 ;
14398 char * kwnames[] = {
14399 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14400 };
14401
14402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14404 if (!SWIG_IsOK(res1)) {
14405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14406 }
14407 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14408 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14409 if (!SWIG_IsOK(res2)) {
14410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14411 }
14412 arg2 = reinterpret_cast< wxWindow * >(argp2);
14413 if (obj2) {
14414 ecode3 = SWIG_AsVal_int(obj2, &val3);
14415 if (!SWIG_IsOK(ecode3)) {
14416 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14417 }
14418 arg3 = static_cast< int >(val3);
14419 }
14420 if (obj3) {
093d3ff1 14421 {
0085ce49
RD
14422 arg4 = &temp4;
14423 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 14424 }
0085ce49
RD
14425 }
14426 if (obj4) {
d14a1e28 14427 {
0085ce49
RD
14428 arg5 = &temp5;
14429 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14430 }
14431 }
14432 if (obj5) {
14433 ecode6 = SWIG_AsVal_long(obj5, &val6);
14434 if (!SWIG_IsOK(ecode6)) {
14435 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14436 }
14437 arg6 = static_cast< long >(val6);
14438 }
14439 if (obj6) {
14440 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14441 if (!SWIG_IsOK(res7)) {
14442 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 14443 }
0085ce49
RD
14444 if (!argp7) {
14445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14446 }
14447 arg7 = reinterpret_cast< wxValidator * >(argp7);
14448 }
14449 if (obj7) {
4f89f6a3 14450 {
0085ce49
RD
14451 arg8 = wxString_in_helper(obj7);
14452 if (arg8 == NULL) SWIG_fail;
14453 temp8 = true;
4f89f6a3 14454 }
0085ce49
RD
14455 }
14456 {
14457 PyThreadState* __tstate = wxPyBeginAllowThreads();
14458 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14459 wxPyEndAllowThreads(__tstate);
14460 if (PyErr_Occurred()) SWIG_fail;
14461 }
14462 {
14463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14464 }
14465 {
14466 if (temp8)
14467 delete arg8;
14468 }
14469 return resultobj;
14470fail:
14471 {
14472 if (temp8)
14473 delete arg8;
14474 }
14475 return NULL;
d14a1e28
RD
14476}
14477
14478
0085ce49
RD
14479SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14480 PyObject *resultobj = 0;
14481 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14482 int result;
14483 void *argp1 = 0 ;
14484 int res1 = 0 ;
14485 PyObject *swig_obj[1] ;
14486
14487 if (!args) SWIG_fail;
14488 swig_obj[0] = args;
14489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14490 if (!SWIG_IsOK(res1)) {
14491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14492 }
14493 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14494 {
14495 PyThreadState* __tstate = wxPyBeginAllowThreads();
14496 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14497 wxPyEndAllowThreads(__tstate);
14498 if (PyErr_Occurred()) SWIG_fail;
14499 }
14500 resultobj = SWIG_From_int(static_cast< int >(result));
14501 return resultobj;
14502fail:
14503 return NULL;
d14a1e28
RD
14504}
14505
14506
0085ce49
RD
14507SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14508 PyObject *resultobj = 0;
14509 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14510 int result;
14511 void *argp1 = 0 ;
14512 int res1 = 0 ;
14513 PyObject *swig_obj[1] ;
14514
14515 if (!args) SWIG_fail;
14516 swig_obj[0] = args;
14517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14518 if (!SWIG_IsOK(res1)) {
14519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14520 }
14521 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14522 {
14523 PyThreadState* __tstate = wxPyBeginAllowThreads();
14524 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14525 wxPyEndAllowThreads(__tstate);
14526 if (PyErr_Occurred()) SWIG_fail;
14527 }
14528 resultobj = SWIG_From_int(static_cast< int >(result));
14529 return resultobj;
14530fail:
14531 return NULL;
d14a1e28
RD
14532}
14533
14534
0085ce49
RD
14535SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14536 PyObject *resultobj = 0;
14537 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14538 int result;
14539 void *argp1 = 0 ;
14540 int res1 = 0 ;
14541 PyObject *swig_obj[1] ;
14542
14543 if (!args) SWIG_fail;
14544 swig_obj[0] = args;
14545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14546 if (!SWIG_IsOK(res1)) {
14547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14548 }
14549 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14550 {
14551 PyThreadState* __tstate = wxPyBeginAllowThreads();
14552 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14553 wxPyEndAllowThreads(__tstate);
14554 if (PyErr_Occurred()) SWIG_fail;
14555 }
14556 resultobj = SWIG_From_int(static_cast< int >(result));
14557 return resultobj;
14558fail:
14559 return NULL;
d14a1e28
RD
14560}
14561
14562
0085ce49
RD
14563SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14564 PyObject *resultobj = 0;
14565 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14566 int result;
14567 void *argp1 = 0 ;
14568 int res1 = 0 ;
14569 PyObject *swig_obj[1] ;
14570
14571 if (!args) SWIG_fail;
14572 swig_obj[0] = args;
14573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14574 if (!SWIG_IsOK(res1)) {
14575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14576 }
14577 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14578 {
14579 PyThreadState* __tstate = wxPyBeginAllowThreads();
14580 result = (int)((wxScrollBar const *)arg1)->GetRange();
14581 wxPyEndAllowThreads(__tstate);
14582 if (PyErr_Occurred()) SWIG_fail;
14583 }
14584 resultobj = SWIG_From_int(static_cast< int >(result));
14585 return resultobj;
14586fail:
14587 return NULL;
d14a1e28
RD
14588}
14589
14590
0085ce49
RD
14591SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14592 PyObject *resultobj = 0;
14593 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14594 bool result;
14595 void *argp1 = 0 ;
14596 int res1 = 0 ;
14597 PyObject *swig_obj[1] ;
14598
14599 if (!args) SWIG_fail;
14600 swig_obj[0] = args;
14601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14602 if (!SWIG_IsOK(res1)) {
14603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14604 }
14605 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14606 {
14607 PyThreadState* __tstate = wxPyBeginAllowThreads();
14608 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14609 wxPyEndAllowThreads(__tstate);
14610 if (PyErr_Occurred()) SWIG_fail;
14611 }
14612 {
14613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14614 }
14615 return resultobj;
14616fail:
14617 return NULL;
14618}
14619
14620
14621SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14622 PyObject *resultobj = 0;
14623 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14624 int arg2 ;
14625 void *argp1 = 0 ;
14626 int res1 = 0 ;
14627 int val2 ;
14628 int ecode2 = 0 ;
14629 PyObject * obj0 = 0 ;
14630 PyObject * obj1 = 0 ;
14631 char * kwnames[] = {
14632 (char *) "self",(char *) "viewStart", NULL
14633 };
14634
14635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14637 if (!SWIG_IsOK(res1)) {
14638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14639 }
14640 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14641 ecode2 = SWIG_AsVal_int(obj1, &val2);
14642 if (!SWIG_IsOK(ecode2)) {
14643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14644 }
14645 arg2 = static_cast< int >(val2);
14646 {
14647 PyThreadState* __tstate = wxPyBeginAllowThreads();
14648 (arg1)->SetThumbPosition(arg2);
14649 wxPyEndAllowThreads(__tstate);
14650 if (PyErr_Occurred()) SWIG_fail;
14651 }
14652 resultobj = SWIG_Py_Void();
14653 return resultobj;
14654fail:
14655 return NULL;
14656}
14657
14658
14659SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14660 PyObject *resultobj = 0;
14661 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14662 SwigValueWrapper<wxVisualAttributes > result;
14663 int val1 ;
14664 int ecode1 = 0 ;
14665 PyObject * obj0 = 0 ;
14666 char * kwnames[] = {
14667 (char *) "variant", NULL
14668 };
14669
14670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14671 if (obj0) {
14672 ecode1 = SWIG_AsVal_int(obj0, &val1);
14673 if (!SWIG_IsOK(ecode1)) {
14674 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14675 }
14676 arg1 = static_cast< wxWindowVariant >(val1);
14677 }
14678 {
14679 if (!wxPyCheckForApp()) SWIG_fail;
14680 PyThreadState* __tstate = wxPyBeginAllowThreads();
14681 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14682 wxPyEndAllowThreads(__tstate);
14683 if (PyErr_Occurred()) SWIG_fail;
14684 }
14685 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14686 return resultobj;
14687fail:
14688 return NULL;
d14a1e28
RD
14689}
14690
14691
0085ce49
RD
14692SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14693 PyObject *obj;
14694 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14695 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14696 return SWIG_Py_Void();
d14a1e28
RD
14697}
14698
0085ce49
RD
14699SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14700 return SWIG_Python_InitShadowInstance(args);
14701}
d14a1e28 14702
0085ce49
RD
14703SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14704 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14705 return 1;
d14a1e28
RD
14706}
14707
14708
0085ce49
RD
14709SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14710 PyObject *pyobj = 0;
14711
14712 {
14713#if wxUSE_UNICODE
14714 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14715#else
14716 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14717#endif
14718 }
14719 return pyobj;
d14a1e28
RD
14720}
14721
14722
0085ce49
RD
14723SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14724 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14725 return 1;
d14a1e28
RD
14726}
14727
14728
0085ce49
RD
14729SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14730 PyObject *pyobj = 0;
14731
14732 {
14733#if wxUSE_UNICODE
14734 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14735#else
14736 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14737#endif
14738 }
14739 return pyobj;
14740}
14741
14742
14743SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14744 PyObject *resultobj = 0;
14745 wxWindow *arg1 = (wxWindow *) 0 ;
14746 int arg2 = (int) -1 ;
14747 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14748 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14749 wxSize const &arg4_defvalue = wxDefaultSize ;
14750 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14751 long arg5 = (long) wxSP_HORIZONTAL ;
14752 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14753 wxString *arg6 = (wxString *) &arg6_defvalue ;
14754 wxSpinButton *result = 0 ;
14755 void *argp1 = 0 ;
14756 int res1 = 0 ;
14757 int val2 ;
14758 int ecode2 = 0 ;
14759 wxPoint temp3 ;
14760 wxSize temp4 ;
14761 long val5 ;
14762 int ecode5 = 0 ;
14763 bool temp6 = false ;
14764 PyObject * obj0 = 0 ;
14765 PyObject * obj1 = 0 ;
14766 PyObject * obj2 = 0 ;
14767 PyObject * obj3 = 0 ;
14768 PyObject * obj4 = 0 ;
14769 PyObject * obj5 = 0 ;
14770 char * kwnames[] = {
14771 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14772 };
14773
14774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14776 if (!SWIG_IsOK(res1)) {
14777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14778 }
14779 arg1 = reinterpret_cast< wxWindow * >(argp1);
14780 if (obj1) {
14781 ecode2 = SWIG_AsVal_int(obj1, &val2);
14782 if (!SWIG_IsOK(ecode2)) {
14783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14784 }
14785 arg2 = static_cast< int >(val2);
14786 }
14787 if (obj2) {
093d3ff1 14788 {
0085ce49
RD
14789 arg3 = &temp3;
14790 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14791 }
0085ce49
RD
14792 }
14793 if (obj3) {
d14a1e28 14794 {
0085ce49
RD
14795 arg4 = &temp4;
14796 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14797 }
0085ce49
RD
14798 }
14799 if (obj4) {
14800 ecode5 = SWIG_AsVal_long(obj4, &val5);
14801 if (!SWIG_IsOK(ecode5)) {
14802 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14803 }
14804 arg5 = static_cast< long >(val5);
14805 }
14806 if (obj5) {
d14a1e28 14807 {
0085ce49
RD
14808 arg6 = wxString_in_helper(obj5);
14809 if (arg6 == NULL) SWIG_fail;
14810 temp6 = true;
d14a1e28 14811 }
0085ce49
RD
14812 }
14813 {
14814 if (!wxPyCheckForApp()) SWIG_fail;
14815 PyThreadState* __tstate = wxPyBeginAllowThreads();
14816 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14817 wxPyEndAllowThreads(__tstate);
14818 if (PyErr_Occurred()) SWIG_fail;
14819 }
14820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14821 {
14822 if (temp6)
14823 delete arg6;
14824 }
14825 return resultobj;
14826fail:
14827 {
14828 if (temp6)
14829 delete arg6;
14830 }
14831 return NULL;
d14a1e28
RD
14832}
14833
14834
0085ce49
RD
14835SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14836 PyObject *resultobj = 0;
14837 wxSpinButton *result = 0 ;
14838
14839 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14840 {
14841 if (!wxPyCheckForApp()) SWIG_fail;
14842 PyThreadState* __tstate = wxPyBeginAllowThreads();
14843 result = (wxSpinButton *)new wxSpinButton();
14844 wxPyEndAllowThreads(__tstate);
14845 if (PyErr_Occurred()) SWIG_fail;
14846 }
14847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14848 return resultobj;
14849fail:
14850 return NULL;
14851}
14852
14853
14854SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14855 PyObject *resultobj = 0;
14856 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14857 wxWindow *arg2 = (wxWindow *) 0 ;
14858 int arg3 = (int) -1 ;
14859 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14860 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14861 wxSize const &arg5_defvalue = wxDefaultSize ;
14862 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14863 long arg6 = (long) wxSP_HORIZONTAL ;
14864 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14865 wxString *arg7 = (wxString *) &arg7_defvalue ;
14866 bool result;
14867 void *argp1 = 0 ;
14868 int res1 = 0 ;
14869 void *argp2 = 0 ;
14870 int res2 = 0 ;
14871 int val3 ;
14872 int ecode3 = 0 ;
14873 wxPoint temp4 ;
14874 wxSize temp5 ;
14875 long val6 ;
14876 int ecode6 = 0 ;
14877 bool temp7 = false ;
14878 PyObject * obj0 = 0 ;
14879 PyObject * obj1 = 0 ;
14880 PyObject * obj2 = 0 ;
14881 PyObject * obj3 = 0 ;
14882 PyObject * obj4 = 0 ;
14883 PyObject * obj5 = 0 ;
14884 PyObject * obj6 = 0 ;
14885 char * kwnames[] = {
14886 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14887 };
14888
14889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14891 if (!SWIG_IsOK(res1)) {
14892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14893 }
14894 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14895 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14896 if (!SWIG_IsOK(res2)) {
14897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14898 }
14899 arg2 = reinterpret_cast< wxWindow * >(argp2);
14900 if (obj2) {
14901 ecode3 = SWIG_AsVal_int(obj2, &val3);
14902 if (!SWIG_IsOK(ecode3)) {
14903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14904 }
14905 arg3 = static_cast< int >(val3);
14906 }
14907 if (obj3) {
d14a1e28 14908 {
0085ce49
RD
14909 arg4 = &temp4;
14910 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14911 }
0085ce49
RD
14912 }
14913 if (obj4) {
d14a1e28 14914 {
0085ce49
RD
14915 arg5 = &temp5;
14916 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 14917 }
0085ce49
RD
14918 }
14919 if (obj5) {
14920 ecode6 = SWIG_AsVal_long(obj5, &val6);
14921 if (!SWIG_IsOK(ecode6)) {
14922 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14923 }
14924 arg6 = static_cast< long >(val6);
14925 }
14926 if (obj6) {
d14a1e28 14927 {
0085ce49
RD
14928 arg7 = wxString_in_helper(obj6);
14929 if (arg7 == NULL) SWIG_fail;
14930 temp7 = true;
d14a1e28 14931 }
0085ce49
RD
14932 }
14933 {
14934 PyThreadState* __tstate = wxPyBeginAllowThreads();
14935 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14936 wxPyEndAllowThreads(__tstate);
14937 if (PyErr_Occurred()) SWIG_fail;
14938 }
14939 {
14940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14941 }
14942 {
14943 if (temp7)
14944 delete arg7;
14945 }
14946 return resultobj;
14947fail:
14948 {
14949 if (temp7)
14950 delete arg7;
14951 }
14952 return NULL;
d14a1e28
RD
14953}
14954
14955
0085ce49
RD
14956SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14957 PyObject *resultobj = 0;
14958 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14959 int result;
14960 void *argp1 = 0 ;
14961 int res1 = 0 ;
14962 PyObject *swig_obj[1] ;
14963
14964 if (!args) SWIG_fail;
14965 swig_obj[0] = args;
14966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14967 if (!SWIG_IsOK(res1)) {
14968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14969 }
14970 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14971 {
14972 PyThreadState* __tstate = wxPyBeginAllowThreads();
14973 result = (int)((wxSpinButton const *)arg1)->GetValue();
14974 wxPyEndAllowThreads(__tstate);
14975 if (PyErr_Occurred()) SWIG_fail;
14976 }
14977 resultobj = SWIG_From_int(static_cast< int >(result));
14978 return resultobj;
14979fail:
14980 return NULL;
d14a1e28
RD
14981}
14982
14983
0085ce49
RD
14984SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14985 PyObject *resultobj = 0;
14986 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14987 int result;
14988 void *argp1 = 0 ;
14989 int res1 = 0 ;
14990 PyObject *swig_obj[1] ;
14991
14992 if (!args) SWIG_fail;
14993 swig_obj[0] = args;
14994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14995 if (!SWIG_IsOK(res1)) {
14996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14997 }
14998 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14999 {
15000 PyThreadState* __tstate = wxPyBeginAllowThreads();
15001 result = (int)((wxSpinButton const *)arg1)->GetMin();
15002 wxPyEndAllowThreads(__tstate);
15003 if (PyErr_Occurred()) SWIG_fail;
15004 }
15005 resultobj = SWIG_From_int(static_cast< int >(result));
15006 return resultobj;
15007fail:
15008 return NULL;
d14a1e28
RD
15009}
15010
15011
0085ce49
RD
15012SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15013 PyObject *resultobj = 0;
15014 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15015 int result;
15016 void *argp1 = 0 ;
15017 int res1 = 0 ;
15018 PyObject *swig_obj[1] ;
15019
15020 if (!args) SWIG_fail;
15021 swig_obj[0] = args;
15022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15023 if (!SWIG_IsOK(res1)) {
15024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15025 }
15026 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15027 {
15028 PyThreadState* __tstate = wxPyBeginAllowThreads();
15029 result = (int)((wxSpinButton const *)arg1)->GetMax();
15030 wxPyEndAllowThreads(__tstate);
15031 if (PyErr_Occurred()) SWIG_fail;
15032 }
15033 resultobj = SWIG_From_int(static_cast< int >(result));
15034 return resultobj;
15035fail:
15036 return NULL;
15037}
15038
15039
15040SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15041 PyObject *resultobj = 0;
15042 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15043 int arg2 ;
15044 void *argp1 = 0 ;
15045 int res1 = 0 ;
15046 int val2 ;
15047 int ecode2 = 0 ;
15048 PyObject * obj0 = 0 ;
15049 PyObject * obj1 = 0 ;
15050 char * kwnames[] = {
15051 (char *) "self",(char *) "val", NULL
15052 };
15053
15054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15056 if (!SWIG_IsOK(res1)) {
15057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15058 }
15059 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15060 ecode2 = SWIG_AsVal_int(obj1, &val2);
15061 if (!SWIG_IsOK(ecode2)) {
15062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15063 }
15064 arg2 = static_cast< int >(val2);
15065 {
15066 PyThreadState* __tstate = wxPyBeginAllowThreads();
15067 (arg1)->SetValue(arg2);
15068 wxPyEndAllowThreads(__tstate);
15069 if (PyErr_Occurred()) SWIG_fail;
15070 }
15071 resultobj = SWIG_Py_Void();
15072 return resultobj;
15073fail:
15074 return NULL;
15075}
15076
15077
15078SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15079 PyObject *resultobj = 0;
15080 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15081 int arg2 ;
15082 void *argp1 = 0 ;
15083 int res1 = 0 ;
15084 int val2 ;
15085 int ecode2 = 0 ;
15086 PyObject * obj0 = 0 ;
15087 PyObject * obj1 = 0 ;
15088 char * kwnames[] = {
15089 (char *) "self",(char *) "minVal", NULL
15090 };
15091
15092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15094 if (!SWIG_IsOK(res1)) {
15095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15096 }
15097 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15098 ecode2 = SWIG_AsVal_int(obj1, &val2);
15099 if (!SWIG_IsOK(ecode2)) {
15100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15101 }
15102 arg2 = static_cast< int >(val2);
15103 {
15104 PyThreadState* __tstate = wxPyBeginAllowThreads();
15105 (arg1)->SetMin(arg2);
15106 wxPyEndAllowThreads(__tstate);
15107 if (PyErr_Occurred()) SWIG_fail;
15108 }
15109 resultobj = SWIG_Py_Void();
15110 return resultobj;
15111fail:
15112 return NULL;
15113}
15114
15115
15116SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15117 PyObject *resultobj = 0;
15118 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15119 int arg2 ;
15120 void *argp1 = 0 ;
15121 int res1 = 0 ;
15122 int val2 ;
15123 int ecode2 = 0 ;
15124 PyObject * obj0 = 0 ;
15125 PyObject * obj1 = 0 ;
15126 char * kwnames[] = {
15127 (char *) "self",(char *) "maxVal", NULL
15128 };
15129
15130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15132 if (!SWIG_IsOK(res1)) {
15133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15134 }
15135 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15136 ecode2 = SWIG_AsVal_int(obj1, &val2);
15137 if (!SWIG_IsOK(ecode2)) {
15138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15139 }
15140 arg2 = static_cast< int >(val2);
15141 {
15142 PyThreadState* __tstate = wxPyBeginAllowThreads();
15143 (arg1)->SetMax(arg2);
15144 wxPyEndAllowThreads(__tstate);
15145 if (PyErr_Occurred()) SWIG_fail;
15146 }
15147 resultobj = SWIG_Py_Void();
15148 return resultobj;
15149fail:
15150 return NULL;
15151}
15152
15153
15154SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15155 PyObject *resultobj = 0;
15156 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15157 int arg2 ;
15158 int arg3 ;
15159 void *argp1 = 0 ;
15160 int res1 = 0 ;
15161 int val2 ;
15162 int ecode2 = 0 ;
15163 int val3 ;
15164 int ecode3 = 0 ;
15165 PyObject * obj0 = 0 ;
15166 PyObject * obj1 = 0 ;
15167 PyObject * obj2 = 0 ;
15168 char * kwnames[] = {
15169 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15170 };
15171
15172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15174 if (!SWIG_IsOK(res1)) {
15175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15176 }
15177 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15178 ecode2 = SWIG_AsVal_int(obj1, &val2);
15179 if (!SWIG_IsOK(ecode2)) {
15180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15181 }
15182 arg2 = static_cast< int >(val2);
15183 ecode3 = SWIG_AsVal_int(obj2, &val3);
15184 if (!SWIG_IsOK(ecode3)) {
15185 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15186 }
15187 arg3 = static_cast< int >(val3);
15188 {
15189 PyThreadState* __tstate = wxPyBeginAllowThreads();
15190 (arg1)->SetRange(arg2,arg3);
15191 wxPyEndAllowThreads(__tstate);
15192 if (PyErr_Occurred()) SWIG_fail;
15193 }
15194 resultobj = SWIG_Py_Void();
15195 return resultobj;
15196fail:
15197 return NULL;
d14a1e28
RD
15198}
15199
15200
0085ce49
RD
15201SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15202 PyObject *resultobj = 0;
15203 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15204 bool result;
15205 void *argp1 = 0 ;
15206 int res1 = 0 ;
15207 PyObject *swig_obj[1] ;
15208
15209 if (!args) SWIG_fail;
15210 swig_obj[0] = args;
15211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15212 if (!SWIG_IsOK(res1)) {
15213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15214 }
15215 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15216 {
15217 PyThreadState* __tstate = wxPyBeginAllowThreads();
15218 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15219 wxPyEndAllowThreads(__tstate);
15220 if (PyErr_Occurred()) SWIG_fail;
15221 }
15222 {
15223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15224 }
15225 return resultobj;
15226fail:
15227 return NULL;
d14a1e28
RD
15228}
15229
15230
0085ce49
RD
15231SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15232 PyObject *resultobj = 0;
15233 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15234 SwigValueWrapper<wxVisualAttributes > result;
15235 int val1 ;
15236 int ecode1 = 0 ;
15237 PyObject * obj0 = 0 ;
15238 char * kwnames[] = {
15239 (char *) "variant", NULL
15240 };
15241
15242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15243 if (obj0) {
15244 ecode1 = SWIG_AsVal_int(obj0, &val1);
15245 if (!SWIG_IsOK(ecode1)) {
15246 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15247 }
15248 arg1 = static_cast< wxWindowVariant >(val1);
15249 }
15250 {
15251 if (!wxPyCheckForApp()) SWIG_fail;
15252 PyThreadState* __tstate = wxPyBeginAllowThreads();
15253 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15254 wxPyEndAllowThreads(__tstate);
15255 if (PyErr_Occurred()) SWIG_fail;
15256 }
15257 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15258 return resultobj;
15259fail:
15260 return NULL;
15261}
15262
15263
15264SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15265 PyObject *obj;
15266 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15267 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15268 return SWIG_Py_Void();
15269}
15270
15271SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15272 return SWIG_Python_InitShadowInstance(args);
15273}
15274
15275SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15276 PyObject *resultobj = 0;
15277 wxWindow *arg1 = (wxWindow *) 0 ;
15278 int arg2 = (int) -1 ;
15279 wxString const &arg3_defvalue = wxPyEmptyString ;
15280 wxString *arg3 = (wxString *) &arg3_defvalue ;
15281 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15282 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15283 wxSize const &arg5_defvalue = wxDefaultSize ;
15284 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15285 long arg6 = (long) wxSP_ARROW_KEYS ;
15286 int arg7 = (int) 0 ;
15287 int arg8 = (int) 100 ;
15288 int arg9 = (int) 0 ;
15289 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15290 wxString *arg10 = (wxString *) &arg10_defvalue ;
15291 wxSpinCtrl *result = 0 ;
15292 void *argp1 = 0 ;
15293 int res1 = 0 ;
15294 int val2 ;
15295 int ecode2 = 0 ;
15296 bool temp3 = false ;
15297 wxPoint temp4 ;
15298 wxSize temp5 ;
15299 long val6 ;
15300 int ecode6 = 0 ;
15301 int val7 ;
15302 int ecode7 = 0 ;
15303 int val8 ;
15304 int ecode8 = 0 ;
15305 int val9 ;
15306 int ecode9 = 0 ;
15307 bool temp10 = false ;
15308 PyObject * obj0 = 0 ;
15309 PyObject * obj1 = 0 ;
15310 PyObject * obj2 = 0 ;
15311 PyObject * obj3 = 0 ;
15312 PyObject * obj4 = 0 ;
15313 PyObject * obj5 = 0 ;
15314 PyObject * obj6 = 0 ;
15315 PyObject * obj7 = 0 ;
15316 PyObject * obj8 = 0 ;
15317 PyObject * obj9 = 0 ;
15318 char * kwnames[] = {
15319 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15320 };
15321
15322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15324 if (!SWIG_IsOK(res1)) {
15325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15326 }
15327 arg1 = reinterpret_cast< wxWindow * >(argp1);
15328 if (obj1) {
15329 ecode2 = SWIG_AsVal_int(obj1, &val2);
15330 if (!SWIG_IsOK(ecode2)) {
15331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15332 }
15333 arg2 = static_cast< int >(val2);
15334 }
15335 if (obj2) {
093d3ff1 15336 {
0085ce49
RD
15337 arg3 = wxString_in_helper(obj2);
15338 if (arg3 == NULL) SWIG_fail;
15339 temp3 = true;
093d3ff1 15340 }
0085ce49
RD
15341 }
15342 if (obj3) {
093d3ff1 15343 {
0085ce49
RD
15344 arg4 = &temp4;
15345 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 15346 }
0085ce49
RD
15347 }
15348 if (obj4) {
d14a1e28 15349 {
0085ce49
RD
15350 arg5 = &temp5;
15351 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15352 }
0085ce49
RD
15353 }
15354 if (obj5) {
15355 ecode6 = SWIG_AsVal_long(obj5, &val6);
15356 if (!SWIG_IsOK(ecode6)) {
15357 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15358 }
15359 arg6 = static_cast< long >(val6);
15360 }
15361 if (obj6) {
15362 ecode7 = SWIG_AsVal_int(obj6, &val7);
15363 if (!SWIG_IsOK(ecode7)) {
15364 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15365 }
15366 arg7 = static_cast< int >(val7);
15367 }
15368 if (obj7) {
15369 ecode8 = SWIG_AsVal_int(obj7, &val8);
15370 if (!SWIG_IsOK(ecode8)) {
15371 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15372 }
15373 arg8 = static_cast< int >(val8);
15374 }
15375 if (obj8) {
15376 ecode9 = SWIG_AsVal_int(obj8, &val9);
15377 if (!SWIG_IsOK(ecode9)) {
15378 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15379 }
15380 arg9 = static_cast< int >(val9);
15381 }
15382 if (obj9) {
d14a1e28 15383 {
0085ce49
RD
15384 arg10 = wxString_in_helper(obj9);
15385 if (arg10 == NULL) SWIG_fail;
15386 temp10 = true;
d14a1e28 15387 }
0085ce49
RD
15388 }
15389 {
15390 if (!wxPyCheckForApp()) SWIG_fail;
15391 PyThreadState* __tstate = wxPyBeginAllowThreads();
15392 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15393 wxPyEndAllowThreads(__tstate);
15394 if (PyErr_Occurred()) SWIG_fail;
15395 }
15396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15397 {
15398 if (temp3)
15399 delete arg3;
15400 }
15401 {
15402 if (temp10)
15403 delete arg10;
15404 }
15405 return resultobj;
15406fail:
15407 {
15408 if (temp3)
15409 delete arg3;
15410 }
15411 {
15412 if (temp10)
15413 delete arg10;
15414 }
15415 return NULL;
d14a1e28
RD
15416}
15417
15418
0085ce49
RD
15419SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15420 PyObject *resultobj = 0;
15421 wxSpinCtrl *result = 0 ;
15422
15423 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15424 {
15425 if (!wxPyCheckForApp()) SWIG_fail;
15426 PyThreadState* __tstate = wxPyBeginAllowThreads();
15427 result = (wxSpinCtrl *)new wxSpinCtrl();
15428 wxPyEndAllowThreads(__tstate);
15429 if (PyErr_Occurred()) SWIG_fail;
15430 }
15431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15432 return resultobj;
15433fail:
15434 return NULL;
15435}
15436
15437
15438SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15439 PyObject *resultobj = 0;
15440 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15441 wxWindow *arg2 = (wxWindow *) 0 ;
15442 int arg3 = (int) -1 ;
15443 wxString const &arg4_defvalue = wxPyEmptyString ;
15444 wxString *arg4 = (wxString *) &arg4_defvalue ;
15445 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15446 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15447 wxSize const &arg6_defvalue = wxDefaultSize ;
15448 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15449 long arg7 = (long) wxSP_ARROW_KEYS ;
15450 int arg8 = (int) 0 ;
15451 int arg9 = (int) 100 ;
15452 int arg10 = (int) 0 ;
15453 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15454 wxString *arg11 = (wxString *) &arg11_defvalue ;
15455 bool result;
15456 void *argp1 = 0 ;
15457 int res1 = 0 ;
15458 void *argp2 = 0 ;
15459 int res2 = 0 ;
15460 int val3 ;
15461 int ecode3 = 0 ;
15462 bool temp4 = false ;
15463 wxPoint temp5 ;
15464 wxSize temp6 ;
15465 long val7 ;
15466 int ecode7 = 0 ;
15467 int val8 ;
15468 int ecode8 = 0 ;
15469 int val9 ;
15470 int ecode9 = 0 ;
15471 int val10 ;
15472 int ecode10 = 0 ;
15473 bool temp11 = false ;
15474 PyObject * obj0 = 0 ;
15475 PyObject * obj1 = 0 ;
15476 PyObject * obj2 = 0 ;
15477 PyObject * obj3 = 0 ;
15478 PyObject * obj4 = 0 ;
15479 PyObject * obj5 = 0 ;
15480 PyObject * obj6 = 0 ;
15481 PyObject * obj7 = 0 ;
15482 PyObject * obj8 = 0 ;
15483 PyObject * obj9 = 0 ;
15484 PyObject * obj10 = 0 ;
15485 char * kwnames[] = {
15486 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15487 };
15488
15489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15491 if (!SWIG_IsOK(res1)) {
15492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15493 }
15494 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15495 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15496 if (!SWIG_IsOK(res2)) {
15497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15498 }
15499 arg2 = reinterpret_cast< wxWindow * >(argp2);
15500 if (obj2) {
15501 ecode3 = SWIG_AsVal_int(obj2, &val3);
15502 if (!SWIG_IsOK(ecode3)) {
15503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15504 }
15505 arg3 = static_cast< int >(val3);
15506 }
15507 if (obj3) {
093d3ff1 15508 {
0085ce49
RD
15509 arg4 = wxString_in_helper(obj3);
15510 if (arg4 == NULL) SWIG_fail;
15511 temp4 = true;
093d3ff1 15512 }
0085ce49
RD
15513 }
15514 if (obj4) {
d14a1e28 15515 {
0085ce49
RD
15516 arg5 = &temp5;
15517 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15518 }
0085ce49
RD
15519 }
15520 if (obj5) {
093d3ff1 15521 {
0085ce49
RD
15522 arg6 = &temp6;
15523 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 15524 }
0085ce49
RD
15525 }
15526 if (obj6) {
15527 ecode7 = SWIG_AsVal_long(obj6, &val7);
15528 if (!SWIG_IsOK(ecode7)) {
15529 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15530 }
15531 arg7 = static_cast< long >(val7);
15532 }
15533 if (obj7) {
15534 ecode8 = SWIG_AsVal_int(obj7, &val8);
15535 if (!SWIG_IsOK(ecode8)) {
15536 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15537 }
15538 arg8 = static_cast< int >(val8);
15539 }
15540 if (obj8) {
15541 ecode9 = SWIG_AsVal_int(obj8, &val9);
15542 if (!SWIG_IsOK(ecode9)) {
15543 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15544 }
15545 arg9 = static_cast< int >(val9);
15546 }
15547 if (obj9) {
15548 ecode10 = SWIG_AsVal_int(obj9, &val10);
15549 if (!SWIG_IsOK(ecode10)) {
15550 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15551 }
15552 arg10 = static_cast< int >(val10);
15553 }
15554 if (obj10) {
d14a1e28 15555 {
0085ce49
RD
15556 arg11 = wxString_in_helper(obj10);
15557 if (arg11 == NULL) SWIG_fail;
15558 temp11 = true;
d14a1e28 15559 }
0085ce49
RD
15560 }
15561 {
15562 PyThreadState* __tstate = wxPyBeginAllowThreads();
15563 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15564 wxPyEndAllowThreads(__tstate);
15565 if (PyErr_Occurred()) SWIG_fail;
15566 }
15567 {
15568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15569 }
15570 {
15571 if (temp4)
15572 delete arg4;
15573 }
15574 {
15575 if (temp11)
15576 delete arg11;
15577 }
15578 return resultobj;
15579fail:
15580 {
15581 if (temp4)
15582 delete arg4;
15583 }
15584 {
15585 if (temp11)
15586 delete arg11;
15587 }
15588 return NULL;
d14a1e28
RD
15589}
15590
15591
0085ce49
RD
15592SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15593 PyObject *resultobj = 0;
15594 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15595 int result;
15596 void *argp1 = 0 ;
15597 int res1 = 0 ;
15598 PyObject *swig_obj[1] ;
15599
15600 if (!args) SWIG_fail;
15601 swig_obj[0] = args;
15602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15603 if (!SWIG_IsOK(res1)) {
15604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15605 }
15606 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15610 wxPyEndAllowThreads(__tstate);
15611 if (PyErr_Occurred()) SWIG_fail;
15612 }
15613 resultobj = SWIG_From_int(static_cast< int >(result));
15614 return resultobj;
15615fail:
15616 return NULL;
15617}
15618
15619
15620SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15621 PyObject *resultobj = 0;
15622 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15623 int arg2 ;
15624 void *argp1 = 0 ;
15625 int res1 = 0 ;
15626 int val2 ;
15627 int ecode2 = 0 ;
15628 PyObject * obj0 = 0 ;
15629 PyObject * obj1 = 0 ;
15630 char * kwnames[] = {
15631 (char *) "self",(char *) "value", NULL
15632 };
15633
15634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15636 if (!SWIG_IsOK(res1)) {
15637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15638 }
15639 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15640 ecode2 = SWIG_AsVal_int(obj1, &val2);
15641 if (!SWIG_IsOK(ecode2)) {
15642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15643 }
15644 arg2 = static_cast< int >(val2);
15645 {
15646 PyThreadState* __tstate = wxPyBeginAllowThreads();
15647 (arg1)->SetValue(arg2);
15648 wxPyEndAllowThreads(__tstate);
15649 if (PyErr_Occurred()) SWIG_fail;
15650 }
15651 resultobj = SWIG_Py_Void();
15652 return resultobj;
15653fail:
15654 return NULL;
15655}
15656
15657
15658SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15659 PyObject *resultobj = 0;
15660 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15661 wxString *arg2 = 0 ;
15662 void *argp1 = 0 ;
15663 int res1 = 0 ;
15664 bool temp2 = false ;
15665 PyObject * obj0 = 0 ;
15666 PyObject * obj1 = 0 ;
15667 char * kwnames[] = {
15668 (char *) "self",(char *) "text", NULL
15669 };
15670
15671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15673 if (!SWIG_IsOK(res1)) {
15674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15675 }
15676 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15677 {
15678 arg2 = wxString_in_helper(obj1);
15679 if (arg2 == NULL) SWIG_fail;
15680 temp2 = true;
15681 }
15682 {
15683 PyThreadState* __tstate = wxPyBeginAllowThreads();
15684 (arg1)->SetValue((wxString const &)*arg2);
15685 wxPyEndAllowThreads(__tstate);
15686 if (PyErr_Occurred()) SWIG_fail;
15687 }
15688 resultobj = SWIG_Py_Void();
15689 {
15690 if (temp2)
15691 delete arg2;
15692 }
15693 return resultobj;
15694fail:
15695 {
15696 if (temp2)
15697 delete arg2;
15698 }
15699 return NULL;
15700}
15701
15702
15703SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15704 PyObject *resultobj = 0;
15705 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15706 int arg2 ;
15707 int arg3 ;
15708 void *argp1 = 0 ;
15709 int res1 = 0 ;
15710 int val2 ;
15711 int ecode2 = 0 ;
15712 int val3 ;
15713 int ecode3 = 0 ;
15714 PyObject * obj0 = 0 ;
15715 PyObject * obj1 = 0 ;
15716 PyObject * obj2 = 0 ;
15717 char * kwnames[] = {
15718 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15719 };
15720
15721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15723 if (!SWIG_IsOK(res1)) {
15724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15725 }
15726 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15727 ecode2 = SWIG_AsVal_int(obj1, &val2);
15728 if (!SWIG_IsOK(ecode2)) {
15729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15730 }
15731 arg2 = static_cast< int >(val2);
15732 ecode3 = SWIG_AsVal_int(obj2, &val3);
15733 if (!SWIG_IsOK(ecode3)) {
15734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15735 }
15736 arg3 = static_cast< int >(val3);
15737 {
15738 PyThreadState* __tstate = wxPyBeginAllowThreads();
15739 (arg1)->SetRange(arg2,arg3);
15740 wxPyEndAllowThreads(__tstate);
15741 if (PyErr_Occurred()) SWIG_fail;
15742 }
15743 resultobj = SWIG_Py_Void();
15744 return resultobj;
15745fail:
15746 return NULL;
d14a1e28
RD
15747}
15748
15749
0085ce49
RD
15750SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15751 PyObject *resultobj = 0;
15752 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15753 int result;
15754 void *argp1 = 0 ;
15755 int res1 = 0 ;
15756 PyObject *swig_obj[1] ;
15757
15758 if (!args) SWIG_fail;
15759 swig_obj[0] = args;
15760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15761 if (!SWIG_IsOK(res1)) {
15762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15763 }
15764 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15765 {
15766 PyThreadState* __tstate = wxPyBeginAllowThreads();
15767 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15768 wxPyEndAllowThreads(__tstate);
15769 if (PyErr_Occurred()) SWIG_fail;
15770 }
15771 resultobj = SWIG_From_int(static_cast< int >(result));
15772 return resultobj;
15773fail:
15774 return NULL;
d14a1e28
RD
15775}
15776
15777
0085ce49
RD
15778SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15779 PyObject *resultobj = 0;
15780 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15781 int result;
15782 void *argp1 = 0 ;
15783 int res1 = 0 ;
15784 PyObject *swig_obj[1] ;
15785
15786 if (!args) SWIG_fail;
15787 swig_obj[0] = args;
15788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15789 if (!SWIG_IsOK(res1)) {
15790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15791 }
15792 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15793 {
15794 PyThreadState* __tstate = wxPyBeginAllowThreads();
15795 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15796 wxPyEndAllowThreads(__tstate);
15797 if (PyErr_Occurred()) SWIG_fail;
15798 }
15799 resultobj = SWIG_From_int(static_cast< int >(result));
15800 return resultobj;
15801fail:
15802 return NULL;
15803}
15804
15805
15806SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15807 PyObject *resultobj = 0;
15808 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15809 long arg2 ;
15810 long arg3 ;
15811 void *argp1 = 0 ;
15812 int res1 = 0 ;
15813 long val2 ;
15814 int ecode2 = 0 ;
15815 long val3 ;
15816 int ecode3 = 0 ;
15817 PyObject * obj0 = 0 ;
15818 PyObject * obj1 = 0 ;
15819 PyObject * obj2 = 0 ;
15820 char * kwnames[] = {
2131d850 15821 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
15822 };
15823
15824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15826 if (!SWIG_IsOK(res1)) {
15827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15828 }
15829 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15830 ecode2 = SWIG_AsVal_long(obj1, &val2);
15831 if (!SWIG_IsOK(ecode2)) {
15832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15833 }
15834 arg2 = static_cast< long >(val2);
15835 ecode3 = SWIG_AsVal_long(obj2, &val3);
15836 if (!SWIG_IsOK(ecode3)) {
15837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15838 }
15839 arg3 = static_cast< long >(val3);
15840 {
15841 PyThreadState* __tstate = wxPyBeginAllowThreads();
15842 (arg1)->SetSelection(arg2,arg3);
15843 wxPyEndAllowThreads(__tstate);
15844 if (PyErr_Occurred()) SWIG_fail;
15845 }
15846 resultobj = SWIG_Py_Void();
15847 return resultobj;
15848fail:
15849 return NULL;
15850}
15851
15852
15853SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15854 PyObject *resultobj = 0;
15855 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15856 SwigValueWrapper<wxVisualAttributes > result;
15857 int val1 ;
15858 int ecode1 = 0 ;
15859 PyObject * obj0 = 0 ;
15860 char * kwnames[] = {
15861 (char *) "variant", NULL
15862 };
15863
15864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15865 if (obj0) {
15866 ecode1 = SWIG_AsVal_int(obj0, &val1);
15867 if (!SWIG_IsOK(ecode1)) {
15868 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15869 }
15870 arg1 = static_cast< wxWindowVariant >(val1);
15871 }
15872 {
15873 if (!wxPyCheckForApp()) SWIG_fail;
15874 PyThreadState* __tstate = wxPyBeginAllowThreads();
15875 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15876 wxPyEndAllowThreads(__tstate);
15877 if (PyErr_Occurred()) SWIG_fail;
15878 }
15879 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15880 return resultobj;
15881fail:
15882 return NULL;
d14a1e28
RD
15883}
15884
15885
0085ce49
RD
15886SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15887 PyObject *obj;
15888 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15889 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15890 return SWIG_Py_Void();
d14a1e28
RD
15891}
15892
0085ce49
RD
15893SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15894 return SWIG_Python_InitShadowInstance(args);
15895}
d14a1e28 15896
0085ce49
RD
15897SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15898 PyObject *resultobj = 0;
15899 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15900 int arg2 = (int) 0 ;
15901 wxSpinEvent *result = 0 ;
15902 int val1 ;
15903 int ecode1 = 0 ;
15904 int val2 ;
15905 int ecode2 = 0 ;
15906 PyObject * obj0 = 0 ;
15907 PyObject * obj1 = 0 ;
15908 char * kwnames[] = {
15909 (char *) "commandType",(char *) "winid", NULL
15910 };
15911
15912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15913 if (obj0) {
15914 ecode1 = SWIG_AsVal_int(obj0, &val1);
15915 if (!SWIG_IsOK(ecode1)) {
15916 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15917 }
15918 arg1 = static_cast< wxEventType >(val1);
15919 }
15920 if (obj1) {
15921 ecode2 = SWIG_AsVal_int(obj1, &val2);
15922 if (!SWIG_IsOK(ecode2)) {
15923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15924 }
15925 arg2 = static_cast< int >(val2);
15926 }
15927 {
15928 PyThreadState* __tstate = wxPyBeginAllowThreads();
15929 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15930 wxPyEndAllowThreads(__tstate);
15931 if (PyErr_Occurred()) SWIG_fail;
15932 }
15933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15934 return resultobj;
15935fail:
15936 return NULL;
d14a1e28
RD
15937}
15938
15939
0085ce49
RD
15940SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15941 PyObject *resultobj = 0;
15942 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15943 int result;
15944 void *argp1 = 0 ;
15945 int res1 = 0 ;
15946 PyObject *swig_obj[1] ;
15947
15948 if (!args) SWIG_fail;
15949 swig_obj[0] = args;
15950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15951 if (!SWIG_IsOK(res1)) {
15952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15953 }
15954 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15955 {
15956 PyThreadState* __tstate = wxPyBeginAllowThreads();
15957 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15958 wxPyEndAllowThreads(__tstate);
15959 if (PyErr_Occurred()) SWIG_fail;
15960 }
15961 resultobj = SWIG_From_int(static_cast< int >(result));
15962 return resultobj;
15963fail:
15964 return NULL;
15965}
15966
15967
15968SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15969 PyObject *resultobj = 0;
15970 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15971 int arg2 ;
15972 void *argp1 = 0 ;
15973 int res1 = 0 ;
15974 int val2 ;
15975 int ecode2 = 0 ;
15976 PyObject * obj0 = 0 ;
15977 PyObject * obj1 = 0 ;
15978 char * kwnames[] = {
15979 (char *) "self",(char *) "pos", NULL
15980 };
15981
15982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15984 if (!SWIG_IsOK(res1)) {
15985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15986 }
15987 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15988 ecode2 = SWIG_AsVal_int(obj1, &val2);
15989 if (!SWIG_IsOK(ecode2)) {
15990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15991 }
15992 arg2 = static_cast< int >(val2);
15993 {
15994 PyThreadState* __tstate = wxPyBeginAllowThreads();
15995 (arg1)->SetPosition(arg2);
15996 wxPyEndAllowThreads(__tstate);
15997 if (PyErr_Occurred()) SWIG_fail;
15998 }
15999 resultobj = SWIG_Py_Void();
16000 return resultobj;
16001fail:
16002 return NULL;
d14a1e28
RD
16003}
16004
16005
0085ce49
RD
16006SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16007 PyObject *obj;
16008 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16009 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
16010 return SWIG_Py_Void();
16011}
16012
16013SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16014 return SWIG_Python_InitShadowInstance(args);
16015}
16016
16017SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
16018 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
16019 return 1;
16020}
16021
16022
16023SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16024 PyObject *pyobj = 0;
16025
16026 {
d14a1e28 16027#if wxUSE_UNICODE
0085ce49 16028 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 16029#else
0085ce49 16030 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 16031#endif
0085ce49
RD
16032 }
16033 return pyobj;
d14a1e28
RD
16034}
16035
16036
0085ce49
RD
16037SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16038 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16039 return 1;
d14a1e28
RD
16040}
16041
16042
0085ce49
RD
16043SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16044 PyObject *pyobj = 0;
16045
16046 {
16047#if wxUSE_UNICODE
16048 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16049#else
16050 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16051#endif
16052 }
16053 return pyobj;
16054}
16055
16056
16057SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16058 PyObject *resultobj = 0;
16059 wxWindow *arg1 = (wxWindow *) 0 ;
16060 int arg2 = (int) -1 ;
16061 wxString const &arg3_defvalue = wxPyEmptyString ;
16062 wxString *arg3 = (wxString *) &arg3_defvalue ;
16063 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16064 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16065 wxSize const &arg5_defvalue = wxDefaultSize ;
16066 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16067 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16068 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16069 int arg7 = (int) 0 ;
16070 long arg8 = (long) wxRA_HORIZONTAL ;
16071 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16072 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16073 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16074 wxString *arg10 = (wxString *) &arg10_defvalue ;
16075 wxRadioBox *result = 0 ;
16076 void *argp1 = 0 ;
16077 int res1 = 0 ;
16078 int val2 ;
16079 int ecode2 = 0 ;
16080 bool temp3 = false ;
16081 wxPoint temp4 ;
16082 wxSize temp5 ;
16083 bool temp6 = false ;
16084 int val7 ;
16085 int ecode7 = 0 ;
16086 long val8 ;
16087 int ecode8 = 0 ;
16088 void *argp9 = 0 ;
16089 int res9 = 0 ;
16090 bool temp10 = false ;
16091 PyObject * obj0 = 0 ;
16092 PyObject * obj1 = 0 ;
16093 PyObject * obj2 = 0 ;
16094 PyObject * obj3 = 0 ;
16095 PyObject * obj4 = 0 ;
16096 PyObject * obj5 = 0 ;
16097 PyObject * obj6 = 0 ;
16098 PyObject * obj7 = 0 ;
16099 PyObject * obj8 = 0 ;
16100 PyObject * obj9 = 0 ;
16101 char * kwnames[] = {
16102 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16103 };
16104
16105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16107 if (!SWIG_IsOK(res1)) {
16108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16109 }
16110 arg1 = reinterpret_cast< wxWindow * >(argp1);
16111 if (obj1) {
16112 ecode2 = SWIG_AsVal_int(obj1, &val2);
16113 if (!SWIG_IsOK(ecode2)) {
16114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16115 }
16116 arg2 = static_cast< int >(val2);
16117 }
16118 if (obj2) {
093d3ff1 16119 {
0085ce49
RD
16120 arg3 = wxString_in_helper(obj2);
16121 if (arg3 == NULL) SWIG_fail;
16122 temp3 = true;
093d3ff1 16123 }
0085ce49
RD
16124 }
16125 if (obj3) {
093d3ff1 16126 {
0085ce49
RD
16127 arg4 = &temp4;
16128 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 16129 }
0085ce49
RD
16130 }
16131 if (obj4) {
d14a1e28 16132 {
0085ce49
RD
16133 arg5 = &temp5;
16134 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 16135 }
0085ce49
RD
16136 }
16137 if (obj5) {
d14a1e28 16138 {
0085ce49
RD
16139 if (! PySequence_Check(obj5)) {
16140 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16141 SWIG_fail;
16142 }
16143 arg6 = new wxArrayString;
16144 temp6 = true;
16145 int i, len=PySequence_Length(obj5);
16146 for (i=0; i<len; i++) {
16147 PyObject* item = PySequence_GetItem(obj5, i);
16148 wxString* s = wxString_in_helper(item);
16149 if (PyErr_Occurred()) SWIG_fail;
16150 arg6->Add(*s);
16151 delete s;
16152 Py_DECREF(item);
16153 }
d14a1e28 16154 }
0085ce49
RD
16155 }
16156 if (obj6) {
16157 ecode7 = SWIG_AsVal_int(obj6, &val7);
16158 if (!SWIG_IsOK(ecode7)) {
16159 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16160 }
16161 arg7 = static_cast< int >(val7);
16162 }
16163 if (obj7) {
16164 ecode8 = SWIG_AsVal_long(obj7, &val8);
16165 if (!SWIG_IsOK(ecode8)) {
16166 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16167 }
16168 arg8 = static_cast< long >(val8);
16169 }
16170 if (obj8) {
16171 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16172 if (!SWIG_IsOK(res9)) {
16173 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16174 }
16175 if (!argp9) {
16176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 16177 }
0085ce49
RD
16178 arg9 = reinterpret_cast< wxValidator * >(argp9);
16179 }
16180 if (obj9) {
d14a1e28 16181 {
0085ce49
RD
16182 arg10 = wxString_in_helper(obj9);
16183 if (arg10 == NULL) SWIG_fail;
16184 temp10 = true;
d14a1e28 16185 }
0085ce49
RD
16186 }
16187 {
16188 if (!wxPyCheckForApp()) SWIG_fail;
16189 PyThreadState* __tstate = wxPyBeginAllowThreads();
16190 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);
16191 wxPyEndAllowThreads(__tstate);
16192 if (PyErr_Occurred()) SWIG_fail;
16193 }
16194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16195 {
16196 if (temp3)
16197 delete arg3;
16198 }
16199 {
16200 if (temp6) delete arg6;
16201 }
16202 {
16203 if (temp10)
16204 delete arg10;
16205 }
16206 return resultobj;
16207fail:
16208 {
16209 if (temp3)
16210 delete arg3;
16211 }
16212 {
16213 if (temp6) delete arg6;
16214 }
16215 {
16216 if (temp10)
16217 delete arg10;
16218 }
16219 return NULL;
d14a1e28
RD
16220}
16221
16222
0085ce49
RD
16223SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16224 PyObject *resultobj = 0;
16225 wxRadioBox *result = 0 ;
16226
16227 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16228 {
16229 if (!wxPyCheckForApp()) SWIG_fail;
16230 PyThreadState* __tstate = wxPyBeginAllowThreads();
16231 result = (wxRadioBox *)new wxRadioBox();
16232 wxPyEndAllowThreads(__tstate);
16233 if (PyErr_Occurred()) SWIG_fail;
16234 }
16235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16236 return resultobj;
16237fail:
16238 return NULL;
16239}
16240
16241
16242SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16243 PyObject *resultobj = 0;
16244 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16245 wxWindow *arg2 = (wxWindow *) 0 ;
16246 int arg3 = (int) -1 ;
16247 wxString const &arg4_defvalue = wxPyEmptyString ;
16248 wxString *arg4 = (wxString *) &arg4_defvalue ;
16249 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16250 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16251 wxSize const &arg6_defvalue = wxDefaultSize ;
16252 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16253 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16254 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16255 int arg8 = (int) 0 ;
16256 long arg9 = (long) wxRA_HORIZONTAL ;
16257 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16258 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16259 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16260 wxString *arg11 = (wxString *) &arg11_defvalue ;
16261 bool result;
16262 void *argp1 = 0 ;
16263 int res1 = 0 ;
16264 void *argp2 = 0 ;
16265 int res2 = 0 ;
16266 int val3 ;
16267 int ecode3 = 0 ;
16268 bool temp4 = false ;
16269 wxPoint temp5 ;
16270 wxSize temp6 ;
16271 bool temp7 = false ;
16272 int val8 ;
16273 int ecode8 = 0 ;
16274 long val9 ;
16275 int ecode9 = 0 ;
16276 void *argp10 = 0 ;
16277 int res10 = 0 ;
16278 bool temp11 = false ;
16279 PyObject * obj0 = 0 ;
16280 PyObject * obj1 = 0 ;
16281 PyObject * obj2 = 0 ;
16282 PyObject * obj3 = 0 ;
16283 PyObject * obj4 = 0 ;
16284 PyObject * obj5 = 0 ;
16285 PyObject * obj6 = 0 ;
16286 PyObject * obj7 = 0 ;
16287 PyObject * obj8 = 0 ;
16288 PyObject * obj9 = 0 ;
16289 PyObject * obj10 = 0 ;
16290 char * kwnames[] = {
16291 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16292 };
16293
16294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16296 if (!SWIG_IsOK(res1)) {
16297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16298 }
16299 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16300 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16301 if (!SWIG_IsOK(res2)) {
16302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16303 }
16304 arg2 = reinterpret_cast< wxWindow * >(argp2);
16305 if (obj2) {
16306 ecode3 = SWIG_AsVal_int(obj2, &val3);
16307 if (!SWIG_IsOK(ecode3)) {
16308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16309 }
16310 arg3 = static_cast< int >(val3);
16311 }
16312 if (obj3) {
093d3ff1 16313 {
0085ce49
RD
16314 arg4 = wxString_in_helper(obj3);
16315 if (arg4 == NULL) SWIG_fail;
16316 temp4 = true;
093d3ff1 16317 }
0085ce49
RD
16318 }
16319 if (obj4) {
d14a1e28 16320 {
0085ce49
RD
16321 arg5 = &temp5;
16322 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 16323 }
0085ce49
RD
16324 }
16325 if (obj5) {
d14a1e28 16326 {
0085ce49
RD
16327 arg6 = &temp6;
16328 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 16329 }
0085ce49
RD
16330 }
16331 if (obj6) {
d14a1e28 16332 {
0085ce49
RD
16333 if (! PySequence_Check(obj6)) {
16334 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16335 SWIG_fail;
16336 }
16337 arg7 = new wxArrayString;
16338 temp7 = true;
16339 int i, len=PySequence_Length(obj6);
16340 for (i=0; i<len; i++) {
16341 PyObject* item = PySequence_GetItem(obj6, i);
16342 wxString* s = wxString_in_helper(item);
16343 if (PyErr_Occurred()) SWIG_fail;
16344 arg7->Add(*s);
16345 delete s;
16346 Py_DECREF(item);
16347 }
d14a1e28 16348 }
0085ce49
RD
16349 }
16350 if (obj7) {
16351 ecode8 = SWIG_AsVal_int(obj7, &val8);
16352 if (!SWIG_IsOK(ecode8)) {
16353 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16354 }
16355 arg8 = static_cast< int >(val8);
16356 }
16357 if (obj8) {
16358 ecode9 = SWIG_AsVal_long(obj8, &val9);
16359 if (!SWIG_IsOK(ecode9)) {
16360 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16361 }
16362 arg9 = static_cast< long >(val9);
16363 }
16364 if (obj9) {
16365 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16366 if (!SWIG_IsOK(res10)) {
16367 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
4f89f6a3 16368 }
0085ce49
RD
16369 if (!argp10) {
16370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 16371 }
0085ce49
RD
16372 arg10 = reinterpret_cast< wxValidator * >(argp10);
16373 }
16374 if (obj10) {
d14a1e28 16375 {
0085ce49
RD
16376 arg11 = wxString_in_helper(obj10);
16377 if (arg11 == NULL) SWIG_fail;
16378 temp11 = true;
d14a1e28 16379 }
0085ce49
RD
16380 }
16381 {
16382 PyThreadState* __tstate = wxPyBeginAllowThreads();
16383 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);
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 {
16388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16389 }
16390 {
16391 if (temp4)
16392 delete arg4;
16393 }
16394 {
16395 if (temp7) delete arg7;
16396 }
16397 {
16398 if (temp11)
16399 delete arg11;
16400 }
16401 return resultobj;
16402fail:
16403 {
16404 if (temp4)
16405 delete arg4;
16406 }
16407 {
16408 if (temp7) delete arg7;
16409 }
16410 {
16411 if (temp11)
16412 delete arg11;
16413 }
16414 return NULL;
16415}
16416
16417
16418SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16419 PyObject *resultobj = 0;
16420 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16421 int arg2 ;
16422 void *argp1 = 0 ;
16423 int res1 = 0 ;
16424 int val2 ;
16425 int ecode2 = 0 ;
16426 PyObject * obj0 = 0 ;
16427 PyObject * obj1 = 0 ;
16428 char * kwnames[] = {
16429 (char *) "self",(char *) "n", NULL
16430 };
16431
16432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16434 if (!SWIG_IsOK(res1)) {
16435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16436 }
16437 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16438 ecode2 = SWIG_AsVal_int(obj1, &val2);
16439 if (!SWIG_IsOK(ecode2)) {
16440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16441 }
16442 arg2 = static_cast< int >(val2);
16443 {
16444 PyThreadState* __tstate = wxPyBeginAllowThreads();
16445 (arg1)->SetSelection(arg2);
16446 wxPyEndAllowThreads(__tstate);
16447 if (PyErr_Occurred()) SWIG_fail;
16448 }
16449 resultobj = SWIG_Py_Void();
16450 return resultobj;
16451fail:
16452 return NULL;
d14a1e28
RD
16453}
16454
16455
0085ce49
RD
16456SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16457 PyObject *resultobj = 0;
16458 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16459 int result;
16460 void *argp1 = 0 ;
16461 int res1 = 0 ;
16462 PyObject *swig_obj[1] ;
16463
16464 if (!args) SWIG_fail;
16465 swig_obj[0] = args;
16466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16467 if (!SWIG_IsOK(res1)) {
16468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16469 }
16470 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16471 {
16472 PyThreadState* __tstate = wxPyBeginAllowThreads();
16473 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16474 wxPyEndAllowThreads(__tstate);
16475 if (PyErr_Occurred()) SWIG_fail;
16476 }
16477 resultobj = SWIG_From_int(static_cast< int >(result));
16478 return resultobj;
16479fail:
16480 return NULL;
d14a1e28
RD
16481}
16482
16483
0085ce49
RD
16484SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16485 PyObject *resultobj = 0;
16486 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16487 wxString result;
16488 void *argp1 = 0 ;
16489 int res1 = 0 ;
16490 PyObject *swig_obj[1] ;
16491
16492 if (!args) SWIG_fail;
16493 swig_obj[0] = args;
16494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16495 if (!SWIG_IsOK(res1)) {
16496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16497 }
16498 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16499 {
16500 PyThreadState* __tstate = wxPyBeginAllowThreads();
16501 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16502 wxPyEndAllowThreads(__tstate);
16503 if (PyErr_Occurred()) SWIG_fail;
16504 }
16505 {
16506#if wxUSE_UNICODE
16507 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16508#else
16509 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16510#endif
16511 }
16512 return resultobj;
16513fail:
16514 return NULL;
16515}
16516
16517
16518SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16519 PyObject *resultobj = 0;
16520 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16521 wxString *arg2 = 0 ;
16522 bool result;
16523 void *argp1 = 0 ;
16524 int res1 = 0 ;
16525 bool temp2 = false ;
16526 PyObject * obj0 = 0 ;
16527 PyObject * obj1 = 0 ;
16528 char * kwnames[] = {
16529 (char *) "self",(char *) "s", NULL
16530 };
16531
16532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16534 if (!SWIG_IsOK(res1)) {
16535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16536 }
16537 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16538 {
16539 arg2 = wxString_in_helper(obj1);
16540 if (arg2 == NULL) SWIG_fail;
16541 temp2 = true;
16542 }
16543 {
16544 PyThreadState* __tstate = wxPyBeginAllowThreads();
16545 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16546 wxPyEndAllowThreads(__tstate);
16547 if (PyErr_Occurred()) SWIG_fail;
16548 }
16549 {
16550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16551 }
16552 {
16553 if (temp2)
16554 delete arg2;
16555 }
16556 return resultobj;
16557fail:
16558 {
16559 if (temp2)
16560 delete arg2;
16561 }
16562 return NULL;
d14a1e28
RD
16563}
16564
16565
0085ce49
RD
16566SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16567 PyObject *resultobj = 0;
16568 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
75219dcb 16569 size_t result;
0085ce49
RD
16570 void *argp1 = 0 ;
16571 int res1 = 0 ;
16572 PyObject *swig_obj[1] ;
16573
16574 if (!args) SWIG_fail;
16575 swig_obj[0] = args;
16576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16577 if (!SWIG_IsOK(res1)) {
16578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16579 }
16580 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16581 {
16582 PyThreadState* __tstate = wxPyBeginAllowThreads();
75219dcb 16583 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
0085ce49
RD
16584 wxPyEndAllowThreads(__tstate);
16585 if (PyErr_Occurred()) SWIG_fail;
16586 }
75219dcb 16587 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
0085ce49
RD
16588 return resultobj;
16589fail:
16590 return NULL;
16591}
16592
16593
16594SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16595 PyObject *resultobj = 0;
16596 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16597 wxString *arg2 = 0 ;
16598 int result;
16599 void *argp1 = 0 ;
16600 int res1 = 0 ;
16601 bool temp2 = false ;
16602 PyObject * obj0 = 0 ;
16603 PyObject * obj1 = 0 ;
16604 char * kwnames[] = {
16605 (char *) "self",(char *) "s", NULL
16606 };
16607
16608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16610 if (!SWIG_IsOK(res1)) {
16611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16612 }
16613 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16614 {
16615 arg2 = wxString_in_helper(obj1);
16616 if (arg2 == NULL) SWIG_fail;
16617 temp2 = true;
16618 }
16619 {
16620 PyThreadState* __tstate = wxPyBeginAllowThreads();
16621 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16622 wxPyEndAllowThreads(__tstate);
16623 if (PyErr_Occurred()) SWIG_fail;
16624 }
16625 resultobj = SWIG_From_int(static_cast< int >(result));
16626 {
16627 if (temp2)
16628 delete arg2;
16629 }
16630 return resultobj;
16631fail:
16632 {
16633 if (temp2)
16634 delete arg2;
16635 }
16636 return NULL;
16637}
16638
16639
16640SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16641 PyObject *resultobj = 0;
16642 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16643 int arg2 ;
16644 wxString result;
16645 void *argp1 = 0 ;
16646 int res1 = 0 ;
16647 int val2 ;
16648 int ecode2 = 0 ;
16649 PyObject * obj0 = 0 ;
16650 PyObject * obj1 = 0 ;
16651 char * kwnames[] = {
16652 (char *) "self",(char *) "n", NULL
16653 };
16654
16655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16657 if (!SWIG_IsOK(res1)) {
16658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16659 }
16660 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16661 ecode2 = SWIG_AsVal_int(obj1, &val2);
16662 if (!SWIG_IsOK(ecode2)) {
16663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16664 }
16665 arg2 = static_cast< int >(val2);
16666 {
16667 PyThreadState* __tstate = wxPyBeginAllowThreads();
16668 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16669 wxPyEndAllowThreads(__tstate);
16670 if (PyErr_Occurred()) SWIG_fail;
16671 }
16672 {
16673#if wxUSE_UNICODE
16674 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16675#else
16676 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16677#endif
16678 }
16679 return resultobj;
16680fail:
16681 return NULL;
16682}
16683
16684
16685SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16686 PyObject *resultobj = 0;
16687 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16688 int arg2 ;
16689 wxString *arg3 = 0 ;
16690 void *argp1 = 0 ;
16691 int res1 = 0 ;
16692 int val2 ;
16693 int ecode2 = 0 ;
16694 bool temp3 = false ;
16695 PyObject * obj0 = 0 ;
16696 PyObject * obj1 = 0 ;
16697 PyObject * obj2 = 0 ;
16698 char * kwnames[] = {
16699 (char *) "self",(char *) "n",(char *) "label", NULL
16700 };
16701
16702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16704 if (!SWIG_IsOK(res1)) {
16705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16706 }
16707 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16708 ecode2 = SWIG_AsVal_int(obj1, &val2);
16709 if (!SWIG_IsOK(ecode2)) {
16710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16711 }
16712 arg2 = static_cast< int >(val2);
16713 {
16714 arg3 = wxString_in_helper(obj2);
16715 if (arg3 == NULL) SWIG_fail;
16716 temp3 = true;
16717 }
16718 {
16719 PyThreadState* __tstate = wxPyBeginAllowThreads();
16720 (arg1)->SetString(arg2,(wxString const &)*arg3);
16721 wxPyEndAllowThreads(__tstate);
16722 if (PyErr_Occurred()) SWIG_fail;
16723 }
16724 resultobj = SWIG_Py_Void();
16725 {
16726 if (temp3)
16727 delete arg3;
16728 }
16729 return resultobj;
16730fail:
16731 {
16732 if (temp3)
16733 delete arg3;
16734 }
16735 return NULL;
16736}
16737
16738
16739SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16740 PyObject *resultobj = 0;
16741 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16742 unsigned int arg2 ;
0085ce49
RD
16743 bool arg3 = (bool) true ;
16744 void *argp1 = 0 ;
16745 int res1 = 0 ;
50f151d7 16746 unsigned int val2 ;
0085ce49
RD
16747 int ecode2 = 0 ;
16748 bool val3 ;
16749 int ecode3 = 0 ;
16750 PyObject * obj0 = 0 ;
16751 PyObject * obj1 = 0 ;
16752 PyObject * obj2 = 0 ;
16753 char * kwnames[] = {
16754 (char *) "self",(char *) "n",(char *) "enable", NULL
16755 };
16756
16757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16759 if (!SWIG_IsOK(res1)) {
16760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16761 }
16762 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16763 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 16764 if (!SWIG_IsOK(ecode2)) {
50f151d7 16765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 16766 }
50f151d7 16767 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
16768 if (obj2) {
16769 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16770 if (!SWIG_IsOK(ecode3)) {
16771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16772 }
16773 arg3 = static_cast< bool >(val3);
16774 }
16775 {
16776 PyThreadState* __tstate = wxPyBeginAllowThreads();
16777 (arg1)->Enable(arg2,arg3);
16778 wxPyEndAllowThreads(__tstate);
16779 if (PyErr_Occurred()) SWIG_fail;
16780 }
16781 resultobj = SWIG_Py_Void();
16782 return resultobj;
16783fail:
16784 return NULL;
16785}
16786
16787
16788SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16789 PyObject *resultobj = 0;
16790 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16791 unsigned int arg2 ;
0085ce49
RD
16792 bool arg3 = (bool) true ;
16793 void *argp1 = 0 ;
16794 int res1 = 0 ;
50f151d7 16795 unsigned int val2 ;
0085ce49
RD
16796 int ecode2 = 0 ;
16797 bool val3 ;
16798 int ecode3 = 0 ;
16799 PyObject * obj0 = 0 ;
16800 PyObject * obj1 = 0 ;
16801 PyObject * obj2 = 0 ;
16802 char * kwnames[] = {
16803 (char *) "self",(char *) "n",(char *) "show", NULL
16804 };
16805
16806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16808 if (!SWIG_IsOK(res1)) {
16809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16810 }
16811 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16812 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 16813 if (!SWIG_IsOK(ecode2)) {
50f151d7 16814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 16815 }
50f151d7 16816 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
16817 if (obj2) {
16818 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16819 if (!SWIG_IsOK(ecode3)) {
16820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16821 }
16822 arg3 = static_cast< bool >(val3);
16823 }
16824 {
16825 PyThreadState* __tstate = wxPyBeginAllowThreads();
16826 (arg1)->Show(arg2,arg3);
16827 wxPyEndAllowThreads(__tstate);
16828 if (PyErr_Occurred()) SWIG_fail;
16829 }
16830 resultobj = SWIG_Py_Void();
16831 return resultobj;
16832fail:
16833 return NULL;
d14a1e28
RD
16834}
16835
16836
50f151d7
RD
16837SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16838 PyObject *resultobj = 0;
16839 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16840 unsigned int arg2 ;
16841 bool result;
16842 void *argp1 = 0 ;
16843 int res1 = 0 ;
16844 unsigned int val2 ;
16845 int ecode2 = 0 ;
16846 PyObject * obj0 = 0 ;
16847 PyObject * obj1 = 0 ;
16848 char * kwnames[] = {
16849 (char *) "self",(char *) "n", NULL
16850 };
16851
16852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16854 if (!SWIG_IsOK(res1)) {
16855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16856 }
16857 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16858 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16859 if (!SWIG_IsOK(ecode2)) {
16860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16861 }
16862 arg2 = static_cast< unsigned int >(val2);
16863 {
16864 PyThreadState* __tstate = wxPyBeginAllowThreads();
16865 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16866 wxPyEndAllowThreads(__tstate);
16867 if (PyErr_Occurred()) SWIG_fail;
16868 }
16869 {
16870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16871 }
16872 return resultobj;
16873fail:
16874 return NULL;
16875}
16876
16877
16878SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16879 PyObject *resultobj = 0;
16880 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16881 unsigned int arg2 ;
16882 bool result;
16883 void *argp1 = 0 ;
16884 int res1 = 0 ;
16885 unsigned int val2 ;
16886 int ecode2 = 0 ;
16887 PyObject * obj0 = 0 ;
16888 PyObject * obj1 = 0 ;
16889 char * kwnames[] = {
16890 (char *) "self",(char *) "n", NULL
16891 };
16892
16893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16895 if (!SWIG_IsOK(res1)) {
16896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16897 }
16898 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16899 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16900 if (!SWIG_IsOK(ecode2)) {
16901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16902 }
16903 arg2 = static_cast< unsigned int >(val2);
16904 {
16905 PyThreadState* __tstate = wxPyBeginAllowThreads();
16906 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16907 wxPyEndAllowThreads(__tstate);
16908 if (PyErr_Occurred()) SWIG_fail;
16909 }
16910 {
16911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16912 }
16913 return resultobj;
16914fail:
16915 return NULL;
16916}
16917
16918
0085ce49
RD
16919SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16920 PyObject *resultobj = 0;
16921 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16922 unsigned int result;
0085ce49
RD
16923 void *argp1 = 0 ;
16924 int res1 = 0 ;
16925 PyObject *swig_obj[1] ;
16926
16927 if (!args) SWIG_fail;
16928 swig_obj[0] = args;
16929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16930 if (!SWIG_IsOK(res1)) {
16931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16932 }
16933 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16934 {
16935 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16936 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
0085ce49
RD
16937 wxPyEndAllowThreads(__tstate);
16938 if (PyErr_Occurred()) SWIG_fail;
16939 }
50f151d7 16940 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16941 return resultobj;
16942fail:
16943 return NULL;
d14a1e28
RD
16944}
16945
16946
0085ce49
RD
16947SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16948 PyObject *resultobj = 0;
16949 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16950 unsigned int result;
0085ce49
RD
16951 void *argp1 = 0 ;
16952 int res1 = 0 ;
16953 PyObject *swig_obj[1] ;
16954
16955 if (!args) SWIG_fail;
16956 swig_obj[0] = args;
16957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16958 if (!SWIG_IsOK(res1)) {
16959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16960 }
16961 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16962 {
16963 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16964 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
0085ce49
RD
16965 wxPyEndAllowThreads(__tstate);
16966 if (PyErr_Occurred()) SWIG_fail;
16967 }
50f151d7 16968 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16969 return resultobj;
16970fail:
16971 return NULL;
16972}
16973
16974
16975SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16976 PyObject *resultobj = 0;
16977 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16978 int arg2 ;
16979 wxDirection arg3 ;
16980 long arg4 ;
16981 int result;
16982 void *argp1 = 0 ;
16983 int res1 = 0 ;
16984 int val2 ;
16985 int ecode2 = 0 ;
16986 int val3 ;
16987 int ecode3 = 0 ;
16988 long val4 ;
16989 int ecode4 = 0 ;
16990 PyObject * obj0 = 0 ;
16991 PyObject * obj1 = 0 ;
16992 PyObject * obj2 = 0 ;
16993 PyObject * obj3 = 0 ;
16994 char * kwnames[] = {
16995 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16996 };
16997
16998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17000 if (!SWIG_IsOK(res1)) {
17001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17002 }
17003 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17004 ecode2 = SWIG_AsVal_int(obj1, &val2);
17005 if (!SWIG_IsOK(ecode2)) {
17006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
17007 }
17008 arg2 = static_cast< int >(val2);
17009 ecode3 = SWIG_AsVal_int(obj2, &val3);
17010 if (!SWIG_IsOK(ecode3)) {
17011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
17012 }
17013 arg3 = static_cast< wxDirection >(val3);
17014 ecode4 = SWIG_AsVal_long(obj3, &val4);
17015 if (!SWIG_IsOK(ecode4)) {
17016 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
17017 }
17018 arg4 = static_cast< long >(val4);
17019 {
17020 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 17021 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
0085ce49
RD
17022 wxPyEndAllowThreads(__tstate);
17023 if (PyErr_Occurred()) SWIG_fail;
17024 }
17025 resultobj = SWIG_From_int(static_cast< int >(result));
17026 return resultobj;
17027fail:
17028 return NULL;
17029}
17030
17031
01f6b6d3
RD
17032SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17033 PyObject *resultobj = 0;
17034 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17035 unsigned int arg2 ;
17036 wxString *arg3 = 0 ;
17037 void *argp1 = 0 ;
17038 int res1 = 0 ;
17039 unsigned int val2 ;
17040 int ecode2 = 0 ;
17041 bool temp3 = false ;
17042 PyObject * obj0 = 0 ;
17043 PyObject * obj1 = 0 ;
17044 PyObject * obj2 = 0 ;
17045 char * kwnames[] = {
17046 (char *) "self",(char *) "item",(char *) "text", NULL
17047 };
17048
17049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17051 if (!SWIG_IsOK(res1)) {
17052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17053 }
17054 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17055 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17056 if (!SWIG_IsOK(ecode2)) {
17057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17058 }
17059 arg2 = static_cast< unsigned int >(val2);
17060 {
17061 arg3 = wxString_in_helper(obj2);
17062 if (arg3 == NULL) SWIG_fail;
17063 temp3 = true;
17064 }
17065 {
17066 PyThreadState* __tstate = wxPyBeginAllowThreads();
17067 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17068 wxPyEndAllowThreads(__tstate);
17069 if (PyErr_Occurred()) SWIG_fail;
17070 }
17071 resultobj = SWIG_Py_Void();
17072 {
17073 if (temp3)
17074 delete arg3;
17075 }
17076 return resultobj;
17077fail:
17078 {
17079 if (temp3)
17080 delete arg3;
17081 }
17082 return NULL;
17083}
17084
17085
17086SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17087 PyObject *resultobj = 0;
17088 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17089 unsigned int arg2 ;
17090 wxToolTip *result = 0 ;
17091 void *argp1 = 0 ;
17092 int res1 = 0 ;
17093 unsigned int val2 ;
17094 int ecode2 = 0 ;
17095 PyObject * obj0 = 0 ;
17096 PyObject * obj1 = 0 ;
17097 char * kwnames[] = {
17098 (char *) "self",(char *) "item", NULL
17099 };
17100
17101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17103 if (!SWIG_IsOK(res1)) {
17104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17105 }
17106 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17107 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17108 if (!SWIG_IsOK(ecode2)) {
17109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17110 }
17111 arg2 = static_cast< unsigned int >(val2);
17112 {
17113 PyThreadState* __tstate = wxPyBeginAllowThreads();
17114 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17115 wxPyEndAllowThreads(__tstate);
17116 if (PyErr_Occurred()) SWIG_fail;
17117 }
17118 {
17119 resultobj = wxPyMake_wxObject(result, (bool)0);
17120 }
17121 return resultobj;
17122fail:
17123 return NULL;
17124}
17125
17126
b850e7f3
RD
17127SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17128 PyObject *resultobj = 0;
17129 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17130 unsigned int arg2 ;
17131 wxString *arg3 = 0 ;
17132 void *argp1 = 0 ;
17133 int res1 = 0 ;
17134 unsigned int val2 ;
17135 int ecode2 = 0 ;
17136 bool temp3 = false ;
17137 PyObject * obj0 = 0 ;
17138 PyObject * obj1 = 0 ;
17139 PyObject * obj2 = 0 ;
17140 char * kwnames[] = {
17141 (char *) "self",(char *) "n",(char *) "helpText", NULL
17142 };
17143
17144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17146 if (!SWIG_IsOK(res1)) {
17147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17148 }
17149 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17150 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17151 if (!SWIG_IsOK(ecode2)) {
17152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17153 }
17154 arg2 = static_cast< unsigned int >(val2);
17155 {
17156 arg3 = wxString_in_helper(obj2);
17157 if (arg3 == NULL) SWIG_fail;
17158 temp3 = true;
17159 }
17160 {
17161 PyThreadState* __tstate = wxPyBeginAllowThreads();
17162 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17163 wxPyEndAllowThreads(__tstate);
17164 if (PyErr_Occurred()) SWIG_fail;
17165 }
17166 resultobj = SWIG_Py_Void();
17167 {
17168 if (temp3)
17169 delete arg3;
17170 }
17171 return resultobj;
17172fail:
17173 {
17174 if (temp3)
17175 delete arg3;
17176 }
17177 return NULL;
17178}
17179
17180
17181SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17182 PyObject *resultobj = 0;
17183 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17184 unsigned int arg2 ;
17185 wxString result;
17186 void *argp1 = 0 ;
17187 int res1 = 0 ;
17188 unsigned int val2 ;
17189 int ecode2 = 0 ;
17190 PyObject * obj0 = 0 ;
17191 PyObject * obj1 = 0 ;
17192 char * kwnames[] = {
17193 (char *) "self",(char *) "n", NULL
17194 };
17195
17196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17198 if (!SWIG_IsOK(res1)) {
17199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17200 }
17201 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17202 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17203 if (!SWIG_IsOK(ecode2)) {
17204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17205 }
17206 arg2 = static_cast< unsigned int >(val2);
17207 {
17208 PyThreadState* __tstate = wxPyBeginAllowThreads();
17209 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17210 wxPyEndAllowThreads(__tstate);
17211 if (PyErr_Occurred()) SWIG_fail;
17212 }
17213 {
17214#if wxUSE_UNICODE
17215 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17216#else
17217 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17218#endif
17219 }
17220 return resultobj;
17221fail:
17222 return NULL;
17223}
17224
17225
0085ce49
RD
17226SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17227 PyObject *resultobj = 0;
17228 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17229 SwigValueWrapper<wxVisualAttributes > result;
17230 int val1 ;
17231 int ecode1 = 0 ;
17232 PyObject * obj0 = 0 ;
17233 char * kwnames[] = {
17234 (char *) "variant", NULL
17235 };
17236
17237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17238 if (obj0) {
17239 ecode1 = SWIG_AsVal_int(obj0, &val1);
17240 if (!SWIG_IsOK(ecode1)) {
17241 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17242 }
17243 arg1 = static_cast< wxWindowVariant >(val1);
17244 }
17245 {
17246 if (!wxPyCheckForApp()) SWIG_fail;
17247 PyThreadState* __tstate = wxPyBeginAllowThreads();
17248 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17249 wxPyEndAllowThreads(__tstate);
17250 if (PyErr_Occurred()) SWIG_fail;
17251 }
17252 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17253 return resultobj;
17254fail:
17255 return NULL;
17256}
17257
17258
17259SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17260 PyObject *obj;
17261 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17262 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17263 return SWIG_Py_Void();
17264}
17265
17266SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17267 return SWIG_Python_InitShadowInstance(args);
17268}
17269
17270SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17271 PyObject *resultobj = 0;
17272 wxWindow *arg1 = (wxWindow *) 0 ;
17273 int arg2 = (int) -1 ;
17274 wxString const &arg3_defvalue = wxPyEmptyString ;
17275 wxString *arg3 = (wxString *) &arg3_defvalue ;
17276 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17277 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17278 wxSize const &arg5_defvalue = wxDefaultSize ;
17279 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17280 long arg6 = (long) 0 ;
17281 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17282 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17283 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17284 wxString *arg8 = (wxString *) &arg8_defvalue ;
17285 wxRadioButton *result = 0 ;
17286 void *argp1 = 0 ;
17287 int res1 = 0 ;
17288 int val2 ;
17289 int ecode2 = 0 ;
17290 bool temp3 = false ;
17291 wxPoint temp4 ;
17292 wxSize temp5 ;
17293 long val6 ;
17294 int ecode6 = 0 ;
17295 void *argp7 = 0 ;
17296 int res7 = 0 ;
17297 bool temp8 = false ;
17298 PyObject * obj0 = 0 ;
17299 PyObject * obj1 = 0 ;
17300 PyObject * obj2 = 0 ;
17301 PyObject * obj3 = 0 ;
17302 PyObject * obj4 = 0 ;
17303 PyObject * obj5 = 0 ;
17304 PyObject * obj6 = 0 ;
17305 PyObject * obj7 = 0 ;
17306 char * kwnames[] = {
17307 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17308 };
17309
17310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17312 if (!SWIG_IsOK(res1)) {
17313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17314 }
17315 arg1 = reinterpret_cast< wxWindow * >(argp1);
17316 if (obj1) {
17317 ecode2 = SWIG_AsVal_int(obj1, &val2);
17318 if (!SWIG_IsOK(ecode2)) {
17319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17320 }
17321 arg2 = static_cast< int >(val2);
17322 }
17323 if (obj2) {
d14a1e28 17324 {
0085ce49
RD
17325 arg3 = wxString_in_helper(obj2);
17326 if (arg3 == NULL) SWIG_fail;
17327 temp3 = true;
d14a1e28 17328 }
0085ce49
RD
17329 }
17330 if (obj3) {
d14a1e28 17331 {
0085ce49
RD
17332 arg4 = &temp4;
17333 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 17334 }
0085ce49
RD
17335 }
17336 if (obj4) {
d14a1e28 17337 {
0085ce49
RD
17338 arg5 = &temp5;
17339 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17340 }
17341 }
17342 if (obj5) {
17343 ecode6 = SWIG_AsVal_long(obj5, &val6);
17344 if (!SWIG_IsOK(ecode6)) {
17345 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17346 }
17347 arg6 = static_cast< long >(val6);
17348 }
17349 if (obj6) {
17350 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17351 if (!SWIG_IsOK(res7)) {
17352 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 17353 }
0085ce49
RD
17354 if (!argp7) {
17355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17356 }
17357 arg7 = reinterpret_cast< wxValidator * >(argp7);
17358 }
17359 if (obj7) {
d14a1e28 17360 {
0085ce49
RD
17361 arg8 = wxString_in_helper(obj7);
17362 if (arg8 == NULL) SWIG_fail;
17363 temp8 = true;
d14a1e28 17364 }
0085ce49
RD
17365 }
17366 {
17367 if (!wxPyCheckForApp()) SWIG_fail;
17368 PyThreadState* __tstate = wxPyBeginAllowThreads();
17369 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17370 wxPyEndAllowThreads(__tstate);
17371 if (PyErr_Occurred()) SWIG_fail;
17372 }
17373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17374 {
17375 if (temp3)
17376 delete arg3;
17377 }
17378 {
17379 if (temp8)
17380 delete arg8;
17381 }
17382 return resultobj;
17383fail:
17384 {
17385 if (temp3)
17386 delete arg3;
17387 }
17388 {
17389 if (temp8)
17390 delete arg8;
17391 }
17392 return NULL;
d14a1e28
RD
17393}
17394
17395
0085ce49
RD
17396SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17397 PyObject *resultobj = 0;
17398 wxRadioButton *result = 0 ;
17399
17400 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17401 {
17402 if (!wxPyCheckForApp()) SWIG_fail;
17403 PyThreadState* __tstate = wxPyBeginAllowThreads();
17404 result = (wxRadioButton *)new wxRadioButton();
17405 wxPyEndAllowThreads(__tstate);
17406 if (PyErr_Occurred()) SWIG_fail;
17407 }
17408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17409 return resultobj;
17410fail:
17411 return NULL;
17412}
17413
17414
17415SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17416 PyObject *resultobj = 0;
17417 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17418 wxWindow *arg2 = (wxWindow *) 0 ;
17419 int arg3 = (int) -1 ;
17420 wxString const &arg4_defvalue = wxPyEmptyString ;
17421 wxString *arg4 = (wxString *) &arg4_defvalue ;
17422 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17423 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17424 wxSize const &arg6_defvalue = wxDefaultSize ;
17425 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17426 long arg7 = (long) 0 ;
17427 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17428 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17429 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17430 wxString *arg9 = (wxString *) &arg9_defvalue ;
17431 bool result;
17432 void *argp1 = 0 ;
17433 int res1 = 0 ;
17434 void *argp2 = 0 ;
17435 int res2 = 0 ;
17436 int val3 ;
17437 int ecode3 = 0 ;
17438 bool temp4 = false ;
17439 wxPoint temp5 ;
17440 wxSize temp6 ;
17441 long val7 ;
17442 int ecode7 = 0 ;
17443 void *argp8 = 0 ;
17444 int res8 = 0 ;
17445 bool temp9 = false ;
17446 PyObject * obj0 = 0 ;
17447 PyObject * obj1 = 0 ;
17448 PyObject * obj2 = 0 ;
17449 PyObject * obj3 = 0 ;
17450 PyObject * obj4 = 0 ;
17451 PyObject * obj5 = 0 ;
17452 PyObject * obj6 = 0 ;
17453 PyObject * obj7 = 0 ;
17454 PyObject * obj8 = 0 ;
17455 char * kwnames[] = {
17456 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17457 };
17458
17459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17461 if (!SWIG_IsOK(res1)) {
17462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17463 }
17464 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17465 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17466 if (!SWIG_IsOK(res2)) {
17467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17468 }
17469 arg2 = reinterpret_cast< wxWindow * >(argp2);
17470 if (obj2) {
17471 ecode3 = SWIG_AsVal_int(obj2, &val3);
17472 if (!SWIG_IsOK(ecode3)) {
17473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17474 }
17475 arg3 = static_cast< int >(val3);
17476 }
17477 if (obj3) {
d14a1e28 17478 {
0085ce49
RD
17479 arg4 = wxString_in_helper(obj3);
17480 if (arg4 == NULL) SWIG_fail;
17481 temp4 = true;
d14a1e28 17482 }
0085ce49
RD
17483 }
17484 if (obj4) {
d14a1e28 17485 {
0085ce49
RD
17486 arg5 = &temp5;
17487 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 17488 }
0085ce49
RD
17489 }
17490 if (obj5) {
d14a1e28 17491 {
0085ce49
RD
17492 arg6 = &temp6;
17493 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17494 }
17495 }
17496 if (obj6) {
17497 ecode7 = SWIG_AsVal_long(obj6, &val7);
17498 if (!SWIG_IsOK(ecode7)) {
17499 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17500 }
17501 arg7 = static_cast< long >(val7);
17502 }
17503 if (obj7) {
17504 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17505 if (!SWIG_IsOK(res8)) {
17506 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17507 }
17508 if (!argp8) {
17509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 17510 }
0085ce49
RD
17511 arg8 = reinterpret_cast< wxValidator * >(argp8);
17512 }
17513 if (obj8) {
d14a1e28 17514 {
0085ce49
RD
17515 arg9 = wxString_in_helper(obj8);
17516 if (arg9 == NULL) SWIG_fail;
17517 temp9 = true;
d14a1e28 17518 }
0085ce49
RD
17519 }
17520 {
17521 PyThreadState* __tstate = wxPyBeginAllowThreads();
17522 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17523 wxPyEndAllowThreads(__tstate);
17524 if (PyErr_Occurred()) SWIG_fail;
17525 }
17526 {
17527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17528 }
17529 {
17530 if (temp4)
17531 delete arg4;
17532 }
17533 {
17534 if (temp9)
17535 delete arg9;
17536 }
17537 return resultobj;
17538fail:
17539 {
17540 if (temp4)
17541 delete arg4;
17542 }
17543 {
17544 if (temp9)
17545 delete arg9;
17546 }
17547 return NULL;
d14a1e28
RD
17548}
17549
17550
0085ce49
RD
17551SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17552 PyObject *resultobj = 0;
17553 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17554 bool result;
17555 void *argp1 = 0 ;
17556 int res1 = 0 ;
17557 PyObject *swig_obj[1] ;
17558
17559 if (!args) SWIG_fail;
17560 swig_obj[0] = args;
17561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17562 if (!SWIG_IsOK(res1)) {
17563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17564 }
17565 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17566 {
17567 PyThreadState* __tstate = wxPyBeginAllowThreads();
17568 result = (bool)(arg1)->GetValue();
17569 wxPyEndAllowThreads(__tstate);
17570 if (PyErr_Occurred()) SWIG_fail;
17571 }
17572 {
17573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17574 }
17575 return resultobj;
17576fail:
17577 return NULL;
17578}
17579
17580
17581SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17582 PyObject *resultobj = 0;
17583 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17584 bool arg2 ;
17585 void *argp1 = 0 ;
17586 int res1 = 0 ;
17587 bool val2 ;
17588 int ecode2 = 0 ;
17589 PyObject * obj0 = 0 ;
17590 PyObject * obj1 = 0 ;
17591 char * kwnames[] = {
17592 (char *) "self",(char *) "value", NULL
17593 };
17594
17595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17597 if (!SWIG_IsOK(res1)) {
17598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17599 }
17600 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17601 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17602 if (!SWIG_IsOK(ecode2)) {
17603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17604 }
17605 arg2 = static_cast< bool >(val2);
17606 {
17607 PyThreadState* __tstate = wxPyBeginAllowThreads();
17608 (arg1)->SetValue(arg2);
17609 wxPyEndAllowThreads(__tstate);
17610 if (PyErr_Occurred()) SWIG_fail;
17611 }
17612 resultobj = SWIG_Py_Void();
17613 return resultobj;
17614fail:
17615 return NULL;
17616}
17617
17618
17619SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17620 PyObject *resultobj = 0;
17621 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17622 SwigValueWrapper<wxVisualAttributes > result;
17623 int val1 ;
17624 int ecode1 = 0 ;
17625 PyObject * obj0 = 0 ;
17626 char * kwnames[] = {
17627 (char *) "variant", NULL
17628 };
17629
17630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17631 if (obj0) {
17632 ecode1 = SWIG_AsVal_int(obj0, &val1);
17633 if (!SWIG_IsOK(ecode1)) {
17634 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17635 }
17636 arg1 = static_cast< wxWindowVariant >(val1);
17637 }
17638 {
17639 if (!wxPyCheckForApp()) SWIG_fail;
17640 PyThreadState* __tstate = wxPyBeginAllowThreads();
17641 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17642 wxPyEndAllowThreads(__tstate);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 }
17645 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17646 return resultobj;
17647fail:
17648 return NULL;
d14a1e28
RD
17649}
17650
17651
0085ce49
RD
17652SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17653 PyObject *obj;
17654 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17655 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17656 return SWIG_Py_Void();
17657}
17658
17659SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17660 return SWIG_Python_InitShadowInstance(args);
17661}
17662
17663SWIGINTERN int SliderNameStr_set(PyObject *) {
17664 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17665 return 1;
17666}
17667
17668
17669SWIGINTERN PyObject *SliderNameStr_get(void) {
17670 PyObject *pyobj = 0;
17671
17672 {
17673#if wxUSE_UNICODE
17674 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17675#else
17676 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17677#endif
17678 }
17679 return pyobj;
17680}
17681
17682
17683SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17684 PyObject *resultobj = 0;
17685 wxWindow *arg1 = (wxWindow *) 0 ;
17686 int arg2 = (int) -1 ;
17687 int arg3 = (int) 0 ;
17688 int arg4 = (int) 0 ;
17689 int arg5 = (int) 100 ;
17690 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17691 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17692 wxSize const &arg7_defvalue = wxDefaultSize ;
17693 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17694 long arg8 = (long) wxSL_HORIZONTAL ;
17695 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17696 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17697 wxString const &arg10_defvalue = wxPySliderNameStr ;
17698 wxString *arg10 = (wxString *) &arg10_defvalue ;
17699 wxSlider *result = 0 ;
17700 void *argp1 = 0 ;
17701 int res1 = 0 ;
17702 int val2 ;
17703 int ecode2 = 0 ;
17704 int val3 ;
17705 int ecode3 = 0 ;
17706 int val4 ;
17707 int ecode4 = 0 ;
17708 int val5 ;
17709 int ecode5 = 0 ;
17710 wxPoint temp6 ;
17711 wxSize temp7 ;
17712 long val8 ;
17713 int ecode8 = 0 ;
17714 void *argp9 = 0 ;
17715 int res9 = 0 ;
17716 bool temp10 = false ;
17717 PyObject * obj0 = 0 ;
17718 PyObject * obj1 = 0 ;
17719 PyObject * obj2 = 0 ;
17720 PyObject * obj3 = 0 ;
17721 PyObject * obj4 = 0 ;
17722 PyObject * obj5 = 0 ;
17723 PyObject * obj6 = 0 ;
17724 PyObject * obj7 = 0 ;
17725 PyObject * obj8 = 0 ;
17726 PyObject * obj9 = 0 ;
17727 char * kwnames[] = {
17728 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17729 };
17730
17731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17733 if (!SWIG_IsOK(res1)) {
17734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17735 }
17736 arg1 = reinterpret_cast< wxWindow * >(argp1);
17737 if (obj1) {
17738 ecode2 = SWIG_AsVal_int(obj1, &val2);
17739 if (!SWIG_IsOK(ecode2)) {
17740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17741 }
17742 arg2 = static_cast< int >(val2);
17743 }
17744 if (obj2) {
17745 ecode3 = SWIG_AsVal_int(obj2, &val3);
17746 if (!SWIG_IsOK(ecode3)) {
17747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17748 }
17749 arg3 = static_cast< int >(val3);
17750 }
17751 if (obj3) {
17752 ecode4 = SWIG_AsVal_int(obj3, &val4);
17753 if (!SWIG_IsOK(ecode4)) {
17754 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17755 }
17756 arg4 = static_cast< int >(val4);
17757 }
17758 if (obj4) {
17759 ecode5 = SWIG_AsVal_int(obj4, &val5);
17760 if (!SWIG_IsOK(ecode5)) {
17761 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17762 }
17763 arg5 = static_cast< int >(val5);
17764 }
17765 if (obj5) {
093d3ff1 17766 {
0085ce49
RD
17767 arg6 = &temp6;
17768 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 17769 }
0085ce49
RD
17770 }
17771 if (obj6) {
093d3ff1 17772 {
0085ce49
RD
17773 arg7 = &temp7;
17774 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
093d3ff1 17775 }
0085ce49
RD
17776 }
17777 if (obj7) {
17778 ecode8 = SWIG_AsVal_long(obj7, &val8);
17779 if (!SWIG_IsOK(ecode8)) {
17780 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17781 }
17782 arg8 = static_cast< long >(val8);
17783 }
17784 if (obj8) {
17785 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17786 if (!SWIG_IsOK(res9)) {
17787 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17788 }
0085ce49
RD
17789 if (!argp9) {
17790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17791 }
0085ce49
RD
17792 arg9 = reinterpret_cast< wxValidator * >(argp9);
17793 }
17794 if (obj9) {
4f89f6a3 17795 {
0085ce49
RD
17796 arg10 = wxString_in_helper(obj9);
17797 if (arg10 == NULL) SWIG_fail;
17798 temp10 = true;
4f89f6a3 17799 }
0085ce49
RD
17800 }
17801 {
17802 if (!wxPyCheckForApp()) SWIG_fail;
17803 PyThreadState* __tstate = wxPyBeginAllowThreads();
17804 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17809 {
17810 if (temp10)
17811 delete arg10;
17812 }
17813 return resultobj;
17814fail:
17815 {
17816 if (temp10)
17817 delete arg10;
17818 }
17819 return NULL;
d14a1e28
RD
17820}
17821
17822
0085ce49
RD
17823SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17824 PyObject *resultobj = 0;
17825 wxSlider *result = 0 ;
17826
17827 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17828 {
17829 if (!wxPyCheckForApp()) SWIG_fail;
17830 PyThreadState* __tstate = wxPyBeginAllowThreads();
17831 result = (wxSlider *)new wxSlider();
17832 wxPyEndAllowThreads(__tstate);
17833 if (PyErr_Occurred()) SWIG_fail;
17834 }
17835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17836 return resultobj;
17837fail:
17838 return NULL;
17839}
17840
17841
17842SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17843 PyObject *resultobj = 0;
17844 wxSlider *arg1 = (wxSlider *) 0 ;
17845 wxWindow *arg2 = (wxWindow *) 0 ;
17846 int arg3 = (int) -1 ;
17847 int arg4 = (int) 0 ;
17848 int arg5 = (int) 0 ;
17849 int arg6 = (int) 100 ;
17850 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17851 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17852 wxSize const &arg8_defvalue = wxDefaultSize ;
17853 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17854 long arg9 = (long) wxSL_HORIZONTAL ;
17855 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17856 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17857 wxString const &arg11_defvalue = wxPySliderNameStr ;
17858 wxString *arg11 = (wxString *) &arg11_defvalue ;
17859 bool result;
17860 void *argp1 = 0 ;
17861 int res1 = 0 ;
17862 void *argp2 = 0 ;
17863 int res2 = 0 ;
17864 int val3 ;
17865 int ecode3 = 0 ;
17866 int val4 ;
17867 int ecode4 = 0 ;
17868 int val5 ;
17869 int ecode5 = 0 ;
17870 int val6 ;
17871 int ecode6 = 0 ;
17872 wxPoint temp7 ;
17873 wxSize temp8 ;
17874 long val9 ;
17875 int ecode9 = 0 ;
17876 void *argp10 = 0 ;
17877 int res10 = 0 ;
17878 bool temp11 = false ;
17879 PyObject * obj0 = 0 ;
17880 PyObject * obj1 = 0 ;
17881 PyObject * obj2 = 0 ;
17882 PyObject * obj3 = 0 ;
17883 PyObject * obj4 = 0 ;
17884 PyObject * obj5 = 0 ;
17885 PyObject * obj6 = 0 ;
17886 PyObject * obj7 = 0 ;
17887 PyObject * obj8 = 0 ;
17888 PyObject * obj9 = 0 ;
17889 PyObject * obj10 = 0 ;
17890 char * kwnames[] = {
17891 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17892 };
17893
17894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17896 if (!SWIG_IsOK(res1)) {
17897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17898 }
17899 arg1 = reinterpret_cast< wxSlider * >(argp1);
17900 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17901 if (!SWIG_IsOK(res2)) {
17902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17903 }
17904 arg2 = reinterpret_cast< wxWindow * >(argp2);
17905 if (obj2) {
17906 ecode3 = SWIG_AsVal_int(obj2, &val3);
17907 if (!SWIG_IsOK(ecode3)) {
17908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17909 }
17910 arg3 = static_cast< int >(val3);
17911 }
17912 if (obj3) {
17913 ecode4 = SWIG_AsVal_int(obj3, &val4);
17914 if (!SWIG_IsOK(ecode4)) {
17915 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17916 }
17917 arg4 = static_cast< int >(val4);
17918 }
17919 if (obj4) {
17920 ecode5 = SWIG_AsVal_int(obj4, &val5);
17921 if (!SWIG_IsOK(ecode5)) {
17922 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17923 }
17924 arg5 = static_cast< int >(val5);
17925 }
17926 if (obj5) {
17927 ecode6 = SWIG_AsVal_int(obj5, &val6);
17928 if (!SWIG_IsOK(ecode6)) {
17929 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17930 }
17931 arg6 = static_cast< int >(val6);
17932 }
17933 if (obj6) {
093d3ff1 17934 {
0085ce49
RD
17935 arg7 = &temp7;
17936 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d14a1e28 17937 }
0085ce49
RD
17938 }
17939 if (obj7) {
d14a1e28 17940 {
0085ce49
RD
17941 arg8 = &temp8;
17942 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d14a1e28 17943 }
0085ce49
RD
17944 }
17945 if (obj8) {
17946 ecode9 = SWIG_AsVal_long(obj8, &val9);
17947 if (!SWIG_IsOK(ecode9)) {
17948 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17949 }
17950 arg9 = static_cast< long >(val9);
17951 }
17952 if (obj9) {
17953 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17954 if (!SWIG_IsOK(res10)) {
17955 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 17956 }
0085ce49
RD
17957 if (!argp10) {
17958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 17959 }
0085ce49
RD
17960 arg10 = reinterpret_cast< wxValidator * >(argp10);
17961 }
17962 if (obj10) {
4f89f6a3 17963 {
0085ce49
RD
17964 arg11 = wxString_in_helper(obj10);
17965 if (arg11 == NULL) SWIG_fail;
17966 temp11 = true;
4f89f6a3 17967 }
0085ce49
RD
17968 }
17969 {
17970 PyThreadState* __tstate = wxPyBeginAllowThreads();
17971 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17972 wxPyEndAllowThreads(__tstate);
17973 if (PyErr_Occurred()) SWIG_fail;
17974 }
17975 {
17976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17977 }
17978 {
17979 if (temp11)
17980 delete arg11;
17981 }
17982 return resultobj;
17983fail:
17984 {
17985 if (temp11)
17986 delete arg11;
17987 }
17988 return NULL;
d14a1e28
RD
17989}
17990
17991
0085ce49
RD
17992SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17993 PyObject *resultobj = 0;
17994 wxSlider *arg1 = (wxSlider *) 0 ;
17995 int result;
17996 void *argp1 = 0 ;
17997 int res1 = 0 ;
17998 PyObject *swig_obj[1] ;
17999
18000 if (!args) SWIG_fail;
18001 swig_obj[0] = args;
18002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18003 if (!SWIG_IsOK(res1)) {
18004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
18005 }
18006 arg1 = reinterpret_cast< wxSlider * >(argp1);
18007 {
18008 PyThreadState* __tstate = wxPyBeginAllowThreads();
18009 result = (int)((wxSlider const *)arg1)->GetValue();
18010 wxPyEndAllowThreads(__tstate);
18011 if (PyErr_Occurred()) SWIG_fail;
18012 }
18013 resultobj = SWIG_From_int(static_cast< int >(result));
18014 return resultobj;
18015fail:
18016 return NULL;
18017}
18018
18019
18020SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18021 PyObject *resultobj = 0;
18022 wxSlider *arg1 = (wxSlider *) 0 ;
18023 int arg2 ;
18024 void *argp1 = 0 ;
18025 int res1 = 0 ;
18026 int val2 ;
18027 int ecode2 = 0 ;
18028 PyObject * obj0 = 0 ;
18029 PyObject * obj1 = 0 ;
18030 char * kwnames[] = {
18031 (char *) "self",(char *) "value", NULL
18032 };
18033
18034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18036 if (!SWIG_IsOK(res1)) {
18037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18038 }
18039 arg1 = reinterpret_cast< wxSlider * >(argp1);
18040 ecode2 = SWIG_AsVal_int(obj1, &val2);
18041 if (!SWIG_IsOK(ecode2)) {
18042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18043 }
18044 arg2 = static_cast< int >(val2);
18045 {
18046 PyThreadState* __tstate = wxPyBeginAllowThreads();
18047 (arg1)->SetValue(arg2);
18048 wxPyEndAllowThreads(__tstate);
18049 if (PyErr_Occurred()) SWIG_fail;
18050 }
18051 resultobj = SWIG_Py_Void();
18052 return resultobj;
18053fail:
18054 return NULL;
18055}
18056
18057
18058SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18059 PyObject *resultobj = 0;
18060 wxSlider *arg1 = (wxSlider *) 0 ;
18061 int arg2 ;
18062 int arg3 ;
18063 void *argp1 = 0 ;
18064 int res1 = 0 ;
18065 int val2 ;
18066 int ecode2 = 0 ;
18067 int val3 ;
18068 int ecode3 = 0 ;
18069 PyObject * obj0 = 0 ;
18070 PyObject * obj1 = 0 ;
18071 PyObject * obj2 = 0 ;
18072 char * kwnames[] = {
18073 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18074 };
18075
18076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18078 if (!SWIG_IsOK(res1)) {
18079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18080 }
18081 arg1 = reinterpret_cast< wxSlider * >(argp1);
18082 ecode2 = SWIG_AsVal_int(obj1, &val2);
18083 if (!SWIG_IsOK(ecode2)) {
18084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18085 }
18086 arg2 = static_cast< int >(val2);
18087 ecode3 = SWIG_AsVal_int(obj2, &val3);
18088 if (!SWIG_IsOK(ecode3)) {
18089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18090 }
18091 arg3 = static_cast< int >(val3);
18092 {
18093 PyThreadState* __tstate = wxPyBeginAllowThreads();
18094 (arg1)->SetRange(arg2,arg3);
18095 wxPyEndAllowThreads(__tstate);
18096 if (PyErr_Occurred()) SWIG_fail;
18097 }
18098 resultobj = SWIG_Py_Void();
18099 return resultobj;
18100fail:
18101 return NULL;
d14a1e28
RD
18102}
18103
18104
0085ce49
RD
18105SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18106 PyObject *resultobj = 0;
18107 wxSlider *arg1 = (wxSlider *) 0 ;
18108 int result;
18109 void *argp1 = 0 ;
18110 int res1 = 0 ;
18111 PyObject *swig_obj[1] ;
18112
18113 if (!args) SWIG_fail;
18114 swig_obj[0] = args;
18115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18116 if (!SWIG_IsOK(res1)) {
18117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18118 }
18119 arg1 = reinterpret_cast< wxSlider * >(argp1);
18120 {
18121 PyThreadState* __tstate = wxPyBeginAllowThreads();
18122 result = (int)((wxSlider const *)arg1)->GetMin();
18123 wxPyEndAllowThreads(__tstate);
18124 if (PyErr_Occurred()) SWIG_fail;
18125 }
18126 resultobj = SWIG_From_int(static_cast< int >(result));
18127 return resultobj;
18128fail:
18129 return NULL;
d14a1e28
RD
18130}
18131
18132
0085ce49
RD
18133SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18134 PyObject *resultobj = 0;
18135 wxSlider *arg1 = (wxSlider *) 0 ;
18136 int result;
18137 void *argp1 = 0 ;
18138 int res1 = 0 ;
18139 PyObject *swig_obj[1] ;
18140
18141 if (!args) SWIG_fail;
18142 swig_obj[0] = args;
18143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18144 if (!SWIG_IsOK(res1)) {
18145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18146 }
18147 arg1 = reinterpret_cast< wxSlider * >(argp1);
18148 {
18149 PyThreadState* __tstate = wxPyBeginAllowThreads();
18150 result = (int)((wxSlider const *)arg1)->GetMax();
18151 wxPyEndAllowThreads(__tstate);
18152 if (PyErr_Occurred()) SWIG_fail;
18153 }
18154 resultobj = SWIG_From_int(static_cast< int >(result));
18155 return resultobj;
18156fail:
18157 return NULL;
18158}
18159
18160
18161SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18162 PyObject *resultobj = 0;
18163 wxSlider *arg1 = (wxSlider *) 0 ;
18164 int arg2 ;
18165 void *argp1 = 0 ;
18166 int res1 = 0 ;
18167 int val2 ;
18168 int ecode2 = 0 ;
18169 PyObject * obj0 = 0 ;
18170 PyObject * obj1 = 0 ;
18171 char * kwnames[] = {
18172 (char *) "self",(char *) "minValue", NULL
18173 };
18174
18175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18177 if (!SWIG_IsOK(res1)) {
18178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18179 }
18180 arg1 = reinterpret_cast< wxSlider * >(argp1);
18181 ecode2 = SWIG_AsVal_int(obj1, &val2);
18182 if (!SWIG_IsOK(ecode2)) {
18183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18184 }
18185 arg2 = static_cast< int >(val2);
18186 {
18187 PyThreadState* __tstate = wxPyBeginAllowThreads();
18188 (arg1)->SetMin(arg2);
18189 wxPyEndAllowThreads(__tstate);
18190 if (PyErr_Occurred()) SWIG_fail;
18191 }
18192 resultobj = SWIG_Py_Void();
18193 return resultobj;
18194fail:
18195 return NULL;
18196}
18197
18198
18199SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18200 PyObject *resultobj = 0;
18201 wxSlider *arg1 = (wxSlider *) 0 ;
18202 int arg2 ;
18203 void *argp1 = 0 ;
18204 int res1 = 0 ;
18205 int val2 ;
18206 int ecode2 = 0 ;
18207 PyObject * obj0 = 0 ;
18208 PyObject * obj1 = 0 ;
18209 char * kwnames[] = {
18210 (char *) "self",(char *) "maxValue", NULL
18211 };
18212
18213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18215 if (!SWIG_IsOK(res1)) {
18216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18217 }
18218 arg1 = reinterpret_cast< wxSlider * >(argp1);
18219 ecode2 = SWIG_AsVal_int(obj1, &val2);
18220 if (!SWIG_IsOK(ecode2)) {
18221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18222 }
18223 arg2 = static_cast< int >(val2);
18224 {
18225 PyThreadState* __tstate = wxPyBeginAllowThreads();
18226 (arg1)->SetMax(arg2);
18227 wxPyEndAllowThreads(__tstate);
18228 if (PyErr_Occurred()) SWIG_fail;
18229 }
18230 resultobj = SWIG_Py_Void();
18231 return resultobj;
18232fail:
18233 return NULL;
18234}
18235
18236
18237SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18238 PyObject *resultobj = 0;
18239 wxSlider *arg1 = (wxSlider *) 0 ;
18240 int arg2 ;
18241 void *argp1 = 0 ;
18242 int res1 = 0 ;
18243 int val2 ;
18244 int ecode2 = 0 ;
18245 PyObject * obj0 = 0 ;
18246 PyObject * obj1 = 0 ;
18247 char * kwnames[] = {
18248 (char *) "self",(char *) "lineSize", NULL
18249 };
18250
18251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18253 if (!SWIG_IsOK(res1)) {
18254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18255 }
18256 arg1 = reinterpret_cast< wxSlider * >(argp1);
18257 ecode2 = SWIG_AsVal_int(obj1, &val2);
18258 if (!SWIG_IsOK(ecode2)) {
18259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18260 }
18261 arg2 = static_cast< int >(val2);
18262 {
18263 PyThreadState* __tstate = wxPyBeginAllowThreads();
18264 (arg1)->SetLineSize(arg2);
18265 wxPyEndAllowThreads(__tstate);
18266 if (PyErr_Occurred()) SWIG_fail;
18267 }
18268 resultobj = SWIG_Py_Void();
18269 return resultobj;
18270fail:
18271 return NULL;
18272}
18273
18274
18275SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18276 PyObject *resultobj = 0;
18277 wxSlider *arg1 = (wxSlider *) 0 ;
18278 int arg2 ;
18279 void *argp1 = 0 ;
18280 int res1 = 0 ;
18281 int val2 ;
18282 int ecode2 = 0 ;
18283 PyObject * obj0 = 0 ;
18284 PyObject * obj1 = 0 ;
18285 char * kwnames[] = {
18286 (char *) "self",(char *) "pageSize", NULL
18287 };
18288
18289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18291 if (!SWIG_IsOK(res1)) {
18292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18293 }
18294 arg1 = reinterpret_cast< wxSlider * >(argp1);
18295 ecode2 = SWIG_AsVal_int(obj1, &val2);
18296 if (!SWIG_IsOK(ecode2)) {
18297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18298 }
18299 arg2 = static_cast< int >(val2);
18300 {
18301 PyThreadState* __tstate = wxPyBeginAllowThreads();
18302 (arg1)->SetPageSize(arg2);
18303 wxPyEndAllowThreads(__tstate);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 resultobj = SWIG_Py_Void();
18307 return resultobj;
18308fail:
18309 return NULL;
d14a1e28
RD
18310}
18311
18312
0085ce49
RD
18313SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18314 PyObject *resultobj = 0;
18315 wxSlider *arg1 = (wxSlider *) 0 ;
18316 int result;
18317 void *argp1 = 0 ;
18318 int res1 = 0 ;
18319 PyObject *swig_obj[1] ;
18320
18321 if (!args) SWIG_fail;
18322 swig_obj[0] = args;
18323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18324 if (!SWIG_IsOK(res1)) {
18325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18326 }
18327 arg1 = reinterpret_cast< wxSlider * >(argp1);
18328 {
18329 PyThreadState* __tstate = wxPyBeginAllowThreads();
18330 result = (int)((wxSlider const *)arg1)->GetLineSize();
18331 wxPyEndAllowThreads(__tstate);
18332 if (PyErr_Occurred()) SWIG_fail;
18333 }
18334 resultobj = SWIG_From_int(static_cast< int >(result));
18335 return resultobj;
18336fail:
18337 return NULL;
d14a1e28
RD
18338}
18339
18340
0085ce49
RD
18341SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18342 PyObject *resultobj = 0;
18343 wxSlider *arg1 = (wxSlider *) 0 ;
18344 int result;
18345 void *argp1 = 0 ;
18346 int res1 = 0 ;
18347 PyObject *swig_obj[1] ;
18348
18349 if (!args) SWIG_fail;
18350 swig_obj[0] = args;
18351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18352 if (!SWIG_IsOK(res1)) {
18353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18354 }
18355 arg1 = reinterpret_cast< wxSlider * >(argp1);
18356 {
18357 PyThreadState* __tstate = wxPyBeginAllowThreads();
18358 result = (int)((wxSlider const *)arg1)->GetPageSize();
18359 wxPyEndAllowThreads(__tstate);
18360 if (PyErr_Occurred()) SWIG_fail;
18361 }
18362 resultobj = SWIG_From_int(static_cast< int >(result));
18363 return resultobj;
18364fail:
18365 return NULL;
18366}
18367
18368
18369SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18370 PyObject *resultobj = 0;
18371 wxSlider *arg1 = (wxSlider *) 0 ;
18372 int arg2 ;
18373 void *argp1 = 0 ;
18374 int res1 = 0 ;
18375 int val2 ;
18376 int ecode2 = 0 ;
18377 PyObject * obj0 = 0 ;
18378 PyObject * obj1 = 0 ;
18379 char * kwnames[] = {
18380 (char *) "self",(char *) "lenPixels", NULL
18381 };
18382
18383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18385 if (!SWIG_IsOK(res1)) {
18386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18387 }
18388 arg1 = reinterpret_cast< wxSlider * >(argp1);
18389 ecode2 = SWIG_AsVal_int(obj1, &val2);
18390 if (!SWIG_IsOK(ecode2)) {
18391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18392 }
18393 arg2 = static_cast< int >(val2);
18394 {
18395 PyThreadState* __tstate = wxPyBeginAllowThreads();
18396 (arg1)->SetThumbLength(arg2);
18397 wxPyEndAllowThreads(__tstate);
18398 if (PyErr_Occurred()) SWIG_fail;
18399 }
18400 resultobj = SWIG_Py_Void();
18401 return resultobj;
18402fail:
18403 return NULL;
4d5c3d91
RD
18404}
18405
18406
0085ce49
RD
18407SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18408 PyObject *resultobj = 0;
18409 wxSlider *arg1 = (wxSlider *) 0 ;
18410 int result;
18411 void *argp1 = 0 ;
18412 int res1 = 0 ;
18413 PyObject *swig_obj[1] ;
18414
18415 if (!args) SWIG_fail;
18416 swig_obj[0] = args;
18417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18418 if (!SWIG_IsOK(res1)) {
18419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18420 }
18421 arg1 = reinterpret_cast< wxSlider * >(argp1);
18422 {
18423 PyThreadState* __tstate = wxPyBeginAllowThreads();
18424 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18425 wxPyEndAllowThreads(__tstate);
18426 if (PyErr_Occurred()) SWIG_fail;
18427 }
18428 resultobj = SWIG_From_int(static_cast< int >(result));
18429 return resultobj;
18430fail:
18431 return NULL;
18432}
18433
18434
18435SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18436 PyObject *resultobj = 0;
18437 wxSlider *arg1 = (wxSlider *) 0 ;
18438 int arg2 ;
18439 int arg3 = (int) 1 ;
18440 void *argp1 = 0 ;
18441 int res1 = 0 ;
18442 int val2 ;
18443 int ecode2 = 0 ;
18444 int val3 ;
18445 int ecode3 = 0 ;
18446 PyObject * obj0 = 0 ;
18447 PyObject * obj1 = 0 ;
18448 PyObject * obj2 = 0 ;
18449 char * kwnames[] = {
18450 (char *) "self",(char *) "n",(char *) "pos", NULL
18451 };
18452
18453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18455 if (!SWIG_IsOK(res1)) {
18456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18457 }
18458 arg1 = reinterpret_cast< wxSlider * >(argp1);
18459 ecode2 = SWIG_AsVal_int(obj1, &val2);
18460 if (!SWIG_IsOK(ecode2)) {
18461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18462 }
18463 arg2 = static_cast< int >(val2);
18464 if (obj2) {
18465 ecode3 = SWIG_AsVal_int(obj2, &val3);
18466 if (!SWIG_IsOK(ecode3)) {
18467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18468 }
18469 arg3 = static_cast< int >(val3);
18470 }
18471 {
18472 PyThreadState* __tstate = wxPyBeginAllowThreads();
18473 (arg1)->SetTickFreq(arg2,arg3);
18474 wxPyEndAllowThreads(__tstate);
18475 if (PyErr_Occurred()) SWIG_fail;
18476 }
18477 resultobj = SWIG_Py_Void();
18478 return resultobj;
18479fail:
18480 return NULL;
4896ac9e
RD
18481}
18482
18483
0085ce49
RD
18484SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18485 PyObject *resultobj = 0;
18486 wxSlider *arg1 = (wxSlider *) 0 ;
18487 int result;
18488 void *argp1 = 0 ;
18489 int res1 = 0 ;
18490 PyObject *swig_obj[1] ;
18491
18492 if (!args) SWIG_fail;
18493 swig_obj[0] = args;
18494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18495 if (!SWIG_IsOK(res1)) {
18496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18497 }
18498 arg1 = reinterpret_cast< wxSlider * >(argp1);
18499 {
18500 PyThreadState* __tstate = wxPyBeginAllowThreads();
18501 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18502 wxPyEndAllowThreads(__tstate);
18503 if (PyErr_Occurred()) SWIG_fail;
18504 }
18505 resultobj = SWIG_From_int(static_cast< int >(result));
18506 return resultobj;
18507fail:
18508 return NULL;
d14a1e28
RD
18509}
18510
18511
0085ce49
RD
18512SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18513 PyObject *resultobj = 0;
18514 wxSlider *arg1 = (wxSlider *) 0 ;
18515 void *argp1 = 0 ;
18516 int res1 = 0 ;
18517 PyObject *swig_obj[1] ;
18518
18519 if (!args) SWIG_fail;
18520 swig_obj[0] = args;
18521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18522 if (!SWIG_IsOK(res1)) {
18523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18524 }
18525 arg1 = reinterpret_cast< wxSlider * >(argp1);
18526 {
18527 PyThreadState* __tstate = wxPyBeginAllowThreads();
18528 (arg1)->ClearTicks();
18529 wxPyEndAllowThreads(__tstate);
18530 if (PyErr_Occurred()) SWIG_fail;
18531 }
18532 resultobj = SWIG_Py_Void();
18533 return resultobj;
18534fail:
18535 return NULL;
18536}
18537
18538
18539SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18540 PyObject *resultobj = 0;
18541 wxSlider *arg1 = (wxSlider *) 0 ;
18542 int arg2 ;
18543 void *argp1 = 0 ;
18544 int res1 = 0 ;
18545 int val2 ;
18546 int ecode2 = 0 ;
18547 PyObject * obj0 = 0 ;
18548 PyObject * obj1 = 0 ;
18549 char * kwnames[] = {
18550 (char *) "self",(char *) "tickPos", NULL
18551 };
18552
18553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) 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_SetTick" "', 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_SetTick" "', expected argument " "2"" of type '" "int""'");
18562 }
18563 arg2 = static_cast< int >(val2);
18564 {
18565 PyThreadState* __tstate = wxPyBeginAllowThreads();
18566 (arg1)->SetTick(arg2);
18567 wxPyEndAllowThreads(__tstate);
18568 if (PyErr_Occurred()) SWIG_fail;
18569 }
18570 resultobj = SWIG_Py_Void();
18571 return resultobj;
18572fail:
18573 return NULL;
d14a1e28
RD
18574}
18575
18576
0085ce49
RD
18577SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18578 PyObject *resultobj = 0;
18579 wxSlider *arg1 = (wxSlider *) 0 ;
18580 void *argp1 = 0 ;
18581 int res1 = 0 ;
18582 PyObject *swig_obj[1] ;
18583
18584 if (!args) SWIG_fail;
18585 swig_obj[0] = args;
18586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18587 if (!SWIG_IsOK(res1)) {
18588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18589 }
18590 arg1 = reinterpret_cast< wxSlider * >(argp1);
18591 {
18592 PyThreadState* __tstate = wxPyBeginAllowThreads();
18593 (arg1)->ClearSel();
18594 wxPyEndAllowThreads(__tstate);
18595 if (PyErr_Occurred()) SWIG_fail;
18596 }
18597 resultobj = SWIG_Py_Void();
18598 return resultobj;
18599fail:
18600 return NULL;
d14a1e28
RD
18601}
18602
18603
0085ce49
RD
18604SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18605 PyObject *resultobj = 0;
18606 wxSlider *arg1 = (wxSlider *) 0 ;
18607 int result;
18608 void *argp1 = 0 ;
18609 int res1 = 0 ;
18610 PyObject *swig_obj[1] ;
18611
18612 if (!args) SWIG_fail;
18613 swig_obj[0] = args;
18614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18615 if (!SWIG_IsOK(res1)) {
18616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18617 }
18618 arg1 = reinterpret_cast< wxSlider * >(argp1);
18619 {
18620 PyThreadState* __tstate = wxPyBeginAllowThreads();
18621 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18622 wxPyEndAllowThreads(__tstate);
18623 if (PyErr_Occurred()) SWIG_fail;
18624 }
18625 resultobj = SWIG_From_int(static_cast< int >(result));
18626 return resultobj;
18627fail:
18628 return NULL;
d14a1e28
RD
18629}
18630
18631
0085ce49
RD
18632SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18633 PyObject *resultobj = 0;
18634 wxSlider *arg1 = (wxSlider *) 0 ;
18635 int result;
18636 void *argp1 = 0 ;
18637 int res1 = 0 ;
18638 PyObject *swig_obj[1] ;
18639
18640 if (!args) SWIG_fail;
18641 swig_obj[0] = args;
18642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18643 if (!SWIG_IsOK(res1)) {
18644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18645 }
18646 arg1 = reinterpret_cast< wxSlider * >(argp1);
18647 {
18648 PyThreadState* __tstate = wxPyBeginAllowThreads();
18649 result = (int)((wxSlider const *)arg1)->GetSelStart();
18650 wxPyEndAllowThreads(__tstate);
18651 if (PyErr_Occurred()) SWIG_fail;
18652 }
18653 resultobj = SWIG_From_int(static_cast< int >(result));
18654 return resultobj;
18655fail:
18656 return NULL;
18657}
18658
18659
18660SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18661 PyObject *resultobj = 0;
18662 wxSlider *arg1 = (wxSlider *) 0 ;
18663 int arg2 ;
18664 int arg3 ;
18665 void *argp1 = 0 ;
18666 int res1 = 0 ;
18667 int val2 ;
18668 int ecode2 = 0 ;
18669 int val3 ;
18670 int ecode3 = 0 ;
18671 PyObject * obj0 = 0 ;
18672 PyObject * obj1 = 0 ;
18673 PyObject * obj2 = 0 ;
18674 char * kwnames[] = {
18675 (char *) "self",(char *) "min",(char *) "max", NULL
18676 };
18677
18678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18680 if (!SWIG_IsOK(res1)) {
18681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18682 }
18683 arg1 = reinterpret_cast< wxSlider * >(argp1);
18684 ecode2 = SWIG_AsVal_int(obj1, &val2);
18685 if (!SWIG_IsOK(ecode2)) {
18686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18687 }
18688 arg2 = static_cast< int >(val2);
18689 ecode3 = SWIG_AsVal_int(obj2, &val3);
18690 if (!SWIG_IsOK(ecode3)) {
18691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18692 }
18693 arg3 = static_cast< int >(val3);
18694 {
18695 PyThreadState* __tstate = wxPyBeginAllowThreads();
18696 (arg1)->SetSelection(arg2,arg3);
18697 wxPyEndAllowThreads(__tstate);
18698 if (PyErr_Occurred()) SWIG_fail;
18699 }
18700 resultobj = SWIG_Py_Void();
18701 return resultobj;
18702fail:
18703 return NULL;
18704}
18705
18706
18707SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18708 PyObject *resultobj = 0;
18709 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18710 SwigValueWrapper<wxVisualAttributes > result;
18711 int val1 ;
18712 int ecode1 = 0 ;
18713 PyObject * obj0 = 0 ;
18714 char * kwnames[] = {
18715 (char *) "variant", NULL
18716 };
18717
18718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18719 if (obj0) {
18720 ecode1 = SWIG_AsVal_int(obj0, &val1);
18721 if (!SWIG_IsOK(ecode1)) {
18722 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18723 }
18724 arg1 = static_cast< wxWindowVariant >(val1);
18725 }
18726 {
18727 if (!wxPyCheckForApp()) SWIG_fail;
18728 PyThreadState* __tstate = wxPyBeginAllowThreads();
18729 result = wxSlider::GetClassDefaultAttributes(arg1);
18730 wxPyEndAllowThreads(__tstate);
18731 if (PyErr_Occurred()) SWIG_fail;
18732 }
18733 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18734 return resultobj;
18735fail:
18736 return NULL;
d14a1e28
RD
18737}
18738
18739
0085ce49
RD
18740SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18741 PyObject *obj;
18742 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18743 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18744 return SWIG_Py_Void();
d14a1e28
RD
18745}
18746
0085ce49
RD
18747SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18748 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
18749}
18750
0085ce49
RD
18751SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18752 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18753 return 1;
d14a1e28
RD
18754}
18755
18756
0085ce49
RD
18757SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18758 PyObject *pyobj = 0;
18759
18760 {
18761#if wxUSE_UNICODE
18762 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18763#else
18764 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18765#endif
18766 }
18767 return pyobj;
18768}
18769
18770
18771SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18772 PyObject *resultobj = 0;
18773 wxWindow *arg1 = (wxWindow *) 0 ;
18774 int arg2 = (int) -1 ;
18775 wxString const &arg3_defvalue = wxPyEmptyString ;
18776 wxString *arg3 = (wxString *) &arg3_defvalue ;
18777 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18778 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18779 wxSize const &arg5_defvalue = wxDefaultSize ;
18780 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18781 long arg6 = (long) 0 ;
18782 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18783 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18784 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18785 wxString *arg8 = (wxString *) &arg8_defvalue ;
18786 wxToggleButton *result = 0 ;
18787 void *argp1 = 0 ;
18788 int res1 = 0 ;
18789 int val2 ;
18790 int ecode2 = 0 ;
18791 bool temp3 = false ;
18792 wxPoint temp4 ;
18793 wxSize temp5 ;
18794 long val6 ;
18795 int ecode6 = 0 ;
18796 void *argp7 = 0 ;
18797 int res7 = 0 ;
18798 bool temp8 = false ;
18799 PyObject * obj0 = 0 ;
18800 PyObject * obj1 = 0 ;
18801 PyObject * obj2 = 0 ;
18802 PyObject * obj3 = 0 ;
18803 PyObject * obj4 = 0 ;
18804 PyObject * obj5 = 0 ;
18805 PyObject * obj6 = 0 ;
18806 PyObject * obj7 = 0 ;
18807 char * kwnames[] = {
18808 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18809 };
18810
18811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18813 if (!SWIG_IsOK(res1)) {
18814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18815 }
18816 arg1 = reinterpret_cast< wxWindow * >(argp1);
18817 if (obj1) {
18818 ecode2 = SWIG_AsVal_int(obj1, &val2);
18819 if (!SWIG_IsOK(ecode2)) {
18820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18821 }
18822 arg2 = static_cast< int >(val2);
18823 }
18824 if (obj2) {
d14a1e28 18825 {
0085ce49
RD
18826 arg3 = wxString_in_helper(obj2);
18827 if (arg3 == NULL) SWIG_fail;
18828 temp3 = true;
d14a1e28 18829 }
0085ce49
RD
18830 }
18831 if (obj3) {
4f89f6a3 18832 {
0085ce49
RD
18833 arg4 = &temp4;
18834 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 18835 }
0085ce49
RD
18836 }
18837 if (obj4) {
d14a1e28 18838 {
0085ce49
RD
18839 arg5 = &temp5;
18840 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18841 }
0085ce49
RD
18842 }
18843 if (obj5) {
18844 ecode6 = SWIG_AsVal_long(obj5, &val6);
18845 if (!SWIG_IsOK(ecode6)) {
18846 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18847 }
18848 arg6 = static_cast< long >(val6);
18849 }
18850 if (obj6) {
18851 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18852 if (!SWIG_IsOK(res7)) {
18853 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 18854 }
0085ce49
RD
18855 if (!argp7) {
18856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 18857 }
0085ce49
RD
18858 arg7 = reinterpret_cast< wxValidator * >(argp7);
18859 }
18860 if (obj7) {
d14a1e28 18861 {
0085ce49
RD
18862 arg8 = wxString_in_helper(obj7);
18863 if (arg8 == NULL) SWIG_fail;
18864 temp8 = true;
d14a1e28 18865 }
0085ce49
RD
18866 }
18867 {
18868 if (!wxPyCheckForApp()) SWIG_fail;
18869 PyThreadState* __tstate = wxPyBeginAllowThreads();
18870 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18871 wxPyEndAllowThreads(__tstate);
18872 if (PyErr_Occurred()) SWIG_fail;
18873 }
18874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18875 {
18876 if (temp3)
18877 delete arg3;
18878 }
18879 {
18880 if (temp8)
18881 delete arg8;
18882 }
18883 return resultobj;
18884fail:
18885 {
18886 if (temp3)
18887 delete arg3;
18888 }
18889 {
18890 if (temp8)
18891 delete arg8;
18892 }
18893 return NULL;
d14a1e28
RD
18894}
18895
18896
0085ce49
RD
18897SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18898 PyObject *resultobj = 0;
18899 wxToggleButton *result = 0 ;
18900
18901 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18902 {
18903 if (!wxPyCheckForApp()) SWIG_fail;
18904 PyThreadState* __tstate = wxPyBeginAllowThreads();
18905 result = (wxToggleButton *)new wxToggleButton();
18906 wxPyEndAllowThreads(__tstate);
18907 if (PyErr_Occurred()) SWIG_fail;
18908 }
18909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18910 return resultobj;
18911fail:
18912 return NULL;
18913}
18914
18915
18916SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18917 PyObject *resultobj = 0;
18918 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18919 wxWindow *arg2 = (wxWindow *) 0 ;
18920 int arg3 = (int) -1 ;
18921 wxString const &arg4_defvalue = wxPyEmptyString ;
18922 wxString *arg4 = (wxString *) &arg4_defvalue ;
18923 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18924 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18925 wxSize const &arg6_defvalue = wxDefaultSize ;
18926 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18927 long arg7 = (long) 0 ;
18928 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18929 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18930 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18931 wxString *arg9 = (wxString *) &arg9_defvalue ;
18932 bool result;
18933 void *argp1 = 0 ;
18934 int res1 = 0 ;
18935 void *argp2 = 0 ;
18936 int res2 = 0 ;
18937 int val3 ;
18938 int ecode3 = 0 ;
18939 bool temp4 = false ;
18940 wxPoint temp5 ;
18941 wxSize temp6 ;
18942 long val7 ;
18943 int ecode7 = 0 ;
18944 void *argp8 = 0 ;
18945 int res8 = 0 ;
18946 bool temp9 = false ;
18947 PyObject * obj0 = 0 ;
18948 PyObject * obj1 = 0 ;
18949 PyObject * obj2 = 0 ;
18950 PyObject * obj3 = 0 ;
18951 PyObject * obj4 = 0 ;
18952 PyObject * obj5 = 0 ;
18953 PyObject * obj6 = 0 ;
18954 PyObject * obj7 = 0 ;
18955 PyObject * obj8 = 0 ;
18956 char * kwnames[] = {
18957 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18958 };
18959
18960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18962 if (!SWIG_IsOK(res1)) {
18963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18964 }
18965 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18966 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18967 if (!SWIG_IsOK(res2)) {
18968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18969 }
18970 arg2 = reinterpret_cast< wxWindow * >(argp2);
18971 if (obj2) {
18972 ecode3 = SWIG_AsVal_int(obj2, &val3);
18973 if (!SWIG_IsOK(ecode3)) {
18974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18975 }
18976 arg3 = static_cast< int >(val3);
18977 }
18978 if (obj3) {
d14a1e28 18979 {
0085ce49
RD
18980 arg4 = wxString_in_helper(obj3);
18981 if (arg4 == NULL) SWIG_fail;
18982 temp4 = true;
d14a1e28 18983 }
0085ce49
RD
18984 }
18985 if (obj4) {
d14a1e28 18986 {
0085ce49
RD
18987 arg5 = &temp5;
18988 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18989 }
0085ce49
RD
18990 }
18991 if (obj5) {
093d3ff1 18992 {
0085ce49
RD
18993 arg6 = &temp6;
18994 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 18995 }
0085ce49
RD
18996 }
18997 if (obj6) {
18998 ecode7 = SWIG_AsVal_long(obj6, &val7);
18999 if (!SWIG_IsOK(ecode7)) {
19000 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
19001 }
19002 arg7 = static_cast< long >(val7);
19003 }
19004 if (obj7) {
19005 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
19006 if (!SWIG_IsOK(res8)) {
19007 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19008 }
19009 if (!argp8) {
19010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 19011 }
0085ce49
RD
19012 arg8 = reinterpret_cast< wxValidator * >(argp8);
19013 }
19014 if (obj8) {
093d3ff1 19015 {
0085ce49
RD
19016 arg9 = wxString_in_helper(obj8);
19017 if (arg9 == NULL) SWIG_fail;
19018 temp9 = true;
093d3ff1 19019 }
0085ce49
RD
19020 }
19021 {
19022 PyThreadState* __tstate = wxPyBeginAllowThreads();
19023 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19024 wxPyEndAllowThreads(__tstate);
19025 if (PyErr_Occurred()) SWIG_fail;
19026 }
19027 {
19028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19029 }
19030 {
19031 if (temp4)
19032 delete arg4;
19033 }
19034 {
19035 if (temp9)
19036 delete arg9;
19037 }
19038 return resultobj;
19039fail:
19040 {
19041 if (temp4)
19042 delete arg4;
19043 }
19044 {
19045 if (temp9)
19046 delete arg9;
19047 }
19048 return NULL;
19049}
19050
19051
19052SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19053 PyObject *resultobj = 0;
19054 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19055 bool arg2 ;
19056 void *argp1 = 0 ;
19057 int res1 = 0 ;
19058 bool val2 ;
19059 int ecode2 = 0 ;
19060 PyObject * obj0 = 0 ;
19061 PyObject * obj1 = 0 ;
19062 char * kwnames[] = {
19063 (char *) "self",(char *) "value", NULL
19064 };
19065
19066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19068 if (!SWIG_IsOK(res1)) {
19069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19070 }
19071 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19072 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19073 if (!SWIG_IsOK(ecode2)) {
19074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19075 }
19076 arg2 = static_cast< bool >(val2);
19077 {
19078 PyThreadState* __tstate = wxPyBeginAllowThreads();
19079 (arg1)->SetValue(arg2);
19080 wxPyEndAllowThreads(__tstate);
19081 if (PyErr_Occurred()) SWIG_fail;
19082 }
19083 resultobj = SWIG_Py_Void();
19084 return resultobj;
19085fail:
19086 return NULL;
d14a1e28
RD
19087}
19088
19089
0085ce49
RD
19090SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19091 PyObject *resultobj = 0;
19092 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19093 bool result;
19094 void *argp1 = 0 ;
19095 int res1 = 0 ;
19096 PyObject *swig_obj[1] ;
19097
19098 if (!args) SWIG_fail;
19099 swig_obj[0] = args;
19100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19101 if (!SWIG_IsOK(res1)) {
19102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19103 }
19104 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19105 {
19106 PyThreadState* __tstate = wxPyBeginAllowThreads();
19107 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19108 wxPyEndAllowThreads(__tstate);
19109 if (PyErr_Occurred()) SWIG_fail;
19110 }
19111 {
19112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19113 }
19114 return resultobj;
19115fail:
19116 return NULL;
d14a1e28
RD
19117}
19118
19119
0085ce49
RD
19120SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19121 PyObject *resultobj = 0;
19122 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19123 SwigValueWrapper<wxVisualAttributes > result;
19124 int val1 ;
19125 int ecode1 = 0 ;
19126 PyObject * obj0 = 0 ;
19127 char * kwnames[] = {
19128 (char *) "variant", NULL
19129 };
19130
19131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19132 if (obj0) {
19133 ecode1 = SWIG_AsVal_int(obj0, &val1);
19134 if (!SWIG_IsOK(ecode1)) {
19135 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19136 }
19137 arg1 = static_cast< wxWindowVariant >(val1);
19138 }
19139 {
19140 if (!wxPyCheckForApp()) SWIG_fail;
19141 PyThreadState* __tstate = wxPyBeginAllowThreads();
19142 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19143 wxPyEndAllowThreads(__tstate);
19144 if (PyErr_Occurred()) SWIG_fail;
19145 }
19146 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19147 return resultobj;
19148fail:
19149 return NULL;
d14a1e28
RD
19150}
19151
19152
0085ce49
RD
19153SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19154 PyObject *obj;
19155 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19156 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19157 return SWIG_Py_Void();
d14a1e28
RD
19158}
19159
0085ce49
RD
19160SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19161 return SWIG_Python_InitShadowInstance(args);
19162}
d14a1e28 19163
0085ce49
RD
19164SWIGINTERN int NotebookNameStr_set(PyObject *) {
19165 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19166 return 1;
d14a1e28
RD
19167}
19168
19169
0085ce49
RD
19170SWIGINTERN PyObject *NotebookNameStr_get(void) {
19171 PyObject *pyobj = 0;
19172
19173 {
d14a1e28 19174#if wxUSE_UNICODE
0085ce49 19175 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 19176#else
0085ce49 19177 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 19178#endif
0085ce49
RD
19179 }
19180 return pyobj;
d14a1e28
RD
19181}
19182
19183
0085ce49
RD
19184SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19185 PyObject *resultobj = 0;
19186 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19187 size_t result;
19188 void *argp1 = 0 ;
19189 int res1 = 0 ;
19190 PyObject *swig_obj[1] ;
19191
19192 if (!args) SWIG_fail;
19193 swig_obj[0] = args;
19194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19195 if (!SWIG_IsOK(res1)) {
19196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19197 }
19198 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19199 {
19200 PyThreadState* __tstate = wxPyBeginAllowThreads();
19201 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19202 wxPyEndAllowThreads(__tstate);
19203 if (PyErr_Occurred()) SWIG_fail;
19204 }
19205 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19206 return resultobj;
19207fail:
19208 return NULL;
19209}
19210
19211
19212SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19213 PyObject *resultobj = 0;
19214 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19215 size_t arg2 ;
19216 wxWindow *result = 0 ;
19217 void *argp1 = 0 ;
19218 int res1 = 0 ;
19219 size_t val2 ;
19220 int ecode2 = 0 ;
19221 PyObject * obj0 = 0 ;
19222 PyObject * obj1 = 0 ;
19223 char * kwnames[] = {
19224 (char *) "self",(char *) "n", NULL
19225 };
19226
19227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19229 if (!SWIG_IsOK(res1)) {
19230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19231 }
19232 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19233 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19234 if (!SWIG_IsOK(ecode2)) {
19235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19236 }
19237 arg2 = static_cast< size_t >(val2);
19238 {
19239 PyThreadState* __tstate = wxPyBeginAllowThreads();
19240 result = (wxWindow *)(arg1)->GetPage(arg2);
19241 wxPyEndAllowThreads(__tstate);
19242 if (PyErr_Occurred()) SWIG_fail;
19243 }
19244 {
19245 resultobj = wxPyMake_wxObject(result, 0);
19246 }
19247 return resultobj;
19248fail:
19249 return NULL;
22bfe96c
RD
19250}
19251
19252
0085ce49
RD
19253SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19254 PyObject *resultobj = 0;
19255 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19256 wxWindow *result = 0 ;
19257 void *argp1 = 0 ;
19258 int res1 = 0 ;
19259 PyObject *swig_obj[1] ;
19260
19261 if (!args) SWIG_fail;
19262 swig_obj[0] = args;
19263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19264 if (!SWIG_IsOK(res1)) {
19265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19266 }
19267 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19268 {
19269 PyThreadState* __tstate = wxPyBeginAllowThreads();
19270 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19271 wxPyEndAllowThreads(__tstate);
19272 if (PyErr_Occurred()) SWIG_fail;
19273 }
19274 {
19275 resultobj = wxPyMake_wxObject(result, 0);
19276 }
19277 return resultobj;
19278fail:
19279 return NULL;
d14a1e28
RD
19280}
19281
19282
0085ce49
RD
19283SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19284 PyObject *resultobj = 0;
19285 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19286 int result;
19287 void *argp1 = 0 ;
19288 int res1 = 0 ;
19289 PyObject *swig_obj[1] ;
19290
19291 if (!args) SWIG_fail;
19292 swig_obj[0] = args;
19293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19294 if (!SWIG_IsOK(res1)) {
19295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19296 }
19297 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19298 {
19299 PyThreadState* __tstate = wxPyBeginAllowThreads();
19300 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19301 wxPyEndAllowThreads(__tstate);
19302 if (PyErr_Occurred()) SWIG_fail;
19303 }
19304 resultobj = SWIG_From_int(static_cast< int >(result));
19305 return resultobj;
19306fail:
19307 return NULL;
19308}
19309
19310
19311SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19312 PyObject *resultobj = 0;
19313 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19314 size_t arg2 ;
19315 wxString *arg3 = 0 ;
19316 bool result;
19317 void *argp1 = 0 ;
19318 int res1 = 0 ;
19319 size_t val2 ;
19320 int ecode2 = 0 ;
19321 bool temp3 = false ;
19322 PyObject * obj0 = 0 ;
19323 PyObject * obj1 = 0 ;
19324 PyObject * obj2 = 0 ;
19325 char * kwnames[] = {
19326 (char *) "self",(char *) "n",(char *) "strText", NULL
19327 };
19328
19329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19331 if (!SWIG_IsOK(res1)) {
19332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19333 }
19334 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19335 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19336 if (!SWIG_IsOK(ecode2)) {
19337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19338 }
19339 arg2 = static_cast< size_t >(val2);
19340 {
19341 arg3 = wxString_in_helper(obj2);
19342 if (arg3 == NULL) SWIG_fail;
19343 temp3 = true;
19344 }
19345 {
19346 PyThreadState* __tstate = wxPyBeginAllowThreads();
19347 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19348 wxPyEndAllowThreads(__tstate);
19349 if (PyErr_Occurred()) SWIG_fail;
19350 }
19351 {
19352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19353 }
19354 {
19355 if (temp3)
19356 delete arg3;
19357 }
19358 return resultobj;
19359fail:
19360 {
19361 if (temp3)
19362 delete arg3;
19363 }
19364 return NULL;
19365}
19366
19367
19368SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19369 PyObject *resultobj = 0;
19370 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19371 size_t arg2 ;
19372 wxString result;
19373 void *argp1 = 0 ;
19374 int res1 = 0 ;
19375 size_t val2 ;
19376 int ecode2 = 0 ;
19377 PyObject * obj0 = 0 ;
19378 PyObject * obj1 = 0 ;
19379 char * kwnames[] = {
19380 (char *) "self",(char *) "n", NULL
19381 };
19382
19383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19385 if (!SWIG_IsOK(res1)) {
19386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19387 }
19388 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19389 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19390 if (!SWIG_IsOK(ecode2)) {
19391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19392 }
19393 arg2 = static_cast< size_t >(val2);
19394 {
19395 PyThreadState* __tstate = wxPyBeginAllowThreads();
19396 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19397 wxPyEndAllowThreads(__tstate);
19398 if (PyErr_Occurred()) SWIG_fail;
19399 }
19400 {
19401#if wxUSE_UNICODE
19402 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19403#else
19404 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19405#endif
19406 }
19407 return resultobj;
19408fail:
19409 return NULL;
19410}
19411
19412
19413SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19414 PyObject *resultobj = 0;
19415 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19416 wxImageList *arg2 = (wxImageList *) 0 ;
19417 void *argp1 = 0 ;
19418 int res1 = 0 ;
19419 void *argp2 = 0 ;
19420 int res2 = 0 ;
19421 PyObject * obj0 = 0 ;
19422 PyObject * obj1 = 0 ;
19423 char * kwnames[] = {
19424 (char *) "self",(char *) "imageList", NULL
19425 };
19426
19427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19429 if (!SWIG_IsOK(res1)) {
19430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19431 }
19432 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19433 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19434 if (!SWIG_IsOK(res2)) {
19435 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19436 }
19437 arg2 = reinterpret_cast< wxImageList * >(argp2);
19438 {
19439 PyThreadState* __tstate = wxPyBeginAllowThreads();
19440 (arg1)->SetImageList(arg2);
19441 wxPyEndAllowThreads(__tstate);
19442 if (PyErr_Occurred()) SWIG_fail;
19443 }
19444 resultobj = SWIG_Py_Void();
19445 return resultobj;
19446fail:
19447 return NULL;
19448}
19449
19450
19451SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19452 PyObject *resultobj = 0;
19453 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19454 wxImageList *arg2 = (wxImageList *) 0 ;
19455 void *argp1 = 0 ;
19456 int res1 = 0 ;
19457 int res2 = 0 ;
19458 PyObject * obj0 = 0 ;
19459 PyObject * obj1 = 0 ;
19460 char * kwnames[] = {
19461 (char *) "self",(char *) "imageList", NULL
19462 };
19463
19464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19466 if (!SWIG_IsOK(res1)) {
19467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19468 }
19469 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19470 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19471 if (!SWIG_IsOK(res2)) {
19472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19473 }
19474 {
19475 PyThreadState* __tstate = wxPyBeginAllowThreads();
19476 (arg1)->AssignImageList(arg2);
19477 wxPyEndAllowThreads(__tstate);
19478 if (PyErr_Occurred()) SWIG_fail;
19479 }
19480 resultobj = SWIG_Py_Void();
19481 return resultobj;
19482fail:
19483 return NULL;
d14a1e28
RD
19484}
19485
19486
0085ce49
RD
19487SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19488 PyObject *resultobj = 0;
19489 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19490 wxImageList *result = 0 ;
19491 void *argp1 = 0 ;
19492 int res1 = 0 ;
19493 PyObject *swig_obj[1] ;
19494
19495 if (!args) SWIG_fail;
19496 swig_obj[0] = args;
19497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19498 if (!SWIG_IsOK(res1)) {
19499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19500 }
19501 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19502 {
19503 PyThreadState* __tstate = wxPyBeginAllowThreads();
19504 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19505 wxPyEndAllowThreads(__tstate);
19506 if (PyErr_Occurred()) SWIG_fail;
19507 }
3ecece7e
RD
19508 {
19509 resultobj = wxPyMake_wxObject(result, (bool)0);
19510 }
0085ce49
RD
19511 return resultobj;
19512fail:
19513 return NULL;
19514}
19515
19516
19517SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19518 PyObject *resultobj = 0;
19519 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19520 size_t arg2 ;
19521 int result;
19522 void *argp1 = 0 ;
19523 int res1 = 0 ;
19524 size_t val2 ;
19525 int ecode2 = 0 ;
19526 PyObject * obj0 = 0 ;
19527 PyObject * obj1 = 0 ;
19528 char * kwnames[] = {
19529 (char *) "self",(char *) "n", NULL
19530 };
19531
19532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19534 if (!SWIG_IsOK(res1)) {
19535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19536 }
19537 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19538 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19539 if (!SWIG_IsOK(ecode2)) {
19540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19541 }
19542 arg2 = static_cast< size_t >(val2);
19543 {
19544 PyThreadState* __tstate = wxPyBeginAllowThreads();
19545 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19546 wxPyEndAllowThreads(__tstate);
19547 if (PyErr_Occurred()) SWIG_fail;
19548 }
19549 resultobj = SWIG_From_int(static_cast< int >(result));
19550 return resultobj;
19551fail:
19552 return NULL;
19553}
19554
19555
19556SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19557 PyObject *resultobj = 0;
19558 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19559 size_t arg2 ;
19560 int arg3 ;
19561 bool result;
19562 void *argp1 = 0 ;
19563 int res1 = 0 ;
19564 size_t val2 ;
19565 int ecode2 = 0 ;
19566 int val3 ;
19567 int ecode3 = 0 ;
19568 PyObject * obj0 = 0 ;
19569 PyObject * obj1 = 0 ;
19570 PyObject * obj2 = 0 ;
19571 char * kwnames[] = {
19572 (char *) "self",(char *) "n",(char *) "imageId", NULL
19573 };
19574
19575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19577 if (!SWIG_IsOK(res1)) {
19578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19579 }
19580 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19581 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19582 if (!SWIG_IsOK(ecode2)) {
19583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19584 }
19585 arg2 = static_cast< size_t >(val2);
19586 ecode3 = SWIG_AsVal_int(obj2, &val3);
19587 if (!SWIG_IsOK(ecode3)) {
19588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19589 }
19590 arg3 = static_cast< int >(val3);
19591 {
19592 PyThreadState* __tstate = wxPyBeginAllowThreads();
19593 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19594 wxPyEndAllowThreads(__tstate);
19595 if (PyErr_Occurred()) SWIG_fail;
19596 }
19597 {
19598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19599 }
19600 return resultobj;
19601fail:
19602 return NULL;
19603}
19604
19605
19606SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19607 PyObject *resultobj = 0;
19608 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19609 wxSize *arg2 = 0 ;
19610 void *argp1 = 0 ;
19611 int res1 = 0 ;
19612 wxSize temp2 ;
19613 PyObject * obj0 = 0 ;
19614 PyObject * obj1 = 0 ;
19615 char * kwnames[] = {
19616 (char *) "self",(char *) "size", NULL
19617 };
19618
19619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19621 if (!SWIG_IsOK(res1)) {
19622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19623 }
19624 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19625 {
19626 arg2 = &temp2;
19627 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19628 }
19629 {
19630 PyThreadState* __tstate = wxPyBeginAllowThreads();
19631 (arg1)->SetPageSize((wxSize const &)*arg2);
19632 wxPyEndAllowThreads(__tstate);
19633 if (PyErr_Occurred()) SWIG_fail;
19634 }
19635 resultobj = SWIG_Py_Void();
19636 return resultobj;
19637fail:
19638 return NULL;
19639}
19640
19641
19642SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19643 PyObject *resultobj = 0;
19644 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19645 wxSize *arg2 = 0 ;
19646 wxSize result;
19647 void *argp1 = 0 ;
19648 int res1 = 0 ;
19649 wxSize temp2 ;
19650 PyObject * obj0 = 0 ;
19651 PyObject * obj1 = 0 ;
19652 char * kwnames[] = {
19653 (char *) "self",(char *) "sizePage", NULL
19654 };
19655
19656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19658 if (!SWIG_IsOK(res1)) {
19659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19660 }
19661 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19662 {
19663 arg2 = &temp2;
19664 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19665 }
19666 {
19667 PyThreadState* __tstate = wxPyBeginAllowThreads();
19668 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19669 wxPyEndAllowThreads(__tstate);
19670 if (PyErr_Occurred()) SWIG_fail;
19671 }
19672 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19673 return resultobj;
19674fail:
19675 return NULL;
d14a1e28
RD
19676}
19677
19678
0085ce49
RD
19679SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19680 PyObject *resultobj = 0;
19681 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19682 unsigned int result;
0085ce49
RD
19683 void *argp1 = 0 ;
19684 int res1 = 0 ;
19685 PyObject *swig_obj[1] ;
19686
19687 if (!args) SWIG_fail;
19688 swig_obj[0] = args;
19689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19690 if (!SWIG_IsOK(res1)) {
19691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19692 }
19693 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19694 {
19695 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19696 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
0085ce49
RD
19697 wxPyEndAllowThreads(__tstate);
19698 if (PyErr_Occurred()) SWIG_fail;
19699 }
e9d6f3a4 19700 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
19701 return resultobj;
19702fail:
19703 return NULL;
19704}
19705
19706
19707SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19708 PyObject *resultobj = 0;
19709 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19710 unsigned int arg2 ;
0085ce49
RD
19711 void *argp1 = 0 ;
19712 int res1 = 0 ;
e9d6f3a4 19713 unsigned int val2 ;
0085ce49
RD
19714 int ecode2 = 0 ;
19715 PyObject * obj0 = 0 ;
19716 PyObject * obj1 = 0 ;
19717 char * kwnames[] = {
19718 (char *) "self",(char *) "internalBorder", NULL
19719 };
19720
19721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19723 if (!SWIG_IsOK(res1)) {
19724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19725 }
19726 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19727 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 19728 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 19730 }
e9d6f3a4 19731 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
19732 {
19733 PyThreadState* __tstate = wxPyBeginAllowThreads();
19734 (arg1)->SetInternalBorder(arg2);
19735 wxPyEndAllowThreads(__tstate);
19736 if (PyErr_Occurred()) SWIG_fail;
19737 }
19738 resultobj = SWIG_Py_Void();
19739 return resultobj;
19740fail:
19741 return NULL;
b2dc1044
RD
19742}
19743
19744
0085ce49
RD
19745SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19746 PyObject *resultobj = 0;
19747 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19748 bool result;
19749 void *argp1 = 0 ;
19750 int res1 = 0 ;
19751 PyObject *swig_obj[1] ;
19752
19753 if (!args) SWIG_fail;
19754 swig_obj[0] = args;
19755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19756 if (!SWIG_IsOK(res1)) {
19757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19758 }
19759 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19760 {
19761 PyThreadState* __tstate = wxPyBeginAllowThreads();
19762 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19763 wxPyEndAllowThreads(__tstate);
19764 if (PyErr_Occurred()) SWIG_fail;
19765 }
19766 {
19767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19768 }
19769 return resultobj;
19770fail:
19771 return NULL;
19772}
19773
19774
e9d6f3a4
RD
19775SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19776 PyObject *resultobj = 0;
19777 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19778 int arg2 ;
19779 void *argp1 = 0 ;
19780 int res1 = 0 ;
19781 int val2 ;
19782 int ecode2 = 0 ;
19783 PyObject * obj0 = 0 ;
19784 PyObject * obj1 = 0 ;
19785 char * kwnames[] = {
19786 (char *) "self",(char *) "margin", NULL
19787 };
19788
19789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19791 if (!SWIG_IsOK(res1)) {
19792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19793 }
19794 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19795 ecode2 = SWIG_AsVal_int(obj1, &val2);
19796 if (!SWIG_IsOK(ecode2)) {
19797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19798 }
19799 arg2 = static_cast< int >(val2);
19800 {
19801 PyThreadState* __tstate = wxPyBeginAllowThreads();
19802 (arg1)->SetControlMargin(arg2);
19803 wxPyEndAllowThreads(__tstate);
19804 if (PyErr_Occurred()) SWIG_fail;
19805 }
19806 resultobj = SWIG_Py_Void();
19807 return resultobj;
19808fail:
19809 return NULL;
19810}
19811
19812
19813SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19814 PyObject *resultobj = 0;
19815 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19816 int result;
19817 void *argp1 = 0 ;
19818 int res1 = 0 ;
19819 PyObject *swig_obj[1] ;
19820
19821 if (!args) SWIG_fail;
19822 swig_obj[0] = args;
19823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19824 if (!SWIG_IsOK(res1)) {
19825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19826 }
19827 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19828 {
19829 PyThreadState* __tstate = wxPyBeginAllowThreads();
19830 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19831 wxPyEndAllowThreads(__tstate);
19832 if (PyErr_Occurred()) SWIG_fail;
19833 }
19834 resultobj = SWIG_From_int(static_cast< int >(result));
19835 return resultobj;
19836fail:
19837 return NULL;
19838}
19839
19840
0085ce49
RD
19841SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19842 PyObject *resultobj = 0;
19843 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19844 bool arg2 ;
19845 void *argp1 = 0 ;
19846 int res1 = 0 ;
19847 bool val2 ;
19848 int ecode2 = 0 ;
19849 PyObject * obj0 = 0 ;
19850 PyObject * obj1 = 0 ;
19851 char * kwnames[] = {
19852 (char *) "self",(char *) "fit", NULL
19853 };
19854
19855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19857 if (!SWIG_IsOK(res1)) {
19858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19859 }
19860 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19861 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19862 if (!SWIG_IsOK(ecode2)) {
19863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19864 }
19865 arg2 = static_cast< bool >(val2);
19866 {
19867 PyThreadState* __tstate = wxPyBeginAllowThreads();
19868 (arg1)->SetFitToCurrentPage(arg2);
19869 wxPyEndAllowThreads(__tstate);
19870 if (PyErr_Occurred()) SWIG_fail;
19871 }
19872 resultobj = SWIG_Py_Void();
19873 return resultobj;
19874fail:
19875 return NULL;
d14a1e28
RD
19876}
19877
19878
0085ce49
RD
19879SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19880 PyObject *resultobj = 0;
19881 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19882 bool result;
19883 void *argp1 = 0 ;
19884 int res1 = 0 ;
19885 PyObject *swig_obj[1] ;
19886
19887 if (!args) SWIG_fail;
19888 swig_obj[0] = args;
19889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19890 if (!SWIG_IsOK(res1)) {
19891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19892 }
19893 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19894 {
19895 PyThreadState* __tstate = wxPyBeginAllowThreads();
19896 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19897 wxPyEndAllowThreads(__tstate);
19898 if (PyErr_Occurred()) SWIG_fail;
19899 }
19900 {
19901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19902 }
19903 return resultobj;
19904fail:
19905 return NULL;
19906}
19907
19908
e9d6f3a4
RD
19909SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19910 PyObject *resultobj = 0;
19911 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19912 wxSizer *result = 0 ;
19913 void *argp1 = 0 ;
19914 int res1 = 0 ;
19915 PyObject *swig_obj[1] ;
19916
19917 if (!args) SWIG_fail;
19918 swig_obj[0] = args;
19919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19920 if (!SWIG_IsOK(res1)) {
19921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19922 }
19923 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19924 {
19925 PyThreadState* __tstate = wxPyBeginAllowThreads();
19926 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19927 wxPyEndAllowThreads(__tstate);
19928 if (PyErr_Occurred()) SWIG_fail;
19929 }
19930 {
19931 resultobj = wxPyMake_wxObject(result, (bool)0);
19932 }
19933 return resultobj;
19934fail:
19935 return NULL;
19936}
19937
19938
0085ce49
RD
19939SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19940 PyObject *resultobj = 0;
19941 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19942 size_t arg2 ;
19943 bool result;
19944 void *argp1 = 0 ;
19945 int res1 = 0 ;
19946 size_t val2 ;
19947 int ecode2 = 0 ;
19948 PyObject * obj0 = 0 ;
19949 PyObject * obj1 = 0 ;
19950 char * kwnames[] = {
19951 (char *) "self",(char *) "n", NULL
19952 };
19953
19954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19956 if (!SWIG_IsOK(res1)) {
19957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19958 }
19959 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19960 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19961 if (!SWIG_IsOK(ecode2)) {
19962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19963 }
19964 arg2 = static_cast< size_t >(val2);
19965 {
19966 PyThreadState* __tstate = wxPyBeginAllowThreads();
19967 result = (bool)(arg1)->DeletePage(arg2);
19968 wxPyEndAllowThreads(__tstate);
19969 if (PyErr_Occurred()) SWIG_fail;
19970 }
19971 {
19972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19973 }
19974 return resultobj;
19975fail:
19976 return NULL;
19977}
19978
19979
19980SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19981 PyObject *resultobj = 0;
19982 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19983 size_t arg2 ;
19984 bool result;
19985 void *argp1 = 0 ;
19986 int res1 = 0 ;
19987 size_t val2 ;
19988 int ecode2 = 0 ;
19989 PyObject * obj0 = 0 ;
19990 PyObject * obj1 = 0 ;
19991 char * kwnames[] = {
19992 (char *) "self",(char *) "n", NULL
19993 };
19994
19995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19997 if (!SWIG_IsOK(res1)) {
19998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19999 }
20000 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20001 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20002 if (!SWIG_IsOK(ecode2)) {
20003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
20004 }
20005 arg2 = static_cast< size_t >(val2);
20006 {
20007 PyThreadState* __tstate = wxPyBeginAllowThreads();
20008 result = (bool)(arg1)->RemovePage(arg2);
20009 wxPyEndAllowThreads(__tstate);
20010 if (PyErr_Occurred()) SWIG_fail;
20011 }
20012 {
20013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20014 }
20015 return resultobj;
20016fail:
20017 return NULL;
d14a1e28
RD
20018}
20019
20020
0085ce49
RD
20021SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20022 PyObject *resultobj = 0;
20023 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20024 bool result;
20025 void *argp1 = 0 ;
20026 int res1 = 0 ;
20027 PyObject *swig_obj[1] ;
20028
20029 if (!args) SWIG_fail;
20030 swig_obj[0] = args;
20031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20032 if (!SWIG_IsOK(res1)) {
20033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20034 }
20035 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20036 {
20037 PyThreadState* __tstate = wxPyBeginAllowThreads();
20038 result = (bool)(arg1)->DeleteAllPages();
20039 wxPyEndAllowThreads(__tstate);
20040 if (PyErr_Occurred()) SWIG_fail;
20041 }
20042 {
20043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20044 }
20045 return resultobj;
20046fail:
20047 return NULL;
20048}
20049
20050
20051SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20052 PyObject *resultobj = 0;
20053 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20054 wxWindow *arg2 = (wxWindow *) 0 ;
20055 wxString *arg3 = 0 ;
20056 bool arg4 = (bool) false ;
20057 int arg5 = (int) -1 ;
20058 bool result;
20059 void *argp1 = 0 ;
20060 int res1 = 0 ;
20061 void *argp2 = 0 ;
20062 int res2 = 0 ;
20063 bool temp3 = false ;
20064 bool val4 ;
20065 int ecode4 = 0 ;
20066 int val5 ;
20067 int ecode5 = 0 ;
20068 PyObject * obj0 = 0 ;
20069 PyObject * obj1 = 0 ;
20070 PyObject * obj2 = 0 ;
20071 PyObject * obj3 = 0 ;
20072 PyObject * obj4 = 0 ;
20073 char * kwnames[] = {
20074 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20075 };
20076
20077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20079 if (!SWIG_IsOK(res1)) {
20080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20081 }
20082 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20083 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20084 if (!SWIG_IsOK(res2)) {
20085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20086 }
20087 arg2 = reinterpret_cast< wxWindow * >(argp2);
20088 {
20089 arg3 = wxString_in_helper(obj2);
20090 if (arg3 == NULL) SWIG_fail;
20091 temp3 = true;
20092 }
20093 if (obj3) {
20094 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20095 if (!SWIG_IsOK(ecode4)) {
20096 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20097 }
20098 arg4 = static_cast< bool >(val4);
20099 }
20100 if (obj4) {
20101 ecode5 = SWIG_AsVal_int(obj4, &val5);
20102 if (!SWIG_IsOK(ecode5)) {
20103 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20104 }
20105 arg5 = static_cast< int >(val5);
20106 }
20107 {
20108 PyThreadState* __tstate = wxPyBeginAllowThreads();
20109 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20110 wxPyEndAllowThreads(__tstate);
20111 if (PyErr_Occurred()) SWIG_fail;
20112 }
20113 {
20114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20115 }
20116 {
20117 if (temp3)
20118 delete arg3;
20119 }
20120 return resultobj;
20121fail:
20122 {
20123 if (temp3)
20124 delete arg3;
20125 }
20126 return NULL;
20127}
20128
20129
20130SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20131 PyObject *resultobj = 0;
20132 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20133 size_t arg2 ;
20134 wxWindow *arg3 = (wxWindow *) 0 ;
20135 wxString *arg4 = 0 ;
20136 bool arg5 = (bool) false ;
20137 int arg6 = (int) -1 ;
20138 bool result;
20139 void *argp1 = 0 ;
20140 int res1 = 0 ;
20141 size_t val2 ;
20142 int ecode2 = 0 ;
20143 void *argp3 = 0 ;
20144 int res3 = 0 ;
20145 bool temp4 = false ;
20146 bool val5 ;
20147 int ecode5 = 0 ;
20148 int val6 ;
20149 int ecode6 = 0 ;
20150 PyObject * obj0 = 0 ;
20151 PyObject * obj1 = 0 ;
20152 PyObject * obj2 = 0 ;
20153 PyObject * obj3 = 0 ;
20154 PyObject * obj4 = 0 ;
20155 PyObject * obj5 = 0 ;
20156 char * kwnames[] = {
20157 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20158 };
20159
20160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20162 if (!SWIG_IsOK(res1)) {
20163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20164 }
20165 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20166 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20167 if (!SWIG_IsOK(ecode2)) {
20168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20169 }
20170 arg2 = static_cast< size_t >(val2);
20171 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20172 if (!SWIG_IsOK(res3)) {
20173 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20174 }
20175 arg3 = reinterpret_cast< wxWindow * >(argp3);
20176 {
20177 arg4 = wxString_in_helper(obj3);
20178 if (arg4 == NULL) SWIG_fail;
20179 temp4 = true;
20180 }
20181 if (obj4) {
20182 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20183 if (!SWIG_IsOK(ecode5)) {
20184 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20185 }
20186 arg5 = static_cast< bool >(val5);
20187 }
20188 if (obj5) {
20189 ecode6 = SWIG_AsVal_int(obj5, &val6);
20190 if (!SWIG_IsOK(ecode6)) {
20191 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20192 }
20193 arg6 = static_cast< int >(val6);
20194 }
20195 {
20196 PyThreadState* __tstate = wxPyBeginAllowThreads();
20197 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20198 wxPyEndAllowThreads(__tstate);
20199 if (PyErr_Occurred()) SWIG_fail;
20200 }
20201 {
20202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20203 }
20204 {
20205 if (temp4)
20206 delete arg4;
20207 }
20208 return resultobj;
20209fail:
20210 {
20211 if (temp4)
20212 delete arg4;
20213 }
20214 return NULL;
20215}
20216
20217
20218SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20219 PyObject *resultobj = 0;
20220 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20221 size_t arg2 ;
20222 int result;
20223 void *argp1 = 0 ;
20224 int res1 = 0 ;
20225 size_t val2 ;
20226 int ecode2 = 0 ;
20227 PyObject * obj0 = 0 ;
20228 PyObject * obj1 = 0 ;
20229 char * kwnames[] = {
20230 (char *) "self",(char *) "n", NULL
20231 };
20232
20233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20235 if (!SWIG_IsOK(res1)) {
20236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20237 }
20238 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20239 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20240 if (!SWIG_IsOK(ecode2)) {
20241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20242 }
20243 arg2 = static_cast< size_t >(val2);
20244 {
20245 PyThreadState* __tstate = wxPyBeginAllowThreads();
20246 result = (int)(arg1)->SetSelection(arg2);
20247 wxPyEndAllowThreads(__tstate);
20248 if (PyErr_Occurred()) SWIG_fail;
20249 }
20250 resultobj = SWIG_From_int(static_cast< int >(result));
20251 return resultobj;
20252fail:
20253 return NULL;
20254}
20255
20256
b39fe951
RD
20257SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20258 PyObject *resultobj = 0;
20259 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20260 size_t arg2 ;
20261 int result;
20262 void *argp1 = 0 ;
20263 int res1 = 0 ;
20264 size_t val2 ;
20265 int ecode2 = 0 ;
20266 PyObject * obj0 = 0 ;
20267 PyObject * obj1 = 0 ;
20268 char * kwnames[] = {
20269 (char *) "self",(char *) "n", NULL
20270 };
20271
20272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20274 if (!SWIG_IsOK(res1)) {
20275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20276 }
20277 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20278 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20279 if (!SWIG_IsOK(ecode2)) {
20280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20281 }
20282 arg2 = static_cast< size_t >(val2);
20283 {
20284 PyThreadState* __tstate = wxPyBeginAllowThreads();
20285 result = (int)(arg1)->ChangeSelection(arg2);
20286 wxPyEndAllowThreads(__tstate);
20287 if (PyErr_Occurred()) SWIG_fail;
20288 }
20289 resultobj = SWIG_From_int(static_cast< int >(result));
20290 return resultobj;
20291fail:
20292 return NULL;
20293}
20294
20295
0085ce49
RD
20296SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20297 PyObject *resultobj = 0;
20298 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20299 bool arg2 = (bool) true ;
20300 void *argp1 = 0 ;
20301 int res1 = 0 ;
20302 bool val2 ;
20303 int ecode2 = 0 ;
20304 PyObject * obj0 = 0 ;
20305 PyObject * obj1 = 0 ;
20306 char * kwnames[] = {
20307 (char *) "self",(char *) "forward", NULL
20308 };
20309
20310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20312 if (!SWIG_IsOK(res1)) {
20313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20314 }
20315 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20316 if (obj1) {
20317 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20318 if (!SWIG_IsOK(ecode2)) {
20319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20320 }
20321 arg2 = static_cast< bool >(val2);
20322 }
20323 {
20324 PyThreadState* __tstate = wxPyBeginAllowThreads();
20325 (arg1)->AdvanceSelection(arg2);
20326 wxPyEndAllowThreads(__tstate);
20327 if (PyErr_Occurred()) SWIG_fail;
20328 }
20329 resultobj = SWIG_Py_Void();
20330 return resultobj;
20331fail:
20332 return NULL;
20333}
20334
20335
704eda0c
RD
20336SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20337 PyObject *resultobj = 0;
20338 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20339 wxPoint *arg2 = 0 ;
20340 long *arg3 = (long *) 0 ;
20341 int result;
20342 void *argp1 = 0 ;
20343 int res1 = 0 ;
20344 wxPoint temp2 ;
20345 long temp3 ;
20346 int res3 = SWIG_TMPOBJ ;
20347 PyObject * obj0 = 0 ;
20348 PyObject * obj1 = 0 ;
20349 char * kwnames[] = {
20350 (char *) "self",(char *) "pt", NULL
20351 };
20352
20353 arg3 = &temp3;
20354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20356 if (!SWIG_IsOK(res1)) {
20357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20358 }
20359 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20360 {
20361 arg2 = &temp2;
20362 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20363 }
20364 {
20365 PyThreadState* __tstate = wxPyBeginAllowThreads();
20366 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20367 wxPyEndAllowThreads(__tstate);
20368 if (PyErr_Occurred()) SWIG_fail;
20369 }
20370 resultobj = SWIG_From_int(static_cast< int >(result));
20371 if (SWIG_IsTmpObj(res3)) {
20372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20373 } else {
20374 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20376 }
20377 return resultobj;
20378fail:
20379 return NULL;
20380}
20381
20382
0085ce49
RD
20383SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20384 PyObject *resultobj = 0;
20385 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20386 SwigValueWrapper<wxVisualAttributes > result;
20387 int val1 ;
20388 int ecode1 = 0 ;
20389 PyObject * obj0 = 0 ;
20390 char * kwnames[] = {
20391 (char *) "variant", NULL
20392 };
20393
20394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20395 if (obj0) {
20396 ecode1 = SWIG_AsVal_int(obj0, &val1);
20397 if (!SWIG_IsOK(ecode1)) {
20398 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20399 }
20400 arg1 = static_cast< wxWindowVariant >(val1);
20401 }
20402 {
20403 if (!wxPyCheckForApp()) SWIG_fail;
20404 PyThreadState* __tstate = wxPyBeginAllowThreads();
20405 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20406 wxPyEndAllowThreads(__tstate);
20407 if (PyErr_Occurred()) SWIG_fail;
20408 }
20409 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20410 return resultobj;
20411fail:
20412 return NULL;
20413}
20414
20415
20416SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20417 PyObject *obj;
20418 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20419 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20420 return SWIG_Py_Void();
20421}
20422
20423SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20424 PyObject *resultobj = 0;
20425 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20426 int arg2 = (int) 0 ;
20427 int arg3 = (int) -1 ;
20428 int arg4 = (int) -1 ;
20429 wxBookCtrlBaseEvent *result = 0 ;
20430 int val1 ;
20431 int ecode1 = 0 ;
20432 int val2 ;
20433 int ecode2 = 0 ;
20434 int val3 ;
20435 int ecode3 = 0 ;
20436 int val4 ;
20437 int ecode4 = 0 ;
20438 PyObject * obj0 = 0 ;
20439 PyObject * obj1 = 0 ;
20440 PyObject * obj2 = 0 ;
20441 PyObject * obj3 = 0 ;
20442 char * kwnames[] = {
20443 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20444 };
20445
20446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20447 if (obj0) {
20448 ecode1 = SWIG_AsVal_int(obj0, &val1);
20449 if (!SWIG_IsOK(ecode1)) {
20450 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20451 }
20452 arg1 = static_cast< wxEventType >(val1);
20453 }
20454 if (obj1) {
20455 ecode2 = SWIG_AsVal_int(obj1, &val2);
20456 if (!SWIG_IsOK(ecode2)) {
20457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20458 }
20459 arg2 = static_cast< int >(val2);
20460 }
20461 if (obj2) {
20462 ecode3 = SWIG_AsVal_int(obj2, &val3);
20463 if (!SWIG_IsOK(ecode3)) {
20464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20465 }
20466 arg3 = static_cast< int >(val3);
20467 }
20468 if (obj3) {
20469 ecode4 = SWIG_AsVal_int(obj3, &val4);
20470 if (!SWIG_IsOK(ecode4)) {
20471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20472 }
20473 arg4 = static_cast< int >(val4);
20474 }
20475 {
20476 PyThreadState* __tstate = wxPyBeginAllowThreads();
20477 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20478 wxPyEndAllowThreads(__tstate);
20479 if (PyErr_Occurred()) SWIG_fail;
20480 }
20481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20482 return resultobj;
20483fail:
20484 return NULL;
d14a1e28
RD
20485}
20486
20487
0085ce49
RD
20488SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20489 PyObject *resultobj = 0;
20490 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20491 int result;
20492 void *argp1 = 0 ;
20493 int res1 = 0 ;
20494 PyObject *swig_obj[1] ;
20495
20496 if (!args) SWIG_fail;
20497 swig_obj[0] = args;
20498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20499 if (!SWIG_IsOK(res1)) {
20500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20501 }
20502 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20503 {
20504 PyThreadState* __tstate = wxPyBeginAllowThreads();
20505 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20506 wxPyEndAllowThreads(__tstate);
20507 if (PyErr_Occurred()) SWIG_fail;
20508 }
20509 resultobj = SWIG_From_int(static_cast< int >(result));
20510 return resultobj;
20511fail:
20512 return NULL;
20513}
20514
20515
20516SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20517 PyObject *resultobj = 0;
20518 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20519 int arg2 ;
20520 void *argp1 = 0 ;
20521 int res1 = 0 ;
20522 int val2 ;
20523 int ecode2 = 0 ;
20524 PyObject * obj0 = 0 ;
20525 PyObject * obj1 = 0 ;
20526 char * kwnames[] = {
20527 (char *) "self",(char *) "nSel", NULL
20528 };
20529
20530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20532 if (!SWIG_IsOK(res1)) {
20533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20534 }
20535 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20536 ecode2 = SWIG_AsVal_int(obj1, &val2);
20537 if (!SWIG_IsOK(ecode2)) {
20538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20539 }
20540 arg2 = static_cast< int >(val2);
20541 {
20542 PyThreadState* __tstate = wxPyBeginAllowThreads();
20543 (arg1)->SetSelection(arg2);
20544 wxPyEndAllowThreads(__tstate);
20545 if (PyErr_Occurred()) SWIG_fail;
20546 }
20547 resultobj = SWIG_Py_Void();
20548 return resultobj;
20549fail:
20550 return NULL;
d14a1e28
RD
20551}
20552
20553
0085ce49
RD
20554SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20555 PyObject *resultobj = 0;
20556 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20557 int result;
20558 void *argp1 = 0 ;
20559 int res1 = 0 ;
20560 PyObject *swig_obj[1] ;
20561
20562 if (!args) SWIG_fail;
20563 swig_obj[0] = args;
20564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20565 if (!SWIG_IsOK(res1)) {
20566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20567 }
20568 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20569 {
20570 PyThreadState* __tstate = wxPyBeginAllowThreads();
20571 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20572 wxPyEndAllowThreads(__tstate);
20573 if (PyErr_Occurred()) SWIG_fail;
20574 }
20575 resultobj = SWIG_From_int(static_cast< int >(result));
20576 return resultobj;
20577fail:
20578 return NULL;
20579}
20580
20581
20582SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20583 PyObject *resultobj = 0;
20584 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20585 int arg2 ;
20586 void *argp1 = 0 ;
20587 int res1 = 0 ;
20588 int val2 ;
20589 int ecode2 = 0 ;
20590 PyObject * obj0 = 0 ;
20591 PyObject * obj1 = 0 ;
20592 char * kwnames[] = {
20593 (char *) "self",(char *) "nOldSel", NULL
20594 };
20595
20596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20598 if (!SWIG_IsOK(res1)) {
20599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20600 }
20601 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20602 ecode2 = SWIG_AsVal_int(obj1, &val2);
20603 if (!SWIG_IsOK(ecode2)) {
20604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20605 }
20606 arg2 = static_cast< int >(val2);
20607 {
20608 PyThreadState* __tstate = wxPyBeginAllowThreads();
20609 (arg1)->SetOldSelection(arg2);
20610 wxPyEndAllowThreads(__tstate);
20611 if (PyErr_Occurred()) SWIG_fail;
20612 }
20613 resultobj = SWIG_Py_Void();
20614 return resultobj;
20615fail:
20616 return NULL;
20617}
20618
20619
20620SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20621 PyObject *obj;
20622 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20623 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20624 return SWIG_Py_Void();
20625}
20626
20627SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20628 return SWIG_Python_InitShadowInstance(args);
20629}
20630
20631SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20632 PyObject *resultobj = 0;
20633 wxWindow *arg1 = (wxWindow *) 0 ;
20634 int arg2 = (int) -1 ;
20635 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20636 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20637 wxSize const &arg4_defvalue = wxDefaultSize ;
20638 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20639 long arg5 = (long) 0 ;
20640 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20641 wxString *arg6 = (wxString *) &arg6_defvalue ;
20642 wxNotebook *result = 0 ;
20643 void *argp1 = 0 ;
20644 int res1 = 0 ;
20645 int val2 ;
20646 int ecode2 = 0 ;
20647 wxPoint temp3 ;
20648 wxSize temp4 ;
20649 long val5 ;
20650 int ecode5 = 0 ;
20651 bool temp6 = false ;
20652 PyObject * obj0 = 0 ;
20653 PyObject * obj1 = 0 ;
20654 PyObject * obj2 = 0 ;
20655 PyObject * obj3 = 0 ;
20656 PyObject * obj4 = 0 ;
20657 PyObject * obj5 = 0 ;
20658 char * kwnames[] = {
20659 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20660 };
20661
20662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20664 if (!SWIG_IsOK(res1)) {
20665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20666 }
20667 arg1 = reinterpret_cast< wxWindow * >(argp1);
20668 if (obj1) {
20669 ecode2 = SWIG_AsVal_int(obj1, &val2);
20670 if (!SWIG_IsOK(ecode2)) {
20671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20672 }
20673 arg2 = static_cast< int >(val2);
20674 }
20675 if (obj2) {
093d3ff1 20676 {
0085ce49
RD
20677 arg3 = &temp3;
20678 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20679 }
0085ce49
RD
20680 }
20681 if (obj3) {
d14a1e28 20682 {
0085ce49
RD
20683 arg4 = &temp4;
20684 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 20685 }
0085ce49
RD
20686 }
20687 if (obj4) {
20688 ecode5 = SWIG_AsVal_long(obj4, &val5);
20689 if (!SWIG_IsOK(ecode5)) {
20690 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20691 }
20692 arg5 = static_cast< long >(val5);
20693 }
20694 if (obj5) {
093d3ff1 20695 {
0085ce49
RD
20696 arg6 = wxString_in_helper(obj5);
20697 if (arg6 == NULL) SWIG_fail;
20698 temp6 = true;
093d3ff1 20699 }
0085ce49
RD
20700 }
20701 {
20702 if (!wxPyCheckForApp()) SWIG_fail;
20703 PyThreadState* __tstate = wxPyBeginAllowThreads();
20704 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20705 wxPyEndAllowThreads(__tstate);
20706 if (PyErr_Occurred()) SWIG_fail;
20707 }
20708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20709 {
20710 if (temp6)
20711 delete arg6;
20712 }
20713 return resultobj;
20714fail:
20715 {
20716 if (temp6)
20717 delete arg6;
20718 }
20719 return NULL;
d14a1e28
RD
20720}
20721
20722
0085ce49
RD
20723SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20724 PyObject *resultobj = 0;
20725 wxNotebook *result = 0 ;
20726
20727 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20728 {
20729 if (!wxPyCheckForApp()) SWIG_fail;
20730 PyThreadState* __tstate = wxPyBeginAllowThreads();
20731 result = (wxNotebook *)new wxNotebook();
20732 wxPyEndAllowThreads(__tstate);
20733 if (PyErr_Occurred()) SWIG_fail;
20734 }
20735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20736 return resultobj;
20737fail:
20738 return NULL;
20739}
20740
20741
20742SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20743 PyObject *resultobj = 0;
20744 wxNotebook *arg1 = (wxNotebook *) 0 ;
20745 wxWindow *arg2 = (wxWindow *) 0 ;
20746 int arg3 = (int) -1 ;
20747 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20748 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20749 wxSize const &arg5_defvalue = wxDefaultSize ;
20750 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20751 long arg6 = (long) 0 ;
20752 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20753 wxString *arg7 = (wxString *) &arg7_defvalue ;
20754 bool result;
20755 void *argp1 = 0 ;
20756 int res1 = 0 ;
20757 void *argp2 = 0 ;
20758 int res2 = 0 ;
20759 int val3 ;
20760 int ecode3 = 0 ;
20761 wxPoint temp4 ;
20762 wxSize temp5 ;
20763 long val6 ;
20764 int ecode6 = 0 ;
20765 bool temp7 = false ;
20766 PyObject * obj0 = 0 ;
20767 PyObject * obj1 = 0 ;
20768 PyObject * obj2 = 0 ;
20769 PyObject * obj3 = 0 ;
20770 PyObject * obj4 = 0 ;
20771 PyObject * obj5 = 0 ;
20772 PyObject * obj6 = 0 ;
20773 char * kwnames[] = {
20774 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20775 };
20776
20777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20779 if (!SWIG_IsOK(res1)) {
20780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20781 }
20782 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20783 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20784 if (!SWIG_IsOK(res2)) {
20785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20786 }
20787 arg2 = reinterpret_cast< wxWindow * >(argp2);
20788 if (obj2) {
20789 ecode3 = SWIG_AsVal_int(obj2, &val3);
20790 if (!SWIG_IsOK(ecode3)) {
20791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20792 }
20793 arg3 = static_cast< int >(val3);
20794 }
20795 if (obj3) {
093d3ff1 20796 {
0085ce49
RD
20797 arg4 = &temp4;
20798 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 20799 }
0085ce49
RD
20800 }
20801 if (obj4) {
d14a1e28 20802 {
0085ce49
RD
20803 arg5 = &temp5;
20804 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 20805 }
0085ce49
RD
20806 }
20807 if (obj5) {
20808 ecode6 = SWIG_AsVal_long(obj5, &val6);
20809 if (!SWIG_IsOK(ecode6)) {
20810 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20811 }
20812 arg6 = static_cast< long >(val6);
20813 }
20814 if (obj6) {
4f89f6a3 20815 {
0085ce49
RD
20816 arg7 = wxString_in_helper(obj6);
20817 if (arg7 == NULL) SWIG_fail;
20818 temp7 = true;
4f89f6a3 20819 }
0085ce49
RD
20820 }
20821 {
20822 PyThreadState* __tstate = wxPyBeginAllowThreads();
20823 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20824 wxPyEndAllowThreads(__tstate);
20825 if (PyErr_Occurred()) SWIG_fail;
20826 }
20827 {
20828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20829 }
20830 {
20831 if (temp7)
20832 delete arg7;
20833 }
20834 return resultobj;
20835fail:
20836 {
20837 if (temp7)
20838 delete arg7;
20839 }
20840 return NULL;
d14a1e28
RD
20841}
20842
20843
0085ce49
RD
20844SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20845 PyObject *resultobj = 0;
20846 wxNotebook *arg1 = (wxNotebook *) 0 ;
20847 int result;
20848 void *argp1 = 0 ;
20849 int res1 = 0 ;
20850 PyObject *swig_obj[1] ;
20851
20852 if (!args) SWIG_fail;
20853 swig_obj[0] = args;
20854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20855 if (!SWIG_IsOK(res1)) {
20856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20857 }
20858 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20859 {
20860 PyThreadState* __tstate = wxPyBeginAllowThreads();
20861 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20862 wxPyEndAllowThreads(__tstate);
20863 if (PyErr_Occurred()) SWIG_fail;
20864 }
20865 resultobj = SWIG_From_int(static_cast< int >(result));
20866 return resultobj;
20867fail:
20868 return NULL;
20869}
20870
20871
20872SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20873 PyObject *resultobj = 0;
20874 wxNotebook *arg1 = (wxNotebook *) 0 ;
20875 wxSize *arg2 = 0 ;
20876 void *argp1 = 0 ;
20877 int res1 = 0 ;
20878 wxSize temp2 ;
20879 PyObject * obj0 = 0 ;
20880 PyObject * obj1 = 0 ;
20881 char * kwnames[] = {
20882 (char *) "self",(char *) "padding", NULL
20883 };
20884
20885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20887 if (!SWIG_IsOK(res1)) {
20888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20889 }
20890 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20891 {
20892 arg2 = &temp2;
20893 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20894 }
20895 {
20896 PyThreadState* __tstate = wxPyBeginAllowThreads();
20897 (arg1)->SetPadding((wxSize const &)*arg2);
20898 wxPyEndAllowThreads(__tstate);
20899 if (PyErr_Occurred()) SWIG_fail;
20900 }
20901 resultobj = SWIG_Py_Void();
20902 return resultobj;
20903fail:
20904 return NULL;
20905}
20906
20907
20908SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20909 PyObject *resultobj = 0;
20910 wxNotebook *arg1 = (wxNotebook *) 0 ;
20911 wxSize *arg2 = 0 ;
20912 void *argp1 = 0 ;
20913 int res1 = 0 ;
20914 wxSize temp2 ;
20915 PyObject * obj0 = 0 ;
20916 PyObject * obj1 = 0 ;
20917 char * kwnames[] = {
20918 (char *) "self",(char *) "sz", NULL
20919 };
20920
20921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20923 if (!SWIG_IsOK(res1)) {
20924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20925 }
20926 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20927 {
20928 arg2 = &temp2;
20929 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20930 }
20931 {
20932 PyThreadState* __tstate = wxPyBeginAllowThreads();
20933 (arg1)->SetTabSize((wxSize const &)*arg2);
20934 wxPyEndAllowThreads(__tstate);
20935 if (PyErr_Occurred()) SWIG_fail;
20936 }
20937 resultobj = SWIG_Py_Void();
20938 return resultobj;
20939fail:
20940 return NULL;
20941}
20942
20943
0085ce49
RD
20944SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20945 PyObject *resultobj = 0;
20946 wxNotebook *arg1 = (wxNotebook *) 0 ;
20947 wxColour result;
20948 void *argp1 = 0 ;
20949 int res1 = 0 ;
20950 PyObject *swig_obj[1] ;
20951
20952 if (!args) SWIG_fail;
20953 swig_obj[0] = args;
20954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20955 if (!SWIG_IsOK(res1)) {
20956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20957 }
20958 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20959 {
20960 PyThreadState* __tstate = wxPyBeginAllowThreads();
20961 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20962 wxPyEndAllowThreads(__tstate);
20963 if (PyErr_Occurred()) SWIG_fail;
20964 }
20965 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20966 return resultobj;
20967fail:
20968 return NULL;
20969}
20970
20971
20972SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20973 PyObject *resultobj = 0;
20974 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20975 SwigValueWrapper<wxVisualAttributes > result;
20976 int val1 ;
20977 int ecode1 = 0 ;
20978 PyObject * obj0 = 0 ;
20979 char * kwnames[] = {
20980 (char *) "variant", NULL
20981 };
20982
20983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20984 if (obj0) {
20985 ecode1 = SWIG_AsVal_int(obj0, &val1);
20986 if (!SWIG_IsOK(ecode1)) {
20987 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20988 }
20989 arg1 = static_cast< wxWindowVariant >(val1);
20990 }
20991 {
20992 if (!wxPyCheckForApp()) SWIG_fail;
20993 PyThreadState* __tstate = wxPyBeginAllowThreads();
20994 result = wxNotebook::GetClassDefaultAttributes(arg1);
20995 wxPyEndAllowThreads(__tstate);
20996 if (PyErr_Occurred()) SWIG_fail;
20997 }
20998 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20999 return resultobj;
21000fail:
21001 return NULL;
21002}
21003
21004
b39fe951
RD
21005SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21006 PyObject *resultobj = 0;
21007 wxNotebook *arg1 = (wxNotebook *) 0 ;
21008 int arg2 ;
21009 bool result;
21010 void *argp1 = 0 ;
21011 int res1 = 0 ;
21012 int val2 ;
21013 int ecode2 = 0 ;
21014 PyObject * obj0 = 0 ;
21015 PyObject * obj1 = 0 ;
21016 char * kwnames[] = {
21017 (char *) "self",(char *) "nPage", NULL
21018 };
21019
21020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21022 if (!SWIG_IsOK(res1)) {
21023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21024 }
21025 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21026 ecode2 = SWIG_AsVal_int(obj1, &val2);
21027 if (!SWIG_IsOK(ecode2)) {
21028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21029 }
21030 arg2 = static_cast< int >(val2);
21031 {
21032 PyThreadState* __tstate = wxPyBeginAllowThreads();
21033 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21034 wxPyEndAllowThreads(__tstate);
21035 if (PyErr_Occurred()) SWIG_fail;
21036 }
21037 {
21038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21039 }
21040 return resultobj;
21041fail:
21042 return NULL;
21043}
21044
21045
21046SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21047 PyObject *resultobj = 0;
21048 wxNotebook *arg1 = (wxNotebook *) 0 ;
21049 int arg2 ;
21050 int arg3 = (int) -1 ;
21051 void *argp1 = 0 ;
21052 int res1 = 0 ;
21053 int val2 ;
21054 int ecode2 = 0 ;
21055 int val3 ;
21056 int ecode3 = 0 ;
21057 PyObject * obj0 = 0 ;
21058 PyObject * obj1 = 0 ;
21059 PyObject * obj2 = 0 ;
21060 char * kwnames[] = {
21061 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21062 };
21063
21064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21066 if (!SWIG_IsOK(res1)) {
21067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21068 }
21069 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21070 ecode2 = SWIG_AsVal_int(obj1, &val2);
21071 if (!SWIG_IsOK(ecode2)) {
21072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21073 }
21074 arg2 = static_cast< int >(val2);
21075 if (obj2) {
21076 ecode3 = SWIG_AsVal_int(obj2, &val3);
21077 if (!SWIG_IsOK(ecode3)) {
21078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21079 }
21080 arg3 = static_cast< int >(val3);
21081 }
21082 {
21083 PyThreadState* __tstate = wxPyBeginAllowThreads();
21084 (arg1)->SendPageChangedEvent(arg2,arg3);
21085 wxPyEndAllowThreads(__tstate);
21086 if (PyErr_Occurred()) SWIG_fail;
21087 }
21088 resultobj = SWIG_Py_Void();
21089 return resultobj;
21090fail:
21091 return NULL;
21092}
21093
21094
0085ce49
RD
21095SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21096 PyObject *obj;
21097 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21098 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21099 return SWIG_Py_Void();
21100}
21101
21102SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21103 return SWIG_Python_InitShadowInstance(args);
21104}
21105
21106SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21107 PyObject *resultobj = 0;
21108 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21109 int arg2 = (int) 0 ;
21110 int arg3 = (int) -1 ;
21111 int arg4 = (int) -1 ;
21112 wxNotebookEvent *result = 0 ;
21113 int val1 ;
21114 int ecode1 = 0 ;
21115 int val2 ;
21116 int ecode2 = 0 ;
21117 int val3 ;
21118 int ecode3 = 0 ;
21119 int val4 ;
21120 int ecode4 = 0 ;
21121 PyObject * obj0 = 0 ;
21122 PyObject * obj1 = 0 ;
21123 PyObject * obj2 = 0 ;
21124 PyObject * obj3 = 0 ;
21125 char * kwnames[] = {
21126 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21127 };
21128
21129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21130 if (obj0) {
21131 ecode1 = SWIG_AsVal_int(obj0, &val1);
21132 if (!SWIG_IsOK(ecode1)) {
21133 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21134 }
21135 arg1 = static_cast< wxEventType >(val1);
21136 }
21137 if (obj1) {
21138 ecode2 = SWIG_AsVal_int(obj1, &val2);
21139 if (!SWIG_IsOK(ecode2)) {
21140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21141 }
21142 arg2 = static_cast< int >(val2);
21143 }
21144 if (obj2) {
21145 ecode3 = SWIG_AsVal_int(obj2, &val3);
21146 if (!SWIG_IsOK(ecode3)) {
21147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21148 }
21149 arg3 = static_cast< int >(val3);
21150 }
21151 if (obj3) {
21152 ecode4 = SWIG_AsVal_int(obj3, &val4);
21153 if (!SWIG_IsOK(ecode4)) {
21154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21155 }
21156 arg4 = static_cast< int >(val4);
21157 }
21158 {
21159 PyThreadState* __tstate = wxPyBeginAllowThreads();
21160 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21161 wxPyEndAllowThreads(__tstate);
21162 if (PyErr_Occurred()) SWIG_fail;
21163 }
21164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21165 return resultobj;
21166fail:
21167 return NULL;
21168}
21169
21170
21171SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21172 PyObject *obj;
21173 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21174 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21175 return SWIG_Py_Void();
21176}
21177
21178SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21179 return SWIG_Python_InitShadowInstance(args);
21180}
21181
21182SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21183 PyObject *resultobj = 0;
21184 wxWindow *arg1 = (wxWindow *) 0 ;
21185 int arg2 = (int) -1 ;
21186 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21187 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21188 wxSize const &arg4_defvalue = wxDefaultSize ;
21189 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21190 long arg5 = (long) 0 ;
21191 wxString const &arg6_defvalue = wxPyEmptyString ;
21192 wxString *arg6 = (wxString *) &arg6_defvalue ;
21193 wxListbook *result = 0 ;
21194 void *argp1 = 0 ;
21195 int res1 = 0 ;
21196 int val2 ;
21197 int ecode2 = 0 ;
21198 wxPoint temp3 ;
21199 wxSize temp4 ;
21200 long val5 ;
21201 int ecode5 = 0 ;
21202 bool temp6 = false ;
21203 PyObject * obj0 = 0 ;
21204 PyObject * obj1 = 0 ;
21205 PyObject * obj2 = 0 ;
21206 PyObject * obj3 = 0 ;
21207 PyObject * obj4 = 0 ;
21208 PyObject * obj5 = 0 ;
21209 char * kwnames[] = {
21210 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21211 };
21212
21213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21215 if (!SWIG_IsOK(res1)) {
21216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21217 }
21218 arg1 = reinterpret_cast< wxWindow * >(argp1);
21219 if (obj1) {
21220 ecode2 = SWIG_AsVal_int(obj1, &val2);
21221 if (!SWIG_IsOK(ecode2)) {
21222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21223 }
21224 arg2 = static_cast< int >(val2);
21225 }
21226 if (obj2) {
093d3ff1 21227 {
0085ce49
RD
21228 arg3 = &temp3;
21229 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 21230 }
0085ce49
RD
21231 }
21232 if (obj3) {
093d3ff1 21233 {
0085ce49
RD
21234 arg4 = &temp4;
21235 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21236 }
0085ce49
RD
21237 }
21238 if (obj4) {
21239 ecode5 = SWIG_AsVal_long(obj4, &val5);
21240 if (!SWIG_IsOK(ecode5)) {
21241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21242 }
21243 arg5 = static_cast< long >(val5);
21244 }
21245 if (obj5) {
d14a1e28 21246 {
0085ce49
RD
21247 arg6 = wxString_in_helper(obj5);
21248 if (arg6 == NULL) SWIG_fail;
21249 temp6 = true;
d14a1e28 21250 }
0085ce49
RD
21251 }
21252 {
21253 if (!wxPyCheckForApp()) SWIG_fail;
21254 PyThreadState* __tstate = wxPyBeginAllowThreads();
21255 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21256 wxPyEndAllowThreads(__tstate);
21257 if (PyErr_Occurred()) SWIG_fail;
21258 }
21259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21260 {
21261 if (temp6)
21262 delete arg6;
21263 }
21264 return resultobj;
21265fail:
21266 {
21267 if (temp6)
21268 delete arg6;
21269 }
21270 return NULL;
d14a1e28
RD
21271}
21272
21273
0085ce49
RD
21274SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21275 PyObject *resultobj = 0;
21276 wxListbook *result = 0 ;
21277
21278 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21279 {
21280 if (!wxPyCheckForApp()) SWIG_fail;
21281 PyThreadState* __tstate = wxPyBeginAllowThreads();
21282 result = (wxListbook *)new wxListbook();
21283 wxPyEndAllowThreads(__tstate);
21284 if (PyErr_Occurred()) SWIG_fail;
21285 }
21286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21287 return resultobj;
21288fail:
21289 return NULL;
21290}
21291
21292
21293SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21294 PyObject *resultobj = 0;
21295 wxListbook *arg1 = (wxListbook *) 0 ;
21296 wxWindow *arg2 = (wxWindow *) 0 ;
21297 int arg3 = (int) -1 ;
21298 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21299 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21300 wxSize const &arg5_defvalue = wxDefaultSize ;
21301 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21302 long arg6 = (long) 0 ;
21303 wxString const &arg7_defvalue = wxPyEmptyString ;
21304 wxString *arg7 = (wxString *) &arg7_defvalue ;
21305 bool result;
21306 void *argp1 = 0 ;
21307 int res1 = 0 ;
21308 void *argp2 = 0 ;
21309 int res2 = 0 ;
21310 int val3 ;
21311 int ecode3 = 0 ;
21312 wxPoint temp4 ;
21313 wxSize temp5 ;
21314 long val6 ;
21315 int ecode6 = 0 ;
21316 bool temp7 = false ;
21317 PyObject * obj0 = 0 ;
21318 PyObject * obj1 = 0 ;
21319 PyObject * obj2 = 0 ;
21320 PyObject * obj3 = 0 ;
21321 PyObject * obj4 = 0 ;
21322 PyObject * obj5 = 0 ;
21323 PyObject * obj6 = 0 ;
21324 char * kwnames[] = {
21325 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21326 };
21327
21328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21330 if (!SWIG_IsOK(res1)) {
21331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21332 }
21333 arg1 = reinterpret_cast< wxListbook * >(argp1);
21334 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21335 if (!SWIG_IsOK(res2)) {
21336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21337 }
21338 arg2 = reinterpret_cast< wxWindow * >(argp2);
21339 if (obj2) {
21340 ecode3 = SWIG_AsVal_int(obj2, &val3);
21341 if (!SWIG_IsOK(ecode3)) {
21342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21343 }
21344 arg3 = static_cast< int >(val3);
21345 }
21346 if (obj3) {
22bfe96c 21347 {
0085ce49
RD
21348 arg4 = &temp4;
21349 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 21350 }
0085ce49
RD
21351 }
21352 if (obj4) {
22bfe96c 21353 {
0085ce49
RD
21354 arg5 = &temp5;
21355 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 21356 }
0085ce49
RD
21357 }
21358 if (obj5) {
21359 ecode6 = SWIG_AsVal_long(obj5, &val6);
21360 if (!SWIG_IsOK(ecode6)) {
21361 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21362 }
21363 arg6 = static_cast< long >(val6);
21364 }
21365 if (obj6) {
b2dc1044 21366 {
0085ce49
RD
21367 arg7 = wxString_in_helper(obj6);
21368 if (arg7 == NULL) SWIG_fail;
21369 temp7 = true;
b2dc1044 21370 }
0085ce49
RD
21371 }
21372 {
21373 PyThreadState* __tstate = wxPyBeginAllowThreads();
21374 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21375 wxPyEndAllowThreads(__tstate);
21376 if (PyErr_Occurred()) SWIG_fail;
21377 }
21378 {
21379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21380 }
21381 {
21382 if (temp7)
21383 delete arg7;
21384 }
21385 return resultobj;
21386fail:
21387 {
21388 if (temp7)
21389 delete arg7;
21390 }
21391 return NULL;
b2dc1044
RD
21392}
21393
21394
0085ce49
RD
21395SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21396 PyObject *resultobj = 0;
21397 wxListbook *arg1 = (wxListbook *) 0 ;
21398 wxListView *result = 0 ;
21399 void *argp1 = 0 ;
21400 int res1 = 0 ;
21401 PyObject *swig_obj[1] ;
21402
21403 if (!args) SWIG_fail;
21404 swig_obj[0] = args;
21405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21406 if (!SWIG_IsOK(res1)) {
21407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21408 }
21409 arg1 = reinterpret_cast< wxListbook * >(argp1);
21410 {
21411 PyThreadState* __tstate = wxPyBeginAllowThreads();
21412 result = (wxListView *)(arg1)->GetListView();
21413 wxPyEndAllowThreads(__tstate);
21414 if (PyErr_Occurred()) SWIG_fail;
21415 }
21416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21417 return resultobj;
21418fail:
21419 return NULL;
21420}
21421
21422
21423SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21424 PyObject *obj;
21425 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21426 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21427 return SWIG_Py_Void();
21428}
21429
21430SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21431 return SWIG_Python_InitShadowInstance(args);
21432}
21433
21434SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21435 PyObject *resultobj = 0;
21436 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21437 int arg2 = (int) 0 ;
21438 int arg3 = (int) -1 ;
21439 int arg4 = (int) -1 ;
21440 wxListbookEvent *result = 0 ;
21441 int val1 ;
21442 int ecode1 = 0 ;
21443 int val2 ;
21444 int ecode2 = 0 ;
21445 int val3 ;
21446 int ecode3 = 0 ;
21447 int val4 ;
21448 int ecode4 = 0 ;
21449 PyObject * obj0 = 0 ;
21450 PyObject * obj1 = 0 ;
21451 PyObject * obj2 = 0 ;
21452 PyObject * obj3 = 0 ;
21453 char * kwnames[] = {
21454 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21455 };
21456
21457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21458 if (obj0) {
21459 ecode1 = SWIG_AsVal_int(obj0, &val1);
21460 if (!SWIG_IsOK(ecode1)) {
21461 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21462 }
21463 arg1 = static_cast< wxEventType >(val1);
21464 }
21465 if (obj1) {
21466 ecode2 = SWIG_AsVal_int(obj1, &val2);
21467 if (!SWIG_IsOK(ecode2)) {
21468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21469 }
21470 arg2 = static_cast< int >(val2);
21471 }
21472 if (obj2) {
21473 ecode3 = SWIG_AsVal_int(obj2, &val3);
21474 if (!SWIG_IsOK(ecode3)) {
21475 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21476 }
21477 arg3 = static_cast< int >(val3);
21478 }
21479 if (obj3) {
21480 ecode4 = SWIG_AsVal_int(obj3, &val4);
21481 if (!SWIG_IsOK(ecode4)) {
21482 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21483 }
21484 arg4 = static_cast< int >(val4);
21485 }
21486 {
21487 PyThreadState* __tstate = wxPyBeginAllowThreads();
21488 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21489 wxPyEndAllowThreads(__tstate);
21490 if (PyErr_Occurred()) SWIG_fail;
21491 }
21492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21493 return resultobj;
21494fail:
21495 return NULL;
21496}
21497
21498
21499SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21500 PyObject *obj;
21501 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21502 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21503 return SWIG_Py_Void();
21504}
21505
21506SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21507 return SWIG_Python_InitShadowInstance(args);
21508}
21509
21510SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21511 PyObject *resultobj = 0;
21512 wxWindow *arg1 = (wxWindow *) 0 ;
21513 int arg2 ;
21514 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21515 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21516 wxSize const &arg4_defvalue = wxDefaultSize ;
21517 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21518 long arg5 = (long) 0 ;
21519 wxString const &arg6_defvalue = wxPyEmptyString ;
21520 wxString *arg6 = (wxString *) &arg6_defvalue ;
21521 wxChoicebook *result = 0 ;
21522 void *argp1 = 0 ;
21523 int res1 = 0 ;
21524 int val2 ;
21525 int ecode2 = 0 ;
21526 wxPoint temp3 ;
21527 wxSize temp4 ;
21528 long val5 ;
21529 int ecode5 = 0 ;
21530 bool temp6 = false ;
21531 PyObject * obj0 = 0 ;
21532 PyObject * obj1 = 0 ;
21533 PyObject * obj2 = 0 ;
21534 PyObject * obj3 = 0 ;
21535 PyObject * obj4 = 0 ;
21536 PyObject * obj5 = 0 ;
21537 char * kwnames[] = {
21538 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21539 };
21540
21541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21543 if (!SWIG_IsOK(res1)) {
21544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21545 }
21546 arg1 = reinterpret_cast< wxWindow * >(argp1);
21547 ecode2 = SWIG_AsVal_int(obj1, &val2);
21548 if (!SWIG_IsOK(ecode2)) {
21549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21550 }
21551 arg2 = static_cast< int >(val2);
21552 if (obj2) {
d14a1e28 21553 {
0085ce49
RD
21554 arg3 = &temp3;
21555 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 21556 }
0085ce49
RD
21557 }
21558 if (obj3) {
d14a1e28 21559 {
0085ce49
RD
21560 arg4 = &temp4;
21561 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21562 }
0085ce49
RD
21563 }
21564 if (obj4) {
21565 ecode5 = SWIG_AsVal_long(obj4, &val5);
21566 if (!SWIG_IsOK(ecode5)) {
21567 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21568 }
21569 arg5 = static_cast< long >(val5);
21570 }
21571 if (obj5) {
d14a1e28 21572 {
0085ce49
RD
21573 arg6 = wxString_in_helper(obj5);
21574 if (arg6 == NULL) SWIG_fail;
21575 temp6 = true;
d14a1e28 21576 }
0085ce49
RD
21577 }
21578 {
21579 if (!wxPyCheckForApp()) SWIG_fail;
21580 PyThreadState* __tstate = wxPyBeginAllowThreads();
21581 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21582 wxPyEndAllowThreads(__tstate);
21583 if (PyErr_Occurred()) SWIG_fail;
21584 }
21585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21586 {
21587 if (temp6)
21588 delete arg6;
21589 }
21590 return resultobj;
21591fail:
21592 {
21593 if (temp6)
21594 delete arg6;
21595 }
21596 return NULL;
d14a1e28
RD
21597}
21598
21599
0085ce49
RD
21600SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21601 PyObject *resultobj = 0;
21602 wxChoicebook *result = 0 ;
21603
21604 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21605 {
21606 if (!wxPyCheckForApp()) SWIG_fail;
21607 PyThreadState* __tstate = wxPyBeginAllowThreads();
21608 result = (wxChoicebook *)new wxChoicebook();
21609 wxPyEndAllowThreads(__tstate);
21610 if (PyErr_Occurred()) SWIG_fail;
21611 }
21612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21613 return resultobj;
21614fail:
21615 return NULL;
21616}
21617
21618
21619SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21620 PyObject *resultobj = 0;
21621 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21622 wxWindow *arg2 = (wxWindow *) 0 ;
21623 int arg3 ;
21624 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21625 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21626 wxSize const &arg5_defvalue = wxDefaultSize ;
21627 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21628 long arg6 = (long) 0 ;
21629 wxString const &arg7_defvalue = wxPyEmptyString ;
21630 wxString *arg7 = (wxString *) &arg7_defvalue ;
21631 bool result;
21632 void *argp1 = 0 ;
21633 int res1 = 0 ;
21634 void *argp2 = 0 ;
21635 int res2 = 0 ;
21636 int val3 ;
21637 int ecode3 = 0 ;
21638 wxPoint temp4 ;
21639 wxSize temp5 ;
21640 long val6 ;
21641 int ecode6 = 0 ;
21642 bool temp7 = false ;
21643 PyObject * obj0 = 0 ;
21644 PyObject * obj1 = 0 ;
21645 PyObject * obj2 = 0 ;
21646 PyObject * obj3 = 0 ;
21647 PyObject * obj4 = 0 ;
21648 PyObject * obj5 = 0 ;
21649 PyObject * obj6 = 0 ;
21650 char * kwnames[] = {
21651 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21652 };
21653
21654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21656 if (!SWIG_IsOK(res1)) {
21657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21658 }
21659 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21660 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21661 if (!SWIG_IsOK(res2)) {
21662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21663 }
21664 arg2 = reinterpret_cast< wxWindow * >(argp2);
21665 ecode3 = SWIG_AsVal_int(obj2, &val3);
21666 if (!SWIG_IsOK(ecode3)) {
21667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21668 }
21669 arg3 = static_cast< int >(val3);
21670 if (obj3) {
4f89f6a3 21671 {
0085ce49
RD
21672 arg4 = &temp4;
21673 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 21674 }
0085ce49
RD
21675 }
21676 if (obj4) {
d14a1e28 21677 {
0085ce49
RD
21678 arg5 = &temp5;
21679 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 21680 }
0085ce49
RD
21681 }
21682 if (obj5) {
21683 ecode6 = SWIG_AsVal_long(obj5, &val6);
21684 if (!SWIG_IsOK(ecode6)) {
21685 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21686 }
21687 arg6 = static_cast< long >(val6);
21688 }
21689 if (obj6) {
d14a1e28 21690 {
0085ce49
RD
21691 arg7 = wxString_in_helper(obj6);
21692 if (arg7 == NULL) SWIG_fail;
21693 temp7 = true;
d14a1e28 21694 }
0085ce49
RD
21695 }
21696 {
21697 PyThreadState* __tstate = wxPyBeginAllowThreads();
21698 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21699 wxPyEndAllowThreads(__tstate);
21700 if (PyErr_Occurred()) SWIG_fail;
21701 }
21702 {
21703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21704 }
21705 {
21706 if (temp7)
21707 delete arg7;
21708 }
21709 return resultobj;
21710fail:
21711 {
21712 if (temp7)
21713 delete arg7;
21714 }
21715 return NULL;
d14a1e28
RD
21716}
21717
21718
0085ce49
RD
21719SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21720 PyObject *resultobj = 0;
21721 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21722 wxChoice *result = 0 ;
21723 void *argp1 = 0 ;
21724 int res1 = 0 ;
21725 PyObject *swig_obj[1] ;
21726
21727 if (!args) SWIG_fail;
21728 swig_obj[0] = args;
21729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21730 if (!SWIG_IsOK(res1)) {
21731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21732 }
21733 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21734 {
21735 PyThreadState* __tstate = wxPyBeginAllowThreads();
21736 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21737 wxPyEndAllowThreads(__tstate);
21738 if (PyErr_Occurred()) SWIG_fail;
21739 }
21740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21741 return resultobj;
21742fail:
21743 return NULL;
21744}
21745
21746
21747SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21748 PyObject *obj;
21749 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21750 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21751 return SWIG_Py_Void();
21752}
21753
21754SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21755 return SWIG_Python_InitShadowInstance(args);
21756}
21757
21758SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21759 PyObject *resultobj = 0;
21760 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21761 int arg2 = (int) 0 ;
21762 int arg3 = (int) -1 ;
21763 int arg4 = (int) -1 ;
21764 wxChoicebookEvent *result = 0 ;
21765 int val1 ;
21766 int ecode1 = 0 ;
21767 int val2 ;
21768 int ecode2 = 0 ;
21769 int val3 ;
21770 int ecode3 = 0 ;
21771 int val4 ;
21772 int ecode4 = 0 ;
21773 PyObject * obj0 = 0 ;
21774 PyObject * obj1 = 0 ;
21775 PyObject * obj2 = 0 ;
21776 PyObject * obj3 = 0 ;
21777 char * kwnames[] = {
21778 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21779 };
21780
21781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21782 if (obj0) {
21783 ecode1 = SWIG_AsVal_int(obj0, &val1);
21784 if (!SWIG_IsOK(ecode1)) {
21785 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21786 }
21787 arg1 = static_cast< wxEventType >(val1);
21788 }
21789 if (obj1) {
21790 ecode2 = SWIG_AsVal_int(obj1, &val2);
21791 if (!SWIG_IsOK(ecode2)) {
21792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21793 }
21794 arg2 = static_cast< int >(val2);
21795 }
21796 if (obj2) {
21797 ecode3 = SWIG_AsVal_int(obj2, &val3);
21798 if (!SWIG_IsOK(ecode3)) {
21799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21800 }
21801 arg3 = static_cast< int >(val3);
21802 }
21803 if (obj3) {
21804 ecode4 = SWIG_AsVal_int(obj3, &val4);
21805 if (!SWIG_IsOK(ecode4)) {
21806 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21807 }
21808 arg4 = static_cast< int >(val4);
21809 }
21810 {
21811 PyThreadState* __tstate = wxPyBeginAllowThreads();
21812 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21813 wxPyEndAllowThreads(__tstate);
21814 if (PyErr_Occurred()) SWIG_fail;
21815 }
21816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21817 return resultobj;
21818fail:
21819 return NULL;
21820}
21821
21822
21823SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21824 PyObject *obj;
21825 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21826 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21827 return SWIG_Py_Void();
21828}
21829
21830SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21831 return SWIG_Python_InitShadowInstance(args);
21832}
21833
21834SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21835 PyObject *resultobj = 0;
21836 wxWindow *arg1 = (wxWindow *) 0 ;
21837 int arg2 ;
21838 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21839 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21840 wxSize const &arg4_defvalue = wxDefaultSize ;
21841 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21842 long arg5 = (long) wxBK_DEFAULT ;
21843 wxString const &arg6_defvalue = wxPyEmptyString ;
21844 wxString *arg6 = (wxString *) &arg6_defvalue ;
21845 wxTreebook *result = 0 ;
21846 void *argp1 = 0 ;
21847 int res1 = 0 ;
21848 int val2 ;
21849 int ecode2 = 0 ;
21850 wxPoint temp3 ;
21851 wxSize temp4 ;
21852 long val5 ;
21853 int ecode5 = 0 ;
21854 bool temp6 = false ;
21855 PyObject * obj0 = 0 ;
21856 PyObject * obj1 = 0 ;
21857 PyObject * obj2 = 0 ;
21858 PyObject * obj3 = 0 ;
21859 PyObject * obj4 = 0 ;
21860 PyObject * obj5 = 0 ;
21861 char * kwnames[] = {
21862 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21863 };
21864
21865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21867 if (!SWIG_IsOK(res1)) {
21868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21869 }
21870 arg1 = reinterpret_cast< wxWindow * >(argp1);
21871 ecode2 = SWIG_AsVal_int(obj1, &val2);
21872 if (!SWIG_IsOK(ecode2)) {
21873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21874 }
21875 arg2 = static_cast< int >(val2);
21876 if (obj2) {
093d3ff1 21877 {
0085ce49
RD
21878 arg3 = &temp3;
21879 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 21880 }
0085ce49
RD
21881 }
21882 if (obj3) {
d14a1e28 21883 {
0085ce49
RD
21884 arg4 = &temp4;
21885 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21886 }
0085ce49
RD
21887 }
21888 if (obj4) {
21889 ecode5 = SWIG_AsVal_long(obj4, &val5);
21890 if (!SWIG_IsOK(ecode5)) {
21891 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21892 }
21893 arg5 = static_cast< long >(val5);
21894 }
21895 if (obj5) {
093d3ff1 21896 {
0085ce49
RD
21897 arg6 = wxString_in_helper(obj5);
21898 if (arg6 == NULL) SWIG_fail;
21899 temp6 = true;
093d3ff1 21900 }
0085ce49
RD
21901 }
21902 {
21903 if (!wxPyCheckForApp()) SWIG_fail;
21904 PyThreadState* __tstate = wxPyBeginAllowThreads();
21905 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21906 wxPyEndAllowThreads(__tstate);
21907 if (PyErr_Occurred()) SWIG_fail;
21908 }
21909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21910 {
21911 if (temp6)
21912 delete arg6;
21913 }
21914 return resultobj;
21915fail:
21916 {
21917 if (temp6)
21918 delete arg6;
21919 }
21920 return NULL;
d14a1e28
RD
21921}
21922
21923
0085ce49
RD
21924SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21925 PyObject *resultobj = 0;
21926 wxTreebook *result = 0 ;
21927
21928 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21929 {
21930 if (!wxPyCheckForApp()) SWIG_fail;
21931 PyThreadState* __tstate = wxPyBeginAllowThreads();
21932 result = (wxTreebook *)new wxTreebook();
21933 wxPyEndAllowThreads(__tstate);
21934 if (PyErr_Occurred()) SWIG_fail;
21935 }
21936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21937 return resultobj;
21938fail:
21939 return NULL;
21940}
21941
21942
21943SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21944 PyObject *resultobj = 0;
21945 wxTreebook *arg1 = (wxTreebook *) 0 ;
21946 wxWindow *arg2 = (wxWindow *) 0 ;
21947 int arg3 ;
21948 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21949 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21950 wxSize const &arg5_defvalue = wxDefaultSize ;
21951 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21952 long arg6 = (long) wxBK_DEFAULT ;
21953 wxString const &arg7_defvalue = wxPyEmptyString ;
21954 wxString *arg7 = (wxString *) &arg7_defvalue ;
21955 bool result;
21956 void *argp1 = 0 ;
21957 int res1 = 0 ;
21958 void *argp2 = 0 ;
21959 int res2 = 0 ;
21960 int val3 ;
21961 int ecode3 = 0 ;
21962 wxPoint temp4 ;
21963 wxSize temp5 ;
21964 long val6 ;
21965 int ecode6 = 0 ;
21966 bool temp7 = false ;
21967 PyObject * obj0 = 0 ;
21968 PyObject * obj1 = 0 ;
21969 PyObject * obj2 = 0 ;
21970 PyObject * obj3 = 0 ;
21971 PyObject * obj4 = 0 ;
21972 PyObject * obj5 = 0 ;
21973 PyObject * obj6 = 0 ;
21974 char * kwnames[] = {
21975 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21976 };
21977
21978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21980 if (!SWIG_IsOK(res1)) {
21981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21982 }
21983 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21984 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21985 if (!SWIG_IsOK(res2)) {
21986 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21987 }
21988 arg2 = reinterpret_cast< wxWindow * >(argp2);
21989 ecode3 = SWIG_AsVal_int(obj2, &val3);
21990 if (!SWIG_IsOK(ecode3)) {
21991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21992 }
21993 arg3 = static_cast< int >(val3);
21994 if (obj3) {
d14a1e28 21995 {
0085ce49
RD
21996 arg4 = &temp4;
21997 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21998 }
0085ce49
RD
21999 }
22000 if (obj4) {
093d3ff1 22001 {
0085ce49
RD
22002 arg5 = &temp5;
22003 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22004 }
0085ce49
RD
22005 }
22006 if (obj5) {
22007 ecode6 = SWIG_AsVal_long(obj5, &val6);
22008 if (!SWIG_IsOK(ecode6)) {
22009 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
22010 }
22011 arg6 = static_cast< long >(val6);
22012 }
22013 if (obj6) {
093d3ff1 22014 {
0085ce49
RD
22015 arg7 = wxString_in_helper(obj6);
22016 if (arg7 == NULL) SWIG_fail;
22017 temp7 = true;
093d3ff1 22018 }
0085ce49
RD
22019 }
22020 {
22021 PyThreadState* __tstate = wxPyBeginAllowThreads();
22022 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22023 wxPyEndAllowThreads(__tstate);
22024 if (PyErr_Occurred()) SWIG_fail;
22025 }
22026 {
22027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22028 }
22029 {
22030 if (temp7)
22031 delete arg7;
22032 }
22033 return resultobj;
22034fail:
22035 {
22036 if (temp7)
22037 delete arg7;
22038 }
22039 return NULL;
22040}
22041
22042
22043SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22044 PyObject *resultobj = 0;
22045 wxTreebook *arg1 = (wxTreebook *) 0 ;
22046 size_t arg2 ;
22047 wxWindow *arg3 = (wxWindow *) 0 ;
22048 wxString *arg4 = 0 ;
22049 bool arg5 = (bool) false ;
22050 int arg6 = (int) wxNOT_FOUND ;
22051 bool result;
22052 void *argp1 = 0 ;
22053 int res1 = 0 ;
22054 size_t val2 ;
22055 int ecode2 = 0 ;
22056 void *argp3 = 0 ;
22057 int res3 = 0 ;
22058 bool temp4 = false ;
22059 bool val5 ;
22060 int ecode5 = 0 ;
22061 int val6 ;
22062 int ecode6 = 0 ;
22063 PyObject * obj0 = 0 ;
22064 PyObject * obj1 = 0 ;
22065 PyObject * obj2 = 0 ;
22066 PyObject * obj3 = 0 ;
22067 PyObject * obj4 = 0 ;
22068 PyObject * obj5 = 0 ;
22069 char * kwnames[] = {
22070 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22071 };
22072
22073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22075 if (!SWIG_IsOK(res1)) {
22076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22077 }
22078 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22079 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22080 if (!SWIG_IsOK(ecode2)) {
22081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22082 }
22083 arg2 = static_cast< size_t >(val2);
22084 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22085 if (!SWIG_IsOK(res3)) {
22086 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22087 }
22088 arg3 = reinterpret_cast< wxWindow * >(argp3);
22089 {
22090 arg4 = wxString_in_helper(obj3);
22091 if (arg4 == NULL) SWIG_fail;
22092 temp4 = true;
22093 }
22094 if (obj4) {
22095 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22096 if (!SWIG_IsOK(ecode5)) {
22097 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22098 }
22099 arg5 = static_cast< bool >(val5);
22100 }
22101 if (obj5) {
22102 ecode6 = SWIG_AsVal_int(obj5, &val6);
22103 if (!SWIG_IsOK(ecode6)) {
22104 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22105 }
22106 arg6 = static_cast< int >(val6);
22107 }
22108 {
22109 PyThreadState* __tstate = wxPyBeginAllowThreads();
22110 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22111 wxPyEndAllowThreads(__tstate);
22112 if (PyErr_Occurred()) SWIG_fail;
22113 }
22114 {
22115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22116 }
22117 {
22118 if (temp4)
22119 delete arg4;
22120 }
22121 return resultobj;
22122fail:
22123 {
22124 if (temp4)
22125 delete arg4;
22126 }
22127 return NULL;
22128}
22129
22130
22131SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22132 PyObject *resultobj = 0;
22133 wxTreebook *arg1 = (wxTreebook *) 0 ;
22134 wxWindow *arg2 = (wxWindow *) 0 ;
22135 wxString *arg3 = 0 ;
22136 bool arg4 = (bool) false ;
22137 int arg5 = (int) wxNOT_FOUND ;
22138 bool result;
22139 void *argp1 = 0 ;
22140 int res1 = 0 ;
22141 void *argp2 = 0 ;
22142 int res2 = 0 ;
22143 bool temp3 = false ;
22144 bool val4 ;
22145 int ecode4 = 0 ;
22146 int val5 ;
22147 int ecode5 = 0 ;
22148 PyObject * obj0 = 0 ;
22149 PyObject * obj1 = 0 ;
22150 PyObject * obj2 = 0 ;
22151 PyObject * obj3 = 0 ;
22152 PyObject * obj4 = 0 ;
22153 char * kwnames[] = {
22154 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22155 };
22156
22157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22159 if (!SWIG_IsOK(res1)) {
22160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22161 }
22162 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22163 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22164 if (!SWIG_IsOK(res2)) {
22165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22166 }
22167 arg2 = reinterpret_cast< wxWindow * >(argp2);
22168 {
22169 arg3 = wxString_in_helper(obj2);
22170 if (arg3 == NULL) SWIG_fail;
22171 temp3 = true;
22172 }
22173 if (obj3) {
22174 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22175 if (!SWIG_IsOK(ecode4)) {
22176 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22177 }
22178 arg4 = static_cast< bool >(val4);
22179 }
22180 if (obj4) {
22181 ecode5 = SWIG_AsVal_int(obj4, &val5);
22182 if (!SWIG_IsOK(ecode5)) {
22183 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22184 }
22185 arg5 = static_cast< int >(val5);
22186 }
22187 {
22188 PyThreadState* __tstate = wxPyBeginAllowThreads();
22189 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22190 wxPyEndAllowThreads(__tstate);
22191 if (PyErr_Occurred()) SWIG_fail;
22192 }
22193 {
22194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22195 }
22196 {
22197 if (temp3)
22198 delete arg3;
22199 }
22200 return resultobj;
22201fail:
22202 {
22203 if (temp3)
22204 delete arg3;
22205 }
22206 return NULL;
22207}
22208
22209
22210SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22211 PyObject *resultobj = 0;
22212 wxTreebook *arg1 = (wxTreebook *) 0 ;
22213 size_t arg2 ;
22214 bool result;
22215 void *argp1 = 0 ;
22216 int res1 = 0 ;
22217 size_t val2 ;
22218 int ecode2 = 0 ;
22219 PyObject * obj0 = 0 ;
22220 PyObject * obj1 = 0 ;
22221 char * kwnames[] = {
22222 (char *) "self",(char *) "pos", NULL
22223 };
22224
22225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22227 if (!SWIG_IsOK(res1)) {
22228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22229 }
22230 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22231 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22232 if (!SWIG_IsOK(ecode2)) {
22233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22234 }
22235 arg2 = static_cast< size_t >(val2);
22236 {
22237 PyThreadState* __tstate = wxPyBeginAllowThreads();
22238 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22239 wxPyEndAllowThreads(__tstate);
22240 if (PyErr_Occurred()) SWIG_fail;
22241 }
22242 {
22243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22244 }
22245 return resultobj;
22246fail:
22247 return NULL;
22248}
22249
22250
22251SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22252 PyObject *resultobj = 0;
22253 wxTreebook *arg1 = (wxTreebook *) 0 ;
22254 size_t arg2 ;
22255 bool arg3 = (bool) true ;
22256 bool result;
22257 void *argp1 = 0 ;
22258 int res1 = 0 ;
22259 size_t val2 ;
22260 int ecode2 = 0 ;
22261 bool val3 ;
22262 int ecode3 = 0 ;
22263 PyObject * obj0 = 0 ;
22264 PyObject * obj1 = 0 ;
22265 PyObject * obj2 = 0 ;
22266 char * kwnames[] = {
22267 (char *) "self",(char *) "pos",(char *) "expand", NULL
22268 };
22269
22270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22272 if (!SWIG_IsOK(res1)) {
22273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22274 }
22275 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22276 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22277 if (!SWIG_IsOK(ecode2)) {
22278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22279 }
22280 arg2 = static_cast< size_t >(val2);
22281 if (obj2) {
22282 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22283 if (!SWIG_IsOK(ecode3)) {
22284 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22285 }
22286 arg3 = static_cast< bool >(val3);
22287 }
22288 {
22289 PyThreadState* __tstate = wxPyBeginAllowThreads();
22290 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22291 wxPyEndAllowThreads(__tstate);
22292 if (PyErr_Occurred()) SWIG_fail;
22293 }
22294 {
22295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22296 }
22297 return resultobj;
22298fail:
22299 return NULL;
22300}
22301
22302
22303SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22304 PyObject *resultobj = 0;
22305 wxTreebook *arg1 = (wxTreebook *) 0 ;
22306 size_t arg2 ;
22307 bool result;
22308 void *argp1 = 0 ;
22309 int res1 = 0 ;
22310 size_t val2 ;
22311 int ecode2 = 0 ;
22312 PyObject * obj0 = 0 ;
22313 PyObject * obj1 = 0 ;
22314 char * kwnames[] = {
22315 (char *) "self",(char *) "pos", NULL
22316 };
22317
22318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22320 if (!SWIG_IsOK(res1)) {
22321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22322 }
22323 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22324 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22325 if (!SWIG_IsOK(ecode2)) {
22326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22327 }
22328 arg2 = static_cast< size_t >(val2);
22329 {
22330 PyThreadState* __tstate = wxPyBeginAllowThreads();
22331 result = (bool)(arg1)->CollapseNode(arg2);
22332 wxPyEndAllowThreads(__tstate);
22333 if (PyErr_Occurred()) SWIG_fail;
22334 }
22335 {
22336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22337 }
22338 return resultobj;
22339fail:
22340 return NULL;
22341}
22342
22343
22344SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22345 PyObject *resultobj = 0;
22346 wxTreebook *arg1 = (wxTreebook *) 0 ;
22347 size_t arg2 ;
22348 int result;
22349 void *argp1 = 0 ;
22350 int res1 = 0 ;
22351 size_t val2 ;
22352 int ecode2 = 0 ;
22353 PyObject * obj0 = 0 ;
22354 PyObject * obj1 = 0 ;
22355 char * kwnames[] = {
22356 (char *) "self",(char *) "pos", NULL
22357 };
22358
22359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22361 if (!SWIG_IsOK(res1)) {
22362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22363 }
22364 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22365 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22366 if (!SWIG_IsOK(ecode2)) {
22367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22368 }
22369 arg2 = static_cast< size_t >(val2);
22370 {
22371 PyThreadState* __tstate = wxPyBeginAllowThreads();
22372 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22373 wxPyEndAllowThreads(__tstate);
22374 if (PyErr_Occurred()) SWIG_fail;
22375 }
22376 resultobj = SWIG_From_int(static_cast< int >(result));
22377 return resultobj;
22378fail:
22379 return NULL;
d14a1e28
RD
22380}
22381
22382
0085ce49
RD
22383SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22384 PyObject *resultobj = 0;
22385 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22386 wxPyTreeCtrl *result = 0 ;
0085ce49
RD
22387 void *argp1 = 0 ;
22388 int res1 = 0 ;
22389 PyObject *swig_obj[1] ;
22390
22391 if (!args) SWIG_fail;
22392 swig_obj[0] = args;
22393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22394 if (!SWIG_IsOK(res1)) {
22395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22396 }
22397 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22398 {
22399 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22400 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
0085ce49
RD
22401 wxPyEndAllowThreads(__tstate);
22402 if (PyErr_Occurred()) SWIG_fail;
22403 }
10044bf1
RD
22404 {
22405 resultobj = wxPyMake_wxObject(result, (bool)0);
22406 }
0085ce49
RD
22407 return resultobj;
22408fail:
22409 return NULL;
22410}
22411
22412
22413SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22414 PyObject *obj;
22415 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22416 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22417 return SWIG_Py_Void();
22418}
22419
22420SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22421 return SWIG_Python_InitShadowInstance(args);
22422}
22423
22424SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22425 PyObject *resultobj = 0;
22426 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22427 int arg2 = (int) 0 ;
22428 int arg3 = (int) wxNOT_FOUND ;
22429 int arg4 = (int) wxNOT_FOUND ;
22430 wxTreebookEvent *result = 0 ;
22431 int val1 ;
22432 int ecode1 = 0 ;
22433 int val2 ;
22434 int ecode2 = 0 ;
22435 int val3 ;
22436 int ecode3 = 0 ;
22437 int val4 ;
22438 int ecode4 = 0 ;
22439 PyObject * obj0 = 0 ;
22440 PyObject * obj1 = 0 ;
22441 PyObject * obj2 = 0 ;
22442 PyObject * obj3 = 0 ;
22443 char * kwnames[] = {
22444 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22445 };
22446
22447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22448 if (obj0) {
22449 ecode1 = SWIG_AsVal_int(obj0, &val1);
22450 if (!SWIG_IsOK(ecode1)) {
22451 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22452 }
22453 arg1 = static_cast< wxEventType >(val1);
22454 }
22455 if (obj1) {
22456 ecode2 = SWIG_AsVal_int(obj1, &val2);
22457 if (!SWIG_IsOK(ecode2)) {
22458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22459 }
22460 arg2 = static_cast< int >(val2);
22461 }
22462 if (obj2) {
22463 ecode3 = SWIG_AsVal_int(obj2, &val3);
22464 if (!SWIG_IsOK(ecode3)) {
22465 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22466 }
22467 arg3 = static_cast< int >(val3);
22468 }
22469 if (obj3) {
22470 ecode4 = SWIG_AsVal_int(obj3, &val4);
22471 if (!SWIG_IsOK(ecode4)) {
22472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22473 }
22474 arg4 = static_cast< int >(val4);
22475 }
22476 {
22477 PyThreadState* __tstate = wxPyBeginAllowThreads();
22478 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22479 wxPyEndAllowThreads(__tstate);
22480 if (PyErr_Occurred()) SWIG_fail;
22481 }
22482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22483 return resultobj;
22484fail:
22485 return NULL;
22486}
22487
22488
22489SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22490 PyObject *obj;
22491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22492 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22493 return SWIG_Py_Void();
22494}
22495
22496SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22497 return SWIG_Python_InitShadowInstance(args);
22498}
22499
22500SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22501 PyObject *resultobj = 0;
22502 wxWindow *arg1 = (wxWindow *) 0 ;
22503 int arg2 ;
22504 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22505 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22506 wxSize const &arg4_defvalue = wxDefaultSize ;
22507 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22508 long arg5 = (long) wxBK_DEFAULT ;
22509 wxString const &arg6_defvalue = wxPyEmptyString ;
22510 wxString *arg6 = (wxString *) &arg6_defvalue ;
22511 wxToolbook *result = 0 ;
22512 void *argp1 = 0 ;
22513 int res1 = 0 ;
22514 int val2 ;
22515 int ecode2 = 0 ;
22516 wxPoint temp3 ;
22517 wxSize temp4 ;
22518 long val5 ;
22519 int ecode5 = 0 ;
22520 bool temp6 = false ;
22521 PyObject * obj0 = 0 ;
22522 PyObject * obj1 = 0 ;
22523 PyObject * obj2 = 0 ;
22524 PyObject * obj3 = 0 ;
22525 PyObject * obj4 = 0 ;
22526 PyObject * obj5 = 0 ;
22527 char * kwnames[] = {
22528 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22529 };
22530
22531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22533 if (!SWIG_IsOK(res1)) {
22534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22535 }
22536 arg1 = reinterpret_cast< wxWindow * >(argp1);
22537 ecode2 = SWIG_AsVal_int(obj1, &val2);
22538 if (!SWIG_IsOK(ecode2)) {
22539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22540 }
22541 arg2 = static_cast< int >(val2);
22542 if (obj2) {
d14a1e28 22543 {
0085ce49
RD
22544 arg3 = &temp3;
22545 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 22546 }
0085ce49
RD
22547 }
22548 if (obj3) {
093d3ff1 22549 {
0085ce49
RD
22550 arg4 = &temp4;
22551 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22552 }
0085ce49
RD
22553 }
22554 if (obj4) {
22555 ecode5 = SWIG_AsVal_long(obj4, &val5);
22556 if (!SWIG_IsOK(ecode5)) {
22557 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22558 }
22559 arg5 = static_cast< long >(val5);
22560 }
22561 if (obj5) {
d14a1e28 22562 {
0085ce49
RD
22563 arg6 = wxString_in_helper(obj5);
22564 if (arg6 == NULL) SWIG_fail;
22565 temp6 = true;
d14a1e28 22566 }
0085ce49
RD
22567 }
22568 {
22569 PyThreadState* __tstate = wxPyBeginAllowThreads();
22570 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22571 wxPyEndAllowThreads(__tstate);
22572 if (PyErr_Occurred()) SWIG_fail;
22573 }
22574 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22575 {
22576 if (temp6)
22577 delete arg6;
22578 }
22579 return resultobj;
22580fail:
22581 {
22582 if (temp6)
22583 delete arg6;
22584 }
22585 return NULL;
d14a1e28
RD
22586}
22587
22588
0085ce49
RD
22589SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22590 PyObject *resultobj = 0;
22591 wxToolbook *result = 0 ;
22592
22593 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22594 {
22595 PyThreadState* __tstate = wxPyBeginAllowThreads();
22596 result = (wxToolbook *)new wxToolbook();
22597 wxPyEndAllowThreads(__tstate);
22598 if (PyErr_Occurred()) SWIG_fail;
22599 }
22600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22601 return resultobj;
22602fail:
22603 return NULL;
22604}
22605
22606
22607SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22608 PyObject *resultobj = 0;
22609 wxToolbook *arg1 = (wxToolbook *) 0 ;
22610 wxWindow *arg2 = (wxWindow *) 0 ;
22611 int arg3 ;
22612 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22613 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22614 wxSize const &arg5_defvalue = wxDefaultSize ;
22615 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22616 long arg6 = (long) 0 ;
22617 wxString const &arg7_defvalue = wxEmptyString ;
22618 wxString *arg7 = (wxString *) &arg7_defvalue ;
22619 bool result;
22620 void *argp1 = 0 ;
22621 int res1 = 0 ;
22622 void *argp2 = 0 ;
22623 int res2 = 0 ;
22624 int val3 ;
22625 int ecode3 = 0 ;
22626 wxPoint temp4 ;
22627 wxSize temp5 ;
22628 long val6 ;
22629 int ecode6 = 0 ;
22630 bool temp7 = false ;
22631 PyObject * obj0 = 0 ;
22632 PyObject * obj1 = 0 ;
22633 PyObject * obj2 = 0 ;
22634 PyObject * obj3 = 0 ;
22635 PyObject * obj4 = 0 ;
22636 PyObject * obj5 = 0 ;
22637 PyObject * obj6 = 0 ;
22638 char * kwnames[] = {
22639 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22640 };
22641
22642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22644 if (!SWIG_IsOK(res1)) {
22645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22646 }
22647 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22648 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22649 if (!SWIG_IsOK(res2)) {
22650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22651 }
22652 arg2 = reinterpret_cast< wxWindow * >(argp2);
22653 ecode3 = SWIG_AsVal_int(obj2, &val3);
22654 if (!SWIG_IsOK(ecode3)) {
22655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22656 }
22657 arg3 = static_cast< int >(val3);
22658 if (obj3) {
093d3ff1 22659 {
0085ce49
RD
22660 arg4 = &temp4;
22661 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22662 }
0085ce49
RD
22663 }
22664 if (obj4) {
093d3ff1 22665 {
0085ce49
RD
22666 arg5 = &temp5;
22667 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22668 }
0085ce49
RD
22669 }
22670 if (obj5) {
22671 ecode6 = SWIG_AsVal_long(obj5, &val6);
22672 if (!SWIG_IsOK(ecode6)) {
22673 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22674 }
22675 arg6 = static_cast< long >(val6);
22676 }
22677 if (obj6) {
994141e6 22678 {
0085ce49
RD
22679 arg7 = wxString_in_helper(obj6);
22680 if (arg7 == NULL) SWIG_fail;
22681 temp7 = true;
d14a1e28 22682 }
0085ce49
RD
22683 }
22684 {
22685 PyThreadState* __tstate = wxPyBeginAllowThreads();
22686 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22687 wxPyEndAllowThreads(__tstate);
22688 if (PyErr_Occurred()) SWIG_fail;
22689 }
22690 {
22691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22692 }
22693 {
22694 if (temp7)
22695 delete arg7;
22696 }
22697 return resultobj;
22698fail:
22699 {
22700 if (temp7)
22701 delete arg7;
22702 }
22703 return NULL;
22bfe96c
RD
22704}
22705
22706
0085ce49
RD
22707SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22708 PyObject *resultobj = 0;
22709 wxToolbook *arg1 = (wxToolbook *) 0 ;
22710 wxToolBarBase *result = 0 ;
22711 void *argp1 = 0 ;
22712 int res1 = 0 ;
22713 PyObject *swig_obj[1] ;
22714
22715 if (!args) SWIG_fail;
22716 swig_obj[0] = args;
22717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22718 if (!SWIG_IsOK(res1)) {
22719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22720 }
22721 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22722 {
22723 PyThreadState* __tstate = wxPyBeginAllowThreads();
22724 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22725 wxPyEndAllowThreads(__tstate);
22726 if (PyErr_Occurred()) SWIG_fail;
22727 }
22728 {
22729 resultobj = wxPyMake_wxObject(result, (bool)0);
22730 }
22731 return resultobj;
22732fail:
22733 return NULL;
d14a1e28
RD
22734}
22735
22736
0085ce49
RD
22737SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22738 PyObject *resultobj = 0;
22739 wxToolbook *arg1 = (wxToolbook *) 0 ;
22740 void *argp1 = 0 ;
22741 int res1 = 0 ;
22742 PyObject *swig_obj[1] ;
22743
22744 if (!args) SWIG_fail;
22745 swig_obj[0] = args;
22746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22747 if (!SWIG_IsOK(res1)) {
22748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22749 }
22750 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22751 {
22752 PyThreadState* __tstate = wxPyBeginAllowThreads();
22753 (arg1)->Realize();
22754 wxPyEndAllowThreads(__tstate);
22755 if (PyErr_Occurred()) SWIG_fail;
22756 }
22757 resultobj = SWIG_Py_Void();
22758 return resultobj;
22759fail:
22760 return NULL;
22761}
22762
22763
22764SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22765 PyObject *obj;
22766 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22767 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22768 return SWIG_Py_Void();
22769}
22770
22771SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22772 return SWIG_Python_InitShadowInstance(args);
22773}
22774
22775SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22776 PyObject *resultobj = 0;
22777 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22778 int arg2 = (int) 0 ;
22779 int arg3 = (int) wxNOT_FOUND ;
22780 int arg4 = (int) wxNOT_FOUND ;
22781 wxToolbookEvent *result = 0 ;
22782 int val1 ;
22783 int ecode1 = 0 ;
22784 int val2 ;
22785 int ecode2 = 0 ;
22786 int val3 ;
22787 int ecode3 = 0 ;
22788 int val4 ;
22789 int ecode4 = 0 ;
22790 PyObject * obj0 = 0 ;
22791 PyObject * obj1 = 0 ;
22792 PyObject * obj2 = 0 ;
22793 PyObject * obj3 = 0 ;
22794 char * kwnames[] = {
22795 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22796 };
22797
22798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22799 if (obj0) {
22800 ecode1 = SWIG_AsVal_int(obj0, &val1);
22801 if (!SWIG_IsOK(ecode1)) {
22802 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22803 }
22804 arg1 = static_cast< wxEventType >(val1);
22805 }
22806 if (obj1) {
22807 ecode2 = SWIG_AsVal_int(obj1, &val2);
22808 if (!SWIG_IsOK(ecode2)) {
22809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22810 }
22811 arg2 = static_cast< int >(val2);
22812 }
22813 if (obj2) {
22814 ecode3 = SWIG_AsVal_int(obj2, &val3);
22815 if (!SWIG_IsOK(ecode3)) {
22816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22817 }
22818 arg3 = static_cast< int >(val3);
22819 }
22820 if (obj3) {
22821 ecode4 = SWIG_AsVal_int(obj3, &val4);
22822 if (!SWIG_IsOK(ecode4)) {
22823 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22824 }
22825 arg4 = static_cast< int >(val4);
22826 }
22827 {
22828 PyThreadState* __tstate = wxPyBeginAllowThreads();
22829 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22830 wxPyEndAllowThreads(__tstate);
22831 if (PyErr_Occurred()) SWIG_fail;
22832 }
22833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22834 return resultobj;
22835fail:
22836 return NULL;
d14a1e28
RD
22837}
22838
22839
0085ce49
RD
22840SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22841 PyObject *obj;
22842 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22843 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22844 return SWIG_Py_Void();
d14a1e28
RD
22845}
22846
0085ce49
RD
22847SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22848 return SWIG_Python_InitShadowInstance(args);
22849}
d14a1e28 22850
0085ce49
RD
22851SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22852 PyObject *resultobj = 0;
22853 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22854 int result;
22855 void *argp1 = 0 ;
22856 int res1 = 0 ;
22857 PyObject *swig_obj[1] ;
22858
22859 if (!args) SWIG_fail;
22860 swig_obj[0] = args;
22861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22862 if (!SWIG_IsOK(res1)) {
22863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22864 }
22865 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22866 {
22867 PyThreadState* __tstate = wxPyBeginAllowThreads();
22868 result = (int)(arg1)->GetId();
22869 wxPyEndAllowThreads(__tstate);
22870 if (PyErr_Occurred()) SWIG_fail;
22871 }
22872 resultobj = SWIG_From_int(static_cast< int >(result));
22873 return resultobj;
22874fail:
22875 return NULL;
d14a1e28
RD
22876}
22877
22878
0085ce49
RD
22879SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22880 PyObject *resultobj = 0;
22881 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22882 wxControl *result = 0 ;
22883 void *argp1 = 0 ;
22884 int res1 = 0 ;
22885 PyObject *swig_obj[1] ;
22886
22887 if (!args) SWIG_fail;
22888 swig_obj[0] = args;
22889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22890 if (!SWIG_IsOK(res1)) {
22891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22892 }
22893 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22894 {
22895 PyThreadState* __tstate = wxPyBeginAllowThreads();
22896 result = (wxControl *)(arg1)->GetControl();
22897 wxPyEndAllowThreads(__tstate);
22898 if (PyErr_Occurred()) SWIG_fail;
22899 }
22900 {
22901 resultobj = wxPyMake_wxObject(result, 0);
22902 }
22903 return resultobj;
22904fail:
22905 return NULL;
d14a1e28
RD
22906}
22907
22908
0085ce49
RD
22909SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22910 PyObject *resultobj = 0;
22911 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22912 wxToolBarBase *result = 0 ;
22913 void *argp1 = 0 ;
22914 int res1 = 0 ;
22915 PyObject *swig_obj[1] ;
22916
22917 if (!args) SWIG_fail;
22918 swig_obj[0] = args;
22919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22920 if (!SWIG_IsOK(res1)) {
22921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22922 }
22923 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22924 {
22925 PyThreadState* __tstate = wxPyBeginAllowThreads();
22926 result = (wxToolBarBase *)(arg1)->GetToolBar();
22927 wxPyEndAllowThreads(__tstate);
22928 if (PyErr_Occurred()) SWIG_fail;
22929 }
22930 {
22931 resultobj = wxPyMake_wxObject(result, (bool)0);
22932 }
22933 return resultobj;
22934fail:
22935 return NULL;
d14a1e28
RD
22936}
22937
22938
0085ce49
RD
22939SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22940 PyObject *resultobj = 0;
22941 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22942 int result;
22943 void *argp1 = 0 ;
22944 int res1 = 0 ;
22945 PyObject *swig_obj[1] ;
22946
22947 if (!args) SWIG_fail;
22948 swig_obj[0] = args;
22949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22950 if (!SWIG_IsOK(res1)) {
22951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22952 }
22953 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22954 {
22955 PyThreadState* __tstate = wxPyBeginAllowThreads();
22956 result = (int)(arg1)->IsButton();
22957 wxPyEndAllowThreads(__tstate);
22958 if (PyErr_Occurred()) SWIG_fail;
22959 }
22960 resultobj = SWIG_From_int(static_cast< int >(result));
22961 return resultobj;
22962fail:
22963 return NULL;
d14a1e28
RD
22964}
22965
22966
0085ce49
RD
22967SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22968 PyObject *resultobj = 0;
22969 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22970 int result;
22971 void *argp1 = 0 ;
22972 int res1 = 0 ;
22973 PyObject *swig_obj[1] ;
22974
22975 if (!args) SWIG_fail;
22976 swig_obj[0] = args;
22977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22978 if (!SWIG_IsOK(res1)) {
22979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22980 }
22981 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22982 {
22983 PyThreadState* __tstate = wxPyBeginAllowThreads();
22984 result = (int)(arg1)->IsControl();
22985 wxPyEndAllowThreads(__tstate);
22986 if (PyErr_Occurred()) SWIG_fail;
22987 }
22988 resultobj = SWIG_From_int(static_cast< int >(result));
22989 return resultobj;
22990fail:
22991 return NULL;
d14a1e28
RD
22992}
22993
22994
0085ce49
RD
22995SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22996 PyObject *resultobj = 0;
22997 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22998 int result;
22999 void *argp1 = 0 ;
23000 int res1 = 0 ;
23001 PyObject *swig_obj[1] ;
23002
23003 if (!args) SWIG_fail;
23004 swig_obj[0] = args;
23005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23006 if (!SWIG_IsOK(res1)) {
23007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23008 }
23009 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23010 {
23011 PyThreadState* __tstate = wxPyBeginAllowThreads();
23012 result = (int)(arg1)->IsSeparator();
23013 wxPyEndAllowThreads(__tstate);
23014 if (PyErr_Occurred()) SWIG_fail;
23015 }
23016 resultobj = SWIG_From_int(static_cast< int >(result));
23017 return resultobj;
23018fail:
23019 return NULL;
d14a1e28
RD
23020}
23021
23022
0085ce49
RD
23023SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23024 PyObject *resultobj = 0;
23025 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23026 int result;
23027 void *argp1 = 0 ;
23028 int res1 = 0 ;
23029 PyObject *swig_obj[1] ;
23030
23031 if (!args) SWIG_fail;
23032 swig_obj[0] = args;
23033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23034 if (!SWIG_IsOK(res1)) {
23035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23036 }
23037 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23038 {
23039 PyThreadState* __tstate = wxPyBeginAllowThreads();
23040 result = (int)(arg1)->GetStyle();
23041 wxPyEndAllowThreads(__tstate);
23042 if (PyErr_Occurred()) SWIG_fail;
23043 }
23044 resultobj = SWIG_From_int(static_cast< int >(result));
23045 return resultobj;
23046fail:
23047 return NULL;
d14a1e28
RD
23048}
23049
23050
0085ce49
RD
23051SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23052 PyObject *resultobj = 0;
23053 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23054 wxItemKind result;
23055 void *argp1 = 0 ;
23056 int res1 = 0 ;
23057 PyObject *swig_obj[1] ;
23058
23059 if (!args) SWIG_fail;
23060 swig_obj[0] = args;
23061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23062 if (!SWIG_IsOK(res1)) {
23063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23064 }
23065 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23066 {
23067 PyThreadState* __tstate = wxPyBeginAllowThreads();
23068 result = (wxItemKind)(arg1)->GetKind();
23069 wxPyEndAllowThreads(__tstate);
23070 if (PyErr_Occurred()) SWIG_fail;
23071 }
23072 resultobj = SWIG_From_int(static_cast< int >(result));
23073 return resultobj;
23074fail:
23075 return NULL;
d14a1e28
RD
23076}
23077
23078
0085ce49
RD
23079SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23080 PyObject *resultobj = 0;
23081 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23082 bool 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_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23092 }
23093 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23094 {
23095 PyThreadState* __tstate = wxPyBeginAllowThreads();
23096 result = (bool)(arg1)->IsEnabled();
23097 wxPyEndAllowThreads(__tstate);
23098 if (PyErr_Occurred()) SWIG_fail;
23099 }
23100 {
23101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23102 }
23103 return resultobj;
23104fail:
23105 return NULL;
d14a1e28
RD
23106}
23107
23108
0085ce49
RD
23109SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23110 PyObject *resultobj = 0;
23111 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23112 bool result;
23113 void *argp1 = 0 ;
23114 int res1 = 0 ;
23115 PyObject *swig_obj[1] ;
23116
23117 if (!args) SWIG_fail;
23118 swig_obj[0] = args;
23119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23120 if (!SWIG_IsOK(res1)) {
23121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23122 }
23123 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23124 {
23125 PyThreadState* __tstate = wxPyBeginAllowThreads();
23126 result = (bool)(arg1)->IsToggled();
23127 wxPyEndAllowThreads(__tstate);
23128 if (PyErr_Occurred()) SWIG_fail;
23129 }
23130 {
23131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23132 }
23133 return resultobj;
23134fail:
23135 return NULL;
22bfe96c
RD
23136}
23137
23138
0085ce49
RD
23139SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23140 PyObject *resultobj = 0;
23141 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23142 bool result;
23143 void *argp1 = 0 ;
23144 int res1 = 0 ;
23145 PyObject *swig_obj[1] ;
23146
23147 if (!args) SWIG_fail;
23148 swig_obj[0] = args;
23149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23150 if (!SWIG_IsOK(res1)) {
23151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23152 }
23153 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23154 {
23155 PyThreadState* __tstate = wxPyBeginAllowThreads();
23156 result = (bool)(arg1)->CanBeToggled();
23157 wxPyEndAllowThreads(__tstate);
23158 if (PyErr_Occurred()) SWIG_fail;
23159 }
23160 {
23161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23162 }
23163 return resultobj;
23164fail:
23165 return NULL;
d1e20054
RD
23166}
23167
23168
0085ce49
RD
23169SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23170 PyObject *resultobj = 0;
23171 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23172 wxBitmap *result = 0 ;
23173 void *argp1 = 0 ;
23174 int res1 = 0 ;
23175 PyObject *swig_obj[1] ;
23176
23177 if (!args) SWIG_fail;
23178 swig_obj[0] = args;
23179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23180 if (!SWIG_IsOK(res1)) {
23181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23182 }
23183 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23184 {
23185 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 23186 {
0085ce49
RD
23187 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23188 result = (wxBitmap *) &_result_ref;
093d3ff1 23189 }
0085ce49
RD
23190 wxPyEndAllowThreads(__tstate);
23191 if (PyErr_Occurred()) SWIG_fail;
23192 }
23193 {
23194 wxBitmap* resultptr = new wxBitmap(*result);
23195 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23196 }
23197 return resultobj;
23198fail:
23199 return NULL;
d1e20054
RD
23200}
23201
23202
0085ce49
RD
23203SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23204 PyObject *resultobj = 0;
23205 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23206 wxBitmap *result = 0 ;
23207 void *argp1 = 0 ;
23208 int res1 = 0 ;
23209 PyObject *swig_obj[1] ;
23210
23211 if (!args) SWIG_fail;
23212 swig_obj[0] = args;
23213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23214 if (!SWIG_IsOK(res1)) {
23215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23216 }
23217 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23218 {
23219 PyThreadState* __tstate = wxPyBeginAllowThreads();
d1e20054 23220 {
0085ce49
RD
23221 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23222 result = (wxBitmap *) &_result_ref;
d1e20054 23223 }
0085ce49
RD
23224 wxPyEndAllowThreads(__tstate);
23225 if (PyErr_Occurred()) SWIG_fail;
23226 }
23227 {
23228 wxBitmap* resultptr = new wxBitmap(*result);
23229 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23230 }
23231 return resultobj;
23232fail:
23233 return NULL;
d1e20054
RD
23234}
23235
23236
0085ce49
RD
23237SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23238 PyObject *resultobj = 0;
23239 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23240 wxBitmap result;
23241 void *argp1 = 0 ;
23242 int res1 = 0 ;
23243 PyObject *swig_obj[1] ;
23244
23245 if (!args) SWIG_fail;
23246 swig_obj[0] = args;
23247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23248 if (!SWIG_IsOK(res1)) {
23249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23250 }
23251 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23252 {
23253 PyThreadState* __tstate = wxPyBeginAllowThreads();
23254 result = (arg1)->GetBitmap();
23255 wxPyEndAllowThreads(__tstate);
23256 if (PyErr_Occurred()) SWIG_fail;
23257 }
23258 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23259 return resultobj;
23260fail:
23261 return NULL;
b2dc1044
RD
23262}
23263
23264
0085ce49
RD
23265SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23266 PyObject *resultobj = 0;
23267 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23268 wxString result;
23269 void *argp1 = 0 ;
23270 int res1 = 0 ;
23271 PyObject *swig_obj[1] ;
23272
23273 if (!args) SWIG_fail;
23274 swig_obj[0] = args;
23275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23276 if (!SWIG_IsOK(res1)) {
23277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23278 }
23279 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23280 {
23281 PyThreadState* __tstate = wxPyBeginAllowThreads();
23282 result = (arg1)->GetLabel();
23283 wxPyEndAllowThreads(__tstate);
23284 if (PyErr_Occurred()) SWIG_fail;
23285 }
23286 {
b2dc1044 23287#if wxUSE_UNICODE
0085ce49 23288 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 23289#else
0085ce49 23290 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 23291#endif
0085ce49
RD
23292 }
23293 return resultobj;
23294fail:
23295 return NULL;
b2dc1044
RD
23296}
23297
23298
0085ce49
RD
23299SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23300 PyObject *resultobj = 0;
23301 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23302 wxString result;
23303 void *argp1 = 0 ;
23304 int res1 = 0 ;
23305 PyObject *swig_obj[1] ;
23306
23307 if (!args) SWIG_fail;
23308 swig_obj[0] = args;
23309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23310 if (!SWIG_IsOK(res1)) {
23311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23312 }
23313 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23314 {
23315 PyThreadState* __tstate = wxPyBeginAllowThreads();
23316 result = (arg1)->GetShortHelp();
23317 wxPyEndAllowThreads(__tstate);
23318 if (PyErr_Occurred()) SWIG_fail;
23319 }
23320 {
b2dc1044 23321#if wxUSE_UNICODE
0085ce49 23322 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 23323#else
0085ce49 23324 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 23325#endif
0085ce49
RD
23326 }
23327 return resultobj;
23328fail:
23329 return NULL;
d14a1e28
RD
23330}
23331
23332
0085ce49
RD
23333SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23334 PyObject *resultobj = 0;
23335 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23336 wxString result;
23337 void *argp1 = 0 ;
23338 int res1 = 0 ;
23339 PyObject *swig_obj[1] ;
23340
23341 if (!args) SWIG_fail;
23342 swig_obj[0] = args;
23343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23344 if (!SWIG_IsOK(res1)) {
23345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23346 }
23347 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23348 {
23349 PyThreadState* __tstate = wxPyBeginAllowThreads();
23350 result = (arg1)->GetLongHelp();
23351 wxPyEndAllowThreads(__tstate);
23352 if (PyErr_Occurred()) SWIG_fail;
23353 }
23354 {
23355#if wxUSE_UNICODE
23356 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23357#else
23358 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23359#endif
23360 }
23361 return resultobj;
23362fail:
23363 return NULL;
23364}
23365
23366
23367SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23368 PyObject *resultobj = 0;
23369 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23370 bool arg2 ;
23371 bool result;
23372 void *argp1 = 0 ;
23373 int res1 = 0 ;
23374 bool val2 ;
23375 int ecode2 = 0 ;
23376 PyObject * obj0 = 0 ;
23377 PyObject * obj1 = 0 ;
23378 char * kwnames[] = {
23379 (char *) "self",(char *) "enable", NULL
23380 };
23381
23382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23384 if (!SWIG_IsOK(res1)) {
23385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23386 }
23387 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23388 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23389 if (!SWIG_IsOK(ecode2)) {
23390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23391 }
23392 arg2 = static_cast< bool >(val2);
23393 {
23394 PyThreadState* __tstate = wxPyBeginAllowThreads();
23395 result = (bool)(arg1)->Enable(arg2);
23396 wxPyEndAllowThreads(__tstate);
23397 if (PyErr_Occurred()) SWIG_fail;
23398 }
23399 {
23400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23401 }
23402 return resultobj;
23403fail:
23404 return NULL;
d14a1e28
RD
23405}
23406
23407
0085ce49
RD
23408SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23409 PyObject *resultobj = 0;
23410 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23411 void *argp1 = 0 ;
23412 int res1 = 0 ;
23413 PyObject *swig_obj[1] ;
23414
23415 if (!args) SWIG_fail;
23416 swig_obj[0] = args;
23417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23418 if (!SWIG_IsOK(res1)) {
23419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23420 }
23421 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23422 {
23423 PyThreadState* __tstate = wxPyBeginAllowThreads();
23424 (arg1)->Toggle();
23425 wxPyEndAllowThreads(__tstate);
23426 if (PyErr_Occurred()) SWIG_fail;
23427 }
23428 resultobj = SWIG_Py_Void();
23429 return resultobj;
23430fail:
23431 return NULL;
23432}
23433
23434
23435SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23436 PyObject *resultobj = 0;
23437 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23438 bool arg2 ;
23439 bool result;
23440 void *argp1 = 0 ;
23441 int res1 = 0 ;
23442 bool val2 ;
23443 int ecode2 = 0 ;
23444 PyObject * obj0 = 0 ;
23445 PyObject * obj1 = 0 ;
23446 char * kwnames[] = {
23447 (char *) "self",(char *) "toggle", NULL
23448 };
23449
23450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23452 if (!SWIG_IsOK(res1)) {
23453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23454 }
23455 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23456 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23457 if (!SWIG_IsOK(ecode2)) {
23458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23459 }
23460 arg2 = static_cast< bool >(val2);
23461 {
23462 PyThreadState* __tstate = wxPyBeginAllowThreads();
23463 result = (bool)(arg1)->SetToggle(arg2);
23464 wxPyEndAllowThreads(__tstate);
23465 if (PyErr_Occurred()) SWIG_fail;
23466 }
23467 {
23468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23469 }
23470 return resultobj;
23471fail:
23472 return NULL;
23473}
23474
23475
23476SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23477 PyObject *resultobj = 0;
23478 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23479 wxString *arg2 = 0 ;
23480 bool result;
23481 void *argp1 = 0 ;
23482 int res1 = 0 ;
23483 bool temp2 = false ;
23484 PyObject * obj0 = 0 ;
23485 PyObject * obj1 = 0 ;
23486 char * kwnames[] = {
23487 (char *) "self",(char *) "help", NULL
23488 };
23489
23490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23492 if (!SWIG_IsOK(res1)) {
23493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23494 }
23495 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23496 {
23497 arg2 = wxString_in_helper(obj1);
23498 if (arg2 == NULL) SWIG_fail;
23499 temp2 = true;
23500 }
23501 {
23502 PyThreadState* __tstate = wxPyBeginAllowThreads();
23503 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23504 wxPyEndAllowThreads(__tstate);
23505 if (PyErr_Occurred()) SWIG_fail;
23506 }
23507 {
23508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23509 }
23510 {
23511 if (temp2)
23512 delete arg2;
23513 }
23514 return resultobj;
23515fail:
23516 {
23517 if (temp2)
23518 delete arg2;
23519 }
23520 return NULL;
23521}
23522
23523
23524SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23525 PyObject *resultobj = 0;
23526 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23527 wxString *arg2 = 0 ;
23528 bool result;
23529 void *argp1 = 0 ;
23530 int res1 = 0 ;
23531 bool temp2 = false ;
23532 PyObject * obj0 = 0 ;
23533 PyObject * obj1 = 0 ;
23534 char * kwnames[] = {
23535 (char *) "self",(char *) "help", NULL
23536 };
23537
23538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23540 if (!SWIG_IsOK(res1)) {
23541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23542 }
23543 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23544 {
23545 arg2 = wxString_in_helper(obj1);
23546 if (arg2 == NULL) SWIG_fail;
23547 temp2 = true;
23548 }
23549 {
23550 PyThreadState* __tstate = wxPyBeginAllowThreads();
23551 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23552 wxPyEndAllowThreads(__tstate);
23553 if (PyErr_Occurred()) SWIG_fail;
23554 }
23555 {
23556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23557 }
23558 {
23559 if (temp2)
23560 delete arg2;
23561 }
23562 return resultobj;
23563fail:
23564 {
23565 if (temp2)
23566 delete arg2;
23567 }
23568 return NULL;
23569}
23570
23571
23572SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23573 PyObject *resultobj = 0;
23574 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23575 wxBitmap *arg2 = 0 ;
23576 void *argp1 = 0 ;
23577 int res1 = 0 ;
23578 void *argp2 = 0 ;
23579 int res2 = 0 ;
23580 PyObject * obj0 = 0 ;
23581 PyObject * obj1 = 0 ;
23582 char * kwnames[] = {
23583 (char *) "self",(char *) "bmp", NULL
23584 };
23585
23586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23588 if (!SWIG_IsOK(res1)) {
23589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23590 }
23591 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23592 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23593 if (!SWIG_IsOK(res2)) {
23594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23595 }
23596 if (!argp2) {
23597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23598 }
23599 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23600 {
23601 PyThreadState* __tstate = wxPyBeginAllowThreads();
23602 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23603 wxPyEndAllowThreads(__tstate);
23604 if (PyErr_Occurred()) SWIG_fail;
23605 }
23606 resultobj = SWIG_Py_Void();
23607 return resultobj;
23608fail:
23609 return NULL;
23610}
23611
23612
23613SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23614 PyObject *resultobj = 0;
23615 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23616 wxBitmap *arg2 = 0 ;
23617 void *argp1 = 0 ;
23618 int res1 = 0 ;
23619 void *argp2 = 0 ;
23620 int res2 = 0 ;
23621 PyObject * obj0 = 0 ;
23622 PyObject * obj1 = 0 ;
23623 char * kwnames[] = {
23624 (char *) "self",(char *) "bmp", NULL
23625 };
23626
23627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23629 if (!SWIG_IsOK(res1)) {
23630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23631 }
23632 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23634 if (!SWIG_IsOK(res2)) {
23635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23636 }
23637 if (!argp2) {
23638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23639 }
23640 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23641 {
23642 PyThreadState* __tstate = wxPyBeginAllowThreads();
23643 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23644 wxPyEndAllowThreads(__tstate);
23645 if (PyErr_Occurred()) SWIG_fail;
23646 }
23647 resultobj = SWIG_Py_Void();
23648 return resultobj;
23649fail:
23650 return NULL;
23651}
23652
23653
23654SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23655 PyObject *resultobj = 0;
23656 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23657 wxString *arg2 = 0 ;
23658 void *argp1 = 0 ;
23659 int res1 = 0 ;
23660 bool temp2 = false ;
23661 PyObject * obj0 = 0 ;
23662 PyObject * obj1 = 0 ;
23663 char * kwnames[] = {
23664 (char *) "self",(char *) "label", NULL
23665 };
23666
23667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23669 if (!SWIG_IsOK(res1)) {
23670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23671 }
23672 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23673 {
23674 arg2 = wxString_in_helper(obj1);
23675 if (arg2 == NULL) SWIG_fail;
23676 temp2 = true;
23677 }
23678 {
23679 PyThreadState* __tstate = wxPyBeginAllowThreads();
23680 (arg1)->SetLabel((wxString const &)*arg2);
23681 wxPyEndAllowThreads(__tstate);
23682 if (PyErr_Occurred()) SWIG_fail;
23683 }
23684 resultobj = SWIG_Py_Void();
23685 {
23686 if (temp2)
23687 delete arg2;
23688 }
23689 return resultobj;
23690fail:
23691 {
23692 if (temp2)
23693 delete arg2;
23694 }
23695 return NULL;
d14a1e28
RD
23696}
23697
23698
0085ce49
RD
23699SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23700 PyObject *resultobj = 0;
23701 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23702 void *argp1 = 0 ;
23703 int res1 = 0 ;
23704 PyObject *swig_obj[1] ;
23705
23706 if (!args) SWIG_fail;
23707 swig_obj[0] = args;
23708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23709 if (!SWIG_IsOK(res1)) {
23710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23711 }
23712 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23713 {
23714 PyThreadState* __tstate = wxPyBeginAllowThreads();
23715 (arg1)->Detach();
23716 wxPyEndAllowThreads(__tstate);
23717 if (PyErr_Occurred()) SWIG_fail;
23718 }
23719 resultobj = SWIG_Py_Void();
23720 return resultobj;
23721fail:
23722 return NULL;
23723}
23724
23725
23726SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23727 PyObject *resultobj = 0;
23728 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23729 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23730 void *argp1 = 0 ;
23731 int res1 = 0 ;
23732 void *argp2 = 0 ;
23733 int res2 = 0 ;
23734 PyObject * obj0 = 0 ;
23735 PyObject * obj1 = 0 ;
23736 char * kwnames[] = {
23737 (char *) "self",(char *) "tbar", NULL
23738 };
23739
23740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23742 if (!SWIG_IsOK(res1)) {
23743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23744 }
23745 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23746 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23747 if (!SWIG_IsOK(res2)) {
23748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23749 }
23750 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23751 {
23752 PyThreadState* __tstate = wxPyBeginAllowThreads();
23753 (arg1)->Attach(arg2);
23754 wxPyEndAllowThreads(__tstate);
23755 if (PyErr_Occurred()) SWIG_fail;
23756 }
23757 resultobj = SWIG_Py_Void();
23758 return resultobj;
23759fail:
23760 return NULL;
d14a1e28
RD
23761}
23762
23763
0085ce49
RD
23764SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23765 PyObject *resultobj = 0;
23766 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23767 PyObject *result = 0 ;
23768 void *argp1 = 0 ;
23769 int res1 = 0 ;
23770 PyObject *swig_obj[1] ;
23771
23772 if (!args) SWIG_fail;
23773 swig_obj[0] = args;
23774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23775 if (!SWIG_IsOK(res1)) {
23776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23777 }
23778 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23779 {
23780 PyThreadState* __tstate = wxPyBeginAllowThreads();
23781 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23782 wxPyEndAllowThreads(__tstate);
23783 if (PyErr_Occurred()) SWIG_fail;
23784 }
23785 resultobj = result;
23786 return resultobj;
23787fail:
23788 return NULL;
23789}
23790
23791
23792SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23793 PyObject *resultobj = 0;
23794 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23795 PyObject *arg2 = (PyObject *) 0 ;
23796 void *argp1 = 0 ;
23797 int res1 = 0 ;
23798 PyObject * obj0 = 0 ;
23799 PyObject * obj1 = 0 ;
23800 char * kwnames[] = {
23801 (char *) "self",(char *) "clientData", NULL
23802 };
23803
23804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23806 if (!SWIG_IsOK(res1)) {
23807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23808 }
23809 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23810 arg2 = obj1;
23811 {
23812 PyThreadState* __tstate = wxPyBeginAllowThreads();
23813 wxToolBarToolBase_SetClientData(arg1,arg2);
23814 wxPyEndAllowThreads(__tstate);
23815 if (PyErr_Occurred()) SWIG_fail;
23816 }
23817 resultobj = SWIG_Py_Void();
23818 return resultobj;
23819fail:
23820 return NULL;
23821}
23822
23823
23824SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23825 PyObject *obj;
23826 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23827 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23828 return SWIG_Py_Void();
23829}
23830
23831SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23832 PyObject *resultobj = 0;
23833 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23834 int arg2 ;
23835 wxString *arg3 = 0 ;
23836 wxBitmap *arg4 = 0 ;
23837 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23838 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23839 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23840 wxString const &arg7_defvalue = wxPyEmptyString ;
23841 wxString *arg7 = (wxString *) &arg7_defvalue ;
23842 wxString const &arg8_defvalue = wxPyEmptyString ;
23843 wxString *arg8 = (wxString *) &arg8_defvalue ;
23844 PyObject *arg9 = (PyObject *) NULL ;
23845 wxToolBarToolBase *result = 0 ;
23846 void *argp1 = 0 ;
23847 int res1 = 0 ;
23848 int val2 ;
23849 int ecode2 = 0 ;
23850 bool temp3 = false ;
23851 void *argp4 = 0 ;
23852 int res4 = 0 ;
23853 void *argp5 = 0 ;
23854 int res5 = 0 ;
23855 int val6 ;
23856 int ecode6 = 0 ;
23857 bool temp7 = false ;
23858 bool temp8 = false ;
23859 PyObject * obj0 = 0 ;
23860 PyObject * obj1 = 0 ;
23861 PyObject * obj2 = 0 ;
23862 PyObject * obj3 = 0 ;
23863 PyObject * obj4 = 0 ;
23864 PyObject * obj5 = 0 ;
23865 PyObject * obj6 = 0 ;
23866 PyObject * obj7 = 0 ;
23867 PyObject * obj8 = 0 ;
23868 char * kwnames[] = {
23869 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23870 };
23871
23872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23874 if (!SWIG_IsOK(res1)) {
23875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23876 }
23877 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23878 ecode2 = SWIG_AsVal_int(obj1, &val2);
23879 if (!SWIG_IsOK(ecode2)) {
23880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23881 }
23882 arg2 = static_cast< int >(val2);
23883 {
23884 arg3 = wxString_in_helper(obj2);
23885 if (arg3 == NULL) SWIG_fail;
23886 temp3 = true;
23887 }
23888 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23889 if (!SWIG_IsOK(res4)) {
23890 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23891 }
23892 if (!argp4) {
23893 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23894 }
23895 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23896 if (obj4) {
23897 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23898 if (!SWIG_IsOK(res5)) {
23899 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23900 }
0085ce49
RD
23901 if (!argp5) {
23902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23903 }
0085ce49
RD
23904 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23905 }
23906 if (obj5) {
23907 ecode6 = SWIG_AsVal_int(obj5, &val6);
23908 if (!SWIG_IsOK(ecode6)) {
23909 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23910 }
23911 arg6 = static_cast< wxItemKind >(val6);
23912 }
23913 if (obj6) {
093d3ff1 23914 {
0085ce49
RD
23915 arg7 = wxString_in_helper(obj6);
23916 if (arg7 == NULL) SWIG_fail;
23917 temp7 = true;
093d3ff1 23918 }
0085ce49
RD
23919 }
23920 if (obj7) {
d14a1e28 23921 {
0085ce49
RD
23922 arg8 = wxString_in_helper(obj7);
23923 if (arg8 == NULL) SWIG_fail;
23924 temp8 = true;
d14a1e28 23925 }
0085ce49
RD
23926 }
23927 if (obj8) {
23928 arg9 = obj8;
23929 }
23930 {
23931 PyThreadState* __tstate = wxPyBeginAllowThreads();
23932 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23933 wxPyEndAllowThreads(__tstate);
23934 if (PyErr_Occurred()) SWIG_fail;
23935 }
23936 {
23937 resultobj = wxPyMake_wxObject(result, (bool)0);
23938 }
23939 {
23940 if (temp3)
23941 delete arg3;
23942 }
23943 {
23944 if (temp7)
23945 delete arg7;
23946 }
23947 {
23948 if (temp8)
23949 delete arg8;
23950 }
23951 return resultobj;
23952fail:
23953 {
23954 if (temp3)
23955 delete arg3;
23956 }
23957 {
23958 if (temp7)
23959 delete arg7;
23960 }
23961 {
23962 if (temp8)
23963 delete arg8;
23964 }
23965 return NULL;
23966}
23967
23968
23969SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23970 PyObject *resultobj = 0;
23971 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23972 size_t arg2 ;
23973 int arg3 ;
23974 wxString *arg4 = 0 ;
23975 wxBitmap *arg5 = 0 ;
23976 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23977 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23978 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23979 wxString const &arg8_defvalue = wxPyEmptyString ;
23980 wxString *arg8 = (wxString *) &arg8_defvalue ;
23981 wxString const &arg9_defvalue = wxPyEmptyString ;
23982 wxString *arg9 = (wxString *) &arg9_defvalue ;
23983 PyObject *arg10 = (PyObject *) NULL ;
23984 wxToolBarToolBase *result = 0 ;
23985 void *argp1 = 0 ;
23986 int res1 = 0 ;
23987 size_t val2 ;
23988 int ecode2 = 0 ;
23989 int val3 ;
23990 int ecode3 = 0 ;
23991 bool temp4 = false ;
23992 void *argp5 = 0 ;
23993 int res5 = 0 ;
23994 void *argp6 = 0 ;
23995 int res6 = 0 ;
23996 int val7 ;
23997 int ecode7 = 0 ;
23998 bool temp8 = false ;
23999 bool temp9 = false ;
24000 PyObject * obj0 = 0 ;
24001 PyObject * obj1 = 0 ;
24002 PyObject * obj2 = 0 ;
24003 PyObject * obj3 = 0 ;
24004 PyObject * obj4 = 0 ;
24005 PyObject * obj5 = 0 ;
24006 PyObject * obj6 = 0 ;
24007 PyObject * obj7 = 0 ;
24008 PyObject * obj8 = 0 ;
24009 PyObject * obj9 = 0 ;
24010 char * kwnames[] = {
24011 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24012 };
24013
24014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24016 if (!SWIG_IsOK(res1)) {
24017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24018 }
24019 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24020 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24021 if (!SWIG_IsOK(ecode2)) {
24022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24023 }
24024 arg2 = static_cast< size_t >(val2);
24025 ecode3 = SWIG_AsVal_int(obj2, &val3);
24026 if (!SWIG_IsOK(ecode3)) {
24027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24028 }
24029 arg3 = static_cast< int >(val3);
24030 {
24031 arg4 = wxString_in_helper(obj3);
24032 if (arg4 == NULL) SWIG_fail;
24033 temp4 = true;
24034 }
24035 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24036 if (!SWIG_IsOK(res5)) {
24037 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24038 }
24039 if (!argp5) {
24040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24041 }
24042 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24043 if (obj5) {
24044 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24045 if (!SWIG_IsOK(res6)) {
24046 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d14a1e28 24047 }
0085ce49
RD
24048 if (!argp6) {
24049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
093d3ff1 24050 }
0085ce49
RD
24051 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24052 }
24053 if (obj6) {
24054 ecode7 = SWIG_AsVal_int(obj6, &val7);
24055 if (!SWIG_IsOK(ecode7)) {
24056 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24057 }
24058 arg7 = static_cast< wxItemKind >(val7);
24059 }
24060 if (obj7) {
d14a1e28 24061 {
0085ce49
RD
24062 arg8 = wxString_in_helper(obj7);
24063 if (arg8 == NULL) SWIG_fail;
24064 temp8 = true;
d14a1e28 24065 }
0085ce49
RD
24066 }
24067 if (obj8) {
d14a1e28 24068 {
0085ce49
RD
24069 arg9 = wxString_in_helper(obj8);
24070 if (arg9 == NULL) SWIG_fail;
24071 temp9 = true;
d14a1e28 24072 }
0085ce49
RD
24073 }
24074 if (obj9) {
24075 arg10 = obj9;
24076 }
24077 {
24078 PyThreadState* __tstate = wxPyBeginAllowThreads();
24079 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24080 wxPyEndAllowThreads(__tstate);
24081 if (PyErr_Occurred()) SWIG_fail;
24082 }
24083 {
24084 resultobj = wxPyMake_wxObject(result, (bool)0);
24085 }
24086 {
24087 if (temp4)
24088 delete arg4;
24089 }
24090 {
24091 if (temp8)
24092 delete arg8;
24093 }
24094 {
24095 if (temp9)
24096 delete arg9;
24097 }
24098 return resultobj;
24099fail:
24100 {
24101 if (temp4)
24102 delete arg4;
24103 }
24104 {
24105 if (temp8)
24106 delete arg8;
24107 }
24108 {
24109 if (temp9)
24110 delete arg9;
24111 }
24112 return NULL;
24113}
24114
24115
24116SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24117 PyObject *resultobj = 0;
24118 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24119 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24120 wxToolBarToolBase *result = 0 ;
24121 void *argp1 = 0 ;
24122 int res1 = 0 ;
24123 void *argp2 = 0 ;
24124 int res2 = 0 ;
24125 PyObject * obj0 = 0 ;
24126 PyObject * obj1 = 0 ;
24127 char * kwnames[] = {
24128 (char *) "self",(char *) "tool", NULL
24129 };
24130
24131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24133 if (!SWIG_IsOK(res1)) {
24134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24135 }
24136 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24137 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24138 if (!SWIG_IsOK(res2)) {
24139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24140 }
24141 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24142 {
24143 PyThreadState* __tstate = wxPyBeginAllowThreads();
24144 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24145 wxPyEndAllowThreads(__tstate);
24146 if (PyErr_Occurred()) SWIG_fail;
24147 }
24148 {
24149 resultobj = wxPyMake_wxObject(result, (bool)0);
24150 }
24151 return resultobj;
24152fail:
24153 return NULL;
24154}
24155
24156
24157SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24158 PyObject *resultobj = 0;
24159 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24160 size_t arg2 ;
24161 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24162 wxToolBarToolBase *result = 0 ;
24163 void *argp1 = 0 ;
24164 int res1 = 0 ;
24165 size_t val2 ;
24166 int ecode2 = 0 ;
24167 void *argp3 = 0 ;
24168 int res3 = 0 ;
24169 PyObject * obj0 = 0 ;
24170 PyObject * obj1 = 0 ;
24171 PyObject * obj2 = 0 ;
24172 char * kwnames[] = {
24173 (char *) "self",(char *) "pos",(char *) "tool", NULL
24174 };
24175
24176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24178 if (!SWIG_IsOK(res1)) {
24179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24180 }
24181 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24182 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24183 if (!SWIG_IsOK(ecode2)) {
24184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24185 }
24186 arg2 = static_cast< size_t >(val2);
24187 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24188 if (!SWIG_IsOK(res3)) {
24189 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24190 }
24191 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24192 {
24193 PyThreadState* __tstate = wxPyBeginAllowThreads();
24194 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24195 wxPyEndAllowThreads(__tstate);
24196 if (PyErr_Occurred()) SWIG_fail;
24197 }
24198 {
24199 resultobj = wxPyMake_wxObject(result, (bool)0);
24200 }
24201 return resultobj;
24202fail:
24203 return NULL;
24204}
24205
24206
24207SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24208 PyObject *resultobj = 0;
24209 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24210 wxControl *arg2 = (wxControl *) 0 ;
24211 wxToolBarToolBase *result = 0 ;
24212 void *argp1 = 0 ;
24213 int res1 = 0 ;
24214 void *argp2 = 0 ;
24215 int res2 = 0 ;
24216 PyObject * obj0 = 0 ;
24217 PyObject * obj1 = 0 ;
24218 char * kwnames[] = {
24219 (char *) "self",(char *) "control", NULL
24220 };
24221
24222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24224 if (!SWIG_IsOK(res1)) {
24225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24226 }
24227 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24228 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24229 if (!SWIG_IsOK(res2)) {
24230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24231 }
24232 arg2 = reinterpret_cast< wxControl * >(argp2);
24233 {
24234 PyThreadState* __tstate = wxPyBeginAllowThreads();
24235 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24236 wxPyEndAllowThreads(__tstate);
24237 if (PyErr_Occurred()) SWIG_fail;
24238 }
24239 {
24240 resultobj = wxPyMake_wxObject(result, (bool)0);
24241 }
24242 return resultobj;
24243fail:
24244 return NULL;
24245}
24246
24247
24248SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24249 PyObject *resultobj = 0;
24250 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24251 size_t arg2 ;
24252 wxControl *arg3 = (wxControl *) 0 ;
24253 wxToolBarToolBase *result = 0 ;
24254 void *argp1 = 0 ;
24255 int res1 = 0 ;
24256 size_t val2 ;
24257 int ecode2 = 0 ;
24258 void *argp3 = 0 ;
24259 int res3 = 0 ;
24260 PyObject * obj0 = 0 ;
24261 PyObject * obj1 = 0 ;
24262 PyObject * obj2 = 0 ;
24263 char * kwnames[] = {
24264 (char *) "self",(char *) "pos",(char *) "control", NULL
24265 };
24266
24267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24269 if (!SWIG_IsOK(res1)) {
24270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24271 }
24272 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24273 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24274 if (!SWIG_IsOK(ecode2)) {
24275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24276 }
24277 arg2 = static_cast< size_t >(val2);
24278 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24279 if (!SWIG_IsOK(res3)) {
24280 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24281 }
24282 arg3 = reinterpret_cast< wxControl * >(argp3);
24283 {
24284 PyThreadState* __tstate = wxPyBeginAllowThreads();
24285 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24286 wxPyEndAllowThreads(__tstate);
24287 if (PyErr_Occurred()) SWIG_fail;
24288 }
24289 {
24290 resultobj = wxPyMake_wxObject(result, (bool)0);
24291 }
24292 return resultobj;
24293fail:
24294 return NULL;
24295}
24296
24297
24298SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24299 PyObject *resultobj = 0;
24300 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24301 int arg2 ;
24302 wxControl *result = 0 ;
24303 void *argp1 = 0 ;
24304 int res1 = 0 ;
24305 int val2 ;
24306 int ecode2 = 0 ;
24307 PyObject * obj0 = 0 ;
24308 PyObject * obj1 = 0 ;
24309 char * kwnames[] = {
24310 (char *) "self",(char *) "id", NULL
24311 };
24312
24313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24315 if (!SWIG_IsOK(res1)) {
24316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24317 }
24318 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24319 ecode2 = SWIG_AsVal_int(obj1, &val2);
24320 if (!SWIG_IsOK(ecode2)) {
24321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24322 }
24323 arg2 = static_cast< int >(val2);
24324 {
24325 PyThreadState* __tstate = wxPyBeginAllowThreads();
24326 result = (wxControl *)(arg1)->FindControl(arg2);
24327 wxPyEndAllowThreads(__tstate);
24328 if (PyErr_Occurred()) SWIG_fail;
24329 }
24330 {
24331 resultobj = wxPyMake_wxObject(result, 0);
24332 }
24333 return resultobj;
24334fail:
24335 return NULL;
d14a1e28
RD
24336}
24337
24338
0085ce49
RD
24339SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24340 PyObject *resultobj = 0;
24341 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24342 wxToolBarToolBase *result = 0 ;
24343 void *argp1 = 0 ;
24344 int res1 = 0 ;
24345 PyObject *swig_obj[1] ;
24346
24347 if (!args) SWIG_fail;
24348 swig_obj[0] = args;
24349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24350 if (!SWIG_IsOK(res1)) {
24351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24352 }
24353 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24354 {
24355 PyThreadState* __tstate = wxPyBeginAllowThreads();
24356 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24357 wxPyEndAllowThreads(__tstate);
24358 if (PyErr_Occurred()) SWIG_fail;
24359 }
24360 {
24361 resultobj = wxPyMake_wxObject(result, (bool)0);
24362 }
24363 return resultobj;
24364fail:
24365 return NULL;
24366}
24367
24368
24369SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24370 PyObject *resultobj = 0;
24371 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24372 size_t arg2 ;
24373 wxToolBarToolBase *result = 0 ;
24374 void *argp1 = 0 ;
24375 int res1 = 0 ;
24376 size_t val2 ;
24377 int ecode2 = 0 ;
24378 PyObject * obj0 = 0 ;
24379 PyObject * obj1 = 0 ;
24380 char * kwnames[] = {
24381 (char *) "self",(char *) "pos", NULL
24382 };
24383
24384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24386 if (!SWIG_IsOK(res1)) {
24387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24388 }
24389 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24390 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24391 if (!SWIG_IsOK(ecode2)) {
24392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24393 }
24394 arg2 = static_cast< size_t >(val2);
24395 {
24396 PyThreadState* __tstate = wxPyBeginAllowThreads();
24397 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24398 wxPyEndAllowThreads(__tstate);
24399 if (PyErr_Occurred()) SWIG_fail;
24400 }
24401 {
24402 resultobj = wxPyMake_wxObject(result, (bool)0);
24403 }
24404 return resultobj;
24405fail:
24406 return NULL;
24407}
24408
24409
24410SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24411 PyObject *resultobj = 0;
24412 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24413 int arg2 ;
24414 wxToolBarToolBase *result = 0 ;
24415 void *argp1 = 0 ;
24416 int res1 = 0 ;
24417 int val2 ;
24418 int ecode2 = 0 ;
24419 PyObject * obj0 = 0 ;
24420 PyObject * obj1 = 0 ;
24421 char * kwnames[] = {
24422 (char *) "self",(char *) "id", NULL
24423 };
24424
24425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24427 if (!SWIG_IsOK(res1)) {
24428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24429 }
24430 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24431 ecode2 = SWIG_AsVal_int(obj1, &val2);
24432 if (!SWIG_IsOK(ecode2)) {
24433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24434 }
24435 arg2 = static_cast< int >(val2);
24436 {
24437 PyThreadState* __tstate = wxPyBeginAllowThreads();
24438 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24439 wxPyEndAllowThreads(__tstate);
24440 if (PyErr_Occurred()) SWIG_fail;
24441 }
24442 {
24443 resultobj = wxPyMake_wxObject(result, (bool)0);
24444 }
24445 return resultobj;
24446fail:
24447 return NULL;
24448}
24449
24450
24451SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24452 PyObject *resultobj = 0;
24453 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24454 size_t arg2 ;
24455 bool result;
24456 void *argp1 = 0 ;
24457 int res1 = 0 ;
24458 size_t val2 ;
24459 int ecode2 = 0 ;
24460 PyObject * obj0 = 0 ;
24461 PyObject * obj1 = 0 ;
24462 char * kwnames[] = {
24463 (char *) "self",(char *) "pos", NULL
24464 };
24465
24466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24468 if (!SWIG_IsOK(res1)) {
24469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24470 }
24471 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24472 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24473 if (!SWIG_IsOK(ecode2)) {
24474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24475 }
24476 arg2 = static_cast< size_t >(val2);
24477 {
24478 PyThreadState* __tstate = wxPyBeginAllowThreads();
24479 result = (bool)(arg1)->DeleteToolByPos(arg2);
24480 wxPyEndAllowThreads(__tstate);
24481 if (PyErr_Occurred()) SWIG_fail;
24482 }
24483 {
24484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24485 }
24486 return resultobj;
24487fail:
24488 return NULL;
24489}
24490
24491
24492SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24493 PyObject *resultobj = 0;
24494 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24495 int arg2 ;
24496 bool result;
24497 void *argp1 = 0 ;
24498 int res1 = 0 ;
24499 int val2 ;
24500 int ecode2 = 0 ;
24501 PyObject * obj0 = 0 ;
24502 PyObject * obj1 = 0 ;
24503 char * kwnames[] = {
24504 (char *) "self",(char *) "id", NULL
24505 };
24506
24507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24509 if (!SWIG_IsOK(res1)) {
24510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24511 }
24512 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24513 ecode2 = SWIG_AsVal_int(obj1, &val2);
24514 if (!SWIG_IsOK(ecode2)) {
24515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24516 }
24517 arg2 = static_cast< int >(val2);
24518 {
24519 PyThreadState* __tstate = wxPyBeginAllowThreads();
24520 result = (bool)(arg1)->DeleteTool(arg2);
24521 wxPyEndAllowThreads(__tstate);
24522 if (PyErr_Occurred()) SWIG_fail;
24523 }
24524 {
24525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24526 }
24527 return resultobj;
24528fail:
24529 return NULL;
d14a1e28
RD
24530}
24531
24532
0085ce49
RD
24533SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24534 PyObject *resultobj = 0;
24535 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24536 void *argp1 = 0 ;
24537 int res1 = 0 ;
24538 PyObject *swig_obj[1] ;
24539
24540 if (!args) SWIG_fail;
24541 swig_obj[0] = args;
24542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24543 if (!SWIG_IsOK(res1)) {
24544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24545 }
24546 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24547 {
24548 PyThreadState* __tstate = wxPyBeginAllowThreads();
24549 (arg1)->ClearTools();
24550 wxPyEndAllowThreads(__tstate);
24551 if (PyErr_Occurred()) SWIG_fail;
24552 }
24553 resultobj = SWIG_Py_Void();
24554 return resultobj;
24555fail:
24556 return NULL;
d14a1e28
RD
24557}
24558
24559
0085ce49
RD
24560SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24561 PyObject *resultobj = 0;
24562 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24563 bool result;
24564 void *argp1 = 0 ;
24565 int res1 = 0 ;
24566 PyObject *swig_obj[1] ;
24567
24568 if (!args) SWIG_fail;
24569 swig_obj[0] = args;
24570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24571 if (!SWIG_IsOK(res1)) {
24572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24573 }
24574 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24575 {
24576 PyThreadState* __tstate = wxPyBeginAllowThreads();
24577 result = (bool)(arg1)->Realize();
24578 wxPyEndAllowThreads(__tstate);
24579 if (PyErr_Occurred()) SWIG_fail;
24580 }
24581 {
24582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24583 }
24584 return resultobj;
24585fail:
24586 return NULL;
24587}
24588
24589
24590SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24591 PyObject *resultobj = 0;
24592 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24593 int arg2 ;
24594 bool arg3 ;
24595 void *argp1 = 0 ;
24596 int res1 = 0 ;
24597 int val2 ;
24598 int ecode2 = 0 ;
24599 bool val3 ;
24600 int ecode3 = 0 ;
24601 PyObject * obj0 = 0 ;
24602 PyObject * obj1 = 0 ;
24603 PyObject * obj2 = 0 ;
24604 char * kwnames[] = {
24605 (char *) "self",(char *) "id",(char *) "enable", NULL
24606 };
24607
24608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24610 if (!SWIG_IsOK(res1)) {
24611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24612 }
24613 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24614 ecode2 = SWIG_AsVal_int(obj1, &val2);
24615 if (!SWIG_IsOK(ecode2)) {
24616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24617 }
24618 arg2 = static_cast< int >(val2);
24619 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24620 if (!SWIG_IsOK(ecode3)) {
24621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24622 }
24623 arg3 = static_cast< bool >(val3);
24624 {
24625 PyThreadState* __tstate = wxPyBeginAllowThreads();
24626 (arg1)->EnableTool(arg2,arg3);
24627 wxPyEndAllowThreads(__tstate);
24628 if (PyErr_Occurred()) SWIG_fail;
24629 }
24630 resultobj = SWIG_Py_Void();
24631 return resultobj;
24632fail:
24633 return NULL;
24634}
24635
24636
24637SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24638 PyObject *resultobj = 0;
24639 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24640 int arg2 ;
24641 bool arg3 ;
24642 void *argp1 = 0 ;
24643 int res1 = 0 ;
24644 int val2 ;
24645 int ecode2 = 0 ;
24646 bool val3 ;
24647 int ecode3 = 0 ;
24648 PyObject * obj0 = 0 ;
24649 PyObject * obj1 = 0 ;
24650 PyObject * obj2 = 0 ;
24651 char * kwnames[] = {
24652 (char *) "self",(char *) "id",(char *) "toggle", NULL
24653 };
24654
24655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24657 if (!SWIG_IsOK(res1)) {
24658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24659 }
24660 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24661 ecode2 = SWIG_AsVal_int(obj1, &val2);
24662 if (!SWIG_IsOK(ecode2)) {
24663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24664 }
24665 arg2 = static_cast< int >(val2);
24666 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24667 if (!SWIG_IsOK(ecode3)) {
24668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24669 }
24670 arg3 = static_cast< bool >(val3);
24671 {
24672 PyThreadState* __tstate = wxPyBeginAllowThreads();
24673 (arg1)->ToggleTool(arg2,arg3);
24674 wxPyEndAllowThreads(__tstate);
24675 if (PyErr_Occurred()) SWIG_fail;
24676 }
24677 resultobj = SWIG_Py_Void();
24678 return resultobj;
24679fail:
24680 return NULL;
24681}
24682
24683
24684SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24685 PyObject *resultobj = 0;
24686 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24687 int arg2 ;
24688 bool arg3 ;
24689 void *argp1 = 0 ;
24690 int res1 = 0 ;
24691 int val2 ;
24692 int ecode2 = 0 ;
24693 bool val3 ;
24694 int ecode3 = 0 ;
24695 PyObject * obj0 = 0 ;
24696 PyObject * obj1 = 0 ;
24697 PyObject * obj2 = 0 ;
24698 char * kwnames[] = {
24699 (char *) "self",(char *) "id",(char *) "toggle", NULL
24700 };
24701
24702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24704 if (!SWIG_IsOK(res1)) {
24705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24706 }
24707 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24708 ecode2 = SWIG_AsVal_int(obj1, &val2);
24709 if (!SWIG_IsOK(ecode2)) {
24710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24711 }
24712 arg2 = static_cast< int >(val2);
24713 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24714 if (!SWIG_IsOK(ecode3)) {
24715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24716 }
24717 arg3 = static_cast< bool >(val3);
24718 {
24719 PyThreadState* __tstate = wxPyBeginAllowThreads();
24720 (arg1)->SetToggle(arg2,arg3);
24721 wxPyEndAllowThreads(__tstate);
24722 if (PyErr_Occurred()) SWIG_fail;
24723 }
24724 resultobj = SWIG_Py_Void();
24725 return resultobj;
24726fail:
24727 return NULL;
24728}
24729
24730
24731SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24732 PyObject *resultobj = 0;
24733 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24734 int arg2 ;
24735 PyObject *result = 0 ;
24736 void *argp1 = 0 ;
24737 int res1 = 0 ;
24738 int val2 ;
24739 int ecode2 = 0 ;
24740 PyObject * obj0 = 0 ;
24741 PyObject * obj1 = 0 ;
24742 char * kwnames[] = {
24743 (char *) "self",(char *) "id", NULL
24744 };
24745
24746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24748 if (!SWIG_IsOK(res1)) {
24749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24750 }
24751 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24752 ecode2 = SWIG_AsVal_int(obj1, &val2);
24753 if (!SWIG_IsOK(ecode2)) {
24754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24755 }
24756 arg2 = static_cast< int >(val2);
24757 {
24758 PyThreadState* __tstate = wxPyBeginAllowThreads();
24759 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24760 wxPyEndAllowThreads(__tstate);
24761 if (PyErr_Occurred()) SWIG_fail;
24762 }
24763 resultobj = result;
24764 return resultobj;
24765fail:
24766 return NULL;
24767}
24768
24769
24770SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24771 PyObject *resultobj = 0;
24772 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24773 int arg2 ;
24774 PyObject *arg3 = (PyObject *) 0 ;
24775 void *argp1 = 0 ;
24776 int res1 = 0 ;
24777 int val2 ;
24778 int ecode2 = 0 ;
24779 PyObject * obj0 = 0 ;
24780 PyObject * obj1 = 0 ;
24781 PyObject * obj2 = 0 ;
24782 char * kwnames[] = {
24783 (char *) "self",(char *) "id",(char *) "clientData", NULL
24784 };
24785
24786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24788 if (!SWIG_IsOK(res1)) {
24789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24790 }
24791 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24792 ecode2 = SWIG_AsVal_int(obj1, &val2);
24793 if (!SWIG_IsOK(ecode2)) {
24794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24795 }
24796 arg2 = static_cast< int >(val2);
24797 arg3 = obj2;
24798 {
24799 PyThreadState* __tstate = wxPyBeginAllowThreads();
24800 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24801 wxPyEndAllowThreads(__tstate);
24802 if (PyErr_Occurred()) SWIG_fail;
24803 }
24804 resultobj = SWIG_Py_Void();
24805 return resultobj;
24806fail:
24807 return NULL;
24808}
24809
24810
24811SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24812 PyObject *resultobj = 0;
24813 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24814 int arg2 ;
24815 int result;
24816 void *argp1 = 0 ;
24817 int res1 = 0 ;
24818 int val2 ;
24819 int ecode2 = 0 ;
24820 PyObject * obj0 = 0 ;
24821 PyObject * obj1 = 0 ;
24822 char * kwnames[] = {
24823 (char *) "self",(char *) "id", NULL
24824 };
24825
24826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24828 if (!SWIG_IsOK(res1)) {
24829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24830 }
24831 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24832 ecode2 = SWIG_AsVal_int(obj1, &val2);
24833 if (!SWIG_IsOK(ecode2)) {
24834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24835 }
24836 arg2 = static_cast< int >(val2);
24837 {
24838 PyThreadState* __tstate = wxPyBeginAllowThreads();
24839 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24840 wxPyEndAllowThreads(__tstate);
24841 if (PyErr_Occurred()) SWIG_fail;
24842 }
24843 resultobj = SWIG_From_int(static_cast< int >(result));
24844 return resultobj;
24845fail:
24846 return NULL;
24847}
24848
24849
24850SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24851 PyObject *resultobj = 0;
24852 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24853 int arg2 ;
24854 bool result;
24855 void *argp1 = 0 ;
24856 int res1 = 0 ;
24857 int val2 ;
24858 int ecode2 = 0 ;
24859 PyObject * obj0 = 0 ;
24860 PyObject * obj1 = 0 ;
24861 char * kwnames[] = {
24862 (char *) "self",(char *) "id", NULL
24863 };
24864
24865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24867 if (!SWIG_IsOK(res1)) {
24868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24869 }
24870 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24871 ecode2 = SWIG_AsVal_int(obj1, &val2);
24872 if (!SWIG_IsOK(ecode2)) {
24873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24874 }
24875 arg2 = static_cast< int >(val2);
24876 {
24877 PyThreadState* __tstate = wxPyBeginAllowThreads();
24878 result = (bool)(arg1)->GetToolState(arg2);
24879 wxPyEndAllowThreads(__tstate);
24880 if (PyErr_Occurred()) SWIG_fail;
24881 }
24882 {
24883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24884 }
24885 return resultobj;
24886fail:
24887 return NULL;
24888}
24889
24890
24891SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24892 PyObject *resultobj = 0;
24893 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24894 int arg2 ;
24895 bool result;
24896 void *argp1 = 0 ;
24897 int res1 = 0 ;
24898 int val2 ;
24899 int ecode2 = 0 ;
24900 PyObject * obj0 = 0 ;
24901 PyObject * obj1 = 0 ;
24902 char * kwnames[] = {
24903 (char *) "self",(char *) "id", NULL
24904 };
24905
24906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24908 if (!SWIG_IsOK(res1)) {
24909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24910 }
24911 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24912 ecode2 = SWIG_AsVal_int(obj1, &val2);
24913 if (!SWIG_IsOK(ecode2)) {
24914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24915 }
24916 arg2 = static_cast< int >(val2);
24917 {
24918 PyThreadState* __tstate = wxPyBeginAllowThreads();
24919 result = (bool)(arg1)->GetToolEnabled(arg2);
24920 wxPyEndAllowThreads(__tstate);
24921 if (PyErr_Occurred()) SWIG_fail;
24922 }
24923 {
24924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24925 }
24926 return resultobj;
24927fail:
24928 return NULL;
24929}
24930
24931
24932SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24933 PyObject *resultobj = 0;
24934 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24935 int arg2 ;
24936 wxString *arg3 = 0 ;
24937 void *argp1 = 0 ;
24938 int res1 = 0 ;
24939 int val2 ;
24940 int ecode2 = 0 ;
24941 bool temp3 = false ;
24942 PyObject * obj0 = 0 ;
24943 PyObject * obj1 = 0 ;
24944 PyObject * obj2 = 0 ;
24945 char * kwnames[] = {
24946 (char *) "self",(char *) "id",(char *) "helpString", NULL
24947 };
24948
24949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24951 if (!SWIG_IsOK(res1)) {
24952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24953 }
24954 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24955 ecode2 = SWIG_AsVal_int(obj1, &val2);
24956 if (!SWIG_IsOK(ecode2)) {
24957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24958 }
24959 arg2 = static_cast< int >(val2);
24960 {
24961 arg3 = wxString_in_helper(obj2);
24962 if (arg3 == NULL) SWIG_fail;
24963 temp3 = true;
24964 }
24965 {
24966 PyThreadState* __tstate = wxPyBeginAllowThreads();
24967 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24968 wxPyEndAllowThreads(__tstate);
24969 if (PyErr_Occurred()) SWIG_fail;
24970 }
24971 resultobj = SWIG_Py_Void();
24972 {
24973 if (temp3)
24974 delete arg3;
24975 }
24976 return resultobj;
24977fail:
24978 {
24979 if (temp3)
24980 delete arg3;
24981 }
24982 return NULL;
24983}
24984
24985
24986SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24987 PyObject *resultobj = 0;
24988 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24989 int arg2 ;
24990 wxString result;
24991 void *argp1 = 0 ;
24992 int res1 = 0 ;
24993 int val2 ;
24994 int ecode2 = 0 ;
24995 PyObject * obj0 = 0 ;
24996 PyObject * obj1 = 0 ;
24997 char * kwnames[] = {
24998 (char *) "self",(char *) "id", NULL
24999 };
25000
25001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25003 if (!SWIG_IsOK(res1)) {
25004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25005 }
25006 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25007 ecode2 = SWIG_AsVal_int(obj1, &val2);
25008 if (!SWIG_IsOK(ecode2)) {
25009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25010 }
25011 arg2 = static_cast< int >(val2);
25012 {
25013 PyThreadState* __tstate = wxPyBeginAllowThreads();
25014 result = (arg1)->GetToolShortHelp(arg2);
25015 wxPyEndAllowThreads(__tstate);
25016 if (PyErr_Occurred()) SWIG_fail;
25017 }
25018 {
25019#if wxUSE_UNICODE
25020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25021#else
25022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25023#endif
25024 }
25025 return resultobj;
25026fail:
25027 return NULL;
25028}
25029
25030
25031SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25032 PyObject *resultobj = 0;
25033 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25034 int arg2 ;
25035 wxString *arg3 = 0 ;
25036 void *argp1 = 0 ;
25037 int res1 = 0 ;
25038 int val2 ;
25039 int ecode2 = 0 ;
25040 bool temp3 = false ;
25041 PyObject * obj0 = 0 ;
25042 PyObject * obj1 = 0 ;
25043 PyObject * obj2 = 0 ;
25044 char * kwnames[] = {
25045 (char *) "self",(char *) "id",(char *) "helpString", NULL
25046 };
25047
25048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25050 if (!SWIG_IsOK(res1)) {
25051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25052 }
25053 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25054 ecode2 = SWIG_AsVal_int(obj1, &val2);
25055 if (!SWIG_IsOK(ecode2)) {
25056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25057 }
25058 arg2 = static_cast< int >(val2);
25059 {
25060 arg3 = wxString_in_helper(obj2);
25061 if (arg3 == NULL) SWIG_fail;
25062 temp3 = true;
25063 }
25064 {
25065 PyThreadState* __tstate = wxPyBeginAllowThreads();
25066 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25067 wxPyEndAllowThreads(__tstate);
25068 if (PyErr_Occurred()) SWIG_fail;
25069 }
25070 resultobj = SWIG_Py_Void();
25071 {
25072 if (temp3)
25073 delete arg3;
25074 }
25075 return resultobj;
25076fail:
25077 {
25078 if (temp3)
25079 delete arg3;
25080 }
25081 return NULL;
25082}
25083
25084
25085SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25086 PyObject *resultobj = 0;
25087 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25088 int arg2 ;
25089 wxString result;
25090 void *argp1 = 0 ;
25091 int res1 = 0 ;
25092 int val2 ;
25093 int ecode2 = 0 ;
25094 PyObject * obj0 = 0 ;
25095 PyObject * obj1 = 0 ;
25096 char * kwnames[] = {
25097 (char *) "self",(char *) "id", NULL
25098 };
25099
25100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25102 if (!SWIG_IsOK(res1)) {
25103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25104 }
25105 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25106 ecode2 = SWIG_AsVal_int(obj1, &val2);
25107 if (!SWIG_IsOK(ecode2)) {
25108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25109 }
25110 arg2 = static_cast< int >(val2);
25111 {
25112 PyThreadState* __tstate = wxPyBeginAllowThreads();
25113 result = (arg1)->GetToolLongHelp(arg2);
25114 wxPyEndAllowThreads(__tstate);
25115 if (PyErr_Occurred()) SWIG_fail;
25116 }
25117 {
25118#if wxUSE_UNICODE
25119 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25120#else
25121 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25122#endif
25123 }
25124 return resultobj;
25125fail:
25126 return NULL;
25127}
25128
25129
25130SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25131 PyObject *resultobj = 0;
25132 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25133 int arg2 ;
25134 int arg3 ;
25135 void *argp1 = 0 ;
25136 int res1 = 0 ;
25137 int val2 ;
25138 int ecode2 = 0 ;
25139 int val3 ;
25140 int ecode3 = 0 ;
25141 PyObject * obj0 = 0 ;
25142 PyObject * obj1 = 0 ;
25143 PyObject * obj2 = 0 ;
25144 char * kwnames[] = {
25145 (char *) "self",(char *) "x",(char *) "y", NULL
25146 };
25147
25148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25150 if (!SWIG_IsOK(res1)) {
25151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25152 }
25153 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25154 ecode2 = SWIG_AsVal_int(obj1, &val2);
25155 if (!SWIG_IsOK(ecode2)) {
25156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25157 }
25158 arg2 = static_cast< int >(val2);
25159 ecode3 = SWIG_AsVal_int(obj2, &val3);
25160 if (!SWIG_IsOK(ecode3)) {
25161 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25162 }
25163 arg3 = static_cast< int >(val3);
25164 {
25165 PyThreadState* __tstate = wxPyBeginAllowThreads();
25166 (arg1)->SetMargins(arg2,arg3);
25167 wxPyEndAllowThreads(__tstate);
25168 if (PyErr_Occurred()) SWIG_fail;
25169 }
25170 resultobj = SWIG_Py_Void();
25171 return resultobj;
25172fail:
25173 return NULL;
25174}
25175
25176
25177SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25178 PyObject *resultobj = 0;
25179 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25180 wxSize *arg2 = 0 ;
25181 void *argp1 = 0 ;
25182 int res1 = 0 ;
25183 wxSize temp2 ;
25184 PyObject * obj0 = 0 ;
25185 PyObject * obj1 = 0 ;
25186 char * kwnames[] = {
25187 (char *) "self",(char *) "size", NULL
25188 };
25189
25190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25192 if (!SWIG_IsOK(res1)) {
25193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25194 }
25195 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25196 {
25197 arg2 = &temp2;
25198 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25199 }
25200 {
25201 PyThreadState* __tstate = wxPyBeginAllowThreads();
25202 (arg1)->SetMargins((wxSize const &)*arg2);
25203 wxPyEndAllowThreads(__tstate);
25204 if (PyErr_Occurred()) SWIG_fail;
25205 }
25206 resultobj = SWIG_Py_Void();
25207 return resultobj;
25208fail:
25209 return NULL;
25210}
25211
25212
25213SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25214 PyObject *resultobj = 0;
25215 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25216 int arg2 ;
25217 void *argp1 = 0 ;
25218 int res1 = 0 ;
25219 int val2 ;
25220 int ecode2 = 0 ;
25221 PyObject * obj0 = 0 ;
25222 PyObject * obj1 = 0 ;
25223 char * kwnames[] = {
25224 (char *) "self",(char *) "packing", NULL
25225 };
25226
25227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25229 if (!SWIG_IsOK(res1)) {
25230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25231 }
25232 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25233 ecode2 = SWIG_AsVal_int(obj1, &val2);
25234 if (!SWIG_IsOK(ecode2)) {
25235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25236 }
25237 arg2 = static_cast< int >(val2);
25238 {
25239 PyThreadState* __tstate = wxPyBeginAllowThreads();
25240 (arg1)->SetToolPacking(arg2);
25241 wxPyEndAllowThreads(__tstate);
25242 if (PyErr_Occurred()) SWIG_fail;
25243 }
25244 resultobj = SWIG_Py_Void();
25245 return resultobj;
25246fail:
25247 return NULL;
25248}
25249
25250
25251SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25252 PyObject *resultobj = 0;
25253 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25254 int arg2 ;
25255 void *argp1 = 0 ;
25256 int res1 = 0 ;
25257 int val2 ;
25258 int ecode2 = 0 ;
25259 PyObject * obj0 = 0 ;
25260 PyObject * obj1 = 0 ;
25261 char * kwnames[] = {
25262 (char *) "self",(char *) "separation", NULL
25263 };
25264
25265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25267 if (!SWIG_IsOK(res1)) {
25268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25269 }
25270 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25271 ecode2 = SWIG_AsVal_int(obj1, &val2);
25272 if (!SWIG_IsOK(ecode2)) {
25273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25274 }
25275 arg2 = static_cast< int >(val2);
25276 {
25277 PyThreadState* __tstate = wxPyBeginAllowThreads();
25278 (arg1)->SetToolSeparation(arg2);
25279 wxPyEndAllowThreads(__tstate);
25280 if (PyErr_Occurred()) SWIG_fail;
25281 }
25282 resultobj = SWIG_Py_Void();
25283 return resultobj;
25284fail:
25285 return NULL;
d14a1e28
RD
25286}
25287
25288
0085ce49
RD
25289SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25290 PyObject *resultobj = 0;
25291 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25292 wxSize result;
25293 void *argp1 = 0 ;
25294 int res1 = 0 ;
25295 PyObject *swig_obj[1] ;
25296
25297 if (!args) SWIG_fail;
25298 swig_obj[0] = args;
25299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25300 if (!SWIG_IsOK(res1)) {
25301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25302 }
25303 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25304 {
25305 PyThreadState* __tstate = wxPyBeginAllowThreads();
25306 result = (arg1)->GetToolMargins();
25307 wxPyEndAllowThreads(__tstate);
25308 if (PyErr_Occurred()) SWIG_fail;
25309 }
25310 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25311 return resultobj;
25312fail:
25313 return NULL;
d14a1e28
RD
25314}
25315
25316
0085ce49
RD
25317SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25318 PyObject *resultobj = 0;
25319 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25320 wxSize result;
25321 void *argp1 = 0 ;
25322 int res1 = 0 ;
25323 PyObject *swig_obj[1] ;
25324
25325 if (!args) SWIG_fail;
25326 swig_obj[0] = args;
25327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25328 if (!SWIG_IsOK(res1)) {
25329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25330 }
25331 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25332 {
25333 PyThreadState* __tstate = wxPyBeginAllowThreads();
25334 result = (arg1)->GetMargins();
25335 wxPyEndAllowThreads(__tstate);
25336 if (PyErr_Occurred()) SWIG_fail;
25337 }
25338 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25339 return resultobj;
25340fail:
25341 return NULL;
d14a1e28
RD
25342}
25343
25344
0085ce49
RD
25345SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25346 PyObject *resultobj = 0;
25347 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25348 int result;
25349 void *argp1 = 0 ;
25350 int res1 = 0 ;
25351 PyObject *swig_obj[1] ;
25352
25353 if (!args) SWIG_fail;
25354 swig_obj[0] = args;
25355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25356 if (!SWIG_IsOK(res1)) {
25357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25358 }
25359 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25360 {
25361 PyThreadState* __tstate = wxPyBeginAllowThreads();
25362 result = (int)(arg1)->GetToolPacking();
25363 wxPyEndAllowThreads(__tstate);
25364 if (PyErr_Occurred()) SWIG_fail;
25365 }
25366 resultobj = SWIG_From_int(static_cast< int >(result));
25367 return resultobj;
25368fail:
25369 return NULL;
d14a1e28
RD
25370}
25371
25372
0085ce49
RD
25373SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25374 PyObject *resultobj = 0;
25375 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25376 int result;
25377 void *argp1 = 0 ;
25378 int res1 = 0 ;
25379 PyObject *swig_obj[1] ;
25380
25381 if (!args) SWIG_fail;
25382 swig_obj[0] = args;
25383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25384 if (!SWIG_IsOK(res1)) {
25385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25386 }
25387 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25388 {
25389 PyThreadState* __tstate = wxPyBeginAllowThreads();
25390 result = (int)(arg1)->GetToolSeparation();
25391 wxPyEndAllowThreads(__tstate);
25392 if (PyErr_Occurred()) SWIG_fail;
25393 }
25394 resultobj = SWIG_From_int(static_cast< int >(result));
25395 return resultobj;
25396fail:
25397 return NULL;
25398}
25399
25400
25401SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25402 PyObject *resultobj = 0;
25403 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25404 int arg2 ;
25405 void *argp1 = 0 ;
25406 int res1 = 0 ;
25407 int val2 ;
25408 int ecode2 = 0 ;
25409 PyObject * obj0 = 0 ;
25410 PyObject * obj1 = 0 ;
25411 char * kwnames[] = {
25412 (char *) "self",(char *) "nRows", NULL
25413 };
25414
25415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25417 if (!SWIG_IsOK(res1)) {
25418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25419 }
25420 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25421 ecode2 = SWIG_AsVal_int(obj1, &val2);
25422 if (!SWIG_IsOK(ecode2)) {
25423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25424 }
25425 arg2 = static_cast< int >(val2);
25426 {
25427 PyThreadState* __tstate = wxPyBeginAllowThreads();
25428 (arg1)->SetRows(arg2);
25429 wxPyEndAllowThreads(__tstate);
25430 if (PyErr_Occurred()) SWIG_fail;
25431 }
25432 resultobj = SWIG_Py_Void();
25433 return resultobj;
25434fail:
25435 return NULL;
25436}
25437
25438
25439SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25440 PyObject *resultobj = 0;
25441 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25442 int arg2 ;
25443 int arg3 ;
25444 void *argp1 = 0 ;
25445 int res1 = 0 ;
25446 int val2 ;
25447 int ecode2 = 0 ;
25448 int val3 ;
25449 int ecode3 = 0 ;
25450 PyObject * obj0 = 0 ;
25451 PyObject * obj1 = 0 ;
25452 PyObject * obj2 = 0 ;
25453 char * kwnames[] = {
25454 (char *) "self",(char *) "rows",(char *) "cols", NULL
25455 };
25456
25457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25459 if (!SWIG_IsOK(res1)) {
25460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25461 }
25462 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25463 ecode2 = SWIG_AsVal_int(obj1, &val2);
25464 if (!SWIG_IsOK(ecode2)) {
25465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25466 }
25467 arg2 = static_cast< int >(val2);
25468 ecode3 = SWIG_AsVal_int(obj2, &val3);
25469 if (!SWIG_IsOK(ecode3)) {
25470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25471 }
25472 arg3 = static_cast< int >(val3);
25473 {
25474 PyThreadState* __tstate = wxPyBeginAllowThreads();
25475 (arg1)->SetMaxRowsCols(arg2,arg3);
25476 wxPyEndAllowThreads(__tstate);
25477 if (PyErr_Occurred()) SWIG_fail;
25478 }
25479 resultobj = SWIG_Py_Void();
25480 return resultobj;
25481fail:
25482 return NULL;
22bfe96c
RD
25483}
25484
25485
0085ce49
RD
25486SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25487 PyObject *resultobj = 0;
25488 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25489 int result;
25490 void *argp1 = 0 ;
25491 int res1 = 0 ;
25492 PyObject *swig_obj[1] ;
25493
25494 if (!args) SWIG_fail;
25495 swig_obj[0] = args;
25496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25497 if (!SWIG_IsOK(res1)) {
25498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25499 }
25500 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25501 {
25502 PyThreadState* __tstate = wxPyBeginAllowThreads();
25503 result = (int)(arg1)->GetMaxRows();
25504 wxPyEndAllowThreads(__tstate);
25505 if (PyErr_Occurred()) SWIG_fail;
25506 }
25507 resultobj = SWIG_From_int(static_cast< int >(result));
25508 return resultobj;
25509fail:
25510 return NULL;
d14a1e28
RD
25511}
25512
25513
0085ce49
RD
25514SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25515 PyObject *resultobj = 0;
25516 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25517 int result;
25518 void *argp1 = 0 ;
25519 int res1 = 0 ;
25520 PyObject *swig_obj[1] ;
25521
25522 if (!args) SWIG_fail;
25523 swig_obj[0] = args;
25524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25525 if (!SWIG_IsOK(res1)) {
25526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25527 }
25528 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25529 {
25530 PyThreadState* __tstate = wxPyBeginAllowThreads();
25531 result = (int)(arg1)->GetMaxCols();
25532 wxPyEndAllowThreads(__tstate);
25533 if (PyErr_Occurred()) SWIG_fail;
25534 }
25535 resultobj = SWIG_From_int(static_cast< int >(result));
25536 return resultobj;
25537fail:
25538 return NULL;
25539}
25540
25541
25542SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25543 PyObject *resultobj = 0;
25544 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25545 wxSize *arg2 = 0 ;
25546 void *argp1 = 0 ;
25547 int res1 = 0 ;
25548 wxSize temp2 ;
25549 PyObject * obj0 = 0 ;
25550 PyObject * obj1 = 0 ;
25551 char * kwnames[] = {
25552 (char *) "self",(char *) "size", NULL
25553 };
25554
25555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25557 if (!SWIG_IsOK(res1)) {
25558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25559 }
25560 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25561 {
25562 arg2 = &temp2;
25563 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25564 }
25565 {
25566 PyThreadState* __tstate = wxPyBeginAllowThreads();
25567 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25568 wxPyEndAllowThreads(__tstate);
25569 if (PyErr_Occurred()) SWIG_fail;
25570 }
25571 resultobj = SWIG_Py_Void();
25572 return resultobj;
25573fail:
25574 return NULL;
d14a1e28
RD
25575}
25576
25577
0085ce49
RD
25578SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25579 PyObject *resultobj = 0;
25580 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25581 wxSize result;
25582 void *argp1 = 0 ;
25583 int res1 = 0 ;
25584 PyObject *swig_obj[1] ;
25585
25586 if (!args) SWIG_fail;
25587 swig_obj[0] = args;
25588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25589 if (!SWIG_IsOK(res1)) {
25590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25591 }
25592 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25593 {
25594 PyThreadState* __tstate = wxPyBeginAllowThreads();
25595 result = (arg1)->GetToolBitmapSize();
25596 wxPyEndAllowThreads(__tstate);
25597 if (PyErr_Occurred()) SWIG_fail;
25598 }
25599 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25600 return resultobj;
25601fail:
25602 return NULL;
d14a1e28
RD
25603}
25604
25605
0085ce49
RD
25606SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25607 PyObject *resultobj = 0;
25608 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25609 wxSize result;
25610 void *argp1 = 0 ;
25611 int res1 = 0 ;
25612 PyObject *swig_obj[1] ;
25613
25614 if (!args) SWIG_fail;
25615 swig_obj[0] = args;
25616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25617 if (!SWIG_IsOK(res1)) {
25618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25619 }
25620 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25621 {
25622 PyThreadState* __tstate = wxPyBeginAllowThreads();
25623 result = (arg1)->GetToolSize();
25624 wxPyEndAllowThreads(__tstate);
25625 if (PyErr_Occurred()) SWIG_fail;
25626 }
25627 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25628 return resultobj;
25629fail:
25630 return NULL;
25631}
25632
25633
25634SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25635 PyObject *resultobj = 0;
25636 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25637 int arg2 ;
25638 int arg3 ;
25639 wxToolBarToolBase *result = 0 ;
25640 void *argp1 = 0 ;
25641 int res1 = 0 ;
25642 int val2 ;
25643 int ecode2 = 0 ;
25644 int val3 ;
25645 int ecode3 = 0 ;
25646 PyObject * obj0 = 0 ;
25647 PyObject * obj1 = 0 ;
25648 PyObject * obj2 = 0 ;
25649 char * kwnames[] = {
25650 (char *) "self",(char *) "x",(char *) "y", NULL
25651 };
25652
25653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25655 if (!SWIG_IsOK(res1)) {
25656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25657 }
25658 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25659 ecode2 = SWIG_AsVal_int(obj1, &val2);
25660 if (!SWIG_IsOK(ecode2)) {
25661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25662 }
25663 arg2 = static_cast< int >(val2);
25664 ecode3 = SWIG_AsVal_int(obj2, &val3);
25665 if (!SWIG_IsOK(ecode3)) {
25666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25667 }
25668 arg3 = static_cast< int >(val3);
25669 {
25670 PyThreadState* __tstate = wxPyBeginAllowThreads();
25671 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25672 wxPyEndAllowThreads(__tstate);
25673 if (PyErr_Occurred()) SWIG_fail;
25674 }
25675 {
25676 resultobj = wxPyMake_wxObject(result, (bool)0);
25677 }
25678 return resultobj;
25679fail:
25680 return NULL;
25681}
25682
25683
25684SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25685 PyObject *resultobj = 0;
25686 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25687 int arg2 ;
25688 wxToolBarToolBase *result = 0 ;
25689 void *argp1 = 0 ;
25690 int res1 = 0 ;
25691 int val2 ;
25692 int ecode2 = 0 ;
25693 PyObject * obj0 = 0 ;
25694 PyObject * obj1 = 0 ;
25695 char * kwnames[] = {
25696 (char *) "self",(char *) "toolid", NULL
25697 };
25698
25699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25701 if (!SWIG_IsOK(res1)) {
25702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25703 }
25704 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25705 ecode2 = SWIG_AsVal_int(obj1, &val2);
25706 if (!SWIG_IsOK(ecode2)) {
25707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25708 }
25709 arg2 = static_cast< int >(val2);
25710 {
25711 PyThreadState* __tstate = wxPyBeginAllowThreads();
25712 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25713 wxPyEndAllowThreads(__tstate);
25714 if (PyErr_Occurred()) SWIG_fail;
25715 }
25716 {
25717 resultobj = wxPyMake_wxObject(result, (bool)0);
25718 }
25719 return resultobj;
25720fail:
25721 return NULL;
d14a1e28
RD
25722}
25723
25724
0085ce49
RD
25725SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25726 PyObject *resultobj = 0;
25727 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25728 bool result;
25729 void *argp1 = 0 ;
25730 int res1 = 0 ;
25731 PyObject *swig_obj[1] ;
25732
25733 if (!args) SWIG_fail;
25734 swig_obj[0] = args;
25735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25736 if (!SWIG_IsOK(res1)) {
25737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25738 }
25739 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25740 {
25741 PyThreadState* __tstate = wxPyBeginAllowThreads();
25742 result = (bool)(arg1)->IsVertical();
25743 wxPyEndAllowThreads(__tstate);
25744 if (PyErr_Occurred()) SWIG_fail;
25745 }
25746 {
25747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25748 }
25749 return resultobj;
25750fail:
25751 return NULL;
25752}
25753
25754
25755SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25756 PyObject *resultobj = 0;
25757 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25758 size_t result;
25759 void *argp1 = 0 ;
25760 int res1 = 0 ;
25761 PyObject *swig_obj[1] ;
25762
25763 if (!args) SWIG_fail;
25764 swig_obj[0] = args;
25765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25766 if (!SWIG_IsOK(res1)) {
25767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25768 }
25769 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25770 {
25771 PyThreadState* __tstate = wxPyBeginAllowThreads();
25772 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25773 wxPyEndAllowThreads(__tstate);
25774 if (PyErr_Occurred()) SWIG_fail;
25775 }
25776 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25777 return resultobj;
25778fail:
25779 return NULL;
25780}
25781
25782
25783SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25784 PyObject *obj;
25785 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25786 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25787 return SWIG_Py_Void();
25788}
25789
25790SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25791 PyObject *resultobj = 0;
25792 wxWindow *arg1 = (wxWindow *) 0 ;
25793 int arg2 = (int) -1 ;
25794 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25795 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25796 wxSize const &arg4_defvalue = wxDefaultSize ;
25797 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25798 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25799 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25800 wxString *arg6 = (wxString *) &arg6_defvalue ;
25801 wxToolBar *result = 0 ;
25802 void *argp1 = 0 ;
25803 int res1 = 0 ;
25804 int val2 ;
25805 int ecode2 = 0 ;
25806 wxPoint temp3 ;
25807 wxSize temp4 ;
25808 long val5 ;
25809 int ecode5 = 0 ;
25810 bool temp6 = false ;
25811 PyObject * obj0 = 0 ;
25812 PyObject * obj1 = 0 ;
25813 PyObject * obj2 = 0 ;
25814 PyObject * obj3 = 0 ;
25815 PyObject * obj4 = 0 ;
25816 PyObject * obj5 = 0 ;
25817 char * kwnames[] = {
25818 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25819 };
25820
25821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25823 if (!SWIG_IsOK(res1)) {
25824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25825 }
25826 arg1 = reinterpret_cast< wxWindow * >(argp1);
25827 if (obj1) {
25828 ecode2 = SWIG_AsVal_int(obj1, &val2);
25829 if (!SWIG_IsOK(ecode2)) {
25830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25831 }
25832 arg2 = static_cast< int >(val2);
25833 }
25834 if (obj2) {
25835 {
25836 arg3 = &temp3;
25837 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25838 }
25839 }
25840 if (obj3) {
093d3ff1 25841 {
0085ce49
RD
25842 arg4 = &temp4;
25843 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 25844 }
0085ce49
RD
25845 }
25846 if (obj4) {
25847 ecode5 = SWIG_AsVal_long(obj4, &val5);
25848 if (!SWIG_IsOK(ecode5)) {
25849 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25850 }
25851 arg5 = static_cast< long >(val5);
25852 }
25853 if (obj5) {
d14a1e28 25854 {
0085ce49
RD
25855 arg6 = wxString_in_helper(obj5);
25856 if (arg6 == NULL) SWIG_fail;
25857 temp6 = true;
d14a1e28 25858 }
0085ce49
RD
25859 }
25860 {
25861 if (!wxPyCheckForApp()) SWIG_fail;
25862 PyThreadState* __tstate = wxPyBeginAllowThreads();
25863 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25864 wxPyEndAllowThreads(__tstate);
25865 if (PyErr_Occurred()) SWIG_fail;
25866 }
25867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25868 {
25869 if (temp6)
25870 delete arg6;
25871 }
25872 return resultobj;
25873fail:
25874 {
25875 if (temp6)
25876 delete arg6;
25877 }
25878 return NULL;
d14a1e28
RD
25879}
25880
25881
0085ce49
RD
25882SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25883 PyObject *resultobj = 0;
25884 wxToolBar *result = 0 ;
25885
25886 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25887 {
25888 if (!wxPyCheckForApp()) SWIG_fail;
25889 PyThreadState* __tstate = wxPyBeginAllowThreads();
25890 result = (wxToolBar *)new wxToolBar();
25891 wxPyEndAllowThreads(__tstate);
25892 if (PyErr_Occurred()) SWIG_fail;
25893 }
25894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25895 return resultobj;
25896fail:
25897 return NULL;
25898}
25899
25900
25901SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25902 PyObject *resultobj = 0;
25903 wxToolBar *arg1 = (wxToolBar *) 0 ;
25904 wxWindow *arg2 = (wxWindow *) 0 ;
25905 int arg3 = (int) -1 ;
25906 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25907 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25908 wxSize const &arg5_defvalue = wxDefaultSize ;
25909 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25910 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25911 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25912 wxString *arg7 = (wxString *) &arg7_defvalue ;
25913 bool result;
25914 void *argp1 = 0 ;
25915 int res1 = 0 ;
25916 void *argp2 = 0 ;
25917 int res2 = 0 ;
25918 int val3 ;
25919 int ecode3 = 0 ;
25920 wxPoint temp4 ;
25921 wxSize temp5 ;
25922 long val6 ;
25923 int ecode6 = 0 ;
25924 bool temp7 = false ;
25925 PyObject * obj0 = 0 ;
25926 PyObject * obj1 = 0 ;
25927 PyObject * obj2 = 0 ;
25928 PyObject * obj3 = 0 ;
25929 PyObject * obj4 = 0 ;
25930 PyObject * obj5 = 0 ;
25931 PyObject * obj6 = 0 ;
25932 char * kwnames[] = {
25933 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25934 };
25935
25936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25938 if (!SWIG_IsOK(res1)) {
25939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25940 }
25941 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25942 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25943 if (!SWIG_IsOK(res2)) {
25944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25945 }
25946 arg2 = reinterpret_cast< wxWindow * >(argp2);
25947 if (obj2) {
25948 ecode3 = SWIG_AsVal_int(obj2, &val3);
25949 if (!SWIG_IsOK(ecode3)) {
25950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25951 }
25952 arg3 = static_cast< int >(val3);
25953 }
25954 if (obj3) {
25955 {
25956 arg4 = &temp4;
25957 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 25958 }
0085ce49
RD
25959 }
25960 if (obj4) {
22bfe96c 25961 {
0085ce49
RD
25962 arg5 = &temp5;
25963 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 25964 }
0085ce49
RD
25965 }
25966 if (obj5) {
25967 ecode6 = SWIG_AsVal_long(obj5, &val6);
25968 if (!SWIG_IsOK(ecode6)) {
25969 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25970 }
25971 arg6 = static_cast< long >(val6);
25972 }
25973 if (obj6) {
22bfe96c 25974 {
0085ce49
RD
25975 arg7 = wxString_in_helper(obj6);
25976 if (arg7 == NULL) SWIG_fail;
25977 temp7 = true;
22bfe96c 25978 }
0085ce49
RD
25979 }
25980 {
25981 PyThreadState* __tstate = wxPyBeginAllowThreads();
25982 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25983 wxPyEndAllowThreads(__tstate);
25984 if (PyErr_Occurred()) SWIG_fail;
25985 }
25986 {
25987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25988 }
25989 {
25990 if (temp7)
25991 delete arg7;
25992 }
25993 return resultobj;
25994fail:
25995 {
25996 if (temp7)
25997 delete arg7;
25998 }
25999 return NULL;
26000}
26001
26002
0085ce49
RD
26003SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26004 PyObject *resultobj = 0;
26005 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
26006 SwigValueWrapper<wxVisualAttributes > result;
26007 int val1 ;
26008 int ecode1 = 0 ;
26009 PyObject * obj0 = 0 ;
26010 char * kwnames[] = {
26011 (char *) "variant", NULL
26012 };
26013
26014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
26015 if (obj0) {
26016 ecode1 = SWIG_AsVal_int(obj0, &val1);
26017 if (!SWIG_IsOK(ecode1)) {
26018 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
26019 }
26020 arg1 = static_cast< wxWindowVariant >(val1);
26021 }
26022 {
26023 if (!wxPyCheckForApp()) SWIG_fail;
26024 PyThreadState* __tstate = wxPyBeginAllowThreads();
26025 result = wxToolBar::GetClassDefaultAttributes(arg1);
26026 wxPyEndAllowThreads(__tstate);
26027 if (PyErr_Occurred()) SWIG_fail;
26028 }
26029 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26030 return resultobj;
26031fail:
26032 return NULL;
22bfe96c
RD
26033}
26034
26035
0085ce49
RD
26036SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26037 PyObject *obj;
26038 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26039 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26040 return SWIG_Py_Void();
d14a1e28 26041}
0085ce49
RD
26042
26043SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26044 return SWIG_Python_InitShadowInstance(args);
b2dc1044
RD
26045}
26046
0085ce49
RD
26047SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26048 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26049 return 1;
26050}
b2dc1044 26051
0085ce49
RD
26052
26053SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26054 PyObject *pyobj = 0;
26055
26056 {
b2dc1044 26057#if wxUSE_UNICODE
0085ce49 26058 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 26059#else
0085ce49 26060 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 26061#endif
0085ce49
RD
26062 }
26063 return pyobj;
26064}
26065
26066
26067SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26068 PyObject *resultobj = 0;
26069 wxColour const &arg1_defvalue = wxNullColour ;
26070 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26071 wxColour const &arg2_defvalue = wxNullColour ;
26072 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26073 wxFont const &arg3_defvalue = wxNullFont ;
26074 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26075 wxListItemAttr *result = 0 ;
26076 wxColour temp1 ;
26077 wxColour temp2 ;
26078 void *argp3 = 0 ;
26079 int res3 = 0 ;
26080 PyObject * obj0 = 0 ;
26081 PyObject * obj1 = 0 ;
26082 PyObject * obj2 = 0 ;
26083 char * kwnames[] = {
26084 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26085 };
26086
26087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26088 if (obj0) {
d14a1e28 26089 {
0085ce49
RD
26090 arg1 = &temp1;
26091 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 26092 }
0085ce49
RD
26093 }
26094 if (obj1) {
d14a1e28 26095 {
0085ce49
RD
26096 arg2 = &temp2;
26097 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 26098 }
0085ce49
RD
26099 }
26100 if (obj2) {
26101 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26102 if (!SWIG_IsOK(res3)) {
26103 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 26104 }
0085ce49
RD
26105 if (!argp3) {
26106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 26107 }
0085ce49
RD
26108 arg3 = reinterpret_cast< wxFont * >(argp3);
26109 }
26110 {
26111 PyThreadState* __tstate = wxPyBeginAllowThreads();
26112 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26113 wxPyEndAllowThreads(__tstate);
26114 if (PyErr_Occurred()) SWIG_fail;
26115 }
26116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26117 return resultobj;
26118fail:
26119 return NULL;
d14a1e28
RD
26120}
26121
26122
0085ce49
RD
26123SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26124 PyObject *resultobj = 0;
26125 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26126 void *argp1 = 0 ;
26127 int res1 = 0 ;
26128 PyObject *swig_obj[1] ;
26129
26130 if (!args) SWIG_fail;
26131 swig_obj[0] = args;
26132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26133 if (!SWIG_IsOK(res1)) {
26134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26135 }
26136 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26137 {
26138 PyThreadState* __tstate = wxPyBeginAllowThreads();
26139 delete arg1;
d14a1e28 26140
0085ce49
RD
26141 wxPyEndAllowThreads(__tstate);
26142 if (PyErr_Occurred()) SWIG_fail;
26143 }
26144 resultobj = SWIG_Py_Void();
26145 return resultobj;
26146fail:
26147 return NULL;
26148}
26149
26150
26151SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26152 PyObject *resultobj = 0;
26153 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26154 wxColour *arg2 = 0 ;
26155 void *argp1 = 0 ;
26156 int res1 = 0 ;
26157 wxColour temp2 ;
26158 PyObject * obj0 = 0 ;
26159 PyObject * obj1 = 0 ;
26160 char * kwnames[] = {
26161 (char *) "self",(char *) "colText", NULL
26162 };
26163
26164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26166 if (!SWIG_IsOK(res1)) {
26167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26168 }
26169 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26170 {
26171 arg2 = &temp2;
26172 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26173 }
26174 {
26175 PyThreadState* __tstate = wxPyBeginAllowThreads();
26176 (arg1)->SetTextColour((wxColour const &)*arg2);
26177 wxPyEndAllowThreads(__tstate);
26178 if (PyErr_Occurred()) SWIG_fail;
26179 }
26180 resultobj = SWIG_Py_Void();
26181 return resultobj;
26182fail:
26183 return NULL;
26184}
26185
26186
26187SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26188 PyObject *resultobj = 0;
26189 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26190 wxColour *arg2 = 0 ;
26191 void *argp1 = 0 ;
26192 int res1 = 0 ;
26193 wxColour temp2 ;
26194 PyObject * obj0 = 0 ;
26195 PyObject * obj1 = 0 ;
26196 char * kwnames[] = {
26197 (char *) "self",(char *) "colBack", NULL
26198 };
26199
26200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26202 if (!SWIG_IsOK(res1)) {
26203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26204 }
26205 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26206 {
26207 arg2 = &temp2;
26208 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26209 }
26210 {
26211 PyThreadState* __tstate = wxPyBeginAllowThreads();
26212 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26213 wxPyEndAllowThreads(__tstate);
26214 if (PyErr_Occurred()) SWIG_fail;
26215 }
26216 resultobj = SWIG_Py_Void();
26217 return resultobj;
26218fail:
26219 return NULL;
26220}
26221
26222
26223SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26224 PyObject *resultobj = 0;
26225 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26226 wxFont *arg2 = 0 ;
26227 void *argp1 = 0 ;
26228 int res1 = 0 ;
26229 void *argp2 = 0 ;
26230 int res2 = 0 ;
26231 PyObject * obj0 = 0 ;
26232 PyObject * obj1 = 0 ;
26233 char * kwnames[] = {
26234 (char *) "self",(char *) "font", NULL
26235 };
26236
26237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26239 if (!SWIG_IsOK(res1)) {
26240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26241 }
26242 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26243 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26244 if (!SWIG_IsOK(res2)) {
26245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26246 }
26247 if (!argp2) {
26248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26249 }
26250 arg2 = reinterpret_cast< wxFont * >(argp2);
26251 {
26252 PyThreadState* __tstate = wxPyBeginAllowThreads();
26253 (arg1)->SetFont((wxFont const &)*arg2);
26254 wxPyEndAllowThreads(__tstate);
26255 if (PyErr_Occurred()) SWIG_fail;
26256 }
26257 resultobj = SWIG_Py_Void();
26258 return resultobj;
26259fail:
26260 return NULL;
d14a1e28
RD
26261}
26262
26263
0085ce49
RD
26264SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26265 PyObject *resultobj = 0;
26266 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26267 bool result;
26268 void *argp1 = 0 ;
26269 int res1 = 0 ;
26270 PyObject *swig_obj[1] ;
26271
26272 if (!args) SWIG_fail;
26273 swig_obj[0] = args;
26274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26275 if (!SWIG_IsOK(res1)) {
26276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26277 }
26278 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26279 {
26280 PyThreadState* __tstate = wxPyBeginAllowThreads();
26281 result = (bool)(arg1)->HasTextColour();
26282 wxPyEndAllowThreads(__tstate);
26283 if (PyErr_Occurred()) SWIG_fail;
26284 }
26285 {
26286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26287 }
26288 return resultobj;
26289fail:
26290 return NULL;
d14a1e28
RD
26291}
26292
26293
0085ce49
RD
26294SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26295 PyObject *resultobj = 0;
26296 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26297 bool result;
26298 void *argp1 = 0 ;
26299 int res1 = 0 ;
26300 PyObject *swig_obj[1] ;
26301
26302 if (!args) SWIG_fail;
26303 swig_obj[0] = args;
26304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26305 if (!SWIG_IsOK(res1)) {
26306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26307 }
26308 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26309 {
26310 PyThreadState* __tstate = wxPyBeginAllowThreads();
26311 result = (bool)(arg1)->HasBackgroundColour();
26312 wxPyEndAllowThreads(__tstate);
26313 if (PyErr_Occurred()) SWIG_fail;
26314 }
26315 {
26316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26317 }
26318 return resultobj;
26319fail:
26320 return NULL;
d14a1e28
RD
26321}
26322
26323
0085ce49
RD
26324SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26325 PyObject *resultobj = 0;
26326 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26327 bool result;
26328 void *argp1 = 0 ;
26329 int res1 = 0 ;
26330 PyObject *swig_obj[1] ;
26331
26332 if (!args) SWIG_fail;
26333 swig_obj[0] = args;
26334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26335 if (!SWIG_IsOK(res1)) {
26336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26337 }
26338 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26339 {
26340 PyThreadState* __tstate = wxPyBeginAllowThreads();
26341 result = (bool)(arg1)->HasFont();
26342 wxPyEndAllowThreads(__tstate);
26343 if (PyErr_Occurred()) SWIG_fail;
26344 }
26345 {
26346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26347 }
26348 return resultobj;
26349fail:
26350 return NULL;
d14a1e28
RD
26351}
26352
26353
0085ce49
RD
26354SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26355 PyObject *resultobj = 0;
26356 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26357 wxColour result;
26358 void *argp1 = 0 ;
26359 int res1 = 0 ;
26360 PyObject *swig_obj[1] ;
26361
26362 if (!args) SWIG_fail;
26363 swig_obj[0] = args;
26364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26365 if (!SWIG_IsOK(res1)) {
26366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26367 }
26368 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26369 {
26370 PyThreadState* __tstate = wxPyBeginAllowThreads();
26371 result = (arg1)->GetTextColour();
26372 wxPyEndAllowThreads(__tstate);
26373 if (PyErr_Occurred()) SWIG_fail;
26374 }
26375 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26376 return resultobj;
26377fail:
26378 return NULL;
d14a1e28
RD
26379}
26380
26381
0085ce49
RD
26382SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26383 PyObject *resultobj = 0;
26384 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26385 wxColour result;
26386 void *argp1 = 0 ;
26387 int res1 = 0 ;
26388 PyObject *swig_obj[1] ;
26389
26390 if (!args) SWIG_fail;
26391 swig_obj[0] = args;
26392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26393 if (!SWIG_IsOK(res1)) {
26394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26395 }
26396 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26397 {
26398 PyThreadState* __tstate = wxPyBeginAllowThreads();
26399 result = (arg1)->GetBackgroundColour();
26400 wxPyEndAllowThreads(__tstate);
26401 if (PyErr_Occurred()) SWIG_fail;
26402 }
26403 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26404 return resultobj;
26405fail:
26406 return NULL;
d14a1e28
RD
26407}
26408
26409
0085ce49
RD
26410SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26411 PyObject *resultobj = 0;
26412 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26413 wxFont result;
26414 void *argp1 = 0 ;
26415 int res1 = 0 ;
26416 PyObject *swig_obj[1] ;
26417
26418 if (!args) SWIG_fail;
26419 swig_obj[0] = args;
26420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26421 if (!SWIG_IsOK(res1)) {
26422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26423 }
26424 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26425 {
26426 PyThreadState* __tstate = wxPyBeginAllowThreads();
26427 result = (arg1)->GetFont();
26428 wxPyEndAllowThreads(__tstate);
26429 if (PyErr_Occurred()) SWIG_fail;
26430 }
26431 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26432 return resultobj;
26433fail:
26434 return NULL;
26435}
26436
26437
26438SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26439 PyObject *resultobj = 0;
26440 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26441 wxListItemAttr *arg2 = 0 ;
26442 void *argp1 = 0 ;
26443 int res1 = 0 ;
26444 void *argp2 = 0 ;
26445 int res2 = 0 ;
26446 PyObject * obj0 = 0 ;
26447 PyObject * obj1 = 0 ;
26448 char * kwnames[] = {
26449 (char *) "self",(char *) "source", NULL
26450 };
26451
26452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26454 if (!SWIG_IsOK(res1)) {
26455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26456 }
26457 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26458 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26459 if (!SWIG_IsOK(res2)) {
26460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26461 }
26462 if (!argp2) {
26463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26464 }
26465 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26466 {
26467 PyThreadState* __tstate = wxPyBeginAllowThreads();
26468 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26469 wxPyEndAllowThreads(__tstate);
26470 if (PyErr_Occurred()) SWIG_fail;
26471 }
26472 resultobj = SWIG_Py_Void();
26473 return resultobj;
26474fail:
26475 return NULL;
d14a1e28
RD
26476}
26477
26478
0085ce49
RD
26479SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26480 PyObject *resultobj = 0;
26481 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26482 void *argp1 = 0 ;
26483 int res1 = 0 ;
26484 PyObject *swig_obj[1] ;
26485
26486 if (!args) SWIG_fail;
26487 swig_obj[0] = args;
26488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26489 if (!SWIG_IsOK(res1)) {
26490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26491 }
26492 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26493 {
26494 PyThreadState* __tstate = wxPyBeginAllowThreads();
26495 wxListItemAttr_Destroy(arg1);
26496 wxPyEndAllowThreads(__tstate);
26497 if (PyErr_Occurred()) SWIG_fail;
26498 }
26499 resultobj = SWIG_Py_Void();
26500 return resultobj;
26501fail:
26502 return NULL;
d14a1e28
RD
26503}
26504
26505
0085ce49
RD
26506SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26507 PyObject *obj;
26508 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26509 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26510 return SWIG_Py_Void();
d14a1e28
RD
26511}
26512
0085ce49
RD
26513SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26514 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
26515}
26516
0085ce49
RD
26517SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26518 PyObject *resultobj = 0;
26519 wxListItem *result = 0 ;
26520
26521 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26522 {
26523 PyThreadState* __tstate = wxPyBeginAllowThreads();
26524 result = (wxListItem *)new wxListItem();
26525 wxPyEndAllowThreads(__tstate);
26526 if (PyErr_Occurred()) SWIG_fail;
26527 }
3ecece7e 26528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
0085ce49
RD
26529 return resultobj;
26530fail:
26531 return NULL;
d14a1e28
RD
26532}
26533
26534
0085ce49
RD
26535SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26536 PyObject *resultobj = 0;
26537 wxListItem *arg1 = (wxListItem *) 0 ;
26538 void *argp1 = 0 ;
26539 int res1 = 0 ;
26540 PyObject *swig_obj[1] ;
26541
26542 if (!args) SWIG_fail;
26543 swig_obj[0] = args;
26544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26545 if (!SWIG_IsOK(res1)) {
26546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26547 }
26548 arg1 = reinterpret_cast< wxListItem * >(argp1);
26549 {
26550 PyThreadState* __tstate = wxPyBeginAllowThreads();
26551 delete arg1;
d14a1e28 26552
0085ce49
RD
26553 wxPyEndAllowThreads(__tstate);
26554 if (PyErr_Occurred()) SWIG_fail;
26555 }
26556 resultobj = SWIG_Py_Void();
26557 return resultobj;
26558fail:
26559 return NULL;
d14a1e28
RD
26560}
26561
26562
0085ce49
RD
26563SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26564 PyObject *resultobj = 0;
26565 wxListItem *arg1 = (wxListItem *) 0 ;
26566 void *argp1 = 0 ;
26567 int res1 = 0 ;
26568 PyObject *swig_obj[1] ;
26569
26570 if (!args) SWIG_fail;
26571 swig_obj[0] = args;
26572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26573 if (!SWIG_IsOK(res1)) {
26574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26575 }
26576 arg1 = reinterpret_cast< wxListItem * >(argp1);
26577 {
26578 PyThreadState* __tstate = wxPyBeginAllowThreads();
26579 (arg1)->Clear();
26580 wxPyEndAllowThreads(__tstate);
26581 if (PyErr_Occurred()) SWIG_fail;
26582 }
26583 resultobj = SWIG_Py_Void();
26584 return resultobj;
26585fail:
26586 return NULL;
d14a1e28
RD
26587}
26588
26589
0085ce49
RD
26590SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26591 PyObject *resultobj = 0;
26592 wxListItem *arg1 = (wxListItem *) 0 ;
26593 void *argp1 = 0 ;
26594 int res1 = 0 ;
26595 PyObject *swig_obj[1] ;
26596
26597 if (!args) SWIG_fail;
26598 swig_obj[0] = args;
26599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26600 if (!SWIG_IsOK(res1)) {
26601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26602 }
26603 arg1 = reinterpret_cast< wxListItem * >(argp1);
26604 {
26605 PyThreadState* __tstate = wxPyBeginAllowThreads();
26606 (arg1)->ClearAttributes();
26607 wxPyEndAllowThreads(__tstate);
26608 if (PyErr_Occurred()) SWIG_fail;
26609 }
26610 resultobj = SWIG_Py_Void();
26611 return resultobj;
26612fail:
26613 return NULL;
26614}
26615
26616
26617SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26618 PyObject *resultobj = 0;
26619 wxListItem *arg1 = (wxListItem *) 0 ;
26620 long arg2 ;
26621 void *argp1 = 0 ;
26622 int res1 = 0 ;
26623 long val2 ;
26624 int ecode2 = 0 ;
26625 PyObject * obj0 = 0 ;
26626 PyObject * obj1 = 0 ;
26627 char * kwnames[] = {
26628 (char *) "self",(char *) "mask", NULL
26629 };
26630
26631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26633 if (!SWIG_IsOK(res1)) {
26634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26635 }
26636 arg1 = reinterpret_cast< wxListItem * >(argp1);
26637 ecode2 = SWIG_AsVal_long(obj1, &val2);
26638 if (!SWIG_IsOK(ecode2)) {
26639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26640 }
26641 arg2 = static_cast< long >(val2);
26642 {
26643 PyThreadState* __tstate = wxPyBeginAllowThreads();
26644 (arg1)->SetMask(arg2);
26645 wxPyEndAllowThreads(__tstate);
26646 if (PyErr_Occurred()) SWIG_fail;
26647 }
26648 resultobj = SWIG_Py_Void();
26649 return resultobj;
26650fail:
26651 return NULL;
26652}
26653
26654
26655SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26656 PyObject *resultobj = 0;
26657 wxListItem *arg1 = (wxListItem *) 0 ;
26658 long arg2 ;
26659 void *argp1 = 0 ;
26660 int res1 = 0 ;
26661 long val2 ;
26662 int ecode2 = 0 ;
26663 PyObject * obj0 = 0 ;
26664 PyObject * obj1 = 0 ;
26665 char * kwnames[] = {
26666 (char *) "self",(char *) "id", NULL
26667 };
26668
26669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26671 if (!SWIG_IsOK(res1)) {
26672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26673 }
26674 arg1 = reinterpret_cast< wxListItem * >(argp1);
26675 ecode2 = SWIG_AsVal_long(obj1, &val2);
26676 if (!SWIG_IsOK(ecode2)) {
26677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26678 }
26679 arg2 = static_cast< long >(val2);
26680 {
26681 PyThreadState* __tstate = wxPyBeginAllowThreads();
26682 (arg1)->SetId(arg2);
26683 wxPyEndAllowThreads(__tstate);
26684 if (PyErr_Occurred()) SWIG_fail;
26685 }
26686 resultobj = SWIG_Py_Void();
26687 return resultobj;
26688fail:
26689 return NULL;
26690}
26691
26692
26693SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26694 PyObject *resultobj = 0;
26695 wxListItem *arg1 = (wxListItem *) 0 ;
26696 int arg2 ;
26697 void *argp1 = 0 ;
26698 int res1 = 0 ;
26699 int val2 ;
26700 int ecode2 = 0 ;
26701 PyObject * obj0 = 0 ;
26702 PyObject * obj1 = 0 ;
26703 char * kwnames[] = {
26704 (char *) "self",(char *) "col", NULL
26705 };
26706
26707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26709 if (!SWIG_IsOK(res1)) {
26710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26711 }
26712 arg1 = reinterpret_cast< wxListItem * >(argp1);
26713 ecode2 = SWIG_AsVal_int(obj1, &val2);
26714 if (!SWIG_IsOK(ecode2)) {
26715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26716 }
26717 arg2 = static_cast< int >(val2);
26718 {
26719 PyThreadState* __tstate = wxPyBeginAllowThreads();
26720 (arg1)->SetColumn(arg2);
26721 wxPyEndAllowThreads(__tstate);
26722 if (PyErr_Occurred()) SWIG_fail;
26723 }
26724 resultobj = SWIG_Py_Void();
26725 return resultobj;
26726fail:
26727 return NULL;
26728}
26729
26730
26731SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26732 PyObject *resultobj = 0;
26733 wxListItem *arg1 = (wxListItem *) 0 ;
26734 long arg2 ;
26735 void *argp1 = 0 ;
26736 int res1 = 0 ;
26737 long val2 ;
26738 int ecode2 = 0 ;
26739 PyObject * obj0 = 0 ;
26740 PyObject * obj1 = 0 ;
26741 char * kwnames[] = {
26742 (char *) "self",(char *) "state", NULL
26743 };
26744
26745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26747 if (!SWIG_IsOK(res1)) {
26748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26749 }
26750 arg1 = reinterpret_cast< wxListItem * >(argp1);
26751 ecode2 = SWIG_AsVal_long(obj1, &val2);
26752 if (!SWIG_IsOK(ecode2)) {
26753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26754 }
26755 arg2 = static_cast< long >(val2);
26756 {
26757 PyThreadState* __tstate = wxPyBeginAllowThreads();
26758 (arg1)->SetState(arg2);
26759 wxPyEndAllowThreads(__tstate);
26760 if (PyErr_Occurred()) SWIG_fail;
26761 }
26762 resultobj = SWIG_Py_Void();
26763 return resultobj;
26764fail:
26765 return NULL;
26766}
26767
26768
26769SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26770 PyObject *resultobj = 0;
26771 wxListItem *arg1 = (wxListItem *) 0 ;
26772 long arg2 ;
26773 void *argp1 = 0 ;
26774 int res1 = 0 ;
26775 long val2 ;
26776 int ecode2 = 0 ;
26777 PyObject * obj0 = 0 ;
26778 PyObject * obj1 = 0 ;
26779 char * kwnames[] = {
26780 (char *) "self",(char *) "stateMask", NULL
26781 };
26782
26783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26785 if (!SWIG_IsOK(res1)) {
26786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26787 }
26788 arg1 = reinterpret_cast< wxListItem * >(argp1);
26789 ecode2 = SWIG_AsVal_long(obj1, &val2);
26790 if (!SWIG_IsOK(ecode2)) {
26791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26792 }
26793 arg2 = static_cast< long >(val2);
26794 {
26795 PyThreadState* __tstate = wxPyBeginAllowThreads();
26796 (arg1)->SetStateMask(arg2);
26797 wxPyEndAllowThreads(__tstate);
26798 if (PyErr_Occurred()) SWIG_fail;
26799 }
26800 resultobj = SWIG_Py_Void();
26801 return resultobj;
26802fail:
26803 return NULL;
26804}
26805
26806
26807SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26808 PyObject *resultobj = 0;
26809 wxListItem *arg1 = (wxListItem *) 0 ;
26810 wxString *arg2 = 0 ;
26811 void *argp1 = 0 ;
26812 int res1 = 0 ;
26813 bool temp2 = false ;
26814 PyObject * obj0 = 0 ;
26815 PyObject * obj1 = 0 ;
26816 char * kwnames[] = {
26817 (char *) "self",(char *) "text", NULL
26818 };
26819
26820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26822 if (!SWIG_IsOK(res1)) {
26823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26824 }
26825 arg1 = reinterpret_cast< wxListItem * >(argp1);
26826 {
26827 arg2 = wxString_in_helper(obj1);
26828 if (arg2 == NULL) SWIG_fail;
26829 temp2 = true;
26830 }
26831 {
26832 PyThreadState* __tstate = wxPyBeginAllowThreads();
26833 (arg1)->SetText((wxString const &)*arg2);
26834 wxPyEndAllowThreads(__tstate);
26835 if (PyErr_Occurred()) SWIG_fail;
26836 }
26837 resultobj = SWIG_Py_Void();
26838 {
26839 if (temp2)
26840 delete arg2;
26841 }
26842 return resultobj;
26843fail:
26844 {
26845 if (temp2)
26846 delete arg2;
26847 }
26848 return NULL;
26849}
26850
26851
26852SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26853 PyObject *resultobj = 0;
26854 wxListItem *arg1 = (wxListItem *) 0 ;
26855 int arg2 ;
26856 void *argp1 = 0 ;
26857 int res1 = 0 ;
26858 int val2 ;
26859 int ecode2 = 0 ;
26860 PyObject * obj0 = 0 ;
26861 PyObject * obj1 = 0 ;
26862 char * kwnames[] = {
26863 (char *) "self",(char *) "image", NULL
26864 };
26865
26866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26868 if (!SWIG_IsOK(res1)) {
26869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26870 }
26871 arg1 = reinterpret_cast< wxListItem * >(argp1);
26872 ecode2 = SWIG_AsVal_int(obj1, &val2);
26873 if (!SWIG_IsOK(ecode2)) {
26874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26875 }
26876 arg2 = static_cast< int >(val2);
26877 {
26878 PyThreadState* __tstate = wxPyBeginAllowThreads();
26879 (arg1)->SetImage(arg2);
26880 wxPyEndAllowThreads(__tstate);
26881 if (PyErr_Occurred()) SWIG_fail;
26882 }
26883 resultobj = SWIG_Py_Void();
26884 return resultobj;
26885fail:
26886 return NULL;
26887}
26888
26889
26890SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26891 PyObject *resultobj = 0;
26892 wxListItem *arg1 = (wxListItem *) 0 ;
26893 long arg2 ;
26894 void *argp1 = 0 ;
26895 int res1 = 0 ;
26896 long val2 ;
26897 int ecode2 = 0 ;
26898 PyObject * obj0 = 0 ;
26899 PyObject * obj1 = 0 ;
26900 char * kwnames[] = {
26901 (char *) "self",(char *) "data", NULL
26902 };
26903
26904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26906 if (!SWIG_IsOK(res1)) {
26907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26908 }
26909 arg1 = reinterpret_cast< wxListItem * >(argp1);
26910 ecode2 = SWIG_AsVal_long(obj1, &val2);
26911 if (!SWIG_IsOK(ecode2)) {
26912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26913 }
26914 arg2 = static_cast< long >(val2);
26915 {
26916 PyThreadState* __tstate = wxPyBeginAllowThreads();
26917 (arg1)->SetData(arg2);
26918 wxPyEndAllowThreads(__tstate);
26919 if (PyErr_Occurred()) SWIG_fail;
26920 }
26921 resultobj = SWIG_Py_Void();
26922 return resultobj;
26923fail:
26924 return NULL;
26925}
26926
26927
26928SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26929 PyObject *resultobj = 0;
26930 wxListItem *arg1 = (wxListItem *) 0 ;
26931 int arg2 ;
26932 void *argp1 = 0 ;
26933 int res1 = 0 ;
26934 int val2 ;
26935 int ecode2 = 0 ;
26936 PyObject * obj0 = 0 ;
26937 PyObject * obj1 = 0 ;
26938 char * kwnames[] = {
26939 (char *) "self",(char *) "width", NULL
26940 };
26941
26942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26944 if (!SWIG_IsOK(res1)) {
26945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26946 }
26947 arg1 = reinterpret_cast< wxListItem * >(argp1);
26948 ecode2 = SWIG_AsVal_int(obj1, &val2);
26949 if (!SWIG_IsOK(ecode2)) {
26950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26951 }
26952 arg2 = static_cast< int >(val2);
26953 {
26954 PyThreadState* __tstate = wxPyBeginAllowThreads();
26955 (arg1)->SetWidth(arg2);
26956 wxPyEndAllowThreads(__tstate);
26957 if (PyErr_Occurred()) SWIG_fail;
26958 }
26959 resultobj = SWIG_Py_Void();
26960 return resultobj;
26961fail:
26962 return NULL;
26963}
26964
26965
26966SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26967 PyObject *resultobj = 0;
26968 wxListItem *arg1 = (wxListItem *) 0 ;
26969 wxListColumnFormat arg2 ;
26970 void *argp1 = 0 ;
26971 int res1 = 0 ;
26972 int val2 ;
26973 int ecode2 = 0 ;
26974 PyObject * obj0 = 0 ;
26975 PyObject * obj1 = 0 ;
26976 char * kwnames[] = {
26977 (char *) "self",(char *) "align", NULL
26978 };
26979
26980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26982 if (!SWIG_IsOK(res1)) {
26983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26984 }
26985 arg1 = reinterpret_cast< wxListItem * >(argp1);
26986 ecode2 = SWIG_AsVal_int(obj1, &val2);
26987 if (!SWIG_IsOK(ecode2)) {
26988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26989 }
26990 arg2 = static_cast< wxListColumnFormat >(val2);
26991 {
26992 PyThreadState* __tstate = wxPyBeginAllowThreads();
26993 (arg1)->SetAlign(arg2);
26994 wxPyEndAllowThreads(__tstate);
26995 if (PyErr_Occurred()) SWIG_fail;
26996 }
26997 resultobj = SWIG_Py_Void();
26998 return resultobj;
26999fail:
27000 return NULL;
27001}
27002
27003
27004SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27005 PyObject *resultobj = 0;
27006 wxListItem *arg1 = (wxListItem *) 0 ;
27007 wxColour *arg2 = 0 ;
27008 void *argp1 = 0 ;
27009 int res1 = 0 ;
27010 wxColour temp2 ;
27011 PyObject * obj0 = 0 ;
27012 PyObject * obj1 = 0 ;
27013 char * kwnames[] = {
27014 (char *) "self",(char *) "colText", NULL
27015 };
27016
27017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
27018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27019 if (!SWIG_IsOK(res1)) {
27020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27021 }
27022 arg1 = reinterpret_cast< wxListItem * >(argp1);
27023 {
27024 arg2 = &temp2;
27025 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27026 }
27027 {
27028 PyThreadState* __tstate = wxPyBeginAllowThreads();
27029 (arg1)->SetTextColour((wxColour const &)*arg2);
27030 wxPyEndAllowThreads(__tstate);
27031 if (PyErr_Occurred()) SWIG_fail;
27032 }
27033 resultobj = SWIG_Py_Void();
27034 return resultobj;
27035fail:
27036 return NULL;
27037}
27038
27039
27040SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27041 PyObject *resultobj = 0;
27042 wxListItem *arg1 = (wxListItem *) 0 ;
27043 wxColour *arg2 = 0 ;
27044 void *argp1 = 0 ;
27045 int res1 = 0 ;
27046 wxColour temp2 ;
27047 PyObject * obj0 = 0 ;
27048 PyObject * obj1 = 0 ;
27049 char * kwnames[] = {
27050 (char *) "self",(char *) "colBack", NULL
27051 };
27052
27053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27055 if (!SWIG_IsOK(res1)) {
27056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27057 }
27058 arg1 = reinterpret_cast< wxListItem * >(argp1);
27059 {
27060 arg2 = &temp2;
27061 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27062 }
27063 {
27064 PyThreadState* __tstate = wxPyBeginAllowThreads();
27065 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27066 wxPyEndAllowThreads(__tstate);
27067 if (PyErr_Occurred()) SWIG_fail;
27068 }
27069 resultobj = SWIG_Py_Void();
27070 return resultobj;
27071fail:
27072 return NULL;
27073}
27074
27075
27076SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27077 PyObject *resultobj = 0;
27078 wxListItem *arg1 = (wxListItem *) 0 ;
27079 wxFont *arg2 = 0 ;
27080 void *argp1 = 0 ;
27081 int res1 = 0 ;
27082 void *argp2 = 0 ;
27083 int res2 = 0 ;
27084 PyObject * obj0 = 0 ;
27085 PyObject * obj1 = 0 ;
27086 char * kwnames[] = {
27087 (char *) "self",(char *) "font", NULL
27088 };
27089
27090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27092 if (!SWIG_IsOK(res1)) {
27093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27094 }
27095 arg1 = reinterpret_cast< wxListItem * >(argp1);
27096 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27097 if (!SWIG_IsOK(res2)) {
27098 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27099 }
27100 if (!argp2) {
27101 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27102 }
27103 arg2 = reinterpret_cast< wxFont * >(argp2);
27104 {
27105 PyThreadState* __tstate = wxPyBeginAllowThreads();
27106 (arg1)->SetFont((wxFont const &)*arg2);
27107 wxPyEndAllowThreads(__tstate);
27108 if (PyErr_Occurred()) SWIG_fail;
27109 }
27110 resultobj = SWIG_Py_Void();
27111 return resultobj;
27112fail:
27113 return NULL;
d14a1e28
RD
27114}
27115
27116
0085ce49
RD
27117SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27118 PyObject *resultobj = 0;
27119 wxListItem *arg1 = (wxListItem *) 0 ;
27120 long result;
27121 void *argp1 = 0 ;
27122 int res1 = 0 ;
27123 PyObject *swig_obj[1] ;
27124
27125 if (!args) SWIG_fail;
27126 swig_obj[0] = args;
27127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27128 if (!SWIG_IsOK(res1)) {
27129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27130 }
27131 arg1 = reinterpret_cast< wxListItem * >(argp1);
27132 {
27133 PyThreadState* __tstate = wxPyBeginAllowThreads();
27134 result = (long)(arg1)->GetMask();
27135 wxPyEndAllowThreads(__tstate);
27136 if (PyErr_Occurred()) SWIG_fail;
27137 }
27138 resultobj = SWIG_From_long(static_cast< long >(result));
27139 return resultobj;
27140fail:
27141 return NULL;
d14a1e28
RD
27142}
27143
27144
0085ce49
RD
27145SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27146 PyObject *resultobj = 0;
27147 wxListItem *arg1 = (wxListItem *) 0 ;
27148 long result;
27149 void *argp1 = 0 ;
27150 int res1 = 0 ;
27151 PyObject *swig_obj[1] ;
27152
27153 if (!args) SWIG_fail;
27154 swig_obj[0] = args;
27155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27156 if (!SWIG_IsOK(res1)) {
27157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27158 }
27159 arg1 = reinterpret_cast< wxListItem * >(argp1);
27160 {
27161 PyThreadState* __tstate = wxPyBeginAllowThreads();
27162 result = (long)(arg1)->GetId();
27163 wxPyEndAllowThreads(__tstate);
27164 if (PyErr_Occurred()) SWIG_fail;
27165 }
27166 resultobj = SWIG_From_long(static_cast< long >(result));
27167 return resultobj;
27168fail:
27169 return NULL;
d14a1e28
RD
27170}
27171
27172
0085ce49
RD
27173SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27174 PyObject *resultobj = 0;
27175 wxListItem *arg1 = (wxListItem *) 0 ;
27176 int result;
27177 void *argp1 = 0 ;
27178 int res1 = 0 ;
27179 PyObject *swig_obj[1] ;
27180
27181 if (!args) SWIG_fail;
27182 swig_obj[0] = args;
27183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27184 if (!SWIG_IsOK(res1)) {
27185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27186 }
27187 arg1 = reinterpret_cast< wxListItem * >(argp1);
27188 {
27189 PyThreadState* __tstate = wxPyBeginAllowThreads();
27190 result = (int)(arg1)->GetColumn();
27191 wxPyEndAllowThreads(__tstate);
27192 if (PyErr_Occurred()) SWIG_fail;
27193 }
27194 resultobj = SWIG_From_int(static_cast< int >(result));
27195 return resultobj;
27196fail:
27197 return NULL;
22bfe96c
RD
27198}
27199
27200
0085ce49
RD
27201SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27202 PyObject *resultobj = 0;
27203 wxListItem *arg1 = (wxListItem *) 0 ;
27204 long result;
27205 void *argp1 = 0 ;
27206 int res1 = 0 ;
27207 PyObject *swig_obj[1] ;
27208
27209 if (!args) SWIG_fail;
27210 swig_obj[0] = args;
27211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27212 if (!SWIG_IsOK(res1)) {
27213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27214 }
27215 arg1 = reinterpret_cast< wxListItem * >(argp1);
27216 {
27217 PyThreadState* __tstate = wxPyBeginAllowThreads();
27218 result = (long)(arg1)->GetState();
27219 wxPyEndAllowThreads(__tstate);
27220 if (PyErr_Occurred()) SWIG_fail;
27221 }
27222 resultobj = SWIG_From_long(static_cast< long >(result));
27223 return resultobj;
27224fail:
27225 return NULL;
b2dc1044
RD
27226}
27227
27228
0085ce49
RD
27229SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27230 PyObject *resultobj = 0;
27231 wxListItem *arg1 = (wxListItem *) 0 ;
27232 wxString *result = 0 ;
27233 void *argp1 = 0 ;
27234 int res1 = 0 ;
27235 PyObject *swig_obj[1] ;
27236
27237 if (!args) SWIG_fail;
27238 swig_obj[0] = args;
27239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27240 if (!SWIG_IsOK(res1)) {
27241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27242 }
27243 arg1 = reinterpret_cast< wxListItem * >(argp1);
27244 {
27245 PyThreadState* __tstate = wxPyBeginAllowThreads();
b2dc1044 27246 {
0085ce49
RD
27247 wxString const &_result_ref = (arg1)->GetText();
27248 result = (wxString *) &_result_ref;
27249 }
27250 wxPyEndAllowThreads(__tstate);
27251 if (PyErr_Occurred()) SWIG_fail;
27252 }
27253 {
b2dc1044 27254#if wxUSE_UNICODE
0085ce49 27255 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
b2dc1044 27256#else
0085ce49 27257 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
b2dc1044 27258#endif
0085ce49
RD
27259 }
27260 return resultobj;
27261fail:
27262 return NULL;
d14a1e28
RD
27263}
27264
27265
0085ce49
RD
27266SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27267 PyObject *resultobj = 0;
27268 wxListItem *arg1 = (wxListItem *) 0 ;
27269 int result;
27270 void *argp1 = 0 ;
27271 int res1 = 0 ;
27272 PyObject *swig_obj[1] ;
27273
27274 if (!args) SWIG_fail;
27275 swig_obj[0] = args;
27276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27277 if (!SWIG_IsOK(res1)) {
27278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27279 }
27280 arg1 = reinterpret_cast< wxListItem * >(argp1);
27281 {
27282 PyThreadState* __tstate = wxPyBeginAllowThreads();
27283 result = (int)(arg1)->GetImage();
27284 wxPyEndAllowThreads(__tstate);
27285 if (PyErr_Occurred()) SWIG_fail;
27286 }
27287 resultobj = SWIG_From_int(static_cast< int >(result));
27288 return resultobj;
27289fail:
27290 return NULL;
d14a1e28
RD
27291}
27292
27293
0085ce49
RD
27294SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27295 PyObject *resultobj = 0;
27296 wxListItem *arg1 = (wxListItem *) 0 ;
27297 long result;
27298 void *argp1 = 0 ;
27299 int res1 = 0 ;
27300 PyObject *swig_obj[1] ;
27301
27302 if (!args) SWIG_fail;
27303 swig_obj[0] = args;
27304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27305 if (!SWIG_IsOK(res1)) {
27306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27307 }
27308 arg1 = reinterpret_cast< wxListItem * >(argp1);
27309 {
27310 PyThreadState* __tstate = wxPyBeginAllowThreads();
27311 result = (long)(arg1)->GetData();
27312 wxPyEndAllowThreads(__tstate);
27313 if (PyErr_Occurred()) SWIG_fail;
27314 }
27315 resultobj = SWIG_From_long(static_cast< long >(result));
27316 return resultobj;
27317fail:
27318 return NULL;
d14a1e28
RD
27319}
27320
27321
0085ce49
RD
27322SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27323 PyObject *resultobj = 0;
27324 wxListItem *arg1 = (wxListItem *) 0 ;
27325 int result;
27326 void *argp1 = 0 ;
27327 int res1 = 0 ;
27328 PyObject *swig_obj[1] ;
27329
27330 if (!args) SWIG_fail;
27331 swig_obj[0] = args;
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_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27335 }
27336 arg1 = reinterpret_cast< wxListItem * >(argp1);
27337 {
27338 PyThreadState* __tstate = wxPyBeginAllowThreads();
27339 result = (int)(arg1)->GetWidth();
27340 wxPyEndAllowThreads(__tstate);
27341 if (PyErr_Occurred()) SWIG_fail;
27342 }
27343 resultobj = SWIG_From_int(static_cast< int >(result));
27344 return resultobj;
27345fail:
27346 return NULL;
d14a1e28
RD
27347}
27348
27349
0085ce49
RD
27350SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27351 PyObject *resultobj = 0;
27352 wxListItem *arg1 = (wxListItem *) 0 ;
27353 wxListColumnFormat result;
27354 void *argp1 = 0 ;
27355 int res1 = 0 ;
27356 PyObject *swig_obj[1] ;
27357
27358 if (!args) SWIG_fail;
27359 swig_obj[0] = args;
27360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27361 if (!SWIG_IsOK(res1)) {
27362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27363 }
27364 arg1 = reinterpret_cast< wxListItem * >(argp1);
27365 {
27366 PyThreadState* __tstate = wxPyBeginAllowThreads();
27367 result = (wxListColumnFormat)(arg1)->GetAlign();
27368 wxPyEndAllowThreads(__tstate);
27369 if (PyErr_Occurred()) SWIG_fail;
27370 }
27371 resultobj = SWIG_From_int(static_cast< int >(result));
27372 return resultobj;
27373fail:
27374 return NULL;
d14a1e28
RD
27375}
27376
27377
0085ce49
RD
27378SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27379 PyObject *resultobj = 0;
27380 wxListItem *arg1 = (wxListItem *) 0 ;
27381 wxListItemAttr *result = 0 ;
27382 void *argp1 = 0 ;
27383 int res1 = 0 ;
27384 PyObject *swig_obj[1] ;
27385
27386 if (!args) SWIG_fail;
27387 swig_obj[0] = args;
27388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27389 if (!SWIG_IsOK(res1)) {
27390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27391 }
27392 arg1 = reinterpret_cast< wxListItem * >(argp1);
27393 {
27394 PyThreadState* __tstate = wxPyBeginAllowThreads();
27395 result = (wxListItemAttr *)(arg1)->GetAttributes();
27396 wxPyEndAllowThreads(__tstate);
27397 if (PyErr_Occurred()) SWIG_fail;
27398 }
27399 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27400 return resultobj;
27401fail:
27402 return NULL;
d14a1e28
RD
27403}
27404
27405
0085ce49
RD
27406SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27407 PyObject *resultobj = 0;
27408 wxListItem *arg1 = (wxListItem *) 0 ;
27409 bool result;
27410 void *argp1 = 0 ;
27411 int res1 = 0 ;
27412 PyObject *swig_obj[1] ;
27413
27414 if (!args) SWIG_fail;
27415 swig_obj[0] = args;
27416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27417 if (!SWIG_IsOK(res1)) {
27418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27419 }
27420 arg1 = reinterpret_cast< wxListItem * >(argp1);
27421 {
27422 PyThreadState* __tstate = wxPyBeginAllowThreads();
27423 result = (bool)(arg1)->HasAttributes();
27424 wxPyEndAllowThreads(__tstate);
27425 if (PyErr_Occurred()) SWIG_fail;
27426 }
27427 {
27428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27429 }
27430 return resultobj;
27431fail:
27432 return NULL;
22bfe96c
RD
27433}
27434
27435
0085ce49
RD
27436SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27437 PyObject *resultobj = 0;
27438 wxListItem *arg1 = (wxListItem *) 0 ;
27439 wxColour result;
27440 void *argp1 = 0 ;
27441 int res1 = 0 ;
27442 PyObject *swig_obj[1] ;
27443
27444 if (!args) SWIG_fail;
27445 swig_obj[0] = args;
27446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27447 if (!SWIG_IsOK(res1)) {
27448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27449 }
27450 arg1 = reinterpret_cast< wxListItem * >(argp1);
27451 {
27452 PyThreadState* __tstate = wxPyBeginAllowThreads();
27453 result = ((wxListItem const *)arg1)->GetTextColour();
27454 wxPyEndAllowThreads(__tstate);
27455 if (PyErr_Occurred()) SWIG_fail;
27456 }
27457 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27458 return resultobj;
27459fail:
27460 return NULL;
d14a1e28 27461}
0085ce49
RD
27462
27463
27464SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27465 PyObject *resultobj = 0;
27466 wxListItem *arg1 = (wxListItem *) 0 ;
27467 wxColour result;
27468 void *argp1 = 0 ;
27469 int res1 = 0 ;
27470 PyObject *swig_obj[1] ;
27471
27472 if (!args) SWIG_fail;
27473 swig_obj[0] = args;
27474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27475 if (!SWIG_IsOK(res1)) {
27476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27477 }
27478 arg1 = reinterpret_cast< wxListItem * >(argp1);
27479 {
27480 PyThreadState* __tstate = wxPyBeginAllowThreads();
27481 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27482 wxPyEndAllowThreads(__tstate);
27483 if (PyErr_Occurred()) SWIG_fail;
27484 }
27485 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27486 return resultobj;
27487fail:
27488 return NULL;
b2dc1044
RD
27489}
27490
27491
0085ce49
RD
27492SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27493 PyObject *resultobj = 0;
27494 wxListItem *arg1 = (wxListItem *) 0 ;
27495 wxFont result;
27496 void *argp1 = 0 ;
27497 int res1 = 0 ;
27498 PyObject *swig_obj[1] ;
27499
27500 if (!args) SWIG_fail;
27501 swig_obj[0] = args;
27502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27503 if (!SWIG_IsOK(res1)) {
27504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27505 }
27506 arg1 = reinterpret_cast< wxListItem * >(argp1);
27507 {
27508 PyThreadState* __tstate = wxPyBeginAllowThreads();
27509 result = ((wxListItem const *)arg1)->GetFont();
27510 wxPyEndAllowThreads(__tstate);
27511 if (PyErr_Occurred()) SWIG_fail;
27512 }
27513 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27514 return resultobj;
27515fail:
27516 return NULL;
27517}
27518
27519
27520SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27521 PyObject *resultobj = 0;
27522 wxListItem *arg1 = (wxListItem *) 0 ;
27523 long arg2 ;
27524 void *argp1 = 0 ;
27525 int res1 = 0 ;
27526 long val2 ;
27527 int ecode2 = 0 ;
27528 PyObject *swig_obj[2] ;
27529
27530 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27532 if (!SWIG_IsOK(res1)) {
27533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27534 }
27535 arg1 = reinterpret_cast< wxListItem * >(argp1);
27536 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27537 if (!SWIG_IsOK(ecode2)) {
27538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27539 }
27540 arg2 = static_cast< long >(val2);
27541 if (arg1) (arg1)->m_mask = arg2;
27542
27543 resultobj = SWIG_Py_Void();
27544 return resultobj;
27545fail:
27546 return NULL;
b2dc1044
RD
27547}
27548
27549
0085ce49
RD
27550SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27551 PyObject *resultobj = 0;
27552 wxListItem *arg1 = (wxListItem *) 0 ;
27553 long result;
27554 void *argp1 = 0 ;
27555 int res1 = 0 ;
27556 PyObject *swig_obj[1] ;
27557
27558 if (!args) SWIG_fail;
27559 swig_obj[0] = args;
27560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27561 if (!SWIG_IsOK(res1)) {
27562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27563 }
27564 arg1 = reinterpret_cast< wxListItem * >(argp1);
27565 result = (long) ((arg1)->m_mask);
27566 resultobj = SWIG_From_long(static_cast< long >(result));
27567 return resultobj;
27568fail:
27569 return NULL;
27570}
27571
27572
27573SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27574 PyObject *resultobj = 0;
27575 wxListItem *arg1 = (wxListItem *) 0 ;
27576 long arg2 ;
27577 void *argp1 = 0 ;
27578 int res1 = 0 ;
27579 long val2 ;
27580 int ecode2 = 0 ;
27581 PyObject *swig_obj[2] ;
27582
27583 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27585 if (!SWIG_IsOK(res1)) {
27586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27587 }
27588 arg1 = reinterpret_cast< wxListItem * >(argp1);
27589 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27590 if (!SWIG_IsOK(ecode2)) {
27591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27592 }
27593 arg2 = static_cast< long >(val2);
27594 if (arg1) (arg1)->m_itemId = arg2;
27595
27596 resultobj = SWIG_Py_Void();
27597 return resultobj;
27598fail:
27599 return NULL;
d14a1e28
RD
27600}
27601
27602
0085ce49
RD
27603SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27604 PyObject *resultobj = 0;
27605 wxListItem *arg1 = (wxListItem *) 0 ;
27606 long result;
27607 void *argp1 = 0 ;
27608 int res1 = 0 ;
27609 PyObject *swig_obj[1] ;
27610
27611 if (!args) SWIG_fail;
27612 swig_obj[0] = args;
27613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27614 if (!SWIG_IsOK(res1)) {
27615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27616 }
27617 arg1 = reinterpret_cast< wxListItem * >(argp1);
27618 result = (long) ((arg1)->m_itemId);
27619 resultobj = SWIG_From_long(static_cast< long >(result));
27620 return resultobj;
27621fail:
27622 return NULL;
27623}
27624
27625
27626SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27627 PyObject *resultobj = 0;
27628 wxListItem *arg1 = (wxListItem *) 0 ;
27629 int arg2 ;
27630 void *argp1 = 0 ;
27631 int res1 = 0 ;
27632 int val2 ;
27633 int ecode2 = 0 ;
27634 PyObject *swig_obj[2] ;
27635
27636 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27638 if (!SWIG_IsOK(res1)) {
27639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27640 }
27641 arg1 = reinterpret_cast< wxListItem * >(argp1);
27642 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27643 if (!SWIG_IsOK(ecode2)) {
27644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27645 }
27646 arg2 = static_cast< int >(val2);
27647 if (arg1) (arg1)->m_col = arg2;
27648
27649 resultobj = SWIG_Py_Void();
27650 return resultobj;
27651fail:
27652 return NULL;
d14a1e28
RD
27653}
27654
27655
0085ce49
RD
27656SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27657 PyObject *resultobj = 0;
27658 wxListItem *arg1 = (wxListItem *) 0 ;
27659 int result;
27660 void *argp1 = 0 ;
27661 int res1 = 0 ;
27662 PyObject *swig_obj[1] ;
27663
27664 if (!args) SWIG_fail;
27665 swig_obj[0] = args;
27666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27667 if (!SWIG_IsOK(res1)) {
27668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27669 }
27670 arg1 = reinterpret_cast< wxListItem * >(argp1);
27671 result = (int) ((arg1)->m_col);
27672 resultobj = SWIG_From_int(static_cast< int >(result));
27673 return resultobj;
27674fail:
27675 return NULL;
27676}
27677
27678
27679SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27680 PyObject *resultobj = 0;
27681 wxListItem *arg1 = (wxListItem *) 0 ;
27682 long arg2 ;
27683 void *argp1 = 0 ;
27684 int res1 = 0 ;
27685 long val2 ;
27686 int ecode2 = 0 ;
27687 PyObject *swig_obj[2] ;
27688
27689 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27691 if (!SWIG_IsOK(res1)) {
27692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27693 }
27694 arg1 = reinterpret_cast< wxListItem * >(argp1);
27695 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27696 if (!SWIG_IsOK(ecode2)) {
27697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27698 }
27699 arg2 = static_cast< long >(val2);
27700 if (arg1) (arg1)->m_state = arg2;
27701
27702 resultobj = SWIG_Py_Void();
27703 return resultobj;
27704fail:
27705 return NULL;
8fb0e70a
RD
27706}
27707
27708
0085ce49
RD
27709SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27710 PyObject *resultobj = 0;
27711 wxListItem *arg1 = (wxListItem *) 0 ;
27712 long result;
27713 void *argp1 = 0 ;
27714 int res1 = 0 ;
27715 PyObject *swig_obj[1] ;
27716
27717 if (!args) SWIG_fail;
27718 swig_obj[0] = args;
27719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27720 if (!SWIG_IsOK(res1)) {
27721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27722 }
27723 arg1 = reinterpret_cast< wxListItem * >(argp1);
27724 result = (long) ((arg1)->m_state);
27725 resultobj = SWIG_From_long(static_cast< long >(result));
27726 return resultobj;
27727fail:
27728 return NULL;
27729}
27730
27731
27732SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27733 PyObject *resultobj = 0;
27734 wxListItem *arg1 = (wxListItem *) 0 ;
27735 long arg2 ;
27736 void *argp1 = 0 ;
27737 int res1 = 0 ;
27738 long val2 ;
27739 int ecode2 = 0 ;
27740 PyObject *swig_obj[2] ;
27741
27742 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27744 if (!SWIG_IsOK(res1)) {
27745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27746 }
27747 arg1 = reinterpret_cast< wxListItem * >(argp1);
27748 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27749 if (!SWIG_IsOK(ecode2)) {
27750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27751 }
27752 arg2 = static_cast< long >(val2);
27753 if (arg1) (arg1)->m_stateMask = arg2;
27754
27755 resultobj = SWIG_Py_Void();
27756 return resultobj;
27757fail:
27758 return NULL;
d14a1e28
RD
27759}
27760
27761
0085ce49
RD
27762SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27763 PyObject *resultobj = 0;
27764 wxListItem *arg1 = (wxListItem *) 0 ;
27765 long result;
27766 void *argp1 = 0 ;
27767 int res1 = 0 ;
27768 PyObject *swig_obj[1] ;
27769
27770 if (!args) SWIG_fail;
27771 swig_obj[0] = args;
27772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27773 if (!SWIG_IsOK(res1)) {
27774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27775 }
27776 arg1 = reinterpret_cast< wxListItem * >(argp1);
27777 result = (long) ((arg1)->m_stateMask);
27778 resultobj = SWIG_From_long(static_cast< long >(result));
27779 return resultobj;
27780fail:
27781 return NULL;
27782}
27783
27784
27785SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27786 PyObject *resultobj = 0;
27787 wxListItem *arg1 = (wxListItem *) 0 ;
27788 wxString *arg2 = (wxString *) 0 ;
27789 void *argp1 = 0 ;
27790 int res1 = 0 ;
27791 bool temp2 = false ;
27792 PyObject *swig_obj[2] ;
27793
27794 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27796 if (!SWIG_IsOK(res1)) {
27797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27798 }
27799 arg1 = reinterpret_cast< wxListItem * >(argp1);
27800 {
27801 arg2 = wxString_in_helper(swig_obj[1]);
27802 if (arg2 == NULL) SWIG_fail;
27803 temp2 = true;
27804 }
27805 if (arg1) (arg1)->m_text = *arg2;
27806
27807 resultobj = SWIG_Py_Void();
27808 {
27809 if (temp2)
27810 delete arg2;
27811 }
27812 return resultobj;
27813fail:
27814 {
27815 if (temp2)
27816 delete arg2;
27817 }
27818 return NULL;
d14a1e28
RD
27819}
27820
27821
0085ce49
RD
27822SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27823 PyObject *resultobj = 0;
27824 wxListItem *arg1 = (wxListItem *) 0 ;
27825 wxString *result = 0 ;
27826 void *argp1 = 0 ;
27827 int res1 = 0 ;
27828 PyObject *swig_obj[1] ;
27829
27830 if (!args) SWIG_fail;
27831 swig_obj[0] = args;
27832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27833 if (!SWIG_IsOK(res1)) {
27834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27835 }
27836 arg1 = reinterpret_cast< wxListItem * >(argp1);
27837 result = (wxString *)& ((arg1)->m_text);
27838 {
d14a1e28 27839#if wxUSE_UNICODE
0085ce49 27840 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 27841#else
0085ce49 27842 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 27843#endif
0085ce49
RD
27844 }
27845 return resultobj;
27846fail:
27847 return NULL;
d14a1e28
RD
27848}
27849
27850
0085ce49
RD
27851SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27852 PyObject *resultobj = 0;
27853 wxListItem *arg1 = (wxListItem *) 0 ;
27854 int arg2 ;
27855 void *argp1 = 0 ;
27856 int res1 = 0 ;
27857 int val2 ;
27858 int ecode2 = 0 ;
27859 PyObject *swig_obj[2] ;
27860
27861 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27863 if (!SWIG_IsOK(res1)) {
27864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27865 }
27866 arg1 = reinterpret_cast< wxListItem * >(argp1);
27867 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27868 if (!SWIG_IsOK(ecode2)) {
27869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27870 }
27871 arg2 = static_cast< int >(val2);
27872 if (arg1) (arg1)->m_image = arg2;
27873
27874 resultobj = SWIG_Py_Void();
27875 return resultobj;
27876fail:
27877 return NULL;
d14a1e28
RD
27878}
27879
27880
0085ce49
RD
27881SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27882 PyObject *resultobj = 0;
27883 wxListItem *arg1 = (wxListItem *) 0 ;
27884 int result;
27885 void *argp1 = 0 ;
27886 int res1 = 0 ;
27887 PyObject *swig_obj[1] ;
27888
27889 if (!args) SWIG_fail;
27890 swig_obj[0] = args;
27891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27892 if (!SWIG_IsOK(res1)) {
27893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27894 }
27895 arg1 = reinterpret_cast< wxListItem * >(argp1);
27896 result = (int) ((arg1)->m_image);
27897 resultobj = SWIG_From_int(static_cast< int >(result));
27898 return resultobj;
27899fail:
27900 return NULL;
27901}
27902
27903
27904SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27905 PyObject *resultobj = 0;
27906 wxListItem *arg1 = (wxListItem *) 0 ;
27907 long arg2 ;
27908 void *argp1 = 0 ;
27909 int res1 = 0 ;
27910 long val2 ;
27911 int ecode2 = 0 ;
27912 PyObject *swig_obj[2] ;
27913
27914 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27916 if (!SWIG_IsOK(res1)) {
27917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27918 }
27919 arg1 = reinterpret_cast< wxListItem * >(argp1);
27920 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27921 if (!SWIG_IsOK(ecode2)) {
27922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27923 }
27924 arg2 = static_cast< long >(val2);
27925 if (arg1) (arg1)->m_data = arg2;
27926
27927 resultobj = SWIG_Py_Void();
27928 return resultobj;
27929fail:
27930 return NULL;
d14a1e28
RD
27931}
27932
27933
0085ce49
RD
27934SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27935 PyObject *resultobj = 0;
27936 wxListItem *arg1 = (wxListItem *) 0 ;
27937 long result;
27938 void *argp1 = 0 ;
27939 int res1 = 0 ;
27940 PyObject *swig_obj[1] ;
27941
27942 if (!args) SWIG_fail;
27943 swig_obj[0] = args;
27944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27945 if (!SWIG_IsOK(res1)) {
27946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27947 }
27948 arg1 = reinterpret_cast< wxListItem * >(argp1);
27949 result = (long) ((arg1)->m_data);
27950 resultobj = SWIG_From_long(static_cast< long >(result));
27951 return resultobj;
27952fail:
27953 return NULL;
27954}
27955
27956
27957SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27958 PyObject *resultobj = 0;
27959 wxListItem *arg1 = (wxListItem *) 0 ;
27960 int arg2 ;
27961 void *argp1 = 0 ;
27962 int res1 = 0 ;
27963 int val2 ;
27964 int ecode2 = 0 ;
27965 PyObject *swig_obj[2] ;
27966
27967 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27969 if (!SWIG_IsOK(res1)) {
27970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27971 }
27972 arg1 = reinterpret_cast< wxListItem * >(argp1);
27973 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27974 if (!SWIG_IsOK(ecode2)) {
27975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27976 }
27977 arg2 = static_cast< int >(val2);
27978 if (arg1) (arg1)->m_format = arg2;
27979
27980 resultobj = SWIG_Py_Void();
27981 return resultobj;
27982fail:
27983 return NULL;
d14a1e28
RD
27984}
27985
27986
0085ce49
RD
27987SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27988 PyObject *resultobj = 0;
27989 wxListItem *arg1 = (wxListItem *) 0 ;
27990 int result;
27991 void *argp1 = 0 ;
27992 int res1 = 0 ;
27993 PyObject *swig_obj[1] ;
27994
27995 if (!args) SWIG_fail;
27996 swig_obj[0] = args;
27997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27998 if (!SWIG_IsOK(res1)) {
27999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28000 }
28001 arg1 = reinterpret_cast< wxListItem * >(argp1);
28002 result = (int) ((arg1)->m_format);
28003 resultobj = SWIG_From_int(static_cast< int >(result));
28004 return resultobj;
28005fail:
28006 return NULL;
28007}
28008
28009
28010SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28011 PyObject *resultobj = 0;
28012 wxListItem *arg1 = (wxListItem *) 0 ;
28013 int arg2 ;
28014 void *argp1 = 0 ;
28015 int res1 = 0 ;
28016 int val2 ;
28017 int ecode2 = 0 ;
28018 PyObject *swig_obj[2] ;
28019
28020 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
28021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28022 if (!SWIG_IsOK(res1)) {
28023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28024 }
28025 arg1 = reinterpret_cast< wxListItem * >(argp1);
28026 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28027 if (!SWIG_IsOK(ecode2)) {
28028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28029 }
28030 arg2 = static_cast< int >(val2);
28031 if (arg1) (arg1)->m_width = arg2;
28032
28033 resultobj = SWIG_Py_Void();
28034 return resultobj;
28035fail:
28036 return NULL;
d14a1e28
RD
28037}
28038
28039
0085ce49
RD
28040SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28041 PyObject *resultobj = 0;
28042 wxListItem *arg1 = (wxListItem *) 0 ;
28043 int result;
28044 void *argp1 = 0 ;
28045 int res1 = 0 ;
28046 PyObject *swig_obj[1] ;
28047
28048 if (!args) SWIG_fail;
28049 swig_obj[0] = args;
28050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28051 if (!SWIG_IsOK(res1)) {
28052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28053 }
28054 arg1 = reinterpret_cast< wxListItem * >(argp1);
28055 result = (int) ((arg1)->m_width);
28056 resultobj = SWIG_From_int(static_cast< int >(result));
28057 return resultobj;
28058fail:
28059 return NULL;
28060}
28061
28062
28063SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28064 PyObject *obj;
28065 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28066 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28067 return SWIG_Py_Void();
28068}
28069
28070SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28071 return SWIG_Python_InitShadowInstance(args);
28072}
28073
28074SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28075 PyObject *resultobj = 0;
28076 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28077 int arg2 = (int) 0 ;
28078 wxListEvent *result = 0 ;
28079 int val1 ;
28080 int ecode1 = 0 ;
28081 int val2 ;
28082 int ecode2 = 0 ;
28083 PyObject * obj0 = 0 ;
28084 PyObject * obj1 = 0 ;
28085 char * kwnames[] = {
28086 (char *) "commandType",(char *) "id", NULL
28087 };
28088
28089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28090 if (obj0) {
28091 ecode1 = SWIG_AsVal_int(obj0, &val1);
28092 if (!SWIG_IsOK(ecode1)) {
28093 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28094 }
28095 arg1 = static_cast< wxEventType >(val1);
28096 }
28097 if (obj1) {
28098 ecode2 = SWIG_AsVal_int(obj1, &val2);
28099 if (!SWIG_IsOK(ecode2)) {
28100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28101 }
28102 arg2 = static_cast< int >(val2);
28103 }
28104 {
28105 PyThreadState* __tstate = wxPyBeginAllowThreads();
28106 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28107 wxPyEndAllowThreads(__tstate);
28108 if (PyErr_Occurred()) SWIG_fail;
28109 }
28110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28111 return resultobj;
28112fail:
28113 return NULL;
28114}
28115
28116
28117SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28118 PyObject *resultobj = 0;
28119 wxListEvent *arg1 = (wxListEvent *) 0 ;
28120 int arg2 ;
28121 void *argp1 = 0 ;
28122 int res1 = 0 ;
28123 int val2 ;
28124 int ecode2 = 0 ;
28125 PyObject *swig_obj[2] ;
28126
28127 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28129 if (!SWIG_IsOK(res1)) {
28130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28131 }
28132 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28133 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28134 if (!SWIG_IsOK(ecode2)) {
28135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28136 }
28137 arg2 = static_cast< int >(val2);
28138 if (arg1) (arg1)->m_code = arg2;
28139
28140 resultobj = SWIG_Py_Void();
28141 return resultobj;
28142fail:
28143 return NULL;
d14a1e28
RD
28144}
28145
28146
0085ce49
RD
28147SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28148 PyObject *resultobj = 0;
28149 wxListEvent *arg1 = (wxListEvent *) 0 ;
28150 int result;
28151 void *argp1 = 0 ;
28152 int res1 = 0 ;
28153 PyObject *swig_obj[1] ;
28154
28155 if (!args) SWIG_fail;
28156 swig_obj[0] = args;
28157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28158 if (!SWIG_IsOK(res1)) {
28159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28160 }
28161 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28162 result = (int) ((arg1)->m_code);
28163 resultobj = SWIG_From_int(static_cast< int >(result));
28164 return resultobj;
28165fail:
28166 return NULL;
28167}
28168
28169
28170SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28171 PyObject *resultobj = 0;
28172 wxListEvent *arg1 = (wxListEvent *) 0 ;
28173 long arg2 ;
28174 void *argp1 = 0 ;
28175 int res1 = 0 ;
28176 long val2 ;
28177 int ecode2 = 0 ;
28178 PyObject *swig_obj[2] ;
28179
28180 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28182 if (!SWIG_IsOK(res1)) {
28183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28184 }
28185 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28186 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28187 if (!SWIG_IsOK(ecode2)) {
28188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28189 }
28190 arg2 = static_cast< long >(val2);
28191 if (arg1) (arg1)->m_oldItemIndex = arg2;
28192
28193 resultobj = SWIG_Py_Void();
28194 return resultobj;
28195fail:
28196 return NULL;
d14a1e28
RD
28197}
28198
28199
0085ce49
RD
28200SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28201 PyObject *resultobj = 0;
28202 wxListEvent *arg1 = (wxListEvent *) 0 ;
28203 long result;
28204 void *argp1 = 0 ;
28205 int res1 = 0 ;
28206 PyObject *swig_obj[1] ;
28207
28208 if (!args) SWIG_fail;
28209 swig_obj[0] = args;
28210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28211 if (!SWIG_IsOK(res1)) {
28212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28213 }
28214 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28215 result = (long) ((arg1)->m_oldItemIndex);
28216 resultobj = SWIG_From_long(static_cast< long >(result));
28217 return resultobj;
28218fail:
28219 return NULL;
28220}
28221
28222
28223SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28224 PyObject *resultobj = 0;
28225 wxListEvent *arg1 = (wxListEvent *) 0 ;
28226 long arg2 ;
28227 void *argp1 = 0 ;
28228 int res1 = 0 ;
28229 long val2 ;
28230 int ecode2 = 0 ;
28231 PyObject *swig_obj[2] ;
28232
28233 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28235 if (!SWIG_IsOK(res1)) {
28236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28237 }
28238 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28239 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28240 if (!SWIG_IsOK(ecode2)) {
28241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28242 }
28243 arg2 = static_cast< long >(val2);
28244 if (arg1) (arg1)->m_itemIndex = arg2;
28245
28246 resultobj = SWIG_Py_Void();
28247 return resultobj;
28248fail:
28249 return NULL;
d14a1e28
RD
28250}
28251
28252
0085ce49
RD
28253SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28254 PyObject *resultobj = 0;
28255 wxListEvent *arg1 = (wxListEvent *) 0 ;
28256 long result;
28257 void *argp1 = 0 ;
28258 int res1 = 0 ;
28259 PyObject *swig_obj[1] ;
28260
28261 if (!args) SWIG_fail;
28262 swig_obj[0] = args;
28263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28264 if (!SWIG_IsOK(res1)) {
28265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28266 }
28267 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28268 result = (long) ((arg1)->m_itemIndex);
28269 resultobj = SWIG_From_long(static_cast< long >(result));
28270 return resultobj;
28271fail:
28272 return NULL;
28273}
28274
28275
28276SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28277 PyObject *resultobj = 0;
28278 wxListEvent *arg1 = (wxListEvent *) 0 ;
28279 int arg2 ;
28280 void *argp1 = 0 ;
28281 int res1 = 0 ;
28282 int val2 ;
28283 int ecode2 = 0 ;
28284 PyObject *swig_obj[2] ;
28285
28286 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28288 if (!SWIG_IsOK(res1)) {
28289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28290 }
28291 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28292 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28293 if (!SWIG_IsOK(ecode2)) {
28294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28295 }
28296 arg2 = static_cast< int >(val2);
28297 if (arg1) (arg1)->m_col = arg2;
28298
28299 resultobj = SWIG_Py_Void();
28300 return resultobj;
28301fail:
28302 return NULL;
7e08d4ef
RD
28303}
28304
28305
0085ce49
RD
28306SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28307 PyObject *resultobj = 0;
28308 wxListEvent *arg1 = (wxListEvent *) 0 ;
28309 int result;
28310 void *argp1 = 0 ;
28311 int res1 = 0 ;
28312 PyObject *swig_obj[1] ;
28313
28314 if (!args) SWIG_fail;
28315 swig_obj[0] = args;
28316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28317 if (!SWIG_IsOK(res1)) {
28318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28319 }
28320 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28321 result = (int) ((arg1)->m_col);
28322 resultobj = SWIG_From_int(static_cast< int >(result));
28323 return resultobj;
28324fail:
28325 return NULL;
28326}
28327
28328
28329SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28330 PyObject *resultobj = 0;
28331 wxListEvent *arg1 = (wxListEvent *) 0 ;
28332 wxPoint *arg2 = (wxPoint *) 0 ;
28333 void *argp1 = 0 ;
28334 int res1 = 0 ;
28335 void *argp2 = 0 ;
28336 int res2 = 0 ;
28337 PyObject *swig_obj[2] ;
28338
28339 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28341 if (!SWIG_IsOK(res1)) {
28342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28343 }
28344 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28345 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28346 if (!SWIG_IsOK(res2)) {
28347 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28348 }
28349 arg2 = reinterpret_cast< wxPoint * >(argp2);
28350 if (arg1) (arg1)->m_pointDrag = *arg2;
28351
28352 resultobj = SWIG_Py_Void();
28353 return resultobj;
28354fail:
28355 return NULL;
7e08d4ef
RD
28356}
28357
28358
0085ce49
RD
28359SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28360 PyObject *resultobj = 0;
28361 wxListEvent *arg1 = (wxListEvent *) 0 ;
28362 wxPoint *result = 0 ;
28363 void *argp1 = 0 ;
28364 int res1 = 0 ;
28365 PyObject *swig_obj[1] ;
28366
28367 if (!args) SWIG_fail;
28368 swig_obj[0] = args;
28369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28370 if (!SWIG_IsOK(res1)) {
28371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28372 }
28373 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28374 result = (wxPoint *)& ((arg1)->m_pointDrag);
28375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28376 return resultobj;
28377fail:
28378 return NULL;
28379}
28380
28381
28382SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28383 PyObject *resultobj = 0;
28384 wxListEvent *arg1 = (wxListEvent *) 0 ;
28385 wxListItem *result = 0 ;
28386 void *argp1 = 0 ;
28387 int res1 = 0 ;
28388 PyObject *swig_obj[1] ;
28389
28390 if (!args) SWIG_fail;
28391 swig_obj[0] = args;
28392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28393 if (!SWIG_IsOK(res1)) {
28394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28395 }
28396 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28397 result = (wxListItem *)& ((arg1)->m_item);
28398 {
3ecece7e 28399 resultobj = wxPyMake_wxObject(result, 0);
0085ce49
RD
28400 }
28401 return resultobj;
28402fail:
28403 return NULL;
7e08d4ef
RD
28404}
28405
28406
0085ce49
RD
28407SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28408 PyObject *resultobj = 0;
28409 wxListEvent *arg1 = (wxListEvent *) 0 ;
28410 int result;
28411 void *argp1 = 0 ;
28412 int res1 = 0 ;
28413 PyObject *swig_obj[1] ;
28414
28415 if (!args) SWIG_fail;
28416 swig_obj[0] = args;
28417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28418 if (!SWIG_IsOK(res1)) {
28419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28420 }
28421 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28422 {
28423 PyThreadState* __tstate = wxPyBeginAllowThreads();
28424 result = (int)(arg1)->GetKeyCode();
28425 wxPyEndAllowThreads(__tstate);
28426 if (PyErr_Occurred()) SWIG_fail;
28427 }
28428 resultobj = SWIG_From_int(static_cast< int >(result));
28429 return resultobj;
28430fail:
28431 return NULL;
7e08d4ef
RD
28432}
28433
28434
0085ce49
RD
28435SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28436 PyObject *resultobj = 0;
28437 wxListEvent *arg1 = (wxListEvent *) 0 ;
28438 long result;
28439 void *argp1 = 0 ;
28440 int res1 = 0 ;
28441 PyObject *swig_obj[1] ;
28442
28443 if (!args) SWIG_fail;
28444 swig_obj[0] = args;
28445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28446 if (!SWIG_IsOK(res1)) {
28447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28448 }
28449 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28450 {
28451 PyThreadState* __tstate = wxPyBeginAllowThreads();
28452 result = (long)(arg1)->GetIndex();
28453 wxPyEndAllowThreads(__tstate);
28454 if (PyErr_Occurred()) SWIG_fail;
28455 }
28456 resultobj = SWIG_From_long(static_cast< long >(result));
28457 return resultobj;
28458fail:
28459 return NULL;
7e08d4ef
RD
28460}
28461
28462
0085ce49
RD
28463SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28464 PyObject *resultobj = 0;
28465 wxListEvent *arg1 = (wxListEvent *) 0 ;
28466 int result;
28467 void *argp1 = 0 ;
28468 int res1 = 0 ;
28469 PyObject *swig_obj[1] ;
28470
28471 if (!args) SWIG_fail;
28472 swig_obj[0] = args;
28473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28474 if (!SWIG_IsOK(res1)) {
28475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28476 }
28477 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28478 {
28479 PyThreadState* __tstate = wxPyBeginAllowThreads();
28480 result = (int)(arg1)->GetColumn();
28481 wxPyEndAllowThreads(__tstate);
28482 if (PyErr_Occurred()) SWIG_fail;
28483 }
28484 resultobj = SWIG_From_int(static_cast< int >(result));
28485 return resultobj;
28486fail:
28487 return NULL;
d14a1e28
RD
28488}
28489
28490
0085ce49
RD
28491SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28492 PyObject *resultobj = 0;
28493 wxListEvent *arg1 = (wxListEvent *) 0 ;
28494 wxPoint result;
28495 void *argp1 = 0 ;
28496 int res1 = 0 ;
28497 PyObject *swig_obj[1] ;
28498
28499 if (!args) SWIG_fail;
28500 swig_obj[0] = args;
28501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28502 if (!SWIG_IsOK(res1)) {
28503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28504 }
28505 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28506 {
28507 PyThreadState* __tstate = wxPyBeginAllowThreads();
28508 result = (arg1)->GetPoint();
28509 wxPyEndAllowThreads(__tstate);
28510 if (PyErr_Occurred()) SWIG_fail;
28511 }
28512 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28513 return resultobj;
28514fail:
28515 return NULL;
d14a1e28
RD
28516}
28517
28518
0085ce49
RD
28519SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28520 PyObject *resultobj = 0;
28521 wxListEvent *arg1 = (wxListEvent *) 0 ;
28522 wxString *result = 0 ;
28523 void *argp1 = 0 ;
28524 int res1 = 0 ;
28525 PyObject *swig_obj[1] ;
28526
28527 if (!args) SWIG_fail;
28528 swig_obj[0] = args;
28529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28530 if (!SWIG_IsOK(res1)) {
28531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28532 }
28533 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28534 {
28535 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 28536 {
0085ce49
RD
28537 wxString const &_result_ref = (arg1)->GetLabel();
28538 result = (wxString *) &_result_ref;
4f89f6a3 28539 }
0085ce49
RD
28540 wxPyEndAllowThreads(__tstate);
28541 if (PyErr_Occurred()) SWIG_fail;
28542 }
28543 {
28544#if wxUSE_UNICODE
28545 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28546#else
28547 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28548#endif
28549 }
28550 return resultobj;
28551fail:
28552 return NULL;
d14a1e28
RD
28553}
28554
28555
0085ce49
RD
28556SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28557 PyObject *resultobj = 0;
28558 wxListEvent *arg1 = (wxListEvent *) 0 ;
28559 wxString *result = 0 ;
28560 void *argp1 = 0 ;
28561 int res1 = 0 ;
28562 PyObject *swig_obj[1] ;
28563
28564 if (!args) SWIG_fail;
28565 swig_obj[0] = args;
28566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28567 if (!SWIG_IsOK(res1)) {
28568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28569 }
28570 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28571 {
28572 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 28573 {
0085ce49
RD
28574 wxString const &_result_ref = (arg1)->GetText();
28575 result = (wxString *) &_result_ref;
d14a1e28 28576 }
0085ce49
RD
28577 wxPyEndAllowThreads(__tstate);
28578 if (PyErr_Occurred()) SWIG_fail;
28579 }
28580 {
28581#if wxUSE_UNICODE
28582 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28583#else
28584 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28585#endif
28586 }
28587 return resultobj;
28588fail:
28589 return NULL;
d14a1e28
RD
28590}
28591
28592
0085ce49
RD
28593SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28594 PyObject *resultobj = 0;
28595 wxListEvent *arg1 = (wxListEvent *) 0 ;
28596 int result;
28597 void *argp1 = 0 ;
28598 int res1 = 0 ;
28599 PyObject *swig_obj[1] ;
28600
28601 if (!args) SWIG_fail;
28602 swig_obj[0] = args;
28603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28604 if (!SWIG_IsOK(res1)) {
28605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28606 }
28607 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28608 {
28609 PyThreadState* __tstate = wxPyBeginAllowThreads();
28610 result = (int)(arg1)->GetImage();
28611 wxPyEndAllowThreads(__tstate);
28612 if (PyErr_Occurred()) SWIG_fail;
28613 }
28614 resultobj = SWIG_From_int(static_cast< int >(result));
28615 return resultobj;
28616fail:
28617 return NULL;
d14a1e28
RD
28618}
28619
28620
0085ce49
RD
28621SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28622 PyObject *resultobj = 0;
28623 wxListEvent *arg1 = (wxListEvent *) 0 ;
28624 long result;
28625 void *argp1 = 0 ;
28626 int res1 = 0 ;
28627 PyObject *swig_obj[1] ;
28628
28629 if (!args) SWIG_fail;
28630 swig_obj[0] = args;
28631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28632 if (!SWIG_IsOK(res1)) {
28633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28634 }
28635 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28636 {
28637 PyThreadState* __tstate = wxPyBeginAllowThreads();
28638 result = (long)(arg1)->GetData();
28639 wxPyEndAllowThreads(__tstate);
28640 if (PyErr_Occurred()) SWIG_fail;
28641 }
28642 resultobj = SWIG_From_long(static_cast< long >(result));
28643 return resultobj;
28644fail:
28645 return NULL;
d14a1e28
RD
28646}
28647
28648
0085ce49
RD
28649SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28650 PyObject *resultobj = 0;
28651 wxListEvent *arg1 = (wxListEvent *) 0 ;
28652 long result;
28653 void *argp1 = 0 ;
28654 int res1 = 0 ;
28655 PyObject *swig_obj[1] ;
28656
28657 if (!args) SWIG_fail;
28658 swig_obj[0] = args;
28659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28660 if (!SWIG_IsOK(res1)) {
28661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28662 }
28663 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28664 {
28665 PyThreadState* __tstate = wxPyBeginAllowThreads();
28666 result = (long)(arg1)->GetMask();
28667 wxPyEndAllowThreads(__tstate);
28668 if (PyErr_Occurred()) SWIG_fail;
28669 }
28670 resultobj = SWIG_From_long(static_cast< long >(result));
28671 return resultobj;
28672fail:
28673 return NULL;
d14a1e28
RD
28674}
28675
28676
0085ce49
RD
28677SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28678 PyObject *resultobj = 0;
28679 wxListEvent *arg1 = (wxListEvent *) 0 ;
28680 wxListItem *result = 0 ;
28681 void *argp1 = 0 ;
28682 int res1 = 0 ;
28683 PyObject *swig_obj[1] ;
28684
28685 if (!args) SWIG_fail;
28686 swig_obj[0] = args;
28687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28688 if (!SWIG_IsOK(res1)) {
28689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28690 }
28691 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28692 {
28693 PyThreadState* __tstate = wxPyBeginAllowThreads();
22bfe96c 28694 {
0085ce49
RD
28695 wxListItem const &_result_ref = (arg1)->GetItem();
28696 result = (wxListItem *) &_result_ref;
22bfe96c 28697 }
0085ce49
RD
28698 wxPyEndAllowThreads(__tstate);
28699 if (PyErr_Occurred()) SWIG_fail;
28700 }
28701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28702 return resultobj;
28703fail:
28704 return NULL;
22bfe96c
RD
28705}
28706
28707
0085ce49
RD
28708SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28709 PyObject *resultobj = 0;
28710 wxListEvent *arg1 = (wxListEvent *) 0 ;
28711 long result;
28712 void *argp1 = 0 ;
28713 int res1 = 0 ;
28714 PyObject *swig_obj[1] ;
28715
28716 if (!args) SWIG_fail;
28717 swig_obj[0] = args;
28718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28719 if (!SWIG_IsOK(res1)) {
28720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28721 }
28722 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28723 {
28724 PyThreadState* __tstate = wxPyBeginAllowThreads();
28725 result = (long)(arg1)->GetCacheFrom();
28726 wxPyEndAllowThreads(__tstate);
28727 if (PyErr_Occurred()) SWIG_fail;
28728 }
28729 resultobj = SWIG_From_long(static_cast< long >(result));
28730 return resultobj;
28731fail:
28732 return NULL;
d14a1e28
RD
28733}
28734
28735
0085ce49
RD
28736SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28737 PyObject *resultobj = 0;
28738 wxListEvent *arg1 = (wxListEvent *) 0 ;
28739 long result;
28740 void *argp1 = 0 ;
28741 int res1 = 0 ;
28742 PyObject *swig_obj[1] ;
28743
28744 if (!args) SWIG_fail;
28745 swig_obj[0] = args;
28746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28747 if (!SWIG_IsOK(res1)) {
28748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28749 }
28750 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28751 {
28752 PyThreadState* __tstate = wxPyBeginAllowThreads();
28753 result = (long)(arg1)->GetCacheTo();
28754 wxPyEndAllowThreads(__tstate);
28755 if (PyErr_Occurred()) SWIG_fail;
28756 }
28757 resultobj = SWIG_From_long(static_cast< long >(result));
28758 return resultobj;
28759fail:
28760 return NULL;
d14a1e28
RD
28761}
28762
28763
0085ce49
RD
28764SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28765 PyObject *resultobj = 0;
28766 wxListEvent *arg1 = (wxListEvent *) 0 ;
28767 bool result;
28768 void *argp1 = 0 ;
28769 int res1 = 0 ;
28770 PyObject *swig_obj[1] ;
28771
28772 if (!args) SWIG_fail;
28773 swig_obj[0] = args;
28774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28775 if (!SWIG_IsOK(res1)) {
28776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28777 }
28778 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28779 {
28780 PyThreadState* __tstate = wxPyBeginAllowThreads();
28781 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28782 wxPyEndAllowThreads(__tstate);
28783 if (PyErr_Occurred()) SWIG_fail;
28784 }
28785 {
28786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28787 }
28788 return resultobj;
28789fail:
28790 return NULL;
28791}
28792
28793
28794SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28795 PyObject *resultobj = 0;
28796 wxListEvent *arg1 = (wxListEvent *) 0 ;
28797 bool arg2 ;
28798 void *argp1 = 0 ;
28799 int res1 = 0 ;
28800 bool val2 ;
28801 int ecode2 = 0 ;
28802 PyObject * obj0 = 0 ;
28803 PyObject * obj1 = 0 ;
28804 char * kwnames[] = {
28805 (char *) "self",(char *) "editCancelled", NULL
28806 };
28807
28808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28810 if (!SWIG_IsOK(res1)) {
28811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28812 }
28813 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28814 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28815 if (!SWIG_IsOK(ecode2)) {
28816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28817 }
28818 arg2 = static_cast< bool >(val2);
28819 {
28820 PyThreadState* __tstate = wxPyBeginAllowThreads();
28821 (arg1)->SetEditCanceled(arg2);
28822 wxPyEndAllowThreads(__tstate);
28823 if (PyErr_Occurred()) SWIG_fail;
28824 }
28825 resultobj = SWIG_Py_Void();
28826 return resultobj;
28827fail:
28828 return NULL;
28829}
28830
28831
28832SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28833 PyObject *obj;
28834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28835 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28836 return SWIG_Py_Void();
28837}
28838
28839SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28840 return SWIG_Python_InitShadowInstance(args);
28841}
28842
28843SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28844 PyObject *resultobj = 0;
28845 wxWindow *arg1 = (wxWindow *) 0 ;
28846 int arg2 = (int) -1 ;
28847 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28848 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28849 wxSize const &arg4_defvalue = wxDefaultSize ;
28850 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28851 long arg5 = (long) wxLC_ICON ;
28852 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28853 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28854 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28855 wxString *arg7 = (wxString *) &arg7_defvalue ;
28856 wxPyListCtrl *result = 0 ;
28857 void *argp1 = 0 ;
28858 int res1 = 0 ;
28859 int val2 ;
28860 int ecode2 = 0 ;
28861 wxPoint temp3 ;
28862 wxSize temp4 ;
28863 long val5 ;
28864 int ecode5 = 0 ;
28865 void *argp6 = 0 ;
28866 int res6 = 0 ;
28867 bool temp7 = false ;
28868 PyObject * obj0 = 0 ;
28869 PyObject * obj1 = 0 ;
28870 PyObject * obj2 = 0 ;
28871 PyObject * obj3 = 0 ;
28872 PyObject * obj4 = 0 ;
28873 PyObject * obj5 = 0 ;
28874 PyObject * obj6 = 0 ;
28875 char * kwnames[] = {
28876 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28877 };
28878
28879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28881 if (!SWIG_IsOK(res1)) {
28882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28883 }
28884 arg1 = reinterpret_cast< wxWindow * >(argp1);
28885 if (obj1) {
28886 ecode2 = SWIG_AsVal_int(obj1, &val2);
28887 if (!SWIG_IsOK(ecode2)) {
28888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28889 }
28890 arg2 = static_cast< int >(val2);
28891 }
28892 if (obj2) {
093d3ff1 28893 {
0085ce49
RD
28894 arg3 = &temp3;
28895 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 28896 }
0085ce49
RD
28897 }
28898 if (obj3) {
d14a1e28 28899 {
0085ce49
RD
28900 arg4 = &temp4;
28901 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 28902 }
0085ce49
RD
28903 }
28904 if (obj4) {
28905 ecode5 = SWIG_AsVal_long(obj4, &val5);
28906 if (!SWIG_IsOK(ecode5)) {
28907 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28908 }
28909 arg5 = static_cast< long >(val5);
28910 }
28911 if (obj5) {
28912 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28913 if (!SWIG_IsOK(res6)) {
28914 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 28915 }
0085ce49
RD
28916 if (!argp6) {
28917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28918 }
28919 arg6 = reinterpret_cast< wxValidator * >(argp6);
28920 }
28921 if (obj6) {
093d3ff1 28922 {
0085ce49
RD
28923 arg7 = wxString_in_helper(obj6);
28924 if (arg7 == NULL) SWIG_fail;
28925 temp7 = true;
093d3ff1 28926 }
0085ce49
RD
28927 }
28928 {
28929 if (!wxPyCheckForApp()) SWIG_fail;
28930 PyThreadState* __tstate = wxPyBeginAllowThreads();
28931 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28932 wxPyEndAllowThreads(__tstate);
28933 if (PyErr_Occurred()) SWIG_fail;
28934 }
28935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28936 {
28937 if (temp7)
28938 delete arg7;
28939 }
28940 return resultobj;
28941fail:
28942 {
28943 if (temp7)
28944 delete arg7;
28945 }
28946 return NULL;
d14a1e28
RD
28947}
28948
28949
0085ce49
RD
28950SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28951 PyObject *resultobj = 0;
28952 wxPyListCtrl *result = 0 ;
28953
28954 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28955 {
28956 if (!wxPyCheckForApp()) SWIG_fail;
28957 PyThreadState* __tstate = wxPyBeginAllowThreads();
28958 result = (wxPyListCtrl *)new wxPyListCtrl();
28959 wxPyEndAllowThreads(__tstate);
28960 if (PyErr_Occurred()) SWIG_fail;
28961 }
28962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28963 return resultobj;
28964fail:
28965 return NULL;
28966}
28967
28968
28969SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28970 PyObject *resultobj = 0;
28971 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28972 wxWindow *arg2 = (wxWindow *) 0 ;
28973 int arg3 = (int) -1 ;
28974 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28975 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28976 wxSize const &arg5_defvalue = wxDefaultSize ;
28977 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28978 long arg6 = (long) wxLC_ICON ;
28979 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28980 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28981 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28982 wxString *arg8 = (wxString *) &arg8_defvalue ;
28983 bool result;
28984 void *argp1 = 0 ;
28985 int res1 = 0 ;
28986 void *argp2 = 0 ;
28987 int res2 = 0 ;
28988 int val3 ;
28989 int ecode3 = 0 ;
28990 wxPoint temp4 ;
28991 wxSize temp5 ;
28992 long val6 ;
28993 int ecode6 = 0 ;
28994 void *argp7 = 0 ;
28995 int res7 = 0 ;
28996 bool temp8 = false ;
28997 PyObject * obj0 = 0 ;
28998 PyObject * obj1 = 0 ;
28999 PyObject * obj2 = 0 ;
29000 PyObject * obj3 = 0 ;
29001 PyObject * obj4 = 0 ;
29002 PyObject * obj5 = 0 ;
29003 PyObject * obj6 = 0 ;
29004 PyObject * obj7 = 0 ;
29005 char * kwnames[] = {
29006 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29007 };
29008
29009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29011 if (!SWIG_IsOK(res1)) {
29012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29013 }
29014 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29015 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29016 if (!SWIG_IsOK(res2)) {
29017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
29018 }
29019 arg2 = reinterpret_cast< wxWindow * >(argp2);
29020 if (obj2) {
29021 ecode3 = SWIG_AsVal_int(obj2, &val3);
29022 if (!SWIG_IsOK(ecode3)) {
29023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29024 }
29025 arg3 = static_cast< int >(val3);
29026 }
29027 if (obj3) {
093d3ff1 29028 {
0085ce49
RD
29029 arg4 = &temp4;
29030 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 29031 }
0085ce49
RD
29032 }
29033 if (obj4) {
d14a1e28 29034 {
0085ce49
RD
29035 arg5 = &temp5;
29036 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 29037 }
0085ce49
RD
29038 }
29039 if (obj5) {
29040 ecode6 = SWIG_AsVal_long(obj5, &val6);
29041 if (!SWIG_IsOK(ecode6)) {
29042 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29043 }
29044 arg6 = static_cast< long >(val6);
29045 }
29046 if (obj6) {
29047 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29048 if (!SWIG_IsOK(res7)) {
29049 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 29050 }
0085ce49
RD
29051 if (!argp7) {
29052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 29053 }
0085ce49
RD
29054 arg7 = reinterpret_cast< wxValidator * >(argp7);
29055 }
29056 if (obj7) {
d14a1e28 29057 {
0085ce49
RD
29058 arg8 = wxString_in_helper(obj7);
29059 if (arg8 == NULL) SWIG_fail;
29060 temp8 = true;
d14a1e28 29061 }
0085ce49
RD
29062 }
29063 {
29064 PyThreadState* __tstate = wxPyBeginAllowThreads();
29065 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29066 wxPyEndAllowThreads(__tstate);
29067 if (PyErr_Occurred()) SWIG_fail;
29068 }
29069 {
29070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29071 }
29072 {
29073 if (temp8)
29074 delete arg8;
29075 }
29076 return resultobj;
29077fail:
29078 {
29079 if (temp8)
29080 delete arg8;
29081 }
29082 return NULL;
29083}
29084
29085
29086SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29087 PyObject *resultobj = 0;
29088 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29089 PyObject *arg2 = (PyObject *) 0 ;
29090 PyObject *arg3 = (PyObject *) 0 ;
29091 void *argp1 = 0 ;
29092 int res1 = 0 ;
29093 PyObject * obj0 = 0 ;
29094 PyObject * obj1 = 0 ;
29095 PyObject * obj2 = 0 ;
29096 char * kwnames[] = {
29097 (char *) "self",(char *) "self",(char *) "_class", NULL
29098 };
29099
29100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29102 if (!SWIG_IsOK(res1)) {
29103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29104 }
29105 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29106 arg2 = obj1;
29107 arg3 = obj2;
29108 {
29109 PyThreadState* __tstate = wxPyBeginAllowThreads();
29110 (arg1)->_setCallbackInfo(arg2,arg3);
29111 wxPyEndAllowThreads(__tstate);
29112 if (PyErr_Occurred()) SWIG_fail;
29113 }
29114 resultobj = SWIG_Py_Void();
29115 return resultobj;
29116fail:
29117 return NULL;
29118}
29119
29120
29121SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29122 PyObject *resultobj = 0;
29123 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29124 int arg2 ;
29125 wxListItem *result = 0 ;
29126 void *argp1 = 0 ;
29127 int res1 = 0 ;
29128 int val2 ;
29129 int ecode2 = 0 ;
29130 PyObject * obj0 = 0 ;
29131 PyObject * obj1 = 0 ;
29132 char * kwnames[] = {
29133 (char *) "self",(char *) "col", NULL
29134 };
29135
29136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29138 if (!SWIG_IsOK(res1)) {
29139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29140 }
29141 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29142 ecode2 = SWIG_AsVal_int(obj1, &val2);
29143 if (!SWIG_IsOK(ecode2)) {
29144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29145 }
29146 arg2 = static_cast< int >(val2);
29147 {
29148 PyThreadState* __tstate = wxPyBeginAllowThreads();
29149 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29150 wxPyEndAllowThreads(__tstate);
29151 if (PyErr_Occurred()) SWIG_fail;
29152 }
29153 {
3ecece7e 29154 resultobj = wxPyMake_wxObject(result, 0);
0085ce49
RD
29155 }
29156 return resultobj;
29157fail:
29158 return NULL;
29159}
29160
29161
29162SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29163 PyObject *resultobj = 0;
29164 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29165 int arg2 ;
29166 wxListItem *arg3 = 0 ;
29167 bool result;
29168 void *argp1 = 0 ;
29169 int res1 = 0 ;
29170 int val2 ;
29171 int ecode2 = 0 ;
29172 void *argp3 = 0 ;
29173 int res3 = 0 ;
29174 PyObject * obj0 = 0 ;
29175 PyObject * obj1 = 0 ;
29176 PyObject * obj2 = 0 ;
29177 char * kwnames[] = {
29178 (char *) "self",(char *) "col",(char *) "item", NULL
29179 };
29180
29181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29183 if (!SWIG_IsOK(res1)) {
29184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29185 }
29186 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29187 ecode2 = SWIG_AsVal_int(obj1, &val2);
29188 if (!SWIG_IsOK(ecode2)) {
29189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29190 }
29191 arg2 = static_cast< int >(val2);
29192 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29193 if (!SWIG_IsOK(res3)) {
29194 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29195 }
29196 if (!argp3) {
29197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29198 }
29199 arg3 = reinterpret_cast< wxListItem * >(argp3);
29200 {
29201 PyThreadState* __tstate = wxPyBeginAllowThreads();
29202 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29203 wxPyEndAllowThreads(__tstate);
29204 if (PyErr_Occurred()) SWIG_fail;
29205 }
29206 {
29207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29208 }
29209 return resultobj;
29210fail:
29211 return NULL;
29212}
29213
29214
29215SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29216 PyObject *resultobj = 0;
29217 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29218 int arg2 ;
29219 int result;
29220 void *argp1 = 0 ;
29221 int res1 = 0 ;
29222 int val2 ;
29223 int ecode2 = 0 ;
29224 PyObject * obj0 = 0 ;
29225 PyObject * obj1 = 0 ;
29226 char * kwnames[] = {
29227 (char *) "self",(char *) "col", NULL
29228 };
29229
29230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29232 if (!SWIG_IsOK(res1)) {
29233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29234 }
29235 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29236 ecode2 = SWIG_AsVal_int(obj1, &val2);
29237 if (!SWIG_IsOK(ecode2)) {
29238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29239 }
29240 arg2 = static_cast< int >(val2);
29241 {
29242 PyThreadState* __tstate = wxPyBeginAllowThreads();
29243 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29244 wxPyEndAllowThreads(__tstate);
29245 if (PyErr_Occurred()) SWIG_fail;
29246 }
29247 resultobj = SWIG_From_int(static_cast< int >(result));
29248 return resultobj;
29249fail:
29250 return NULL;
29251}
29252
29253
29254SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29255 PyObject *resultobj = 0;
29256 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29257 int arg2 ;
29258 int arg3 ;
29259 bool result;
29260 void *argp1 = 0 ;
29261 int res1 = 0 ;
29262 int val2 ;
29263 int ecode2 = 0 ;
29264 int val3 ;
29265 int ecode3 = 0 ;
29266 PyObject * obj0 = 0 ;
29267 PyObject * obj1 = 0 ;
29268 PyObject * obj2 = 0 ;
29269 char * kwnames[] = {
29270 (char *) "self",(char *) "col",(char *) "width", NULL
29271 };
29272
29273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29275 if (!SWIG_IsOK(res1)) {
29276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29277 }
29278 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29279 ecode2 = SWIG_AsVal_int(obj1, &val2);
29280 if (!SWIG_IsOK(ecode2)) {
29281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29282 }
29283 arg2 = static_cast< int >(val2);
29284 ecode3 = SWIG_AsVal_int(obj2, &val3);
29285 if (!SWIG_IsOK(ecode3)) {
29286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29287 }
29288 arg3 = static_cast< int >(val3);
29289 {
29290 PyThreadState* __tstate = wxPyBeginAllowThreads();
29291 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29292 wxPyEndAllowThreads(__tstate);
29293 if (PyErr_Occurred()) SWIG_fail;
29294 }
29295 {
29296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29297 }
29298 return resultobj;
29299fail:
29300 return NULL;
d14a1e28
RD
29301}
29302
29303
0085ce49
RD
29304SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29305 PyObject *resultobj = 0;
29306 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29307 int result;
29308 void *argp1 = 0 ;
29309 int res1 = 0 ;
29310 PyObject *swig_obj[1] ;
29311
29312 if (!args) SWIG_fail;
29313 swig_obj[0] = args;
29314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29315 if (!SWIG_IsOK(res1)) {
29316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29317 }
29318 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29319 {
29320 PyThreadState* __tstate = wxPyBeginAllowThreads();
29321 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29322 wxPyEndAllowThreads(__tstate);
29323 if (PyErr_Occurred()) SWIG_fail;
29324 }
29325 resultobj = SWIG_From_int(static_cast< int >(result));
29326 return resultobj;
29327fail:
29328 return NULL;
d14a1e28
RD
29329}
29330
29331
0085ce49
RD
29332SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29333 PyObject *resultobj = 0;
29334 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29335 wxRect result;
29336 void *argp1 = 0 ;
29337 int res1 = 0 ;
29338 PyObject *swig_obj[1] ;
29339
29340 if (!args) SWIG_fail;
29341 swig_obj[0] = args;
29342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29343 if (!SWIG_IsOK(res1)) {
29344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29345 }
29346 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29347 {
29348 PyThreadState* __tstate = wxPyBeginAllowThreads();
29349 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29350 wxPyEndAllowThreads(__tstate);
29351 if (PyErr_Occurred()) SWIG_fail;
29352 }
29353 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29354 return resultobj;
29355fail:
29356 return NULL;
d14a1e28
RD
29357}
29358
29359
0085ce49
RD
29360SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29361 PyObject *resultobj = 0;
29362 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29363 wxTextCtrl *result = 0 ;
29364 void *argp1 = 0 ;
29365 int res1 = 0 ;
29366 PyObject *swig_obj[1] ;
29367
29368 if (!args) SWIG_fail;
29369 swig_obj[0] = args;
29370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29371 if (!SWIG_IsOK(res1)) {
29372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29373 }
29374 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29375 {
29376 PyThreadState* __tstate = wxPyBeginAllowThreads();
29377 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29378 wxPyEndAllowThreads(__tstate);
29379 if (PyErr_Occurred()) SWIG_fail;
29380 }
29381 {
29382 resultobj = wxPyMake_wxObject(result, 0);
29383 }
29384 return resultobj;
29385fail:
29386 return NULL;
29387}
29388
29389
29390SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29391 PyObject *resultobj = 0;
29392 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29393 long arg2 ;
29394 int arg3 = (int) 0 ;
29395 wxListItem *result = 0 ;
29396 void *argp1 = 0 ;
29397 int res1 = 0 ;
29398 long val2 ;
29399 int ecode2 = 0 ;
29400 int val3 ;
29401 int ecode3 = 0 ;
29402 PyObject * obj0 = 0 ;
29403 PyObject * obj1 = 0 ;
29404 PyObject * obj2 = 0 ;
29405 char * kwnames[] = {
29406 (char *) "self",(char *) "itemId",(char *) "col", NULL
29407 };
29408
29409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29411 if (!SWIG_IsOK(res1)) {
29412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29413 }
29414 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29415 ecode2 = SWIG_AsVal_long(obj1, &val2);
29416 if (!SWIG_IsOK(ecode2)) {
29417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29418 }
29419 arg2 = static_cast< long >(val2);
29420 if (obj2) {
29421 ecode3 = SWIG_AsVal_int(obj2, &val3);
29422 if (!SWIG_IsOK(ecode3)) {
29423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29424 }
29425 arg3 = static_cast< int >(val3);
29426 }
29427 {
29428 PyThreadState* __tstate = wxPyBeginAllowThreads();
29429 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29430 wxPyEndAllowThreads(__tstate);
29431 if (PyErr_Occurred()) SWIG_fail;
29432 }
29433 {
3ecece7e 29434 resultobj = wxPyMake_wxObject(result, 0);
0085ce49
RD
29435 }
29436 return resultobj;
29437fail:
29438 return NULL;
29439}
29440
29441
29442SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29443 PyObject *resultobj = 0;
29444 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29445 wxListItem *arg2 = 0 ;
29446 bool result;
29447 void *argp1 = 0 ;
29448 int res1 = 0 ;
29449 void *argp2 = 0 ;
29450 int res2 = 0 ;
29451 PyObject * obj0 = 0 ;
29452 PyObject * obj1 = 0 ;
29453 char * kwnames[] = {
29454 (char *) "self",(char *) "info", NULL
29455 };
29456
29457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29459 if (!SWIG_IsOK(res1)) {
29460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29461 }
29462 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29463 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29464 if (!SWIG_IsOK(res2)) {
29465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29466 }
29467 if (!argp2) {
29468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29469 }
29470 arg2 = reinterpret_cast< wxListItem * >(argp2);
29471 {
29472 PyThreadState* __tstate = wxPyBeginAllowThreads();
29473 result = (bool)(arg1)->SetItem(*arg2);
29474 wxPyEndAllowThreads(__tstate);
29475 if (PyErr_Occurred()) SWIG_fail;
29476 }
29477 {
29478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29479 }
29480 return resultobj;
29481fail:
29482 return NULL;
29483}
29484
29485
29486SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29487 PyObject *resultobj = 0;
29488 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29489 long arg2 ;
29490 int arg3 ;
29491 wxString *arg4 = 0 ;
29492 int arg5 = (int) -1 ;
29493 long result;
29494 void *argp1 = 0 ;
29495 int res1 = 0 ;
29496 long val2 ;
29497 int ecode2 = 0 ;
29498 int val3 ;
29499 int ecode3 = 0 ;
29500 bool temp4 = false ;
29501 int val5 ;
29502 int ecode5 = 0 ;
29503 PyObject * obj0 = 0 ;
29504 PyObject * obj1 = 0 ;
29505 PyObject * obj2 = 0 ;
29506 PyObject * obj3 = 0 ;
29507 PyObject * obj4 = 0 ;
29508 char * kwnames[] = {
29509 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29510 };
29511
29512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29514 if (!SWIG_IsOK(res1)) {
29515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29516 }
29517 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29518 ecode2 = SWIG_AsVal_long(obj1, &val2);
29519 if (!SWIG_IsOK(ecode2)) {
29520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29521 }
29522 arg2 = static_cast< long >(val2);
29523 ecode3 = SWIG_AsVal_int(obj2, &val3);
29524 if (!SWIG_IsOK(ecode3)) {
29525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29526 }
29527 arg3 = static_cast< int >(val3);
29528 {
29529 arg4 = wxString_in_helper(obj3);
29530 if (arg4 == NULL) SWIG_fail;
29531 temp4 = true;
29532 }
29533 if (obj4) {
29534 ecode5 = SWIG_AsVal_int(obj4, &val5);
29535 if (!SWIG_IsOK(ecode5)) {
29536 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29537 }
29538 arg5 = static_cast< int >(val5);
29539 }
29540 {
29541 PyThreadState* __tstate = wxPyBeginAllowThreads();
29542 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29543 wxPyEndAllowThreads(__tstate);
29544 if (PyErr_Occurred()) SWIG_fail;
29545 }
29546 resultobj = SWIG_From_long(static_cast< long >(result));
29547 {
29548 if (temp4)
29549 delete arg4;
29550 }
29551 return resultobj;
29552fail:
29553 {
29554 if (temp4)
29555 delete arg4;
29556 }
29557 return NULL;
29558}
29559
29560
29561SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29562 PyObject *resultobj = 0;
29563 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29564 long arg2 ;
29565 long arg3 ;
29566 int result;
29567 void *argp1 = 0 ;
29568 int res1 = 0 ;
29569 long val2 ;
29570 int ecode2 = 0 ;
29571 long val3 ;
29572 int ecode3 = 0 ;
29573 PyObject * obj0 = 0 ;
29574 PyObject * obj1 = 0 ;
29575 PyObject * obj2 = 0 ;
29576 char * kwnames[] = {
29577 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29578 };
29579
29580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29582 if (!SWIG_IsOK(res1)) {
29583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29584 }
29585 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29586 ecode2 = SWIG_AsVal_long(obj1, &val2);
29587 if (!SWIG_IsOK(ecode2)) {
29588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29589 }
29590 arg2 = static_cast< long >(val2);
29591 ecode3 = SWIG_AsVal_long(obj2, &val3);
29592 if (!SWIG_IsOK(ecode3)) {
29593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29594 }
29595 arg3 = static_cast< long >(val3);
29596 {
29597 PyThreadState* __tstate = wxPyBeginAllowThreads();
29598 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29599 wxPyEndAllowThreads(__tstate);
29600 if (PyErr_Occurred()) SWIG_fail;
29601 }
29602 resultobj = SWIG_From_int(static_cast< int >(result));
29603 return resultobj;
29604fail:
29605 return NULL;
29606}
29607
29608
29609SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29610 PyObject *resultobj = 0;
29611 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29612 long arg2 ;
29613 long arg3 ;
29614 long arg4 ;
29615 bool result;
29616 void *argp1 = 0 ;
29617 int res1 = 0 ;
29618 long val2 ;
29619 int ecode2 = 0 ;
29620 long val3 ;
29621 int ecode3 = 0 ;
29622 long val4 ;
29623 int ecode4 = 0 ;
29624 PyObject * obj0 = 0 ;
29625 PyObject * obj1 = 0 ;
29626 PyObject * obj2 = 0 ;
29627 PyObject * obj3 = 0 ;
29628 char * kwnames[] = {
29629 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29630 };
29631
29632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29634 if (!SWIG_IsOK(res1)) {
29635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29636 }
29637 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29638 ecode2 = SWIG_AsVal_long(obj1, &val2);
29639 if (!SWIG_IsOK(ecode2)) {
29640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29641 }
29642 arg2 = static_cast< long >(val2);
29643 ecode3 = SWIG_AsVal_long(obj2, &val3);
29644 if (!SWIG_IsOK(ecode3)) {
29645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29646 }
29647 arg3 = static_cast< long >(val3);
29648 ecode4 = SWIG_AsVal_long(obj3, &val4);
29649 if (!SWIG_IsOK(ecode4)) {
29650 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29651 }
29652 arg4 = static_cast< long >(val4);
29653 {
29654 PyThreadState* __tstate = wxPyBeginAllowThreads();
29655 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29656 wxPyEndAllowThreads(__tstate);
29657 if (PyErr_Occurred()) SWIG_fail;
29658 }
29659 {
29660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29661 }
29662 return resultobj;
29663fail:
29664 return NULL;
29665}
29666
29667
29668SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29669 PyObject *resultobj = 0;
29670 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29671 long arg2 ;
29672 int arg3 ;
29673 int arg4 = (int) -1 ;
29674 bool result;
29675 void *argp1 = 0 ;
29676 int res1 = 0 ;
29677 long val2 ;
29678 int ecode2 = 0 ;
29679 int val3 ;
29680 int ecode3 = 0 ;
29681 int val4 ;
29682 int ecode4 = 0 ;
29683 PyObject * obj0 = 0 ;
29684 PyObject * obj1 = 0 ;
29685 PyObject * obj2 = 0 ;
29686 PyObject * obj3 = 0 ;
29687 char * kwnames[] = {
29688 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29689 };
29690
29691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29693 if (!SWIG_IsOK(res1)) {
29694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29695 }
29696 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29697 ecode2 = SWIG_AsVal_long(obj1, &val2);
29698 if (!SWIG_IsOK(ecode2)) {
29699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29700 }
29701 arg2 = static_cast< long >(val2);
29702 ecode3 = SWIG_AsVal_int(obj2, &val3);
29703 if (!SWIG_IsOK(ecode3)) {
29704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29705 }
29706 arg3 = static_cast< int >(val3);
29707 if (obj3) {
29708 ecode4 = SWIG_AsVal_int(obj3, &val4);
29709 if (!SWIG_IsOK(ecode4)) {
29710 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29711 }
29712 arg4 = static_cast< int >(val4);
29713 }
29714 {
29715 PyThreadState* __tstate = wxPyBeginAllowThreads();
29716 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29717 wxPyEndAllowThreads(__tstate);
29718 if (PyErr_Occurred()) SWIG_fail;
29719 }
29720 {
29721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29722 }
29723 return resultobj;
29724fail:
29725 return NULL;
29726}
29727
29728
29729SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29730 PyObject *resultobj = 0;
29731 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29732 long arg2 ;
29733 long arg3 ;
29734 int arg4 ;
29735 bool result;
29736 void *argp1 = 0 ;
29737 int res1 = 0 ;
29738 long val2 ;
29739 int ecode2 = 0 ;
29740 long val3 ;
29741 int ecode3 = 0 ;
29742 int val4 ;
29743 int ecode4 = 0 ;
29744 PyObject * obj0 = 0 ;
29745 PyObject * obj1 = 0 ;
29746 PyObject * obj2 = 0 ;
29747 PyObject * obj3 = 0 ;
29748 char * kwnames[] = {
29749 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29750 };
29751
29752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29754 if (!SWIG_IsOK(res1)) {
29755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29756 }
29757 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29758 ecode2 = SWIG_AsVal_long(obj1, &val2);
29759 if (!SWIG_IsOK(ecode2)) {
29760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29761 }
29762 arg2 = static_cast< long >(val2);
29763 ecode3 = SWIG_AsVal_long(obj2, &val3);
29764 if (!SWIG_IsOK(ecode3)) {
29765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29766 }
29767 arg3 = static_cast< long >(val3);
29768 ecode4 = SWIG_AsVal_int(obj3, &val4);
29769 if (!SWIG_IsOK(ecode4)) {
29770 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29771 }
29772 arg4 = static_cast< int >(val4);
29773 {
29774 PyThreadState* __tstate = wxPyBeginAllowThreads();
29775 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29776 wxPyEndAllowThreads(__tstate);
29777 if (PyErr_Occurred()) SWIG_fail;
29778 }
29779 {
29780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29781 }
29782 return resultobj;
29783fail:
29784 return NULL;
29785}
29786
29787
29788SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29789 PyObject *resultobj = 0;
29790 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29791 long arg2 ;
29792 wxString result;
29793 void *argp1 = 0 ;
29794 int res1 = 0 ;
29795 long val2 ;
29796 int ecode2 = 0 ;
29797 PyObject * obj0 = 0 ;
29798 PyObject * obj1 = 0 ;
29799 char * kwnames[] = {
29800 (char *) "self",(char *) "item", NULL
29801 };
29802
29803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29805 if (!SWIG_IsOK(res1)) {
29806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29807 }
29808 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29809 ecode2 = SWIG_AsVal_long(obj1, &val2);
29810 if (!SWIG_IsOK(ecode2)) {
29811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29812 }
29813 arg2 = static_cast< long >(val2);
29814 {
29815 PyThreadState* __tstate = wxPyBeginAllowThreads();
29816 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29817 wxPyEndAllowThreads(__tstate);
29818 if (PyErr_Occurred()) SWIG_fail;
29819 }
29820 {
29821#if wxUSE_UNICODE
29822 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29823#else
29824 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29825#endif
29826 }
29827 return resultobj;
29828fail:
29829 return NULL;
29830}
29831
29832
29833SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29834 PyObject *resultobj = 0;
29835 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29836 long arg2 ;
29837 wxString *arg3 = 0 ;
29838 void *argp1 = 0 ;
29839 int res1 = 0 ;
29840 long val2 ;
29841 int ecode2 = 0 ;
29842 bool temp3 = false ;
29843 PyObject * obj0 = 0 ;
29844 PyObject * obj1 = 0 ;
29845 PyObject * obj2 = 0 ;
29846 char * kwnames[] = {
29847 (char *) "self",(char *) "item",(char *) "str", NULL
29848 };
29849
29850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29852 if (!SWIG_IsOK(res1)) {
29853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29854 }
29855 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29856 ecode2 = SWIG_AsVal_long(obj1, &val2);
29857 if (!SWIG_IsOK(ecode2)) {
29858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29859 }
29860 arg2 = static_cast< long >(val2);
29861 {
29862 arg3 = wxString_in_helper(obj2);
29863 if (arg3 == NULL) SWIG_fail;
29864 temp3 = true;
29865 }
29866 {
29867 PyThreadState* __tstate = wxPyBeginAllowThreads();
29868 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29869 wxPyEndAllowThreads(__tstate);
29870 if (PyErr_Occurred()) SWIG_fail;
29871 }
29872 resultobj = SWIG_Py_Void();
29873 {
29874 if (temp3)
29875 delete arg3;
29876 }
29877 return resultobj;
29878fail:
29879 {
29880 if (temp3)
29881 delete arg3;
29882 }
29883 return NULL;
29884}
29885
29886
29887SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29888 PyObject *resultobj = 0;
29889 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29890 long arg2 ;
29891 long result;
29892 void *argp1 = 0 ;
29893 int res1 = 0 ;
29894 long val2 ;
29895 int ecode2 = 0 ;
29896 PyObject * obj0 = 0 ;
29897 PyObject * obj1 = 0 ;
29898 char * kwnames[] = {
29899 (char *) "self",(char *) "item", NULL
29900 };
29901
29902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29904 if (!SWIG_IsOK(res1)) {
29905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29906 }
29907 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29908 ecode2 = SWIG_AsVal_long(obj1, &val2);
29909 if (!SWIG_IsOK(ecode2)) {
29910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29911 }
29912 arg2 = static_cast< long >(val2);
29913 {
29914 PyThreadState* __tstate = wxPyBeginAllowThreads();
29915 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29916 wxPyEndAllowThreads(__tstate);
29917 if (PyErr_Occurred()) SWIG_fail;
29918 }
29919 resultobj = SWIG_From_long(static_cast< long >(result));
29920 return resultobj;
29921fail:
29922 return NULL;
29923}
29924
29925
29926SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29927 PyObject *resultobj = 0;
29928 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29929 long arg2 ;
29930 long arg3 ;
29931 bool result;
29932 void *argp1 = 0 ;
29933 int res1 = 0 ;
29934 long val2 ;
29935 int ecode2 = 0 ;
29936 long val3 ;
29937 int ecode3 = 0 ;
29938 PyObject * obj0 = 0 ;
29939 PyObject * obj1 = 0 ;
29940 PyObject * obj2 = 0 ;
29941 char * kwnames[] = {
29942 (char *) "self",(char *) "item",(char *) "data", NULL
29943 };
29944
29945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29947 if (!SWIG_IsOK(res1)) {
29948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29949 }
29950 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29951 ecode2 = SWIG_AsVal_long(obj1, &val2);
29952 if (!SWIG_IsOK(ecode2)) {
29953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29954 }
29955 arg2 = static_cast< long >(val2);
29956 ecode3 = SWIG_AsVal_long(obj2, &val3);
29957 if (!SWIG_IsOK(ecode3)) {
29958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29959 }
29960 arg3 = static_cast< long >(val3);
29961 {
29962 PyThreadState* __tstate = wxPyBeginAllowThreads();
29963 result = (bool)(arg1)->SetItemData(arg2,arg3);
29964 wxPyEndAllowThreads(__tstate);
29965 if (PyErr_Occurred()) SWIG_fail;
29966 }
29967 {
29968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29969 }
29970 return resultobj;
29971fail:
29972 return NULL;
29973}
29974
29975
29976SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29977 PyObject *resultobj = 0;
29978 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29979 long arg2 ;
29980 wxPoint result;
29981 void *argp1 = 0 ;
29982 int res1 = 0 ;
29983 long val2 ;
29984 int ecode2 = 0 ;
29985 PyObject * obj0 = 0 ;
29986 PyObject * obj1 = 0 ;
29987 char * kwnames[] = {
29988 (char *) "self",(char *) "item", NULL
29989 };
29990
29991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29993 if (!SWIG_IsOK(res1)) {
29994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29995 }
29996 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29997 ecode2 = SWIG_AsVal_long(obj1, &val2);
29998 if (!SWIG_IsOK(ecode2)) {
29999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
30000 }
30001 arg2 = static_cast< long >(val2);
30002 {
30003 PyThreadState* __tstate = wxPyBeginAllowThreads();
30004 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
30005 wxPyEndAllowThreads(__tstate);
30006 if (PyErr_Occurred()) SWIG_fail;
30007 }
30008 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
30009 return resultobj;
30010fail:
30011 return NULL;
30012}
30013
30014
30015SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30016 PyObject *resultobj = 0;
30017 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30018 long arg2 ;
30019 int arg3 = (int) wxLIST_RECT_BOUNDS ;
30020 wxRect result;
30021 void *argp1 = 0 ;
30022 int res1 = 0 ;
30023 long val2 ;
30024 int ecode2 = 0 ;
30025 int val3 ;
30026 int ecode3 = 0 ;
30027 PyObject * obj0 = 0 ;
30028 PyObject * obj1 = 0 ;
30029 PyObject * obj2 = 0 ;
30030 char * kwnames[] = {
30031 (char *) "self",(char *) "item",(char *) "code", NULL
30032 };
30033
30034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30036 if (!SWIG_IsOK(res1)) {
30037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30038 }
30039 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30040 ecode2 = SWIG_AsVal_long(obj1, &val2);
30041 if (!SWIG_IsOK(ecode2)) {
30042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30043 }
30044 arg2 = static_cast< long >(val2);
30045 if (obj2) {
30046 ecode3 = SWIG_AsVal_int(obj2, &val3);
30047 if (!SWIG_IsOK(ecode3)) {
30048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30049 }
30050 arg3 = static_cast< int >(val3);
30051 }
30052 {
30053 PyThreadState* __tstate = wxPyBeginAllowThreads();
30054 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30055 wxPyEndAllowThreads(__tstate);
30056 if (PyErr_Occurred()) SWIG_fail;
30057 }
30058 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30059 return resultobj;
30060fail:
30061 return NULL;
30062}
30063
30064
30065SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30066 PyObject *resultobj = 0;
30067 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30068 long arg2 ;
30069 wxPoint *arg3 = 0 ;
30070 bool result;
30071 void *argp1 = 0 ;
30072 int res1 = 0 ;
30073 long val2 ;
30074 int ecode2 = 0 ;
30075 wxPoint temp3 ;
30076 PyObject * obj0 = 0 ;
30077 PyObject * obj1 = 0 ;
30078 PyObject * obj2 = 0 ;
30079 char * kwnames[] = {
30080 (char *) "self",(char *) "item",(char *) "pos", NULL
30081 };
30082
30083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30085 if (!SWIG_IsOK(res1)) {
30086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30087 }
30088 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30089 ecode2 = SWIG_AsVal_long(obj1, &val2);
30090 if (!SWIG_IsOK(ecode2)) {
30091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30092 }
30093 arg2 = static_cast< long >(val2);
30094 {
30095 arg3 = &temp3;
30096 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30097 }
30098 {
30099 PyThreadState* __tstate = wxPyBeginAllowThreads();
30100 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30101 wxPyEndAllowThreads(__tstate);
30102 if (PyErr_Occurred()) SWIG_fail;
30103 }
30104 {
30105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30106 }
30107 return resultobj;
30108fail:
30109 return NULL;
d14a1e28
RD
30110}
30111
30112
0085ce49
RD
30113SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30114 PyObject *resultobj = 0;
30115 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30116 int result;
30117 void *argp1 = 0 ;
30118 int res1 = 0 ;
30119 PyObject *swig_obj[1] ;
30120
30121 if (!args) SWIG_fail;
30122 swig_obj[0] = args;
30123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30124 if (!SWIG_IsOK(res1)) {
30125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30126 }
30127 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30128 {
30129 PyThreadState* __tstate = wxPyBeginAllowThreads();
30130 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30131 wxPyEndAllowThreads(__tstate);
30132 if (PyErr_Occurred()) SWIG_fail;
30133 }
30134 resultobj = SWIG_From_int(static_cast< int >(result));
30135 return resultobj;
30136fail:
30137 return NULL;
d14a1e28
RD
30138}
30139
30140
0085ce49
RD
30141SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30142 PyObject *resultobj = 0;
30143 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30144 int result;
30145 void *argp1 = 0 ;
30146 int res1 = 0 ;
30147 PyObject *swig_obj[1] ;
30148
30149 if (!args) SWIG_fail;
30150 swig_obj[0] = args;
30151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30152 if (!SWIG_IsOK(res1)) {
30153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30154 }
30155 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30156 {
30157 PyThreadState* __tstate = wxPyBeginAllowThreads();
30158 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30159 wxPyEndAllowThreads(__tstate);
30160 if (PyErr_Occurred()) SWIG_fail;
30161 }
30162 resultobj = SWIG_From_int(static_cast< int >(result));
30163 return resultobj;
30164fail:
30165 return NULL;
d14a1e28
RD
30166}
30167
30168
0085ce49
RD
30169SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30170 PyObject *resultobj = 0;
30171 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30172 wxSize result;
30173 void *argp1 = 0 ;
30174 int res1 = 0 ;
30175 PyObject *swig_obj[1] ;
30176
30177 if (!args) SWIG_fail;
30178 swig_obj[0] = args;
30179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30180 if (!SWIG_IsOK(res1)) {
30181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30182 }
30183 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30184 {
30185 PyThreadState* __tstate = wxPyBeginAllowThreads();
30186 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30187 wxPyEndAllowThreads(__tstate);
30188 if (PyErr_Occurred()) SWIG_fail;
30189 }
30190 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30191 return resultobj;
30192fail:
30193 return NULL;
30194}
30195
30196
30197SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30198 PyObject *resultobj = 0;
30199 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30200 int arg2 ;
30201 bool arg3 = (bool) false ;
30202 void *argp1 = 0 ;
30203 int res1 = 0 ;
30204 int val2 ;
30205 int ecode2 = 0 ;
30206 bool val3 ;
30207 int ecode3 = 0 ;
30208 PyObject * obj0 = 0 ;
30209 PyObject * obj1 = 0 ;
30210 PyObject * obj2 = 0 ;
30211 char * kwnames[] = {
30212 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30213 };
30214
30215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30217 if (!SWIG_IsOK(res1)) {
30218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30219 }
30220 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30221 ecode2 = SWIG_AsVal_int(obj1, &val2);
30222 if (!SWIG_IsOK(ecode2)) {
30223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30224 }
30225 arg2 = static_cast< int >(val2);
30226 if (obj2) {
30227 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30228 if (!SWIG_IsOK(ecode3)) {
30229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30230 }
30231 arg3 = static_cast< bool >(val3);
30232 }
30233 {
30234 PyThreadState* __tstate = wxPyBeginAllowThreads();
30235 (arg1)->SetItemSpacing(arg2,arg3);
30236 wxPyEndAllowThreads(__tstate);
30237 if (PyErr_Occurred()) SWIG_fail;
30238 }
30239 resultobj = SWIG_Py_Void();
30240 return resultobj;
30241fail:
30242 return NULL;
22bfe96c
RD
30243}
30244
30245
0085ce49
RD
30246SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30247 PyObject *resultobj = 0;
30248 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30249 int result;
30250 void *argp1 = 0 ;
30251 int res1 = 0 ;
30252 PyObject *swig_obj[1] ;
30253
30254 if (!args) SWIG_fail;
30255 swig_obj[0] = args;
30256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30257 if (!SWIG_IsOK(res1)) {
30258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30259 }
30260 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30261 {
30262 PyThreadState* __tstate = wxPyBeginAllowThreads();
30263 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30264 wxPyEndAllowThreads(__tstate);
30265 if (PyErr_Occurred()) SWIG_fail;
30266 }
30267 resultobj = SWIG_From_int(static_cast< int >(result));
30268 return resultobj;
30269fail:
30270 return NULL;
d14a1e28
RD
30271}
30272
30273
0085ce49
RD
30274SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30275 PyObject *resultobj = 0;
30276 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30277 wxColour result;
30278 void *argp1 = 0 ;
30279 int res1 = 0 ;
30280 PyObject *swig_obj[1] ;
30281
30282 if (!args) SWIG_fail;
30283 swig_obj[0] = args;
30284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30285 if (!SWIG_IsOK(res1)) {
30286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30287 }
30288 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30289 {
30290 PyThreadState* __tstate = wxPyBeginAllowThreads();
30291 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30292 wxPyEndAllowThreads(__tstate);
30293 if (PyErr_Occurred()) SWIG_fail;
30294 }
30295 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30296 return resultobj;
30297fail:
30298 return NULL;
30299}
30300
30301
30302SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30303 PyObject *resultobj = 0;
30304 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30305 wxColour *arg2 = 0 ;
30306 void *argp1 = 0 ;
30307 int res1 = 0 ;
30308 wxColour temp2 ;
30309 PyObject * obj0 = 0 ;
30310 PyObject * obj1 = 0 ;
30311 char * kwnames[] = {
30312 (char *) "self",(char *) "col", NULL
30313 };
30314
30315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30317 if (!SWIG_IsOK(res1)) {
30318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30319 }
30320 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30321 {
30322 arg2 = &temp2;
30323 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30324 }
30325 {
30326 PyThreadState* __tstate = wxPyBeginAllowThreads();
30327 (arg1)->SetTextColour((wxColour const &)*arg2);
30328 wxPyEndAllowThreads(__tstate);
30329 if (PyErr_Occurred()) SWIG_fail;
30330 }
30331 resultobj = SWIG_Py_Void();
30332 return resultobj;
30333fail:
30334 return NULL;
d14a1e28
RD
30335}
30336
30337
0085ce49
RD
30338SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30339 PyObject *resultobj = 0;
30340 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30341 long result;
30342 void *argp1 = 0 ;
30343 int res1 = 0 ;
30344 PyObject *swig_obj[1] ;
30345
30346 if (!args) SWIG_fail;
30347 swig_obj[0] = args;
30348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30349 if (!SWIG_IsOK(res1)) {
30350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30351 }
30352 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30353 {
30354 PyThreadState* __tstate = wxPyBeginAllowThreads();
30355 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30356 wxPyEndAllowThreads(__tstate);
30357 if (PyErr_Occurred()) SWIG_fail;
30358 }
30359 resultobj = SWIG_From_long(static_cast< long >(result));
30360 return resultobj;
30361fail:
30362 return NULL;
30363}
30364
30365
30366SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30367 PyObject *resultobj = 0;
30368 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30369 long arg2 ;
30370 bool arg3 = (bool) true ;
30371 void *argp1 = 0 ;
30372 int res1 = 0 ;
30373 long val2 ;
30374 int ecode2 = 0 ;
30375 bool val3 ;
30376 int ecode3 = 0 ;
30377 PyObject * obj0 = 0 ;
30378 PyObject * obj1 = 0 ;
30379 PyObject * obj2 = 0 ;
30380 char * kwnames[] = {
30381 (char *) "self",(char *) "style",(char *) "add", NULL
30382 };
30383
30384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30386 if (!SWIG_IsOK(res1)) {
30387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30388 }
30389 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30390 ecode2 = SWIG_AsVal_long(obj1, &val2);
30391 if (!SWIG_IsOK(ecode2)) {
30392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30393 }
30394 arg2 = static_cast< long >(val2);
30395 if (obj2) {
30396 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30397 if (!SWIG_IsOK(ecode3)) {
30398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30399 }
30400 arg3 = static_cast< bool >(val3);
30401 }
30402 {
30403 PyThreadState* __tstate = wxPyBeginAllowThreads();
30404 (arg1)->SetSingleStyle(arg2,arg3);
30405 wxPyEndAllowThreads(__tstate);
30406 if (PyErr_Occurred()) SWIG_fail;
30407 }
30408 resultobj = SWIG_Py_Void();
30409 return resultobj;
30410fail:
30411 return NULL;
30412}
30413
30414
30415SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30416 PyObject *resultobj = 0;
30417 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30418 long arg2 ;
30419 int arg3 = (int) wxLIST_NEXT_ALL ;
30420 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30421 long result;
30422 void *argp1 = 0 ;
30423 int res1 = 0 ;
30424 long val2 ;
30425 int ecode2 = 0 ;
30426 int val3 ;
30427 int ecode3 = 0 ;
30428 int val4 ;
30429 int ecode4 = 0 ;
30430 PyObject * obj0 = 0 ;
30431 PyObject * obj1 = 0 ;
30432 PyObject * obj2 = 0 ;
30433 PyObject * obj3 = 0 ;
30434 char * kwnames[] = {
30435 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30436 };
30437
30438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30440 if (!SWIG_IsOK(res1)) {
30441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30442 }
30443 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30444 ecode2 = SWIG_AsVal_long(obj1, &val2);
30445 if (!SWIG_IsOK(ecode2)) {
30446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30447 }
30448 arg2 = static_cast< long >(val2);
30449 if (obj2) {
30450 ecode3 = SWIG_AsVal_int(obj2, &val3);
30451 if (!SWIG_IsOK(ecode3)) {
30452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30453 }
30454 arg3 = static_cast< int >(val3);
30455 }
30456 if (obj3) {
30457 ecode4 = SWIG_AsVal_int(obj3, &val4);
30458 if (!SWIG_IsOK(ecode4)) {
30459 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30460 }
30461 arg4 = static_cast< int >(val4);
30462 }
30463 {
30464 PyThreadState* __tstate = wxPyBeginAllowThreads();
30465 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30466 wxPyEndAllowThreads(__tstate);
30467 if (PyErr_Occurred()) SWIG_fail;
30468 }
30469 resultobj = SWIG_From_long(static_cast< long >(result));
30470 return resultobj;
30471fail:
30472 return NULL;
30473}
30474
30475
30476SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30477 PyObject *resultobj = 0;
30478 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30479 int arg2 ;
30480 wxImageList *result = 0 ;
30481 void *argp1 = 0 ;
30482 int res1 = 0 ;
30483 int val2 ;
30484 int ecode2 = 0 ;
30485 PyObject * obj0 = 0 ;
30486 PyObject * obj1 = 0 ;
30487 char * kwnames[] = {
30488 (char *) "self",(char *) "which", NULL
30489 };
30490
30491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30493 if (!SWIG_IsOK(res1)) {
30494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30495 }
30496 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30497 ecode2 = SWIG_AsVal_int(obj1, &val2);
30498 if (!SWIG_IsOK(ecode2)) {
30499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30500 }
30501 arg2 = static_cast< int >(val2);
30502 {
30503 PyThreadState* __tstate = wxPyBeginAllowThreads();
30504 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30505 wxPyEndAllowThreads(__tstate);
30506 if (PyErr_Occurred()) SWIG_fail;
30507 }
3ecece7e
RD
30508 {
30509 resultobj = wxPyMake_wxObject(result, (bool)0);
30510 }
0085ce49
RD
30511 return resultobj;
30512fail:
30513 return NULL;
30514}
30515
30516
30517SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30518 PyObject *resultobj = 0;
30519 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30520 wxImageList *arg2 = (wxImageList *) 0 ;
30521 int arg3 ;
30522 void *argp1 = 0 ;
30523 int res1 = 0 ;
30524 void *argp2 = 0 ;
30525 int res2 = 0 ;
30526 int val3 ;
30527 int ecode3 = 0 ;
30528 PyObject * obj0 = 0 ;
30529 PyObject * obj1 = 0 ;
30530 PyObject * obj2 = 0 ;
30531 char * kwnames[] = {
30532 (char *) "self",(char *) "imageList",(char *) "which", NULL
30533 };
30534
30535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30537 if (!SWIG_IsOK(res1)) {
30538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30539 }
30540 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30541 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30542 if (!SWIG_IsOK(res2)) {
30543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30544 }
30545 arg2 = reinterpret_cast< wxImageList * >(argp2);
30546 ecode3 = SWIG_AsVal_int(obj2, &val3);
30547 if (!SWIG_IsOK(ecode3)) {
30548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30549 }
30550 arg3 = static_cast< int >(val3);
30551 {
30552 PyThreadState* __tstate = wxPyBeginAllowThreads();
30553 (arg1)->SetImageList(arg2,arg3);
30554 wxPyEndAllowThreads(__tstate);
30555 if (PyErr_Occurred()) SWIG_fail;
30556 }
30557 resultobj = SWIG_Py_Void();
30558 return resultobj;
30559fail:
30560 return NULL;
30561}
30562
30563
30564SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30565 PyObject *resultobj = 0;
30566 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30567 wxImageList *arg2 = (wxImageList *) 0 ;
30568 int arg3 ;
30569 void *argp1 = 0 ;
30570 int res1 = 0 ;
30571 int res2 = 0 ;
30572 int val3 ;
30573 int ecode3 = 0 ;
30574 PyObject * obj0 = 0 ;
30575 PyObject * obj1 = 0 ;
30576 PyObject * obj2 = 0 ;
30577 char * kwnames[] = {
30578 (char *) "self",(char *) "imageList",(char *) "which", NULL
30579 };
30580
30581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30583 if (!SWIG_IsOK(res1)) {
30584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30585 }
30586 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30587 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30588 if (!SWIG_IsOK(res2)) {
30589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30590 }
30591 ecode3 = SWIG_AsVal_int(obj2, &val3);
30592 if (!SWIG_IsOK(ecode3)) {
30593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30594 }
30595 arg3 = static_cast< int >(val3);
30596 {
30597 PyThreadState* __tstate = wxPyBeginAllowThreads();
30598 (arg1)->AssignImageList(arg2,arg3);
30599 wxPyEndAllowThreads(__tstate);
30600 if (PyErr_Occurred()) SWIG_fail;
30601 }
30602 resultobj = SWIG_Py_Void();
30603 return resultobj;
30604fail:
30605 return NULL;
d14a1e28
RD
30606}
30607
30608
0085ce49
RD
30609SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30610 PyObject *resultobj = 0;
30611 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30612 bool result;
30613 void *argp1 = 0 ;
30614 int res1 = 0 ;
30615 PyObject *swig_obj[1] ;
30616
30617 if (!args) SWIG_fail;
30618 swig_obj[0] = args;
30619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30620 if (!SWIG_IsOK(res1)) {
30621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30622 }
30623 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30624 {
30625 PyThreadState* __tstate = wxPyBeginAllowThreads();
30626 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30627 wxPyEndAllowThreads(__tstate);
30628 if (PyErr_Occurred()) SWIG_fail;
30629 }
30630 {
30631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30632 }
30633 return resultobj;
30634fail:
30635 return NULL;
d14a1e28
RD
30636}
30637
30638
0085ce49
RD
30639SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30640 PyObject *resultobj = 0;
30641 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30642 bool result;
30643 void *argp1 = 0 ;
30644 int res1 = 0 ;
30645 PyObject *swig_obj[1] ;
30646
30647 if (!args) SWIG_fail;
30648 swig_obj[0] = args;
30649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30650 if (!SWIG_IsOK(res1)) {
30651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30652 }
30653 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30654 {
30655 PyThreadState* __tstate = wxPyBeginAllowThreads();
30656 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30657 wxPyEndAllowThreads(__tstate);
30658 if (PyErr_Occurred()) SWIG_fail;
30659 }
30660 {
30661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30662 }
30663 return resultobj;
30664fail:
30665 return NULL;
30666}
30667
30668
30669SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30670 PyObject *resultobj = 0;
30671 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30672 long arg2 ;
30673 void *argp1 = 0 ;
30674 int res1 = 0 ;
30675 long val2 ;
30676 int ecode2 = 0 ;
30677 PyObject * obj0 = 0 ;
30678 PyObject * obj1 = 0 ;
30679 char * kwnames[] = {
30680 (char *) "self",(char *) "item", NULL
30681 };
30682
30683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30685 if (!SWIG_IsOK(res1)) {
30686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30687 }
30688 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30689 ecode2 = SWIG_AsVal_long(obj1, &val2);
30690 if (!SWIG_IsOK(ecode2)) {
30691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30692 }
30693 arg2 = static_cast< long >(val2);
30694 {
30695 PyThreadState* __tstate = wxPyBeginAllowThreads();
30696 (arg1)->RefreshItem(arg2);
30697 wxPyEndAllowThreads(__tstate);
30698 if (PyErr_Occurred()) SWIG_fail;
30699 }
30700 resultobj = SWIG_Py_Void();
30701 return resultobj;
30702fail:
30703 return NULL;
30704}
30705
30706
30707SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30708 PyObject *resultobj = 0;
30709 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30710 long arg2 ;
30711 long arg3 ;
30712 void *argp1 = 0 ;
30713 int res1 = 0 ;
30714 long val2 ;
30715 int ecode2 = 0 ;
30716 long val3 ;
30717 int ecode3 = 0 ;
30718 PyObject * obj0 = 0 ;
30719 PyObject * obj1 = 0 ;
30720 PyObject * obj2 = 0 ;
30721 char * kwnames[] = {
30722 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30723 };
30724
30725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30727 if (!SWIG_IsOK(res1)) {
30728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30729 }
30730 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30731 ecode2 = SWIG_AsVal_long(obj1, &val2);
30732 if (!SWIG_IsOK(ecode2)) {
30733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30734 }
30735 arg2 = static_cast< long >(val2);
30736 ecode3 = SWIG_AsVal_long(obj2, &val3);
30737 if (!SWIG_IsOK(ecode3)) {
30738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30739 }
30740 arg3 = static_cast< long >(val3);
30741 {
30742 PyThreadState* __tstate = wxPyBeginAllowThreads();
30743 (arg1)->RefreshItems(arg2,arg3);
30744 wxPyEndAllowThreads(__tstate);
30745 if (PyErr_Occurred()) SWIG_fail;
30746 }
30747 resultobj = SWIG_Py_Void();
30748 return resultobj;
30749fail:
30750 return NULL;
30751}
30752
30753
30754SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30755 PyObject *resultobj = 0;
30756 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30757 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30758 bool result;
30759 void *argp1 = 0 ;
30760 int res1 = 0 ;
30761 int val2 ;
30762 int ecode2 = 0 ;
30763 PyObject * obj0 = 0 ;
30764 PyObject * obj1 = 0 ;
30765 char * kwnames[] = {
30766 (char *) "self",(char *) "flag", NULL
30767 };
30768
30769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30771 if (!SWIG_IsOK(res1)) {
30772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30773 }
30774 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30775 if (obj1) {
30776 ecode2 = SWIG_AsVal_int(obj1, &val2);
30777 if (!SWIG_IsOK(ecode2)) {
30778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30779 }
30780 arg2 = static_cast< int >(val2);
30781 }
30782 {
30783 PyThreadState* __tstate = wxPyBeginAllowThreads();
30784 result = (bool)(arg1)->Arrange(arg2);
30785 wxPyEndAllowThreads(__tstate);
30786 if (PyErr_Occurred()) SWIG_fail;
30787 }
30788 {
30789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30790 }
30791 return resultobj;
30792fail:
30793 return NULL;
30794}
30795
30796
30797SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30798 PyObject *resultobj = 0;
30799 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30800 long arg2 ;
30801 bool result;
30802 void *argp1 = 0 ;
30803 int res1 = 0 ;
30804 long val2 ;
30805 int ecode2 = 0 ;
30806 PyObject * obj0 = 0 ;
30807 PyObject * obj1 = 0 ;
30808 char * kwnames[] = {
30809 (char *) "self",(char *) "item", NULL
30810 };
30811
30812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30814 if (!SWIG_IsOK(res1)) {
30815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30816 }
30817 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30818 ecode2 = SWIG_AsVal_long(obj1, &val2);
30819 if (!SWIG_IsOK(ecode2)) {
30820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30821 }
30822 arg2 = static_cast< long >(val2);
30823 {
30824 PyThreadState* __tstate = wxPyBeginAllowThreads();
30825 result = (bool)(arg1)->DeleteItem(arg2);
30826 wxPyEndAllowThreads(__tstate);
30827 if (PyErr_Occurred()) SWIG_fail;
30828 }
30829 {
30830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30831 }
30832 return resultobj;
30833fail:
30834 return NULL;
7e08d4ef
RD
30835}
30836
30837
0085ce49
RD
30838SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30839 PyObject *resultobj = 0;
30840 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30841 bool result;
30842 void *argp1 = 0 ;
30843 int res1 = 0 ;
30844 PyObject *swig_obj[1] ;
30845
30846 if (!args) SWIG_fail;
30847 swig_obj[0] = args;
30848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30849 if (!SWIG_IsOK(res1)) {
30850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30851 }
30852 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30853 {
30854 PyThreadState* __tstate = wxPyBeginAllowThreads();
30855 result = (bool)(arg1)->DeleteAllItems();
30856 wxPyEndAllowThreads(__tstate);
30857 if (PyErr_Occurred()) SWIG_fail;
30858 }
30859 {
30860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30861 }
30862 return resultobj;
30863fail:
30864 return NULL;
30865}
30866
30867
30868SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30869 PyObject *resultobj = 0;
30870 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30871 int arg2 ;
30872 bool result;
30873 void *argp1 = 0 ;
30874 int res1 = 0 ;
30875 int val2 ;
30876 int ecode2 = 0 ;
30877 PyObject * obj0 = 0 ;
30878 PyObject * obj1 = 0 ;
30879 char * kwnames[] = {
30880 (char *) "self",(char *) "col", NULL
30881 };
30882
30883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30885 if (!SWIG_IsOK(res1)) {
30886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30887 }
30888 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30889 ecode2 = SWIG_AsVal_int(obj1, &val2);
30890 if (!SWIG_IsOK(ecode2)) {
30891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30892 }
30893 arg2 = static_cast< int >(val2);
30894 {
30895 PyThreadState* __tstate = wxPyBeginAllowThreads();
30896 result = (bool)(arg1)->DeleteColumn(arg2);
30897 wxPyEndAllowThreads(__tstate);
30898 if (PyErr_Occurred()) SWIG_fail;
30899 }
30900 {
30901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30902 }
30903 return resultobj;
30904fail:
30905 return NULL;
7e08d4ef
RD
30906}
30907
30908
0085ce49
RD
30909SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30910 PyObject *resultobj = 0;
30911 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30912 bool result;
30913 void *argp1 = 0 ;
30914 int res1 = 0 ;
30915 PyObject *swig_obj[1] ;
30916
30917 if (!args) SWIG_fail;
30918 swig_obj[0] = args;
30919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30920 if (!SWIG_IsOK(res1)) {
30921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30922 }
30923 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30924 {
30925 PyThreadState* __tstate = wxPyBeginAllowThreads();
30926 result = (bool)(arg1)->DeleteAllColumns();
30927 wxPyEndAllowThreads(__tstate);
30928 if (PyErr_Occurred()) SWIG_fail;
30929 }
30930 {
30931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30932 }
30933 return resultobj;
30934fail:
30935 return NULL;
7e08d4ef
RD
30936}
30937
30938
0085ce49
RD
30939SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30940 PyObject *resultobj = 0;
30941 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30942 void *argp1 = 0 ;
30943 int res1 = 0 ;
30944 PyObject *swig_obj[1] ;
30945
30946 if (!args) SWIG_fail;
30947 swig_obj[0] = args;
30948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30949 if (!SWIG_IsOK(res1)) {
30950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30951 }
30952 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30953 {
30954 PyThreadState* __tstate = wxPyBeginAllowThreads();
30955 (arg1)->ClearAll();
30956 wxPyEndAllowThreads(__tstate);
30957 if (PyErr_Occurred()) SWIG_fail;
30958 }
30959 resultobj = SWIG_Py_Void();
30960 return resultobj;
30961fail:
30962 return NULL;
30963}
30964
30965
30966SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30967 PyObject *resultobj = 0;
30968 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30969 long arg2 ;
30970 void *argp1 = 0 ;
30971 int res1 = 0 ;
30972 long val2 ;
30973 int ecode2 = 0 ;
30974 PyObject * obj0 = 0 ;
30975 PyObject * obj1 = 0 ;
30976 char * kwnames[] = {
30977 (char *) "self",(char *) "item", NULL
30978 };
30979
30980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",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_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30984 }
30985 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30986 ecode2 = SWIG_AsVal_long(obj1, &val2);
30987 if (!SWIG_IsOK(ecode2)) {
30988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30989 }
30990 arg2 = static_cast< long >(val2);
30991 {
30992 PyThreadState* __tstate = wxPyBeginAllowThreads();
30993 (arg1)->EditLabel(arg2);
30994 wxPyEndAllowThreads(__tstate);
30995 if (PyErr_Occurred()) SWIG_fail;
30996 }
30997 resultobj = SWIG_Py_Void();
30998 return resultobj;
30999fail:
31000 return NULL;
31001}
31002
31003
31004SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31005 PyObject *resultobj = 0;
31006 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31007 long arg2 ;
31008 bool result;
31009 void *argp1 = 0 ;
31010 int res1 = 0 ;
31011 long val2 ;
31012 int ecode2 = 0 ;
31013 PyObject * obj0 = 0 ;
31014 PyObject * obj1 = 0 ;
31015 char * kwnames[] = {
31016 (char *) "self",(char *) "item", NULL
31017 };
31018
31019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
31020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31021 if (!SWIG_IsOK(res1)) {
31022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31023 }
31024 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31025 ecode2 = SWIG_AsVal_long(obj1, &val2);
31026 if (!SWIG_IsOK(ecode2)) {
31027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31028 }
31029 arg2 = static_cast< long >(val2);
31030 {
31031 PyThreadState* __tstate = wxPyBeginAllowThreads();
31032 result = (bool)(arg1)->EnsureVisible(arg2);
31033 wxPyEndAllowThreads(__tstate);
31034 if (PyErr_Occurred()) SWIG_fail;
31035 }
31036 {
31037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31038 }
31039 return resultobj;
31040fail:
31041 return NULL;
31042}
31043
31044
31045SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31046 PyObject *resultobj = 0;
31047 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31048 long arg2 ;
31049 wxString *arg3 = 0 ;
31050 bool arg4 = (bool) false ;
31051 long result;
31052 void *argp1 = 0 ;
31053 int res1 = 0 ;
31054 long val2 ;
31055 int ecode2 = 0 ;
31056 bool temp3 = false ;
31057 bool val4 ;
31058 int ecode4 = 0 ;
31059 PyObject * obj0 = 0 ;
31060 PyObject * obj1 = 0 ;
31061 PyObject * obj2 = 0 ;
31062 PyObject * obj3 = 0 ;
31063 char * kwnames[] = {
31064 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31065 };
31066
31067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31069 if (!SWIG_IsOK(res1)) {
31070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31071 }
31072 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31073 ecode2 = SWIG_AsVal_long(obj1, &val2);
31074 if (!SWIG_IsOK(ecode2)) {
31075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31076 }
31077 arg2 = static_cast< long >(val2);
31078 {
31079 arg3 = wxString_in_helper(obj2);
31080 if (arg3 == NULL) SWIG_fail;
31081 temp3 = true;
31082 }
31083 if (obj3) {
31084 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31085 if (!SWIG_IsOK(ecode4)) {
31086 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31087 }
31088 arg4 = static_cast< bool >(val4);
31089 }
31090 {
31091 PyThreadState* __tstate = wxPyBeginAllowThreads();
31092 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31093 wxPyEndAllowThreads(__tstate);
31094 if (PyErr_Occurred()) SWIG_fail;
31095 }
31096 resultobj = SWIG_From_long(static_cast< long >(result));
31097 {
31098 if (temp3)
31099 delete arg3;
31100 }
31101 return resultobj;
31102fail:
31103 {
31104 if (temp3)
31105 delete arg3;
31106 }
31107 return NULL;
31108}
31109
31110
31111SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31112 PyObject *resultobj = 0;
31113 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31114 long arg2 ;
31115 long arg3 ;
31116 long result;
31117 void *argp1 = 0 ;
31118 int res1 = 0 ;
31119 long val2 ;
31120 int ecode2 = 0 ;
31121 long val3 ;
31122 int ecode3 = 0 ;
31123 PyObject * obj0 = 0 ;
31124 PyObject * obj1 = 0 ;
31125 PyObject * obj2 = 0 ;
31126 char * kwnames[] = {
31127 (char *) "self",(char *) "start",(char *) "data", NULL
31128 };
31129
31130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) 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_FindItemData" "', 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_FindItemData" "', expected argument " "2"" of type '" "long""'");
31139 }
31140 arg2 = static_cast< long >(val2);
31141 ecode3 = SWIG_AsVal_long(obj2, &val3);
31142 if (!SWIG_IsOK(ecode3)) {
31143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31144 }
31145 arg3 = static_cast< long >(val3);
31146 {
31147 PyThreadState* __tstate = wxPyBeginAllowThreads();
31148 result = (long)(arg1)->FindItem(arg2,arg3);
31149 wxPyEndAllowThreads(__tstate);
31150 if (PyErr_Occurred()) SWIG_fail;
31151 }
31152 resultobj = SWIG_From_long(static_cast< long >(result));
31153 return resultobj;
31154fail:
31155 return NULL;
31156}
31157
31158
31159SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31160 PyObject *resultobj = 0;
31161 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31162 long arg2 ;
31163 wxPoint *arg3 = 0 ;
31164 int arg4 ;
31165 long result;
31166 void *argp1 = 0 ;
31167 int res1 = 0 ;
31168 long val2 ;
31169 int ecode2 = 0 ;
31170 wxPoint temp3 ;
31171 int val4 ;
31172 int ecode4 = 0 ;
31173 PyObject * obj0 = 0 ;
31174 PyObject * obj1 = 0 ;
31175 PyObject * obj2 = 0 ;
31176 PyObject * obj3 = 0 ;
31177 char * kwnames[] = {
31178 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31179 };
31180
31181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31183 if (!SWIG_IsOK(res1)) {
31184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31185 }
31186 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31187 ecode2 = SWIG_AsVal_long(obj1, &val2);
31188 if (!SWIG_IsOK(ecode2)) {
31189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31190 }
31191 arg2 = static_cast< long >(val2);
31192 {
31193 arg3 = &temp3;
31194 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31195 }
31196 ecode4 = SWIG_AsVal_int(obj3, &val4);
31197 if (!SWIG_IsOK(ecode4)) {
31198 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31199 }
31200 arg4 = static_cast< int >(val4);
31201 {
31202 PyThreadState* __tstate = wxPyBeginAllowThreads();
31203 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31204 wxPyEndAllowThreads(__tstate);
31205 if (PyErr_Occurred()) SWIG_fail;
31206 }
31207 resultobj = SWIG_From_long(static_cast< long >(result));
31208 return resultobj;
31209fail:
31210 return NULL;
31211}
31212
31213
31214SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31215 PyObject *resultobj = 0;
31216 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31217 wxPoint *arg2 = 0 ;
31218 int *arg3 = 0 ;
31219 long result;
31220 void *argp1 = 0 ;
31221 int res1 = 0 ;
31222 wxPoint temp2 ;
31223 int temp3 ;
31224 int res3 = SWIG_TMPOBJ ;
31225 PyObject * obj0 = 0 ;
31226 PyObject * obj1 = 0 ;
31227 char * kwnames[] = {
31228 (char *) "self",(char *) "point", NULL
31229 };
31230
31231 arg3 = &temp3;
31232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31234 if (!SWIG_IsOK(res1)) {
31235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31236 }
31237 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31238 {
31239 arg2 = &temp2;
31240 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31241 }
31242 {
31243 PyThreadState* __tstate = wxPyBeginAllowThreads();
31244 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31245 wxPyEndAllowThreads(__tstate);
31246 if (PyErr_Occurred()) SWIG_fail;
31247 }
31248 resultobj = SWIG_From_long(static_cast< long >(result));
31249 if (SWIG_IsTmpObj(res3)) {
31250 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31251 } else {
31252 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31254 }
31255 return resultobj;
31256fail:
31257 return NULL;
31258}
31259
31260
704eda0c
RD
31261SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31262 PyObject *resultobj = 0;
31263 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31264 wxPoint *arg2 = 0 ;
31265 int *arg3 = 0 ;
31266 long *arg4 = (long *) 0 ;
31267 long result;
31268 void *argp1 = 0 ;
31269 int res1 = 0 ;
31270 wxPoint temp2 ;
31271 int temp3 ;
31272 int res3 = SWIG_TMPOBJ ;
31273 long temp4 ;
31274 int res4 = SWIG_TMPOBJ ;
31275 PyObject * obj0 = 0 ;
31276 PyObject * obj1 = 0 ;
31277 char * kwnames[] = {
31278 (char *) "self",(char *) "point", NULL
31279 };
31280
31281 arg3 = &temp3;
31282 arg4 = &temp4;
31283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31285 if (!SWIG_IsOK(res1)) {
31286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31287 }
31288 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31289 {
31290 arg2 = &temp2;
31291 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31292 }
31293 {
31294 PyThreadState* __tstate = wxPyBeginAllowThreads();
31295 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31296 wxPyEndAllowThreads(__tstate);
31297 if (PyErr_Occurred()) SWIG_fail;
31298 }
31299 resultobj = SWIG_From_long(static_cast< long >(result));
31300 if (SWIG_IsTmpObj(res3)) {
31301 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31302 } else {
31303 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31304 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31305 }
31306 if (SWIG_IsTmpObj(res4)) {
31307 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31308 } else {
31309 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31310 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31311 }
31312 return resultobj;
31313fail:
31314 return NULL;
31315}
31316
31317
0085ce49
RD
31318SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31319 PyObject *resultobj = 0;
31320 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31321 wxListItem *arg2 = 0 ;
31322 long result;
31323 void *argp1 = 0 ;
31324 int res1 = 0 ;
31325 void *argp2 = 0 ;
31326 int res2 = 0 ;
31327 PyObject * obj0 = 0 ;
31328 PyObject * obj1 = 0 ;
31329 char * kwnames[] = {
31330 (char *) "self",(char *) "info", NULL
31331 };
31332
31333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31335 if (!SWIG_IsOK(res1)) {
31336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31337 }
31338 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31340 if (!SWIG_IsOK(res2)) {
31341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31342 }
31343 if (!argp2) {
31344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31345 }
31346 arg2 = reinterpret_cast< wxListItem * >(argp2);
31347 {
31348 PyThreadState* __tstate = wxPyBeginAllowThreads();
31349 result = (long)(arg1)->InsertItem(*arg2);
31350 wxPyEndAllowThreads(__tstate);
31351 if (PyErr_Occurred()) SWIG_fail;
31352 }
31353 resultobj = SWIG_From_long(static_cast< long >(result));
31354 return resultobj;
31355fail:
31356 return NULL;
31357}
31358
31359
31360SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31361 PyObject *resultobj = 0;
31362 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31363 long arg2 ;
31364 wxString *arg3 = 0 ;
31365 int arg4 = (int) -1 ;
31366 long result;
31367 void *argp1 = 0 ;
31368 int res1 = 0 ;
31369 long val2 ;
31370 int ecode2 = 0 ;
31371 bool temp3 = false ;
31372 int val4 ;
31373 int ecode4 = 0 ;
31374 PyObject * obj0 = 0 ;
31375 PyObject * obj1 = 0 ;
31376 PyObject * obj2 = 0 ;
31377 PyObject * obj3 = 0 ;
31378 char * kwnames[] = {
31379 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31380 };
31381
31382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31384 if (!SWIG_IsOK(res1)) {
31385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31386 }
31387 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31388 ecode2 = SWIG_AsVal_long(obj1, &val2);
31389 if (!SWIG_IsOK(ecode2)) {
31390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31391 }
31392 arg2 = static_cast< long >(val2);
31393 {
31394 arg3 = wxString_in_helper(obj2);
31395 if (arg3 == NULL) SWIG_fail;
31396 temp3 = true;
31397 }
31398 if (obj3) {
31399 ecode4 = SWIG_AsVal_int(obj3, &val4);
31400 if (!SWIG_IsOK(ecode4)) {
31401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31402 }
31403 arg4 = static_cast< int >(val4);
31404 }
31405 {
31406 PyThreadState* __tstate = wxPyBeginAllowThreads();
31407 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31408 wxPyEndAllowThreads(__tstate);
31409 if (PyErr_Occurred()) SWIG_fail;
31410 }
31411 resultobj = SWIG_From_long(static_cast< long >(result));
31412 {
31413 if (temp3)
31414 delete arg3;
31415 }
31416 return resultobj;
31417fail:
31418 {
31419 if (temp3)
31420 delete arg3;
31421 }
31422 return NULL;
31423}
31424
31425
31426SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31427 PyObject *resultobj = 0;
31428 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31429 long arg2 ;
31430 int arg3 ;
31431 long result;
31432 void *argp1 = 0 ;
31433 int res1 = 0 ;
31434 long val2 ;
31435 int ecode2 = 0 ;
31436 int val3 ;
31437 int ecode3 = 0 ;
31438 PyObject * obj0 = 0 ;
31439 PyObject * obj1 = 0 ;
31440 PyObject * obj2 = 0 ;
31441 char * kwnames[] = {
31442 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31443 };
31444
31445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31447 if (!SWIG_IsOK(res1)) {
31448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31449 }
31450 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31451 ecode2 = SWIG_AsVal_long(obj1, &val2);
31452 if (!SWIG_IsOK(ecode2)) {
31453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31454 }
31455 arg2 = static_cast< long >(val2);
31456 ecode3 = SWIG_AsVal_int(obj2, &val3);
31457 if (!SWIG_IsOK(ecode3)) {
31458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31459 }
31460 arg3 = static_cast< int >(val3);
31461 {
31462 PyThreadState* __tstate = wxPyBeginAllowThreads();
31463 result = (long)(arg1)->InsertItem(arg2,arg3);
31464 wxPyEndAllowThreads(__tstate);
31465 if (PyErr_Occurred()) SWIG_fail;
31466 }
31467 resultobj = SWIG_From_long(static_cast< long >(result));
31468 return resultobj;
31469fail:
31470 return NULL;
31471}
31472
31473
31474SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31475 PyObject *resultobj = 0;
31476 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31477 long arg2 ;
31478 wxString *arg3 = 0 ;
31479 int arg4 ;
31480 long result;
31481 void *argp1 = 0 ;
31482 int res1 = 0 ;
31483 long val2 ;
31484 int ecode2 = 0 ;
31485 bool temp3 = false ;
31486 int val4 ;
31487 int ecode4 = 0 ;
31488 PyObject * obj0 = 0 ;
31489 PyObject * obj1 = 0 ;
31490 PyObject * obj2 = 0 ;
31491 PyObject * obj3 = 0 ;
31492 char * kwnames[] = {
31493 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31494 };
31495
31496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31498 if (!SWIG_IsOK(res1)) {
31499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31500 }
31501 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31502 ecode2 = SWIG_AsVal_long(obj1, &val2);
31503 if (!SWIG_IsOK(ecode2)) {
31504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31505 }
31506 arg2 = static_cast< long >(val2);
31507 {
31508 arg3 = wxString_in_helper(obj2);
31509 if (arg3 == NULL) SWIG_fail;
31510 temp3 = true;
31511 }
31512 ecode4 = SWIG_AsVal_int(obj3, &val4);
31513 if (!SWIG_IsOK(ecode4)) {
31514 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31515 }
31516 arg4 = static_cast< int >(val4);
31517 {
31518 PyThreadState* __tstate = wxPyBeginAllowThreads();
31519 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31520 wxPyEndAllowThreads(__tstate);
31521 if (PyErr_Occurred()) SWIG_fail;
31522 }
31523 resultobj = SWIG_From_long(static_cast< long >(result));
31524 {
31525 if (temp3)
31526 delete arg3;
31527 }
31528 return resultobj;
31529fail:
31530 {
31531 if (temp3)
31532 delete arg3;
31533 }
31534 return NULL;
31535}
31536
31537
31538SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31539 PyObject *resultobj = 0;
31540 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31541 long arg2 ;
31542 wxListItem *arg3 = 0 ;
31543 long result;
31544 void *argp1 = 0 ;
31545 int res1 = 0 ;
31546 long val2 ;
31547 int ecode2 = 0 ;
31548 void *argp3 = 0 ;
31549 int res3 = 0 ;
31550 PyObject * obj0 = 0 ;
31551 PyObject * obj1 = 0 ;
31552 PyObject * obj2 = 0 ;
31553 char * kwnames[] = {
31554 (char *) "self",(char *) "col",(char *) "info", NULL
31555 };
31556
31557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31559 if (!SWIG_IsOK(res1)) {
31560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31561 }
31562 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31563 ecode2 = SWIG_AsVal_long(obj1, &val2);
31564 if (!SWIG_IsOK(ecode2)) {
31565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31566 }
31567 arg2 = static_cast< long >(val2);
31568 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31569 if (!SWIG_IsOK(res3)) {
31570 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31571 }
31572 if (!argp3) {
31573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31574 }
31575 arg3 = reinterpret_cast< wxListItem * >(argp3);
31576 {
31577 PyThreadState* __tstate = wxPyBeginAllowThreads();
31578 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31579 wxPyEndAllowThreads(__tstate);
31580 if (PyErr_Occurred()) SWIG_fail;
31581 }
31582 resultobj = SWIG_From_long(static_cast< long >(result));
31583 return resultobj;
31584fail:
31585 return NULL;
31586}
31587
31588
31589SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31590 PyObject *resultobj = 0;
31591 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31592 long arg2 ;
31593 wxString *arg3 = 0 ;
31594 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31595 int arg5 = (int) -1 ;
31596 long result;
31597 void *argp1 = 0 ;
31598 int res1 = 0 ;
31599 long val2 ;
31600 int ecode2 = 0 ;
31601 bool temp3 = false ;
31602 int val4 ;
31603 int ecode4 = 0 ;
31604 int val5 ;
31605 int ecode5 = 0 ;
31606 PyObject * obj0 = 0 ;
31607 PyObject * obj1 = 0 ;
31608 PyObject * obj2 = 0 ;
31609 PyObject * obj3 = 0 ;
31610 PyObject * obj4 = 0 ;
31611 char * kwnames[] = {
31612 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31613 };
31614
31615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31617 if (!SWIG_IsOK(res1)) {
31618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31619 }
31620 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31621 ecode2 = SWIG_AsVal_long(obj1, &val2);
31622 if (!SWIG_IsOK(ecode2)) {
31623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31624 }
31625 arg2 = static_cast< long >(val2);
31626 {
31627 arg3 = wxString_in_helper(obj2);
31628 if (arg3 == NULL) SWIG_fail;
31629 temp3 = true;
31630 }
31631 if (obj3) {
31632 ecode4 = SWIG_AsVal_int(obj3, &val4);
31633 if (!SWIG_IsOK(ecode4)) {
31634 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31635 }
31636 arg4 = static_cast< int >(val4);
31637 }
31638 if (obj4) {
31639 ecode5 = SWIG_AsVal_int(obj4, &val5);
31640 if (!SWIG_IsOK(ecode5)) {
31641 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31642 }
31643 arg5 = static_cast< int >(val5);
31644 }
31645 {
31646 PyThreadState* __tstate = wxPyBeginAllowThreads();
31647 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31648 wxPyEndAllowThreads(__tstate);
31649 if (PyErr_Occurred()) SWIG_fail;
31650 }
31651 resultobj = SWIG_From_long(static_cast< long >(result));
31652 {
31653 if (temp3)
31654 delete arg3;
31655 }
31656 return resultobj;
31657fail:
31658 {
31659 if (temp3)
31660 delete arg3;
31661 }
31662 return NULL;
31663}
31664
31665
31666SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31667 PyObject *resultobj = 0;
31668 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31669 long arg2 ;
31670 void *argp1 = 0 ;
31671 int res1 = 0 ;
31672 long val2 ;
31673 int ecode2 = 0 ;
31674 PyObject * obj0 = 0 ;
31675 PyObject * obj1 = 0 ;
31676 char * kwnames[] = {
31677 (char *) "self",(char *) "count", NULL
31678 };
31679
31680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31682 if (!SWIG_IsOK(res1)) {
31683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31684 }
31685 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31686 ecode2 = SWIG_AsVal_long(obj1, &val2);
31687 if (!SWIG_IsOK(ecode2)) {
31688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31689 }
31690 arg2 = static_cast< long >(val2);
31691 {
31692 PyThreadState* __tstate = wxPyBeginAllowThreads();
31693 (arg1)->SetItemCount(arg2);
31694 wxPyEndAllowThreads(__tstate);
31695 if (PyErr_Occurred()) SWIG_fail;
31696 }
31697 resultobj = SWIG_Py_Void();
31698 return resultobj;
31699fail:
31700 return NULL;
31701}
31702
31703
31704SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31705 PyObject *resultobj = 0;
31706 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31707 int arg2 ;
31708 int arg3 ;
31709 bool result;
31710 void *argp1 = 0 ;
31711 int res1 = 0 ;
31712 int val2 ;
31713 int ecode2 = 0 ;
31714 int val3 ;
31715 int ecode3 = 0 ;
31716 PyObject * obj0 = 0 ;
31717 PyObject * obj1 = 0 ;
31718 PyObject * obj2 = 0 ;
31719 char * kwnames[] = {
31720 (char *) "self",(char *) "dx",(char *) "dy", NULL
31721 };
31722
31723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31725 if (!SWIG_IsOK(res1)) {
31726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31727 }
31728 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31729 ecode2 = SWIG_AsVal_int(obj1, &val2);
31730 if (!SWIG_IsOK(ecode2)) {
31731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31732 }
31733 arg2 = static_cast< int >(val2);
31734 ecode3 = SWIG_AsVal_int(obj2, &val3);
31735 if (!SWIG_IsOK(ecode3)) {
31736 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31737 }
31738 arg3 = static_cast< int >(val3);
31739 {
31740 PyThreadState* __tstate = wxPyBeginAllowThreads();
31741 result = (bool)(arg1)->ScrollList(arg2,arg3);
31742 wxPyEndAllowThreads(__tstate);
31743 if (PyErr_Occurred()) SWIG_fail;
31744 }
31745 {
31746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31747 }
31748 return resultobj;
31749fail:
31750 return NULL;
31751}
31752
31753
31754SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31755 PyObject *resultobj = 0;
31756 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31757 long arg2 ;
31758 wxColour *arg3 = 0 ;
31759 void *argp1 = 0 ;
31760 int res1 = 0 ;
31761 long val2 ;
31762 int ecode2 = 0 ;
31763 wxColour temp3 ;
31764 PyObject * obj0 = 0 ;
31765 PyObject * obj1 = 0 ;
31766 PyObject * obj2 = 0 ;
31767 char * kwnames[] = {
31768 (char *) "self",(char *) "item",(char *) "col", NULL
31769 };
31770
31771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31773 if (!SWIG_IsOK(res1)) {
31774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31775 }
31776 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31777 ecode2 = SWIG_AsVal_long(obj1, &val2);
31778 if (!SWIG_IsOK(ecode2)) {
31779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31780 }
31781 arg2 = static_cast< long >(val2);
31782 {
31783 arg3 = &temp3;
31784 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31785 }
31786 {
31787 PyThreadState* __tstate = wxPyBeginAllowThreads();
31788 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31789 wxPyEndAllowThreads(__tstate);
31790 if (PyErr_Occurred()) SWIG_fail;
31791 }
31792 resultobj = SWIG_Py_Void();
31793 return resultobj;
31794fail:
31795 return NULL;
31796}
31797
31798
31799SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31800 PyObject *resultobj = 0;
31801 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31802 long arg2 ;
31803 wxColour result;
31804 void *argp1 = 0 ;
31805 int res1 = 0 ;
31806 long val2 ;
31807 int ecode2 = 0 ;
31808 PyObject * obj0 = 0 ;
31809 PyObject * obj1 = 0 ;
31810 char * kwnames[] = {
31811 (char *) "self",(char *) "item", NULL
31812 };
31813
31814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31816 if (!SWIG_IsOK(res1)) {
31817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31818 }
31819 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31820 ecode2 = SWIG_AsVal_long(obj1, &val2);
31821 if (!SWIG_IsOK(ecode2)) {
31822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31823 }
31824 arg2 = static_cast< long >(val2);
31825 {
31826 PyThreadState* __tstate = wxPyBeginAllowThreads();
31827 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31828 wxPyEndAllowThreads(__tstate);
31829 if (PyErr_Occurred()) SWIG_fail;
31830 }
31831 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31832 return resultobj;
31833fail:
31834 return NULL;
31835}
31836
31837
31838SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31839 PyObject *resultobj = 0;
31840 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31841 long arg2 ;
31842 wxColour *arg3 = 0 ;
31843 void *argp1 = 0 ;
31844 int res1 = 0 ;
31845 long val2 ;
31846 int ecode2 = 0 ;
31847 wxColour temp3 ;
31848 PyObject * obj0 = 0 ;
31849 PyObject * obj1 = 0 ;
31850 PyObject * obj2 = 0 ;
31851 char * kwnames[] = {
31852 (char *) "self",(char *) "item",(char *) "col", NULL
31853 };
31854
31855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31857 if (!SWIG_IsOK(res1)) {
31858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31859 }
31860 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31861 ecode2 = SWIG_AsVal_long(obj1, &val2);
31862 if (!SWIG_IsOK(ecode2)) {
31863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31864 }
31865 arg2 = static_cast< long >(val2);
31866 {
31867 arg3 = &temp3;
31868 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31869 }
31870 {
31871 PyThreadState* __tstate = wxPyBeginAllowThreads();
31872 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31873 wxPyEndAllowThreads(__tstate);
31874 if (PyErr_Occurred()) SWIG_fail;
31875 }
31876 resultobj = SWIG_Py_Void();
31877 return resultobj;
31878fail:
31879 return NULL;
31880}
31881
31882
31883SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31884 PyObject *resultobj = 0;
31885 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31886 long arg2 ;
31887 wxColour result;
31888 void *argp1 = 0 ;
31889 int res1 = 0 ;
31890 long val2 ;
31891 int ecode2 = 0 ;
31892 PyObject * obj0 = 0 ;
31893 PyObject * obj1 = 0 ;
31894 char * kwnames[] = {
31895 (char *) "self",(char *) "item", NULL
31896 };
31897
31898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31900 if (!SWIG_IsOK(res1)) {
31901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31902 }
31903 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31904 ecode2 = SWIG_AsVal_long(obj1, &val2);
31905 if (!SWIG_IsOK(ecode2)) {
31906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31907 }
31908 arg2 = static_cast< long >(val2);
31909 {
31910 PyThreadState* __tstate = wxPyBeginAllowThreads();
31911 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31912 wxPyEndAllowThreads(__tstate);
31913 if (PyErr_Occurred()) SWIG_fail;
31914 }
31915 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31916 return resultobj;
31917fail:
31918 return NULL;
31919}
31920
31921
31922SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31923 PyObject *resultobj = 0;
31924 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31925 long arg2 ;
31926 wxFont *arg3 = 0 ;
31927 void *argp1 = 0 ;
31928 int res1 = 0 ;
31929 long val2 ;
31930 int ecode2 = 0 ;
31931 void *argp3 = 0 ;
31932 int res3 = 0 ;
31933 PyObject * obj0 = 0 ;
31934 PyObject * obj1 = 0 ;
31935 PyObject * obj2 = 0 ;
31936 char * kwnames[] = {
31937 (char *) "self",(char *) "item",(char *) "f", NULL
31938 };
31939
31940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31942 if (!SWIG_IsOK(res1)) {
31943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31944 }
31945 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31946 ecode2 = SWIG_AsVal_long(obj1, &val2);
31947 if (!SWIG_IsOK(ecode2)) {
31948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31949 }
31950 arg2 = static_cast< long >(val2);
31951 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31952 if (!SWIG_IsOK(res3)) {
31953 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31954 }
31955 if (!argp3) {
31956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31957 }
31958 arg3 = reinterpret_cast< wxFont * >(argp3);
31959 {
31960 PyThreadState* __tstate = wxPyBeginAllowThreads();
31961 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31962 wxPyEndAllowThreads(__tstate);
31963 if (PyErr_Occurred()) SWIG_fail;
31964 }
31965 resultobj = SWIG_Py_Void();
31966 return resultobj;
31967fail:
31968 return NULL;
31969}
31970
31971
31972SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31973 PyObject *resultobj = 0;
31974 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31975 long arg2 ;
31976 wxFont result;
31977 void *argp1 = 0 ;
31978 int res1 = 0 ;
31979 long val2 ;
31980 int ecode2 = 0 ;
31981 PyObject * obj0 = 0 ;
31982 PyObject * obj1 = 0 ;
31983 char * kwnames[] = {
31984 (char *) "self",(char *) "item", NULL
31985 };
31986
31987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31989 if (!SWIG_IsOK(res1)) {
31990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31991 }
31992 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31993 ecode2 = SWIG_AsVal_long(obj1, &val2);
31994 if (!SWIG_IsOK(ecode2)) {
31995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31996 }
31997 arg2 = static_cast< long >(val2);
31998 {
31999 PyThreadState* __tstate = wxPyBeginAllowThreads();
32000 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
32001 wxPyEndAllowThreads(__tstate);
32002 if (PyErr_Occurred()) SWIG_fail;
32003 }
32004 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
32005 return resultobj;
32006fail:
32007 return NULL;
32008}
32009
32010
32011SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32012 PyObject *resultobj = 0;
32013 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32014 PyObject *arg2 = (PyObject *) 0 ;
32015 bool result;
32016 void *argp1 = 0 ;
32017 int res1 = 0 ;
32018 PyObject * obj0 = 0 ;
32019 PyObject * obj1 = 0 ;
32020 char * kwnames[] = {
32021 (char *) "self",(char *) "func", NULL
32022 };
32023
32024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32026 if (!SWIG_IsOK(res1)) {
32027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32028 }
32029 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32030 arg2 = obj1;
32031 {
32032 PyThreadState* __tstate = wxPyBeginAllowThreads();
32033 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32034 wxPyEndAllowThreads(__tstate);
32035 if (PyErr_Occurred()) SWIG_fail;
32036 }
32037 {
32038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32039 }
32040 return resultobj;
32041fail:
32042 return NULL;
7e08d4ef
RD
32043}
32044
32045
0085ce49
RD
32046SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32047 PyObject *resultobj = 0;
32048 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32049 wxWindow *result = 0 ;
32050 void *argp1 = 0 ;
32051 int res1 = 0 ;
32052 PyObject *swig_obj[1] ;
32053
32054 if (!args) SWIG_fail;
32055 swig_obj[0] = args;
32056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32057 if (!SWIG_IsOK(res1)) {
32058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32059 }
32060 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32061 {
32062 PyThreadState* __tstate = wxPyBeginAllowThreads();
32063 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32064 wxPyEndAllowThreads(__tstate);
32065 if (PyErr_Occurred()) SWIG_fail;
32066 }
32067 {
32068 resultobj = wxPyMake_wxObject(result, 0);
32069 }
32070 return resultobj;
32071fail:
32072 return NULL;
32073}
32074
32075
32076SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32077 PyObject *resultobj = 0;
32078 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32079 SwigValueWrapper<wxVisualAttributes > result;
32080 int val1 ;
32081 int ecode1 = 0 ;
32082 PyObject * obj0 = 0 ;
32083 char * kwnames[] = {
32084 (char *) "variant", NULL
32085 };
32086
32087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32088 if (obj0) {
32089 ecode1 = SWIG_AsVal_int(obj0, &val1);
32090 if (!SWIG_IsOK(ecode1)) {
32091 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32092 }
32093 arg1 = static_cast< wxWindowVariant >(val1);
32094 }
32095 {
32096 if (!wxPyCheckForApp()) SWIG_fail;
32097 PyThreadState* __tstate = wxPyBeginAllowThreads();
32098 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32099 wxPyEndAllowThreads(__tstate);
32100 if (PyErr_Occurred()) SWIG_fail;
32101 }
32102 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32103 return resultobj;
32104fail:
32105 return NULL;
32106}
32107
32108
32109SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32110 PyObject *obj;
32111 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32112 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32113 return SWIG_Py_Void();
32114}
32115
32116SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32117 return SWIG_Python_InitShadowInstance(args);
32118}
32119
32120SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32121 PyObject *resultobj = 0;
32122 wxWindow *arg1 = (wxWindow *) 0 ;
32123 int arg2 = (int) -1 ;
32124 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32125 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32126 wxSize const &arg4_defvalue = wxDefaultSize ;
32127 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32128 long arg5 = (long) wxLC_REPORT ;
32129 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32130 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32131 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32132 wxString *arg7 = (wxString *) &arg7_defvalue ;
32133 wxListView *result = 0 ;
32134 void *argp1 = 0 ;
32135 int res1 = 0 ;
32136 int val2 ;
32137 int ecode2 = 0 ;
32138 wxPoint temp3 ;
32139 wxSize temp4 ;
32140 long val5 ;
32141 int ecode5 = 0 ;
32142 void *argp6 = 0 ;
32143 int res6 = 0 ;
32144 bool temp7 = false ;
32145 PyObject * obj0 = 0 ;
32146 PyObject * obj1 = 0 ;
32147 PyObject * obj2 = 0 ;
32148 PyObject * obj3 = 0 ;
32149 PyObject * obj4 = 0 ;
32150 PyObject * obj5 = 0 ;
32151 PyObject * obj6 = 0 ;
32152 char * kwnames[] = {
32153 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32154 };
32155
32156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32158 if (!SWIG_IsOK(res1)) {
32159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32160 }
32161 arg1 = reinterpret_cast< wxWindow * >(argp1);
32162 if (obj1) {
32163 ecode2 = SWIG_AsVal_int(obj1, &val2);
32164 if (!SWIG_IsOK(ecode2)) {
32165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32166 }
32167 arg2 = static_cast< int >(val2);
32168 }
32169 if (obj2) {
7e08d4ef 32170 {
0085ce49
RD
32171 arg3 = &temp3;
32172 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 32173 }
0085ce49
RD
32174 }
32175 if (obj3) {
7e08d4ef 32176 {
0085ce49
RD
32177 arg4 = &temp4;
32178 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 32179 }
0085ce49
RD
32180 }
32181 if (obj4) {
32182 ecode5 = SWIG_AsVal_long(obj4, &val5);
32183 if (!SWIG_IsOK(ecode5)) {
32184 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32185 }
32186 arg5 = static_cast< long >(val5);
32187 }
32188 if (obj5) {
32189 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32190 if (!SWIG_IsOK(res6)) {
32191 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 32192 }
0085ce49
RD
32193 if (!argp6) {
32194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 32195 }
0085ce49
RD
32196 arg6 = reinterpret_cast< wxValidator * >(argp6);
32197 }
32198 if (obj6) {
7e08d4ef 32199 {
0085ce49
RD
32200 arg7 = wxString_in_helper(obj6);
32201 if (arg7 == NULL) SWIG_fail;
32202 temp7 = true;
7e08d4ef 32203 }
0085ce49
RD
32204 }
32205 {
32206 if (!wxPyCheckForApp()) SWIG_fail;
32207 PyThreadState* __tstate = wxPyBeginAllowThreads();
32208 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32209 wxPyEndAllowThreads(__tstate);
32210 if (PyErr_Occurred()) SWIG_fail;
32211 }
32212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32213 {
32214 if (temp7)
32215 delete arg7;
32216 }
32217 return resultobj;
32218fail:
32219 {
32220 if (temp7)
32221 delete arg7;
32222 }
32223 return NULL;
7e08d4ef
RD
32224}
32225
32226
0085ce49
RD
32227SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32228 PyObject *resultobj = 0;
32229 wxListView *result = 0 ;
32230
32231 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32232 {
32233 if (!wxPyCheckForApp()) SWIG_fail;
32234 PyThreadState* __tstate = wxPyBeginAllowThreads();
32235 result = (wxListView *)new wxListView();
32236 wxPyEndAllowThreads(__tstate);
32237 if (PyErr_Occurred()) SWIG_fail;
32238 }
32239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32240 return resultobj;
32241fail:
32242 return NULL;
32243}
32244
32245
32246SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32247 PyObject *resultobj = 0;
32248 wxListView *arg1 = (wxListView *) 0 ;
32249 wxWindow *arg2 = (wxWindow *) 0 ;
32250 int arg3 = (int) -1 ;
32251 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32252 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32253 wxSize const &arg5_defvalue = wxDefaultSize ;
32254 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32255 long arg6 = (long) wxLC_REPORT ;
32256 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32257 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32258 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32259 wxString *arg8 = (wxString *) &arg8_defvalue ;
32260 bool result;
32261 void *argp1 = 0 ;
32262 int res1 = 0 ;
32263 void *argp2 = 0 ;
32264 int res2 = 0 ;
32265 int val3 ;
32266 int ecode3 = 0 ;
32267 wxPoint temp4 ;
32268 wxSize temp5 ;
32269 long val6 ;
32270 int ecode6 = 0 ;
32271 void *argp7 = 0 ;
32272 int res7 = 0 ;
32273 bool temp8 = false ;
32274 PyObject * obj0 = 0 ;
32275 PyObject * obj1 = 0 ;
32276 PyObject * obj2 = 0 ;
32277 PyObject * obj3 = 0 ;
32278 PyObject * obj4 = 0 ;
32279 PyObject * obj5 = 0 ;
32280 PyObject * obj6 = 0 ;
32281 PyObject * obj7 = 0 ;
32282 char * kwnames[] = {
32283 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32284 };
32285
32286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32288 if (!SWIG_IsOK(res1)) {
32289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32290 }
32291 arg1 = reinterpret_cast< wxListView * >(argp1);
32292 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32293 if (!SWIG_IsOK(res2)) {
32294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32295 }
32296 arg2 = reinterpret_cast< wxWindow * >(argp2);
32297 if (obj2) {
32298 ecode3 = SWIG_AsVal_int(obj2, &val3);
32299 if (!SWIG_IsOK(ecode3)) {
32300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32301 }
32302 arg3 = static_cast< int >(val3);
32303 }
32304 if (obj3) {
7e08d4ef 32305 {
0085ce49
RD
32306 arg4 = &temp4;
32307 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 32308 }
0085ce49
RD
32309 }
32310 if (obj4) {
7e08d4ef 32311 {
0085ce49
RD
32312 arg5 = &temp5;
32313 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 32314 }
0085ce49
RD
32315 }
32316 if (obj5) {
32317 ecode6 = SWIG_AsVal_long(obj5, &val6);
32318 if (!SWIG_IsOK(ecode6)) {
32319 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32320 }
32321 arg6 = static_cast< long >(val6);
32322 }
32323 if (obj6) {
32324 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32325 if (!SWIG_IsOK(res7)) {
32326 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 32327 }
0085ce49
RD
32328 if (!argp7) {
32329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 32330 }
0085ce49
RD
32331 arg7 = reinterpret_cast< wxValidator * >(argp7);
32332 }
32333 if (obj7) {
7e08d4ef 32334 {
0085ce49
RD
32335 arg8 = wxString_in_helper(obj7);
32336 if (arg8 == NULL) SWIG_fail;
32337 temp8 = true;
7e08d4ef 32338 }
0085ce49
RD
32339 }
32340 {
32341 PyThreadState* __tstate = wxPyBeginAllowThreads();
32342 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32343 wxPyEndAllowThreads(__tstate);
32344 if (PyErr_Occurred()) SWIG_fail;
32345 }
32346 {
32347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32348 }
32349 {
32350 if (temp8)
32351 delete arg8;
32352 }
32353 return resultobj;
32354fail:
32355 {
32356 if (temp8)
32357 delete arg8;
32358 }
32359 return NULL;
32360}
32361
32362
32363SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32364 PyObject *resultobj = 0;
32365 wxListView *arg1 = (wxListView *) 0 ;
32366 long arg2 ;
32367 bool arg3 = (bool) true ;
32368 void *argp1 = 0 ;
32369 int res1 = 0 ;
32370 long val2 ;
32371 int ecode2 = 0 ;
32372 bool val3 ;
32373 int ecode3 = 0 ;
32374 PyObject * obj0 = 0 ;
32375 PyObject * obj1 = 0 ;
32376 PyObject * obj2 = 0 ;
32377 char * kwnames[] = {
32378 (char *) "self",(char *) "n",(char *) "on", NULL
32379 };
32380
32381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32383 if (!SWIG_IsOK(res1)) {
32384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32385 }
32386 arg1 = reinterpret_cast< wxListView * >(argp1);
32387 ecode2 = SWIG_AsVal_long(obj1, &val2);
32388 if (!SWIG_IsOK(ecode2)) {
32389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32390 }
32391 arg2 = static_cast< long >(val2);
32392 if (obj2) {
32393 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32394 if (!SWIG_IsOK(ecode3)) {
32395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32396 }
32397 arg3 = static_cast< bool >(val3);
32398 }
32399 {
32400 PyThreadState* __tstate = wxPyBeginAllowThreads();
32401 (arg1)->Select(arg2,arg3);
32402 wxPyEndAllowThreads(__tstate);
32403 if (PyErr_Occurred()) SWIG_fail;
32404 }
32405 resultobj = SWIG_Py_Void();
32406 return resultobj;
32407fail:
32408 return NULL;
32409}
32410
32411
32412SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32413 PyObject *resultobj = 0;
32414 wxListView *arg1 = (wxListView *) 0 ;
32415 long arg2 ;
32416 void *argp1 = 0 ;
32417 int res1 = 0 ;
32418 long val2 ;
32419 int ecode2 = 0 ;
32420 PyObject * obj0 = 0 ;
32421 PyObject * obj1 = 0 ;
32422 char * kwnames[] = {
32423 (char *) "self",(char *) "index", NULL
32424 };
32425
32426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32428 if (!SWIG_IsOK(res1)) {
32429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32430 }
32431 arg1 = reinterpret_cast< wxListView * >(argp1);
32432 ecode2 = SWIG_AsVal_long(obj1, &val2);
32433 if (!SWIG_IsOK(ecode2)) {
32434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32435 }
32436 arg2 = static_cast< long >(val2);
32437 {
32438 PyThreadState* __tstate = wxPyBeginAllowThreads();
32439 (arg1)->Focus(arg2);
32440 wxPyEndAllowThreads(__tstate);
32441 if (PyErr_Occurred()) SWIG_fail;
32442 }
32443 resultobj = SWIG_Py_Void();
32444 return resultobj;
32445fail:
32446 return NULL;
7e08d4ef
RD
32447}
32448
32449
0085ce49
RD
32450SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32451 PyObject *resultobj = 0;
32452 wxListView *arg1 = (wxListView *) 0 ;
32453 long result;
32454 void *argp1 = 0 ;
32455 int res1 = 0 ;
32456 PyObject *swig_obj[1] ;
32457
32458 if (!args) SWIG_fail;
32459 swig_obj[0] = args;
32460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32461 if (!SWIG_IsOK(res1)) {
32462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32463 }
32464 arg1 = reinterpret_cast< wxListView * >(argp1);
32465 {
32466 PyThreadState* __tstate = wxPyBeginAllowThreads();
32467 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32468 wxPyEndAllowThreads(__tstate);
32469 if (PyErr_Occurred()) SWIG_fail;
32470 }
32471 resultobj = SWIG_From_long(static_cast< long >(result));
32472 return resultobj;
32473fail:
32474 return NULL;
32475}
32476
32477
32478SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32479 PyObject *resultobj = 0;
32480 wxListView *arg1 = (wxListView *) 0 ;
32481 long arg2 ;
32482 long result;
32483 void *argp1 = 0 ;
32484 int res1 = 0 ;
32485 long val2 ;
32486 int ecode2 = 0 ;
32487 PyObject * obj0 = 0 ;
32488 PyObject * obj1 = 0 ;
32489 char * kwnames[] = {
32490 (char *) "self",(char *) "item", NULL
32491 };
32492
32493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32495 if (!SWIG_IsOK(res1)) {
32496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32497 }
32498 arg1 = reinterpret_cast< wxListView * >(argp1);
32499 ecode2 = SWIG_AsVal_long(obj1, &val2);
32500 if (!SWIG_IsOK(ecode2)) {
32501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32502 }
32503 arg2 = static_cast< long >(val2);
32504 {
32505 PyThreadState* __tstate = wxPyBeginAllowThreads();
32506 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32507 wxPyEndAllowThreads(__tstate);
32508 if (PyErr_Occurred()) SWIG_fail;
32509 }
32510 resultobj = SWIG_From_long(static_cast< long >(result));
32511 return resultobj;
32512fail:
32513 return NULL;
7e08d4ef
RD
32514}
32515
32516
0085ce49
RD
32517SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32518 PyObject *resultobj = 0;
32519 wxListView *arg1 = (wxListView *) 0 ;
32520 long result;
32521 void *argp1 = 0 ;
32522 int res1 = 0 ;
32523 PyObject *swig_obj[1] ;
32524
32525 if (!args) SWIG_fail;
32526 swig_obj[0] = args;
32527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32528 if (!SWIG_IsOK(res1)) {
32529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32530 }
32531 arg1 = reinterpret_cast< wxListView * >(argp1);
32532 {
32533 PyThreadState* __tstate = wxPyBeginAllowThreads();
32534 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32535 wxPyEndAllowThreads(__tstate);
32536 if (PyErr_Occurred()) SWIG_fail;
32537 }
32538 resultobj = SWIG_From_long(static_cast< long >(result));
32539 return resultobj;
32540fail:
32541 return NULL;
32542}
32543
32544
32545SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32546 PyObject *resultobj = 0;
32547 wxListView *arg1 = (wxListView *) 0 ;
32548 long arg2 ;
32549 bool result;
32550 void *argp1 = 0 ;
32551 int res1 = 0 ;
32552 long val2 ;
32553 int ecode2 = 0 ;
32554 PyObject * obj0 = 0 ;
32555 PyObject * obj1 = 0 ;
32556 char * kwnames[] = {
32557 (char *) "self",(char *) "index", NULL
32558 };
32559
32560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32562 if (!SWIG_IsOK(res1)) {
32563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32564 }
32565 arg1 = reinterpret_cast< wxListView * >(argp1);
32566 ecode2 = SWIG_AsVal_long(obj1, &val2);
32567 if (!SWIG_IsOK(ecode2)) {
32568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32569 }
32570 arg2 = static_cast< long >(val2);
32571 {
32572 PyThreadState* __tstate = wxPyBeginAllowThreads();
32573 result = (bool)(arg1)->IsSelected(arg2);
32574 wxPyEndAllowThreads(__tstate);
32575 if (PyErr_Occurred()) SWIG_fail;
32576 }
32577 {
32578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32579 }
32580 return resultobj;
32581fail:
32582 return NULL;
32583}
32584
32585
32586SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32587 PyObject *resultobj = 0;
32588 wxListView *arg1 = (wxListView *) 0 ;
32589 int arg2 ;
32590 int arg3 ;
32591 void *argp1 = 0 ;
32592 int res1 = 0 ;
32593 int val2 ;
32594 int ecode2 = 0 ;
32595 int val3 ;
32596 int ecode3 = 0 ;
32597 PyObject * obj0 = 0 ;
32598 PyObject * obj1 = 0 ;
32599 PyObject * obj2 = 0 ;
32600 char * kwnames[] = {
32601 (char *) "self",(char *) "col",(char *) "image", NULL
32602 };
32603
32604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32606 if (!SWIG_IsOK(res1)) {
32607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32608 }
32609 arg1 = reinterpret_cast< wxListView * >(argp1);
32610 ecode2 = SWIG_AsVal_int(obj1, &val2);
32611 if (!SWIG_IsOK(ecode2)) {
32612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32613 }
32614 arg2 = static_cast< int >(val2);
32615 ecode3 = SWIG_AsVal_int(obj2, &val3);
32616 if (!SWIG_IsOK(ecode3)) {
32617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32618 }
32619 arg3 = static_cast< int >(val3);
32620 {
32621 PyThreadState* __tstate = wxPyBeginAllowThreads();
32622 (arg1)->SetColumnImage(arg2,arg3);
32623 wxPyEndAllowThreads(__tstate);
32624 if (PyErr_Occurred()) SWIG_fail;
32625 }
32626 resultobj = SWIG_Py_Void();
32627 return resultobj;
32628fail:
32629 return NULL;
32630}
32631
32632
32633SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32634 PyObject *resultobj = 0;
32635 wxListView *arg1 = (wxListView *) 0 ;
32636 int arg2 ;
32637 void *argp1 = 0 ;
32638 int res1 = 0 ;
32639 int val2 ;
32640 int ecode2 = 0 ;
32641 PyObject * obj0 = 0 ;
32642 PyObject * obj1 = 0 ;
32643 char * kwnames[] = {
32644 (char *) "self",(char *) "col", NULL
32645 };
32646
32647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32649 if (!SWIG_IsOK(res1)) {
32650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32651 }
32652 arg1 = reinterpret_cast< wxListView * >(argp1);
32653 ecode2 = SWIG_AsVal_int(obj1, &val2);
32654 if (!SWIG_IsOK(ecode2)) {
32655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32656 }
32657 arg2 = static_cast< int >(val2);
32658 {
32659 PyThreadState* __tstate = wxPyBeginAllowThreads();
32660 (arg1)->ClearColumnImage(arg2);
32661 wxPyEndAllowThreads(__tstate);
32662 if (PyErr_Occurred()) SWIG_fail;
32663 }
32664 resultobj = SWIG_Py_Void();
32665 return resultobj;
32666fail:
32667 return NULL;
7e08d4ef
RD
32668}
32669
32670
0085ce49
RD
32671SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32672 PyObject *obj;
32673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32674 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32675 return SWIG_Py_Void();
7e08d4ef
RD
32676}
32677
0085ce49
RD
32678SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32679 return SWIG_Python_InitShadowInstance(args);
32680}
7e08d4ef 32681
0085ce49
RD
32682SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32683 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32684 return 1;
7e08d4ef
RD
32685}
32686
32687
0085ce49
RD
32688SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32689 PyObject *pyobj = 0;
32690
32691 {
32692#if wxUSE_UNICODE
32693 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32694#else
32695 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32696#endif
32697 }
32698 return pyobj;
7e08d4ef
RD
32699}
32700
32701
0085ce49
RD
32702SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32703 PyObject *resultobj = 0;
32704 wxTreeItemId *result = 0 ;
32705
32706 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32707 {
32708 PyThreadState* __tstate = wxPyBeginAllowThreads();
32709 result = (wxTreeItemId *)new wxTreeItemId();
32710 wxPyEndAllowThreads(__tstate);
32711 if (PyErr_Occurred()) SWIG_fail;
32712 }
32713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32714 return resultobj;
32715fail:
32716 return NULL;
d14a1e28
RD
32717}
32718
32719
0085ce49
RD
32720SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32721 PyObject *resultobj = 0;
32722 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32723 void *argp1 = 0 ;
32724 int res1 = 0 ;
32725 PyObject *swig_obj[1] ;
32726
32727 if (!args) SWIG_fail;
32728 swig_obj[0] = args;
32729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32730 if (!SWIG_IsOK(res1)) {
32731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32732 }
32733 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32734 {
32735 PyThreadState* __tstate = wxPyBeginAllowThreads();
32736 delete arg1;
7e08d4ef 32737
0085ce49
RD
32738 wxPyEndAllowThreads(__tstate);
32739 if (PyErr_Occurred()) SWIG_fail;
32740 }
32741 resultobj = SWIG_Py_Void();
32742 return resultobj;
32743fail:
32744 return NULL;
7e08d4ef
RD
32745}
32746
32747
0085ce49
RD
32748SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32749 PyObject *resultobj = 0;
32750 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32751 bool result;
32752 void *argp1 = 0 ;
32753 int res1 = 0 ;
32754 PyObject *swig_obj[1] ;
32755
32756 if (!args) SWIG_fail;
32757 swig_obj[0] = args;
32758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32759 if (!SWIG_IsOK(res1)) {
32760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32761 }
32762 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32763 {
32764 PyThreadState* __tstate = wxPyBeginAllowThreads();
32765 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32766 wxPyEndAllowThreads(__tstate);
32767 if (PyErr_Occurred()) SWIG_fail;
32768 }
32769 {
32770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32771 }
32772 return resultobj;
32773fail:
32774 return NULL;
32775}
32776
32777
32778SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32779 PyObject *resultobj = 0;
32780 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32781 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32782 bool result;
32783 void *argp1 = 0 ;
32784 int res1 = 0 ;
32785 void *argp2 = 0 ;
32786 int res2 = 0 ;
32787 PyObject * obj0 = 0 ;
32788 PyObject * obj1 = 0 ;
32789 char * kwnames[] = {
32790 (char *) "self",(char *) "other", NULL
32791 };
32792
32793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32795 if (!SWIG_IsOK(res1)) {
32796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32797 }
32798 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32799 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32800 if (!SWIG_IsOK(res2)) {
32801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32802 }
32803 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32804 {
32805 PyThreadState* __tstate = wxPyBeginAllowThreads();
32806 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32807 wxPyEndAllowThreads(__tstate);
32808 if (PyErr_Occurred()) SWIG_fail;
32809 }
32810 {
32811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32812 }
32813 return resultobj;
32814fail:
32815 return NULL;
32816}
32817
32818
32819SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32820 PyObject *resultobj = 0;
32821 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32822 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32823 bool result;
32824 void *argp1 = 0 ;
32825 int res1 = 0 ;
32826 void *argp2 = 0 ;
32827 int res2 = 0 ;
32828 PyObject * obj0 = 0 ;
32829 PyObject * obj1 = 0 ;
32830 char * kwnames[] = {
32831 (char *) "self",(char *) "other", NULL
32832 };
32833
32834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32836 if (!SWIG_IsOK(res1)) {
32837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32838 }
32839 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32840 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32841 if (!SWIG_IsOK(res2)) {
32842 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32843 }
32844 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32845 {
32846 PyThreadState* __tstate = wxPyBeginAllowThreads();
32847 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32848 wxPyEndAllowThreads(__tstate);
32849 if (PyErr_Occurred()) SWIG_fail;
32850 }
32851 {
32852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32853 }
32854 return resultobj;
32855fail:
32856 return NULL;
7e08d4ef
RD
32857}
32858
32859
0085ce49
RD
32860SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32861 PyObject *resultobj = 0;
32862 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32863 void *arg2 = (void *) 0 ;
32864 void *argp1 = 0 ;
32865 int res1 = 0 ;
32866 int res2 ;
32867 PyObject *swig_obj[2] ;
32868
32869 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32871 if (!SWIG_IsOK(res1)) {
32872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32873 }
32874 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32875 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32876 if (!SWIG_IsOK(res2)) {
32877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32878 }
32879 if (arg1) (arg1)->m_pItem = arg2;
32880
32881 resultobj = SWIG_Py_Void();
32882 return resultobj;
32883fail:
32884 return NULL;
7e08d4ef
RD
32885}
32886
32887
0085ce49
RD
32888SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32889 PyObject *resultobj = 0;
32890 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32891 void *result = 0 ;
32892 void *argp1 = 0 ;
32893 int res1 = 0 ;
32894 PyObject *swig_obj[1] ;
32895
32896 if (!args) SWIG_fail;
32897 swig_obj[0] = args;
32898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32899 if (!SWIG_IsOK(res1)) {
32900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32901 }
32902 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32903 result = (void *) ((arg1)->m_pItem);
32904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32905 return resultobj;
32906fail:
32907 return NULL;
7e08d4ef
RD
32908}
32909
32910
0085ce49
RD
32911SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32912 PyObject *obj;
32913 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32914 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32915 return SWIG_Py_Void();
7e08d4ef
RD
32916}
32917
0085ce49
RD
32918SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32919 return SWIG_Python_InitShadowInstance(args);
32920}
7e08d4ef 32921
0085ce49
RD
32922SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32923 PyObject *resultobj = 0;
32924 PyObject *arg1 = (PyObject *) NULL ;
32925 wxPyTreeItemData *result = 0 ;
32926 PyObject * obj0 = 0 ;
32927 char * kwnames[] = {
32928 (char *) "obj", NULL
32929 };
32930
32931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32932 if (obj0) {
32933 arg1 = obj0;
32934 }
32935 {
32936 PyThreadState* __tstate = wxPyBeginAllowThreads();
32937 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32938 wxPyEndAllowThreads(__tstate);
32939 if (PyErr_Occurred()) SWIG_fail;
32940 }
32941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32942 return resultobj;
32943fail:
32944 return NULL;
7e08d4ef
RD
32945}
32946
32947
0085ce49
RD
32948SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32949 PyObject *resultobj = 0;
32950 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32951 void *argp1 = 0 ;
32952 int res1 = 0 ;
32953 PyObject *swig_obj[1] ;
32954
32955 if (!args) SWIG_fail;
32956 swig_obj[0] = args;
32957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32958 if (!SWIG_IsOK(res1)) {
32959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32960 }
32961 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32962 {
32963 PyThreadState* __tstate = wxPyBeginAllowThreads();
32964 delete arg1;
1fbf26be 32965
0085ce49
RD
32966 wxPyEndAllowThreads(__tstate);
32967 if (PyErr_Occurred()) SWIG_fail;
32968 }
32969 resultobj = SWIG_Py_Void();
32970 return resultobj;
32971fail:
32972 return NULL;
1fbf26be
RD
32973}
32974
32975
0085ce49
RD
32976SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32977 PyObject *resultobj = 0;
32978 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32979 PyObject *result = 0 ;
32980 void *argp1 = 0 ;
32981 int res1 = 0 ;
32982 PyObject *swig_obj[1] ;
32983
32984 if (!args) SWIG_fail;
32985 swig_obj[0] = args;
32986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32987 if (!SWIG_IsOK(res1)) {
32988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32989 }
32990 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32991 {
32992 PyThreadState* __tstate = wxPyBeginAllowThreads();
32993 result = (PyObject *)(arg1)->GetData();
32994 wxPyEndAllowThreads(__tstate);
32995 if (PyErr_Occurred()) SWIG_fail;
32996 }
32997 resultobj = result;
32998 return resultobj;
32999fail:
33000 return NULL;
33001}
33002
33003
33004SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33005 PyObject *resultobj = 0;
33006 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33007 PyObject *arg2 = (PyObject *) 0 ;
33008 void *argp1 = 0 ;
33009 int res1 = 0 ;
33010 PyObject * obj0 = 0 ;
33011 PyObject * obj1 = 0 ;
33012 char * kwnames[] = {
33013 (char *) "self",(char *) "obj", NULL
33014 };
33015
33016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33018 if (!SWIG_IsOK(res1)) {
33019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33020 }
33021 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33022 arg2 = obj1;
33023 {
33024 PyThreadState* __tstate = wxPyBeginAllowThreads();
33025 (arg1)->SetData(arg2);
33026 wxPyEndAllowThreads(__tstate);
33027 if (PyErr_Occurred()) SWIG_fail;
33028 }
33029 resultobj = SWIG_Py_Void();
33030 return resultobj;
33031fail:
33032 return NULL;
d14a1e28
RD
33033}
33034
33035
0085ce49
RD
33036SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33037 PyObject *resultobj = 0;
33038 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33039 wxTreeItemId *result = 0 ;
33040 void *argp1 = 0 ;
33041 int res1 = 0 ;
33042 PyObject *swig_obj[1] ;
33043
33044 if (!args) SWIG_fail;
33045 swig_obj[0] = args;
33046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33047 if (!SWIG_IsOK(res1)) {
33048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33049 }
33050 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33051 {
33052 PyThreadState* __tstate = wxPyBeginAllowThreads();
2ef75293 33053 {
0085ce49
RD
33054 wxTreeItemId const &_result_ref = (arg1)->GetId();
33055 result = (wxTreeItemId *) &_result_ref;
2ef75293 33056 }
0085ce49
RD
33057 wxPyEndAllowThreads(__tstate);
33058 if (PyErr_Occurred()) SWIG_fail;
33059 }
33060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33061 return resultobj;
33062fail:
33063 return NULL;
33064}
33065
33066
33067SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33068 PyObject *resultobj = 0;
33069 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33070 wxTreeItemId *arg2 = 0 ;
33071 void *argp1 = 0 ;
33072 int res1 = 0 ;
33073 void *argp2 = 0 ;
33074 int res2 = 0 ;
33075 PyObject * obj0 = 0 ;
33076 PyObject * obj1 = 0 ;
33077 char * kwnames[] = {
33078 (char *) "self",(char *) "id", NULL
33079 };
33080
33081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33083 if (!SWIG_IsOK(res1)) {
33084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33085 }
33086 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33087 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33088 if (!SWIG_IsOK(res2)) {
33089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33090 }
33091 if (!argp2) {
33092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33093 }
33094 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33095 {
33096 PyThreadState* __tstate = wxPyBeginAllowThreads();
33097 (arg1)->SetId((wxTreeItemId const &)*arg2);
33098 wxPyEndAllowThreads(__tstate);
33099 if (PyErr_Occurred()) SWIG_fail;
33100 }
33101 resultobj = SWIG_Py_Void();
33102 return resultobj;
33103fail:
33104 return NULL;
2ef75293
RD
33105}
33106
33107
0085ce49
RD
33108SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33109 PyObject *resultobj = 0;
33110 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33111 void *argp1 = 0 ;
33112 int res1 = 0 ;
33113 PyObject *swig_obj[1] ;
33114
33115 if (!args) SWIG_fail;
33116 swig_obj[0] = args;
33117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33118 if (!SWIG_IsOK(res1)) {
33119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33120 }
33121 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33122 {
33123 PyThreadState* __tstate = wxPyBeginAllowThreads();
33124 wxPyTreeItemData_Destroy(arg1);
33125 wxPyEndAllowThreads(__tstate);
33126 if (PyErr_Occurred()) SWIG_fail;
33127 }
33128 resultobj = SWIG_Py_Void();
33129 return resultobj;
33130fail:
33131 return NULL;
2ef75293
RD
33132}
33133
33134
0085ce49
RD
33135SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33136 PyObject *obj;
33137 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33138 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33139 return SWIG_Py_Void();
2ef75293
RD
33140}
33141
0085ce49
RD
33142SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33143 return SWIG_Python_InitShadowInstance(args);
33144}
2ef75293 33145
b02396e8
RD
33146SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33147 {
33148 void *argp = 0;
33149 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33150 if (!SWIG_IsOK(res)) {
33151 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33152 }
33153 if (!argp) {
33154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33155 } else {
33156 wxTreeItemId * temp;
33157 temp = reinterpret_cast< wxTreeItemId * >(argp);
33158 wxNullTreeItemId = *temp;
33159 if (SWIG_IsNewObj(res)) delete temp;
33160 }
33161 }
33162 return 0;
33163fail:
33164 return 1;
33165}
33166
33167
33168SWIGINTERN PyObject *NullTreeItemId_get(void) {
33169 PyObject *pyobj = 0;
33170
33171 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33172 return pyobj;
33173}
33174
33175
33176SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
33177 PyObject *resultobj = 0;
33178 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33179 int arg2 = (int) 0 ;
33180 wxTreeEvent *result = 0 ;
33181 int val1 ;
33182 int ecode1 = 0 ;
33183 int val2 ;
33184 int ecode2 = 0 ;
0085ce49 33185
b02396e8
RD
33186 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33187 if (swig_obj[0]) {
33188 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
0085ce49
RD
33189 if (!SWIG_IsOK(ecode1)) {
33190 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33191 }
33192 arg1 = static_cast< wxEventType >(val1);
33193 }
b02396e8
RD
33194 if (swig_obj[1]) {
33195 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
0085ce49
RD
33196 if (!SWIG_IsOK(ecode2)) {
33197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33198 }
33199 arg2 = static_cast< int >(val2);
33200 }
33201 {
33202 PyThreadState* __tstate = wxPyBeginAllowThreads();
33203 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33204 wxPyEndAllowThreads(__tstate);
33205 if (PyErr_Occurred()) SWIG_fail;
33206 }
33207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33208 return resultobj;
33209fail:
33210 return NULL;
70b7a5fe
RD
33211}
33212
33213
b02396e8
RD
33214SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33215 PyObject *resultobj = 0;
33216 wxEventType arg1 ;
33217 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33218 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33219 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33220 wxTreeEvent *result = 0 ;
33221 int val1 ;
33222 int ecode1 = 0 ;
33223 void *argp2 = 0 ;
33224 int res2 = 0 ;
33225 void *argp3 = 0 ;
33226 int res3 = 0 ;
33227
33228 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33229 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33230 if (!SWIG_IsOK(ecode1)) {
33231 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33232 }
33233 arg1 = static_cast< wxEventType >(val1);
33234 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33235 if (!SWIG_IsOK(res2)) {
33236 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33237 }
33238 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33239 if (swig_obj[2]) {
33240 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33241 if (!SWIG_IsOK(res3)) {
33242 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33243 }
33244 if (!argp3) {
33245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33246 }
33247 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33248 }
33249 {
33250 PyThreadState* __tstate = wxPyBeginAllowThreads();
33251 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33252 wxPyEndAllowThreads(__tstate);
33253 if (PyErr_Occurred()) SWIG_fail;
33254 }
33255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33256 return resultobj;
33257fail:
33258 return NULL;
33259}
33260
33261
33262SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33263 int argc;
33264 PyObject *argv[4];
33265
33266 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33267 --argc;
33268 if ((argc >= 0) && (argc <= 2)) {
33269 int _v = 0;
33270 if (argc > 1) {
33271 {
33272 {
33273 int res = SWIG_AsVal_int(argv[1], NULL);
33274 _v = SWIG_CheckState(res);
33275 }
33276 }
33277 if (!_v) goto check_1;
33278 }
33279 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33280 }
33281check_1:
33282
33283 if ((argc >= 2) && (argc <= 3)) {
33284 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33285 }
33286
33287fail:
33288 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33289 return NULL;
33290}
33291
33292
0085ce49
RD
33293SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33294 PyObject *resultobj = 0;
33295 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33296 wxTreeItemId result;
33297 void *argp1 = 0 ;
33298 int res1 = 0 ;
33299 PyObject *swig_obj[1] ;
33300
33301 if (!args) SWIG_fail;
33302 swig_obj[0] = args;
33303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33304 if (!SWIG_IsOK(res1)) {
33305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33306 }
33307 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33308 {
33309 PyThreadState* __tstate = wxPyBeginAllowThreads();
33310 result = ((wxTreeEvent const *)arg1)->GetItem();
33311 wxPyEndAllowThreads(__tstate);
33312 if (PyErr_Occurred()) SWIG_fail;
33313 }
33314 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33315 return resultobj;
33316fail:
33317 return NULL;
33318}
33319
33320
33321SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33322 PyObject *resultobj = 0;
33323 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33324 wxTreeItemId *arg2 = 0 ;
33325 void *argp1 = 0 ;
33326 int res1 = 0 ;
33327 void *argp2 = 0 ;
33328 int res2 = 0 ;
33329 PyObject * obj0 = 0 ;
33330 PyObject * obj1 = 0 ;
33331 char * kwnames[] = {
33332 (char *) "self",(char *) "item", NULL
33333 };
33334
33335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33337 if (!SWIG_IsOK(res1)) {
33338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33339 }
33340 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33341 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33342 if (!SWIG_IsOK(res2)) {
33343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33344 }
33345 if (!argp2) {
33346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33347 }
33348 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33349 {
33350 PyThreadState* __tstate = wxPyBeginAllowThreads();
33351 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33352 wxPyEndAllowThreads(__tstate);
33353 if (PyErr_Occurred()) SWIG_fail;
33354 }
33355 resultobj = SWIG_Py_Void();
33356 return resultobj;
33357fail:
33358 return NULL;
2ef75293
RD
33359}
33360
33361
0085ce49
RD
33362SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33363 PyObject *resultobj = 0;
33364 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33365 wxTreeItemId result;
33366 void *argp1 = 0 ;
33367 int res1 = 0 ;
33368 PyObject *swig_obj[1] ;
33369
33370 if (!args) SWIG_fail;
33371 swig_obj[0] = args;
33372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33373 if (!SWIG_IsOK(res1)) {
33374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33375 }
33376 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33377 {
33378 PyThreadState* __tstate = wxPyBeginAllowThreads();
33379 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33380 wxPyEndAllowThreads(__tstate);
33381 if (PyErr_Occurred()) SWIG_fail;
33382 }
33383 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33384 return resultobj;
33385fail:
33386 return NULL;
33387}
33388
33389
33390SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33391 PyObject *resultobj = 0;
33392 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33393 wxTreeItemId *arg2 = 0 ;
33394 void *argp1 = 0 ;
33395 int res1 = 0 ;
33396 void *argp2 = 0 ;
33397 int res2 = 0 ;
33398 PyObject * obj0 = 0 ;
33399 PyObject * obj1 = 0 ;
33400 char * kwnames[] = {
33401 (char *) "self",(char *) "item", NULL
33402 };
33403
33404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33406 if (!SWIG_IsOK(res1)) {
33407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33408 }
33409 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33410 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33411 if (!SWIG_IsOK(res2)) {
33412 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33413 }
33414 if (!argp2) {
33415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33416 }
33417 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33418 {
33419 PyThreadState* __tstate = wxPyBeginAllowThreads();
33420 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33421 wxPyEndAllowThreads(__tstate);
33422 if (PyErr_Occurred()) SWIG_fail;
33423 }
33424 resultobj = SWIG_Py_Void();
33425 return resultobj;
33426fail:
33427 return NULL;
2ef75293
RD
33428}
33429
33430
0085ce49
RD
33431SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33432 PyObject *resultobj = 0;
33433 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33434 wxPoint result;
33435 void *argp1 = 0 ;
33436 int res1 = 0 ;
33437 PyObject *swig_obj[1] ;
33438
33439 if (!args) SWIG_fail;
33440 swig_obj[0] = args;
33441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33442 if (!SWIG_IsOK(res1)) {
33443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33444 }
33445 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33446 {
33447 PyThreadState* __tstate = wxPyBeginAllowThreads();
33448 result = ((wxTreeEvent const *)arg1)->GetPoint();
33449 wxPyEndAllowThreads(__tstate);
33450 if (PyErr_Occurred()) SWIG_fail;
33451 }
33452 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33453 return resultobj;
33454fail:
33455 return NULL;
33456}
33457
33458
33459SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33460 PyObject *resultobj = 0;
33461 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33462 wxPoint *arg2 = 0 ;
33463 void *argp1 = 0 ;
33464 int res1 = 0 ;
33465 wxPoint temp2 ;
33466 PyObject * obj0 = 0 ;
33467 PyObject * obj1 = 0 ;
33468 char * kwnames[] = {
33469 (char *) "self",(char *) "pt", NULL
33470 };
33471
33472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33474 if (!SWIG_IsOK(res1)) {
33475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33476 }
33477 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33478 {
33479 arg2 = &temp2;
33480 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33481 }
33482 {
33483 PyThreadState* __tstate = wxPyBeginAllowThreads();
33484 (arg1)->SetPoint((wxPoint const &)*arg2);
33485 wxPyEndAllowThreads(__tstate);
33486 if (PyErr_Occurred()) SWIG_fail;
33487 }
33488 resultobj = SWIG_Py_Void();
33489 return resultobj;
33490fail:
33491 return NULL;
d14a1e28
RD
33492}
33493
33494
0085ce49
RD
33495SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33496 PyObject *resultobj = 0;
33497 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33498 wxKeyEvent *result = 0 ;
33499 void *argp1 = 0 ;
33500 int res1 = 0 ;
33501 PyObject *swig_obj[1] ;
33502
33503 if (!args) SWIG_fail;
33504 swig_obj[0] = args;
33505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33506 if (!SWIG_IsOK(res1)) {
33507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33508 }
33509 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33510 {
33511 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 33512 {
0085ce49
RD
33513 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33514 result = (wxKeyEvent *) &_result_ref;
d14a1e28 33515 }
0085ce49
RD
33516 wxPyEndAllowThreads(__tstate);
33517 if (PyErr_Occurred()) SWIG_fail;
33518 }
33519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33520 return resultobj;
33521fail:
33522 return NULL;
d14a1e28
RD
33523}
33524
33525
0085ce49
RD
33526SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33527 PyObject *resultobj = 0;
33528 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33529 int result;
33530 void *argp1 = 0 ;
33531 int res1 = 0 ;
33532 PyObject *swig_obj[1] ;
33533
33534 if (!args) SWIG_fail;
33535 swig_obj[0] = args;
33536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33537 if (!SWIG_IsOK(res1)) {
33538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33539 }
33540 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33541 {
33542 PyThreadState* __tstate = wxPyBeginAllowThreads();
33543 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33544 wxPyEndAllowThreads(__tstate);
33545 if (PyErr_Occurred()) SWIG_fail;
33546 }
33547 resultobj = SWIG_From_int(static_cast< int >(result));
33548 return resultobj;
33549fail:
33550 return NULL;
33551}
33552
33553
33554SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33555 PyObject *resultobj = 0;
33556 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33557 wxKeyEvent *arg2 = 0 ;
33558 void *argp1 = 0 ;
33559 int res1 = 0 ;
33560 void *argp2 = 0 ;
33561 int res2 = 0 ;
33562 PyObject * obj0 = 0 ;
33563 PyObject * obj1 = 0 ;
33564 char * kwnames[] = {
33565 (char *) "self",(char *) "evt", NULL
33566 };
33567
33568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33570 if (!SWIG_IsOK(res1)) {
33571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33572 }
33573 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33574 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33575 if (!SWIG_IsOK(res2)) {
33576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33577 }
33578 if (!argp2) {
33579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33580 }
33581 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33582 {
33583 PyThreadState* __tstate = wxPyBeginAllowThreads();
33584 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33585 wxPyEndAllowThreads(__tstate);
33586 if (PyErr_Occurred()) SWIG_fail;
33587 }
33588 resultobj = SWIG_Py_Void();
33589 return resultobj;
33590fail:
33591 return NULL;
d14a1e28
RD
33592}
33593
33594
0085ce49
RD
33595SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33596 PyObject *resultobj = 0;
33597 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33598 wxString *result = 0 ;
33599 void *argp1 = 0 ;
33600 int res1 = 0 ;
33601 PyObject *swig_obj[1] ;
33602
33603 if (!args) SWIG_fail;
33604 swig_obj[0] = args;
33605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33606 if (!SWIG_IsOK(res1)) {
33607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33608 }
33609 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33610 {
33611 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 33612 {
0085ce49
RD
33613 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33614 result = (wxString *) &_result_ref;
093d3ff1 33615 }
0085ce49
RD
33616 wxPyEndAllowThreads(__tstate);
33617 if (PyErr_Occurred()) SWIG_fail;
33618 }
33619 {
33620#if wxUSE_UNICODE
33621 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33622#else
33623 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33624#endif
33625 }
33626 return resultobj;
33627fail:
33628 return NULL;
33629}
33630
33631
33632SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33633 PyObject *resultobj = 0;
33634 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33635 wxString *arg2 = 0 ;
33636 void *argp1 = 0 ;
33637 int res1 = 0 ;
33638 bool temp2 = false ;
33639 PyObject * obj0 = 0 ;
33640 PyObject * obj1 = 0 ;
33641 char * kwnames[] = {
33642 (char *) "self",(char *) "label", NULL
33643 };
33644
33645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33647 if (!SWIG_IsOK(res1)) {
33648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33649 }
33650 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33651 {
33652 arg2 = wxString_in_helper(obj1);
33653 if (arg2 == NULL) SWIG_fail;
33654 temp2 = true;
33655 }
33656 {
33657 PyThreadState* __tstate = wxPyBeginAllowThreads();
33658 (arg1)->SetLabel((wxString const &)*arg2);
33659 wxPyEndAllowThreads(__tstate);
33660 if (PyErr_Occurred()) SWIG_fail;
33661 }
33662 resultobj = SWIG_Py_Void();
33663 {
33664 if (temp2)
33665 delete arg2;
33666 }
33667 return resultobj;
33668fail:
33669 {
33670 if (temp2)
33671 delete arg2;
33672 }
33673 return NULL;
d14a1e28
RD
33674}
33675
33676
0085ce49
RD
33677SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33678 PyObject *resultobj = 0;
33679 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33680 bool result;
33681 void *argp1 = 0 ;
33682 int res1 = 0 ;
33683 PyObject *swig_obj[1] ;
33684
33685 if (!args) SWIG_fail;
33686 swig_obj[0] = args;
33687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33688 if (!SWIG_IsOK(res1)) {
33689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33690 }
33691 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33692 {
33693 PyThreadState* __tstate = wxPyBeginAllowThreads();
33694 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33695 wxPyEndAllowThreads(__tstate);
33696 if (PyErr_Occurred()) SWIG_fail;
33697 }
33698 {
33699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33700 }
33701 return resultobj;
33702fail:
33703 return NULL;
33704}
33705
33706
33707SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33708 PyObject *resultobj = 0;
33709 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33710 bool arg2 ;
33711 void *argp1 = 0 ;
33712 int res1 = 0 ;
33713 bool val2 ;
33714 int ecode2 = 0 ;
33715 PyObject * obj0 = 0 ;
33716 PyObject * obj1 = 0 ;
33717 char * kwnames[] = {
33718 (char *) "self",(char *) "editCancelled", NULL
33719 };
33720
33721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33723 if (!SWIG_IsOK(res1)) {
33724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33725 }
33726 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33727 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33728 if (!SWIG_IsOK(ecode2)) {
33729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33730 }
33731 arg2 = static_cast< bool >(val2);
33732 {
33733 PyThreadState* __tstate = wxPyBeginAllowThreads();
33734 (arg1)->SetEditCanceled(arg2);
33735 wxPyEndAllowThreads(__tstate);
33736 if (PyErr_Occurred()) SWIG_fail;
33737 }
33738 resultobj = SWIG_Py_Void();
33739 return resultobj;
33740fail:
33741 return NULL;
33742}
33743
33744
33745SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33746 PyObject *resultobj = 0;
33747 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33748 wxString *arg2 = 0 ;
33749 void *argp1 = 0 ;
33750 int res1 = 0 ;
33751 bool temp2 = false ;
33752 PyObject * obj0 = 0 ;
33753 PyObject * obj1 = 0 ;
33754 char * kwnames[] = {
33755 (char *) "self",(char *) "toolTip", NULL
33756 };
33757
33758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33760 if (!SWIG_IsOK(res1)) {
33761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33762 }
33763 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33764 {
33765 arg2 = wxString_in_helper(obj1);
33766 if (arg2 == NULL) SWIG_fail;
33767 temp2 = true;
33768 }
33769 {
33770 PyThreadState* __tstate = wxPyBeginAllowThreads();
33771 (arg1)->SetToolTip((wxString const &)*arg2);
33772 wxPyEndAllowThreads(__tstate);
33773 if (PyErr_Occurred()) SWIG_fail;
33774 }
33775 resultobj = SWIG_Py_Void();
33776 {
33777 if (temp2)
33778 delete arg2;
33779 }
33780 return resultobj;
33781fail:
33782 {
33783 if (temp2)
33784 delete arg2;
33785 }
33786 return NULL;
d14a1e28
RD
33787}
33788
33789
0085ce49
RD
33790SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33791 PyObject *resultobj = 0;
33792 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33793 wxString result;
33794 void *argp1 = 0 ;
33795 int res1 = 0 ;
33796 PyObject *swig_obj[1] ;
33797
33798 if (!args) SWIG_fail;
33799 swig_obj[0] = args;
33800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33801 if (!SWIG_IsOK(res1)) {
33802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33803 }
33804 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33805 {
33806 PyThreadState* __tstate = wxPyBeginAllowThreads();
33807 result = (arg1)->GetToolTip();
33808 wxPyEndAllowThreads(__tstate);
33809 if (PyErr_Occurred()) SWIG_fail;
33810 }
33811 {
33812#if wxUSE_UNICODE
33813 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33814#else
33815 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33816#endif
33817 }
33818 return resultobj;
33819fail:
33820 return NULL;
33821}
33822
33823
33824SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33825 PyObject *obj;
33826 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33827 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33828 return SWIG_Py_Void();
33829}
33830
33831SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33832 return SWIG_Python_InitShadowInstance(args);
33833}
33834
33835SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33836 PyObject *resultobj = 0;
33837 wxWindow *arg1 = (wxWindow *) 0 ;
33838 int arg2 = (int) -1 ;
33839 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33840 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33841 wxSize const &arg4_defvalue = wxDefaultSize ;
33842 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33843 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33844 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33845 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33846 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33847 wxString *arg7 = (wxString *) &arg7_defvalue ;
33848 wxPyTreeCtrl *result = 0 ;
33849 void *argp1 = 0 ;
33850 int res1 = 0 ;
33851 int val2 ;
33852 int ecode2 = 0 ;
33853 wxPoint temp3 ;
33854 wxSize temp4 ;
33855 long val5 ;
33856 int ecode5 = 0 ;
33857 void *argp6 = 0 ;
33858 int res6 = 0 ;
33859 bool temp7 = false ;
33860 PyObject * obj0 = 0 ;
33861 PyObject * obj1 = 0 ;
33862 PyObject * obj2 = 0 ;
33863 PyObject * obj3 = 0 ;
33864 PyObject * obj4 = 0 ;
33865 PyObject * obj5 = 0 ;
33866 PyObject * obj6 = 0 ;
33867 char * kwnames[] = {
33868 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33869 };
33870
33871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33873 if (!SWIG_IsOK(res1)) {
33874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33875 }
33876 arg1 = reinterpret_cast< wxWindow * >(argp1);
33877 if (obj1) {
33878 ecode2 = SWIG_AsVal_int(obj1, &val2);
33879 if (!SWIG_IsOK(ecode2)) {
33880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33881 }
33882 arg2 = static_cast< int >(val2);
33883 }
33884 if (obj2) {
d14a1e28 33885 {
0085ce49
RD
33886 arg3 = &temp3;
33887 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 33888 }
0085ce49
RD
33889 }
33890 if (obj3) {
093d3ff1 33891 {
0085ce49
RD
33892 arg4 = &temp4;
33893 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 33894 }
0085ce49
RD
33895 }
33896 if (obj4) {
33897 ecode5 = SWIG_AsVal_long(obj4, &val5);
33898 if (!SWIG_IsOK(ecode5)) {
33899 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33900 }
33901 arg5 = static_cast< long >(val5);
33902 }
33903 if (obj5) {
33904 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33905 if (!SWIG_IsOK(res6)) {
33906 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33907 }
0085ce49
RD
33908 if (!argp6) {
33909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33910 }
0085ce49
RD
33911 arg6 = reinterpret_cast< wxValidator * >(argp6);
33912 }
33913 if (obj6) {
4f89f6a3 33914 {
0085ce49
RD
33915 arg7 = wxString_in_helper(obj6);
33916 if (arg7 == NULL) SWIG_fail;
33917 temp7 = true;
4f89f6a3 33918 }
0085ce49
RD
33919 }
33920 {
33921 if (!wxPyCheckForApp()) SWIG_fail;
33922 PyThreadState* __tstate = wxPyBeginAllowThreads();
33923 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33924 wxPyEndAllowThreads(__tstate);
33925 if (PyErr_Occurred()) SWIG_fail;
33926 }
33927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33928 {
33929 if (temp7)
33930 delete arg7;
33931 }
33932 return resultobj;
33933fail:
33934 {
33935 if (temp7)
33936 delete arg7;
33937 }
33938 return NULL;
d14a1e28
RD
33939}
33940
33941
0085ce49
RD
33942SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33943 PyObject *resultobj = 0;
33944 wxPyTreeCtrl *result = 0 ;
33945
33946 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33947 {
33948 if (!wxPyCheckForApp()) SWIG_fail;
33949 PyThreadState* __tstate = wxPyBeginAllowThreads();
33950 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33951 wxPyEndAllowThreads(__tstate);
33952 if (PyErr_Occurred()) SWIG_fail;
33953 }
33954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33955 return resultobj;
33956fail:
33957 return NULL;
33958}
33959
33960
33961SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33962 PyObject *resultobj = 0;
33963 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33964 wxWindow *arg2 = (wxWindow *) 0 ;
33965 int arg3 = (int) -1 ;
33966 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33967 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33968 wxSize const &arg5_defvalue = wxDefaultSize ;
33969 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33970 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33971 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33972 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33973 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33974 wxString *arg8 = (wxString *) &arg8_defvalue ;
33975 bool result;
33976 void *argp1 = 0 ;
33977 int res1 = 0 ;
33978 void *argp2 = 0 ;
33979 int res2 = 0 ;
33980 int val3 ;
33981 int ecode3 = 0 ;
33982 wxPoint temp4 ;
33983 wxSize temp5 ;
33984 long val6 ;
33985 int ecode6 = 0 ;
33986 void *argp7 = 0 ;
33987 int res7 = 0 ;
33988 bool temp8 = false ;
33989 PyObject * obj0 = 0 ;
33990 PyObject * obj1 = 0 ;
33991 PyObject * obj2 = 0 ;
33992 PyObject * obj3 = 0 ;
33993 PyObject * obj4 = 0 ;
33994 PyObject * obj5 = 0 ;
33995 PyObject * obj6 = 0 ;
33996 PyObject * obj7 = 0 ;
33997 char * kwnames[] = {
33998 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33999 };
34000
34001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
34002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34003 if (!SWIG_IsOK(res1)) {
34004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34005 }
34006 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34007 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34008 if (!SWIG_IsOK(res2)) {
34009 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
34010 }
34011 arg2 = reinterpret_cast< wxWindow * >(argp2);
34012 if (obj2) {
34013 ecode3 = SWIG_AsVal_int(obj2, &val3);
34014 if (!SWIG_IsOK(ecode3)) {
34015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
34016 }
34017 arg3 = static_cast< int >(val3);
34018 }
34019 if (obj3) {
4f89f6a3 34020 {
0085ce49
RD
34021 arg4 = &temp4;
34022 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 34023 }
0085ce49
RD
34024 }
34025 if (obj4) {
d14a1e28 34026 {
0085ce49
RD
34027 arg5 = &temp5;
34028 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 34029 }
0085ce49
RD
34030 }
34031 if (obj5) {
34032 ecode6 = SWIG_AsVal_long(obj5, &val6);
34033 if (!SWIG_IsOK(ecode6)) {
34034 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34035 }
34036 arg6 = static_cast< long >(val6);
34037 }
34038 if (obj6) {
34039 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34040 if (!SWIG_IsOK(res7)) {
34041 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 34042 }
0085ce49
RD
34043 if (!argp7) {
34044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 34045 }
0085ce49
RD
34046 arg7 = reinterpret_cast< wxValidator * >(argp7);
34047 }
34048 if (obj7) {
4276dc52 34049 {
0085ce49
RD
34050 arg8 = wxString_in_helper(obj7);
34051 if (arg8 == NULL) SWIG_fail;
34052 temp8 = true;
4276dc52 34053 }
0085ce49
RD
34054 }
34055 {
34056 PyThreadState* __tstate = wxPyBeginAllowThreads();
34057 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34058 wxPyEndAllowThreads(__tstate);
34059 if (PyErr_Occurred()) SWIG_fail;
34060 }
34061 {
34062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34063 }
34064 {
34065 if (temp8)
34066 delete arg8;
34067 }
34068 return resultobj;
34069fail:
34070 {
34071 if (temp8)
34072 delete arg8;
34073 }
34074 return NULL;
34075}
34076
34077
34078SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34079 PyObject *resultobj = 0;
34080 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34081 PyObject *arg2 = (PyObject *) 0 ;
34082 PyObject *arg3 = (PyObject *) 0 ;
34083 void *argp1 = 0 ;
34084 int res1 = 0 ;
34085 PyObject * obj0 = 0 ;
34086 PyObject * obj1 = 0 ;
34087 PyObject * obj2 = 0 ;
34088 char * kwnames[] = {
34089 (char *) "self",(char *) "self",(char *) "_class", NULL
34090 };
34091
34092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34094 if (!SWIG_IsOK(res1)) {
34095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34096 }
34097 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34098 arg2 = obj1;
34099 arg3 = obj2;
34100 {
34101 PyThreadState* __tstate = wxPyBeginAllowThreads();
34102 (arg1)->_setCallbackInfo(arg2,arg3);
34103 wxPyEndAllowThreads(__tstate);
34104 if (PyErr_Occurred()) SWIG_fail;
34105 }
34106 resultobj = SWIG_Py_Void();
34107 return resultobj;
34108fail:
34109 return NULL;
d14a1e28
RD
34110}
34111
34112
0085ce49
RD
34113SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34114 PyObject *resultobj = 0;
34115 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 34116 unsigned int result;
0085ce49
RD
34117 void *argp1 = 0 ;
34118 int res1 = 0 ;
34119 PyObject *swig_obj[1] ;
34120
34121 if (!args) SWIG_fail;
34122 swig_obj[0] = args;
34123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34124 if (!SWIG_IsOK(res1)) {
34125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34126 }
34127 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34128 {
34129 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 34130 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
0085ce49
RD
34131 wxPyEndAllowThreads(__tstate);
34132 if (PyErr_Occurred()) SWIG_fail;
34133 }
e9d6f3a4 34134 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
34135 return resultobj;
34136fail:
34137 return NULL;
d14a1e28
RD
34138}
34139
34140
0085ce49
RD
34141SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34142 PyObject *resultobj = 0;
34143 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34144 unsigned int result;
34145 void *argp1 = 0 ;
34146 int res1 = 0 ;
34147 PyObject *swig_obj[1] ;
34148
34149 if (!args) SWIG_fail;
34150 swig_obj[0] = args;
34151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34152 if (!SWIG_IsOK(res1)) {
34153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34154 }
34155 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34156 {
34157 PyThreadState* __tstate = wxPyBeginAllowThreads();
34158 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34159 wxPyEndAllowThreads(__tstate);
34160 if (PyErr_Occurred()) SWIG_fail;
34161 }
34162 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34163 return resultobj;
34164fail:
34165 return NULL;
34166}
34167
34168
34169SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34170 PyObject *resultobj = 0;
34171 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34172 unsigned int arg2 ;
34173 void *argp1 = 0 ;
34174 int res1 = 0 ;
34175 unsigned int val2 ;
34176 int ecode2 = 0 ;
34177 PyObject * obj0 = 0 ;
34178 PyObject * obj1 = 0 ;
34179 char * kwnames[] = {
34180 (char *) "self",(char *) "indent", NULL
34181 };
34182
34183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34185 if (!SWIG_IsOK(res1)) {
34186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34187 }
34188 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34189 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34190 if (!SWIG_IsOK(ecode2)) {
34191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34192 }
34193 arg2 = static_cast< unsigned int >(val2);
34194 {
34195 PyThreadState* __tstate = wxPyBeginAllowThreads();
34196 (arg1)->SetIndent(arg2);
34197 wxPyEndAllowThreads(__tstate);
34198 if (PyErr_Occurred()) SWIG_fail;
34199 }
34200 resultobj = SWIG_Py_Void();
34201 return resultobj;
34202fail:
34203 return NULL;
d14a1e28
RD
34204}
34205
34206
0085ce49
RD
34207SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34208 PyObject *resultobj = 0;
34209 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34210 unsigned int result;
34211 void *argp1 = 0 ;
34212 int res1 = 0 ;
34213 PyObject *swig_obj[1] ;
34214
34215 if (!args) SWIG_fail;
34216 swig_obj[0] = args;
34217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34218 if (!SWIG_IsOK(res1)) {
34219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34220 }
34221 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34222 {
34223 PyThreadState* __tstate = wxPyBeginAllowThreads();
34224 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34225 wxPyEndAllowThreads(__tstate);
34226 if (PyErr_Occurred()) SWIG_fail;
34227 }
34228 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34229 return resultobj;
34230fail:
34231 return NULL;
34232}
34233
34234
34235SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34236 PyObject *resultobj = 0;
34237 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34238 unsigned int arg2 ;
34239 void *argp1 = 0 ;
34240 int res1 = 0 ;
34241 unsigned int val2 ;
34242 int ecode2 = 0 ;
34243 PyObject * obj0 = 0 ;
34244 PyObject * obj1 = 0 ;
34245 char * kwnames[] = {
34246 (char *) "self",(char *) "spacing", NULL
34247 };
34248
34249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34251 if (!SWIG_IsOK(res1)) {
34252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34253 }
34254 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34255 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34256 if (!SWIG_IsOK(ecode2)) {
34257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34258 }
34259 arg2 = static_cast< unsigned int >(val2);
34260 {
34261 PyThreadState* __tstate = wxPyBeginAllowThreads();
34262 (arg1)->SetSpacing(arg2);
34263 wxPyEndAllowThreads(__tstate);
34264 if (PyErr_Occurred()) SWIG_fail;
34265 }
34266 resultobj = SWIG_Py_Void();
34267 return resultobj;
34268fail:
34269 return NULL;
d14a1e28
RD
34270}
34271
34272
0085ce49
RD
34273SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34274 PyObject *resultobj = 0;
34275 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34276 wxImageList *result = 0 ;
34277 void *argp1 = 0 ;
34278 int res1 = 0 ;
34279 PyObject *swig_obj[1] ;
34280
34281 if (!args) SWIG_fail;
34282 swig_obj[0] = args;
34283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34284 if (!SWIG_IsOK(res1)) {
34285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34286 }
34287 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34288 {
34289 PyThreadState* __tstate = wxPyBeginAllowThreads();
34290 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34291 wxPyEndAllowThreads(__tstate);
34292 if (PyErr_Occurred()) SWIG_fail;
34293 }
3ecece7e
RD
34294 {
34295 resultobj = wxPyMake_wxObject(result, (bool)0);
34296 }
0085ce49
RD
34297 return resultobj;
34298fail:
34299 return NULL;
d14a1e28
RD
34300}
34301
34302
0085ce49
RD
34303SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34304 PyObject *resultobj = 0;
34305 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34306 wxImageList *result = 0 ;
34307 void *argp1 = 0 ;
34308 int res1 = 0 ;
34309 PyObject *swig_obj[1] ;
34310
34311 if (!args) SWIG_fail;
34312 swig_obj[0] = args;
34313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34314 if (!SWIG_IsOK(res1)) {
34315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34316 }
34317 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34318 {
34319 PyThreadState* __tstate = wxPyBeginAllowThreads();
34320 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34321 wxPyEndAllowThreads(__tstate);
34322 if (PyErr_Occurred()) SWIG_fail;
34323 }
3ecece7e
RD
34324 {
34325 resultobj = wxPyMake_wxObject(result, (bool)0);
34326 }
0085ce49
RD
34327 return resultobj;
34328fail:
34329 return NULL;
34330}
34331
34332
34333SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34334 PyObject *resultobj = 0;
34335 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34336 wxImageList *arg2 = (wxImageList *) 0 ;
34337 void *argp1 = 0 ;
34338 int res1 = 0 ;
34339 void *argp2 = 0 ;
34340 int res2 = 0 ;
34341 PyObject * obj0 = 0 ;
34342 PyObject * obj1 = 0 ;
34343 char * kwnames[] = {
34344 (char *) "self",(char *) "imageList", NULL
34345 };
34346
34347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34349 if (!SWIG_IsOK(res1)) {
34350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34351 }
34352 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34353 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34354 if (!SWIG_IsOK(res2)) {
34355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34356 }
34357 arg2 = reinterpret_cast< wxImageList * >(argp2);
34358 {
34359 PyThreadState* __tstate = wxPyBeginAllowThreads();
34360 (arg1)->SetImageList(arg2);
34361 wxPyEndAllowThreads(__tstate);
34362 if (PyErr_Occurred()) SWIG_fail;
34363 }
34364 resultobj = SWIG_Py_Void();
34365 return resultobj;
34366fail:
34367 return NULL;
34368}
34369
34370
34371SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34372 PyObject *resultobj = 0;
34373 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34374 wxImageList *arg2 = (wxImageList *) 0 ;
34375 void *argp1 = 0 ;
34376 int res1 = 0 ;
34377 void *argp2 = 0 ;
34378 int res2 = 0 ;
34379 PyObject * obj0 = 0 ;
34380 PyObject * obj1 = 0 ;
34381 char * kwnames[] = {
34382 (char *) "self",(char *) "imageList", NULL
34383 };
34384
34385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34387 if (!SWIG_IsOK(res1)) {
34388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34389 }
34390 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34391 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34392 if (!SWIG_IsOK(res2)) {
34393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34394 }
34395 arg2 = reinterpret_cast< wxImageList * >(argp2);
34396 {
34397 PyThreadState* __tstate = wxPyBeginAllowThreads();
34398 (arg1)->SetStateImageList(arg2);
34399 wxPyEndAllowThreads(__tstate);
34400 if (PyErr_Occurred()) SWIG_fail;
34401 }
34402 resultobj = SWIG_Py_Void();
34403 return resultobj;
34404fail:
34405 return NULL;
34406}
34407
34408
34409SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34410 PyObject *resultobj = 0;
34411 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34412 wxImageList *arg2 = (wxImageList *) 0 ;
34413 void *argp1 = 0 ;
34414 int res1 = 0 ;
34415 int res2 = 0 ;
34416 PyObject * obj0 = 0 ;
34417 PyObject * obj1 = 0 ;
34418 char * kwnames[] = {
34419 (char *) "self",(char *) "imageList", NULL
34420 };
34421
34422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34424 if (!SWIG_IsOK(res1)) {
34425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34426 }
34427 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34428 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34429 if (!SWIG_IsOK(res2)) {
34430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34431 }
34432 {
34433 PyThreadState* __tstate = wxPyBeginAllowThreads();
34434 (arg1)->AssignImageList(arg2);
34435 wxPyEndAllowThreads(__tstate);
34436 if (PyErr_Occurred()) SWIG_fail;
34437 }
34438 resultobj = SWIG_Py_Void();
34439 return resultobj;
34440fail:
34441 return NULL;
34442}
34443
34444
34445SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34446 PyObject *resultobj = 0;
34447 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34448 wxImageList *arg2 = (wxImageList *) 0 ;
34449 void *argp1 = 0 ;
34450 int res1 = 0 ;
34451 int res2 = 0 ;
34452 PyObject * obj0 = 0 ;
34453 PyObject * obj1 = 0 ;
34454 char * kwnames[] = {
34455 (char *) "self",(char *) "imageList", NULL
34456 };
34457
34458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34460 if (!SWIG_IsOK(res1)) {
34461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34462 }
34463 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34464 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34465 if (!SWIG_IsOK(res2)) {
34466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34467 }
34468 {
34469 PyThreadState* __tstate = wxPyBeginAllowThreads();
34470 (arg1)->AssignStateImageList(arg2);
34471 wxPyEndAllowThreads(__tstate);
34472 if (PyErr_Occurred()) SWIG_fail;
34473 }
34474 resultobj = SWIG_Py_Void();
34475 return resultobj;
34476fail:
34477 return NULL;
34478}
34479
34480
34481SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34482 PyObject *resultobj = 0;
34483 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34484 wxTreeItemId *arg2 = 0 ;
34485 wxString result;
34486 void *argp1 = 0 ;
34487 int res1 = 0 ;
34488 void *argp2 = 0 ;
34489 int res2 = 0 ;
34490 PyObject * obj0 = 0 ;
34491 PyObject * obj1 = 0 ;
34492 char * kwnames[] = {
34493 (char *) "self",(char *) "item", NULL
34494 };
34495
34496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34498 if (!SWIG_IsOK(res1)) {
34499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34500 }
34501 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34502 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34503 if (!SWIG_IsOK(res2)) {
34504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34505 }
34506 if (!argp2) {
34507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34508 }
34509 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34510 {
34511 PyThreadState* __tstate = wxPyBeginAllowThreads();
34512 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34513 wxPyEndAllowThreads(__tstate);
34514 if (PyErr_Occurred()) SWIG_fail;
34515 }
34516 {
d14a1e28 34517#if wxUSE_UNICODE
0085ce49 34518 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 34519#else
0085ce49 34520 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 34521#endif
0085ce49
RD
34522 }
34523 return resultobj;
34524fail:
34525 return NULL;
34526}
34527
34528
34529SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34530 PyObject *resultobj = 0;
34531 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34532 wxTreeItemId *arg2 = 0 ;
34533 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34534 int result;
34535 void *argp1 = 0 ;
34536 int res1 = 0 ;
34537 void *argp2 = 0 ;
34538 int res2 = 0 ;
34539 int val3 ;
34540 int ecode3 = 0 ;
34541 PyObject * obj0 = 0 ;
34542 PyObject * obj1 = 0 ;
34543 PyObject * obj2 = 0 ;
34544 char * kwnames[] = {
34545 (char *) "self",(char *) "item",(char *) "which", NULL
34546 };
34547
34548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34550 if (!SWIG_IsOK(res1)) {
34551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34552 }
34553 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34554 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34555 if (!SWIG_IsOK(res2)) {
34556 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34557 }
34558 if (!argp2) {
34559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34560 }
34561 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34562 if (obj2) {
34563 ecode3 = SWIG_AsVal_int(obj2, &val3);
34564 if (!SWIG_IsOK(ecode3)) {
34565 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34566 }
34567 arg3 = static_cast< wxTreeItemIcon >(val3);
34568 }
34569 {
34570 PyThreadState* __tstate = wxPyBeginAllowThreads();
34571 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34572 wxPyEndAllowThreads(__tstate);
34573 if (PyErr_Occurred()) SWIG_fail;
34574 }
34575 resultobj = SWIG_From_int(static_cast< int >(result));
34576 return resultobj;
34577fail:
34578 return NULL;
34579}
34580
34581
34582SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34583 PyObject *resultobj = 0;
34584 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34585 wxTreeItemId *arg2 = 0 ;
34586 wxPyTreeItemData *result = 0 ;
34587 void *argp1 = 0 ;
34588 int res1 = 0 ;
34589 void *argp2 = 0 ;
34590 int res2 = 0 ;
34591 PyObject * obj0 = 0 ;
34592 PyObject * obj1 = 0 ;
34593 char * kwnames[] = {
34594 (char *) "self",(char *) "item", NULL
34595 };
34596
34597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34599 if (!SWIG_IsOK(res1)) {
34600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34601 }
34602 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34603 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34604 if (!SWIG_IsOK(res2)) {
34605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34606 }
34607 if (!argp2) {
34608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34609 }
34610 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34611 {
34612 PyThreadState* __tstate = wxPyBeginAllowThreads();
34613 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34614 wxPyEndAllowThreads(__tstate);
34615 if (PyErr_Occurred()) SWIG_fail;
34616 }
34617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34618 return resultobj;
34619fail:
34620 return NULL;
34621}
34622
34623
34624SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34625 PyObject *resultobj = 0;
34626 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34627 wxTreeItemId *arg2 = 0 ;
34628 PyObject *result = 0 ;
34629 void *argp1 = 0 ;
34630 int res1 = 0 ;
34631 void *argp2 = 0 ;
34632 int res2 = 0 ;
34633 PyObject * obj0 = 0 ;
34634 PyObject * obj1 = 0 ;
34635 char * kwnames[] = {
34636 (char *) "self",(char *) "item", NULL
34637 };
34638
34639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34641 if (!SWIG_IsOK(res1)) {
34642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34643 }
34644 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34646 if (!SWIG_IsOK(res2)) {
34647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34648 }
34649 if (!argp2) {
34650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34651 }
34652 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34653 {
34654 PyThreadState* __tstate = wxPyBeginAllowThreads();
34655 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34656 wxPyEndAllowThreads(__tstate);
34657 if (PyErr_Occurred()) SWIG_fail;
34658 }
34659 resultobj = result;
34660 return resultobj;
34661fail:
34662 return NULL;
34663}
34664
34665
34666SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34667 PyObject *resultobj = 0;
34668 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34669 wxTreeItemId *arg2 = 0 ;
34670 wxColour result;
34671 void *argp1 = 0 ;
34672 int res1 = 0 ;
34673 void *argp2 = 0 ;
34674 int res2 = 0 ;
34675 PyObject * obj0 = 0 ;
34676 PyObject * obj1 = 0 ;
34677 char * kwnames[] = {
34678 (char *) "self",(char *) "item", NULL
34679 };
34680
34681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34683 if (!SWIG_IsOK(res1)) {
34684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34685 }
34686 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34687 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34688 if (!SWIG_IsOK(res2)) {
34689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34690 }
34691 if (!argp2) {
34692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34693 }
34694 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34695 {
34696 PyThreadState* __tstate = wxPyBeginAllowThreads();
34697 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34698 wxPyEndAllowThreads(__tstate);
34699 if (PyErr_Occurred()) SWIG_fail;
34700 }
34701 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34702 return resultobj;
34703fail:
34704 return NULL;
34705}
34706
34707
34708SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34709 PyObject *resultobj = 0;
34710 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34711 wxTreeItemId *arg2 = 0 ;
34712 wxColour result;
34713 void *argp1 = 0 ;
34714 int res1 = 0 ;
34715 void *argp2 = 0 ;
34716 int res2 = 0 ;
34717 PyObject * obj0 = 0 ;
34718 PyObject * obj1 = 0 ;
34719 char * kwnames[] = {
34720 (char *) "self",(char *) "item", NULL
34721 };
34722
34723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34725 if (!SWIG_IsOK(res1)) {
34726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34727 }
34728 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34729 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34730 if (!SWIG_IsOK(res2)) {
34731 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34732 }
34733 if (!argp2) {
34734 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34735 }
34736 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34737 {
34738 PyThreadState* __tstate = wxPyBeginAllowThreads();
34739 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34740 wxPyEndAllowThreads(__tstate);
34741 if (PyErr_Occurred()) SWIG_fail;
34742 }
34743 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34744 return resultobj;
34745fail:
34746 return NULL;
34747}
34748
34749
34750SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34751 PyObject *resultobj = 0;
34752 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34753 wxTreeItemId *arg2 = 0 ;
34754 wxFont result;
34755 void *argp1 = 0 ;
34756 int res1 = 0 ;
34757 void *argp2 = 0 ;
34758 int res2 = 0 ;
34759 PyObject * obj0 = 0 ;
34760 PyObject * obj1 = 0 ;
34761 char * kwnames[] = {
34762 (char *) "self",(char *) "item", NULL
34763 };
34764
34765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34767 if (!SWIG_IsOK(res1)) {
34768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34769 }
34770 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34771 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34772 if (!SWIG_IsOK(res2)) {
34773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34774 }
34775 if (!argp2) {
34776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34777 }
34778 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34779 {
34780 PyThreadState* __tstate = wxPyBeginAllowThreads();
34781 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34782 wxPyEndAllowThreads(__tstate);
34783 if (PyErr_Occurred()) SWIG_fail;
34784 }
34785 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34786 return resultobj;
34787fail:
34788 return NULL;
34789}
34790
34791
34792SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34793 PyObject *resultobj = 0;
34794 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34795 wxTreeItemId *arg2 = 0 ;
34796 wxString *arg3 = 0 ;
34797 void *argp1 = 0 ;
34798 int res1 = 0 ;
34799 void *argp2 = 0 ;
34800 int res2 = 0 ;
34801 bool temp3 = false ;
34802 PyObject * obj0 = 0 ;
34803 PyObject * obj1 = 0 ;
34804 PyObject * obj2 = 0 ;
34805 char * kwnames[] = {
34806 (char *) "self",(char *) "item",(char *) "text", NULL
34807 };
34808
34809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34811 if (!SWIG_IsOK(res1)) {
34812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34813 }
34814 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34815 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34816 if (!SWIG_IsOK(res2)) {
34817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34818 }
34819 if (!argp2) {
34820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34821 }
34822 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34823 {
34824 arg3 = wxString_in_helper(obj2);
34825 if (arg3 == NULL) SWIG_fail;
34826 temp3 = true;
34827 }
34828 {
34829 PyThreadState* __tstate = wxPyBeginAllowThreads();
34830 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34831 wxPyEndAllowThreads(__tstate);
34832 if (PyErr_Occurred()) SWIG_fail;
34833 }
34834 resultobj = SWIG_Py_Void();
34835 {
34836 if (temp3)
34837 delete arg3;
34838 }
34839 return resultobj;
34840fail:
34841 {
34842 if (temp3)
34843 delete arg3;
34844 }
34845 return NULL;
34846}
34847
34848
34849SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34850 PyObject *resultobj = 0;
34851 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34852 wxTreeItemId *arg2 = 0 ;
34853 int arg3 ;
34854 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34855 void *argp1 = 0 ;
34856 int res1 = 0 ;
34857 void *argp2 = 0 ;
34858 int res2 = 0 ;
34859 int val3 ;
34860 int ecode3 = 0 ;
34861 int val4 ;
34862 int ecode4 = 0 ;
34863 PyObject * obj0 = 0 ;
34864 PyObject * obj1 = 0 ;
34865 PyObject * obj2 = 0 ;
34866 PyObject * obj3 = 0 ;
34867 char * kwnames[] = {
34868 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34869 };
34870
34871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34873 if (!SWIG_IsOK(res1)) {
34874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34875 }
34876 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34878 if (!SWIG_IsOK(res2)) {
34879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34880 }
34881 if (!argp2) {
34882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34883 }
34884 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34885 ecode3 = SWIG_AsVal_int(obj2, &val3);
34886 if (!SWIG_IsOK(ecode3)) {
34887 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34888 }
34889 arg3 = static_cast< int >(val3);
34890 if (obj3) {
34891 ecode4 = SWIG_AsVal_int(obj3, &val4);
34892 if (!SWIG_IsOK(ecode4)) {
34893 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34894 }
34895 arg4 = static_cast< wxTreeItemIcon >(val4);
34896 }
34897 {
34898 PyThreadState* __tstate = wxPyBeginAllowThreads();
34899 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34900 wxPyEndAllowThreads(__tstate);
34901 if (PyErr_Occurred()) SWIG_fail;
34902 }
34903 resultobj = SWIG_Py_Void();
34904 return resultobj;
34905fail:
34906 return NULL;
34907}
34908
34909
34910SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34911 PyObject *resultobj = 0;
34912 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34913 wxTreeItemId *arg2 = 0 ;
34914 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34915 void *argp1 = 0 ;
34916 int res1 = 0 ;
34917 void *argp2 = 0 ;
34918 int res2 = 0 ;
34919 int res3 = 0 ;
34920 PyObject * obj0 = 0 ;
34921 PyObject * obj1 = 0 ;
34922 PyObject * obj2 = 0 ;
34923 char * kwnames[] = {
34924 (char *) "self",(char *) "item",(char *) "data", NULL
34925 };
34926
34927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34929 if (!SWIG_IsOK(res1)) {
34930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34931 }
34932 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34934 if (!SWIG_IsOK(res2)) {
34935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34936 }
34937 if (!argp2) {
34938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34939 }
34940 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34941 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34942 if (!SWIG_IsOK(res3)) {
34943 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34944 }
34945 {
34946 PyThreadState* __tstate = wxPyBeginAllowThreads();
34947 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34948 wxPyEndAllowThreads(__tstate);
34949 if (PyErr_Occurred()) SWIG_fail;
34950 }
34951 resultobj = SWIG_Py_Void();
34952 return resultobj;
34953fail:
34954 return NULL;
34955}
34956
34957
34958SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34959 PyObject *resultobj = 0;
34960 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34961 wxTreeItemId *arg2 = 0 ;
34962 PyObject *arg3 = (PyObject *) 0 ;
34963 void *argp1 = 0 ;
34964 int res1 = 0 ;
34965 void *argp2 = 0 ;
34966 int res2 = 0 ;
34967 PyObject * obj0 = 0 ;
34968 PyObject * obj1 = 0 ;
34969 PyObject * obj2 = 0 ;
34970 char * kwnames[] = {
34971 (char *) "self",(char *) "item",(char *) "obj", NULL
34972 };
34973
34974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34976 if (!SWIG_IsOK(res1)) {
34977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34978 }
34979 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34980 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34981 if (!SWIG_IsOK(res2)) {
34982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34983 }
34984 if (!argp2) {
34985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34986 }
34987 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34988 arg3 = obj2;
34989 {
34990 PyThreadState* __tstate = wxPyBeginAllowThreads();
34991 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,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_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35003 PyObject *resultobj = 0;
35004 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35005 wxTreeItemId *arg2 = 0 ;
35006 bool arg3 = (bool) true ;
35007 void *argp1 = 0 ;
35008 int res1 = 0 ;
35009 void *argp2 = 0 ;
35010 int res2 = 0 ;
35011 bool val3 ;
35012 int ecode3 = 0 ;
35013 PyObject * obj0 = 0 ;
35014 PyObject * obj1 = 0 ;
35015 PyObject * obj2 = 0 ;
35016 char * kwnames[] = {
35017 (char *) "self",(char *) "item",(char *) "has", NULL
35018 };
35019
35020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",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_SetItemHasChildren" "', 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_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35029 }
35030 if (!argp2) {
35031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35032 }
35033 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35034 if (obj2) {
35035 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35036 if (!SWIG_IsOK(ecode3)) {
35037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35038 }
35039 arg3 = static_cast< bool >(val3);
35040 }
35041 {
35042 PyThreadState* __tstate = wxPyBeginAllowThreads();
35043 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35044 wxPyEndAllowThreads(__tstate);
35045 if (PyErr_Occurred()) SWIG_fail;
35046 }
35047 resultobj = SWIG_Py_Void();
35048 return resultobj;
35049fail:
35050 return NULL;
35051}
35052
35053
35054SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35055 PyObject *resultobj = 0;
35056 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35057 wxTreeItemId *arg2 = 0 ;
35058 bool arg3 = (bool) true ;
35059 void *argp1 = 0 ;
35060 int res1 = 0 ;
35061 void *argp2 = 0 ;
35062 int res2 = 0 ;
35063 bool val3 ;
35064 int ecode3 = 0 ;
35065 PyObject * obj0 = 0 ;
35066 PyObject * obj1 = 0 ;
35067 PyObject * obj2 = 0 ;
35068 char * kwnames[] = {
35069 (char *) "self",(char *) "item",(char *) "bold", NULL
35070 };
35071
35072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35074 if (!SWIG_IsOK(res1)) {
35075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35076 }
35077 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35078 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35079 if (!SWIG_IsOK(res2)) {
35080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35081 }
35082 if (!argp2) {
35083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35084 }
35085 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35086 if (obj2) {
35087 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35088 if (!SWIG_IsOK(ecode3)) {
35089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35090 }
35091 arg3 = static_cast< bool >(val3);
35092 }
35093 {
35094 PyThreadState* __tstate = wxPyBeginAllowThreads();
35095 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35096 wxPyEndAllowThreads(__tstate);
35097 if (PyErr_Occurred()) SWIG_fail;
35098 }
35099 resultobj = SWIG_Py_Void();
35100 return resultobj;
35101fail:
35102 return NULL;
35103}
35104
35105
35106SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35107 PyObject *resultobj = 0;
35108 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35109 wxTreeItemId *arg2 = 0 ;
35110 bool arg3 = (bool) true ;
35111 void *argp1 = 0 ;
35112 int res1 = 0 ;
35113 void *argp2 = 0 ;
35114 int res2 = 0 ;
35115 bool val3 ;
35116 int ecode3 = 0 ;
35117 PyObject * obj0 = 0 ;
35118 PyObject * obj1 = 0 ;
35119 PyObject * obj2 = 0 ;
35120 char * kwnames[] = {
35121 (char *) "self",(char *) "item",(char *) "highlight", NULL
35122 };
35123
35124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35126 if (!SWIG_IsOK(res1)) {
35127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35128 }
35129 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35130 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35131 if (!SWIG_IsOK(res2)) {
35132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35133 }
35134 if (!argp2) {
35135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35136 }
35137 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35138 if (obj2) {
35139 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35140 if (!SWIG_IsOK(ecode3)) {
35141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35142 }
35143 arg3 = static_cast< bool >(val3);
35144 }
35145 {
35146 PyThreadState* __tstate = wxPyBeginAllowThreads();
35147 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35148 wxPyEndAllowThreads(__tstate);
35149 if (PyErr_Occurred()) SWIG_fail;
35150 }
35151 resultobj = SWIG_Py_Void();
35152 return resultobj;
35153fail:
35154 return NULL;
35155}
35156
35157
35158SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35159 PyObject *resultobj = 0;
35160 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35161 wxTreeItemId *arg2 = 0 ;
35162 wxColour *arg3 = 0 ;
35163 void *argp1 = 0 ;
35164 int res1 = 0 ;
35165 void *argp2 = 0 ;
35166 int res2 = 0 ;
35167 wxColour temp3 ;
35168 PyObject * obj0 = 0 ;
35169 PyObject * obj1 = 0 ;
35170 PyObject * obj2 = 0 ;
35171 char * kwnames[] = {
35172 (char *) "self",(char *) "item",(char *) "col", NULL
35173 };
35174
35175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35177 if (!SWIG_IsOK(res1)) {
35178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35179 }
35180 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35181 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35182 if (!SWIG_IsOK(res2)) {
35183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35184 }
35185 if (!argp2) {
35186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35187 }
35188 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35189 {
35190 arg3 = &temp3;
35191 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35192 }
35193 {
35194 PyThreadState* __tstate = wxPyBeginAllowThreads();
35195 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35196 wxPyEndAllowThreads(__tstate);
35197 if (PyErr_Occurred()) SWIG_fail;
35198 }
35199 resultobj = SWIG_Py_Void();
35200 return resultobj;
35201fail:
35202 return NULL;
35203}
35204
35205
35206SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35207 PyObject *resultobj = 0;
35208 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35209 wxTreeItemId *arg2 = 0 ;
35210 wxColour *arg3 = 0 ;
35211 void *argp1 = 0 ;
35212 int res1 = 0 ;
35213 void *argp2 = 0 ;
35214 int res2 = 0 ;
35215 wxColour temp3 ;
35216 PyObject * obj0 = 0 ;
35217 PyObject * obj1 = 0 ;
35218 PyObject * obj2 = 0 ;
35219 char * kwnames[] = {
35220 (char *) "self",(char *) "item",(char *) "col", NULL
35221 };
35222
35223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35225 if (!SWIG_IsOK(res1)) {
35226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35227 }
35228 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35229 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35230 if (!SWIG_IsOK(res2)) {
35231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35232 }
35233 if (!argp2) {
35234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35235 }
35236 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35237 {
35238 arg3 = &temp3;
35239 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35240 }
35241 {
35242 PyThreadState* __tstate = wxPyBeginAllowThreads();
35243 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35244 wxPyEndAllowThreads(__tstate);
35245 if (PyErr_Occurred()) SWIG_fail;
35246 }
35247 resultobj = SWIG_Py_Void();
35248 return resultobj;
35249fail:
35250 return NULL;
35251}
35252
35253
35254SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35255 PyObject *resultobj = 0;
35256 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35257 wxTreeItemId *arg2 = 0 ;
35258 wxFont *arg3 = 0 ;
35259 void *argp1 = 0 ;
35260 int res1 = 0 ;
35261 void *argp2 = 0 ;
35262 int res2 = 0 ;
35263 void *argp3 = 0 ;
35264 int res3 = 0 ;
35265 PyObject * obj0 = 0 ;
35266 PyObject * obj1 = 0 ;
35267 PyObject * obj2 = 0 ;
35268 char * kwnames[] = {
35269 (char *) "self",(char *) "item",(char *) "font", NULL
35270 };
35271
35272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35274 if (!SWIG_IsOK(res1)) {
35275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35276 }
35277 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35278 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35279 if (!SWIG_IsOK(res2)) {
35280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35281 }
35282 if (!argp2) {
35283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35284 }
35285 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35286 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35287 if (!SWIG_IsOK(res3)) {
35288 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35289 }
35290 if (!argp3) {
35291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35292 }
35293 arg3 = reinterpret_cast< wxFont * >(argp3);
35294 {
35295 PyThreadState* __tstate = wxPyBeginAllowThreads();
35296 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35297 wxPyEndAllowThreads(__tstate);
35298 if (PyErr_Occurred()) SWIG_fail;
35299 }
35300 resultobj = SWIG_Py_Void();
35301 return resultobj;
35302fail:
35303 return NULL;
35304}
35305
35306
35307SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35308 PyObject *resultobj = 0;
35309 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35310 wxTreeItemId *arg2 = 0 ;
35311 bool result;
35312 void *argp1 = 0 ;
35313 int res1 = 0 ;
35314 void *argp2 = 0 ;
35315 int res2 = 0 ;
35316 PyObject * obj0 = 0 ;
35317 PyObject * obj1 = 0 ;
35318 char * kwnames[] = {
35319 (char *) "self",(char *) "item", NULL
35320 };
35321
35322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35324 if (!SWIG_IsOK(res1)) {
35325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35326 }
35327 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35328 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35329 if (!SWIG_IsOK(res2)) {
35330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35331 }
35332 if (!argp2) {
35333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35334 }
35335 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35336 {
35337 PyThreadState* __tstate = wxPyBeginAllowThreads();
35338 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35339 wxPyEndAllowThreads(__tstate);
35340 if (PyErr_Occurred()) SWIG_fail;
35341 }
35342 {
35343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35344 }
35345 return resultobj;
35346fail:
35347 return NULL;
35348}
35349
35350
35351SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35352 PyObject *resultobj = 0;
35353 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35354 wxTreeItemId *arg2 = 0 ;
35355 bool result;
35356 void *argp1 = 0 ;
35357 int res1 = 0 ;
35358 void *argp2 = 0 ;
35359 int res2 = 0 ;
35360 PyObject * obj0 = 0 ;
35361 PyObject * obj1 = 0 ;
35362 char * kwnames[] = {
35363 (char *) "self",(char *) "item", NULL
35364 };
35365
35366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35368 if (!SWIG_IsOK(res1)) {
35369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35370 }
35371 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35373 if (!SWIG_IsOK(res2)) {
35374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35375 }
35376 if (!argp2) {
35377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35378 }
35379 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35380 {
35381 PyThreadState* __tstate = wxPyBeginAllowThreads();
35382 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35383 wxPyEndAllowThreads(__tstate);
35384 if (PyErr_Occurred()) SWIG_fail;
35385 }
35386 {
35387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35388 }
35389 return resultobj;
35390fail:
35391 return NULL;
35392}
35393
35394
35395SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35396 PyObject *resultobj = 0;
35397 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35398 wxTreeItemId *arg2 = 0 ;
35399 bool result;
35400 void *argp1 = 0 ;
35401 int res1 = 0 ;
35402 void *argp2 = 0 ;
35403 int res2 = 0 ;
35404 PyObject * obj0 = 0 ;
35405 PyObject * obj1 = 0 ;
35406 char * kwnames[] = {
35407 (char *) "self",(char *) "item", NULL
35408 };
35409
35410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35412 if (!SWIG_IsOK(res1)) {
35413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35414 }
35415 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35417 if (!SWIG_IsOK(res2)) {
35418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35419 }
35420 if (!argp2) {
35421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35422 }
35423 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35424 {
35425 PyThreadState* __tstate = wxPyBeginAllowThreads();
35426 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35427 wxPyEndAllowThreads(__tstate);
35428 if (PyErr_Occurred()) SWIG_fail;
35429 }
35430 {
35431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35432 }
35433 return resultobj;
35434fail:
35435 return NULL;
35436}
35437
35438
35439SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35440 PyObject *resultobj = 0;
35441 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35442 wxTreeItemId *arg2 = 0 ;
35443 bool result;
35444 void *argp1 = 0 ;
35445 int res1 = 0 ;
35446 void *argp2 = 0 ;
35447 int res2 = 0 ;
35448 PyObject * obj0 = 0 ;
35449 PyObject * obj1 = 0 ;
35450 char * kwnames[] = {
35451 (char *) "self",(char *) "item", NULL
35452 };
35453
35454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35456 if (!SWIG_IsOK(res1)) {
35457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35458 }
35459 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35461 if (!SWIG_IsOK(res2)) {
35462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35463 }
35464 if (!argp2) {
35465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35466 }
35467 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35468 {
35469 PyThreadState* __tstate = wxPyBeginAllowThreads();
35470 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35471 wxPyEndAllowThreads(__tstate);
35472 if (PyErr_Occurred()) SWIG_fail;
35473 }
35474 {
35475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35476 }
35477 return resultobj;
35478fail:
35479 return NULL;
35480}
35481
35482
35483SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35484 PyObject *resultobj = 0;
35485 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35486 wxTreeItemId *arg2 = 0 ;
35487 bool result;
35488 void *argp1 = 0 ;
35489 int res1 = 0 ;
35490 void *argp2 = 0 ;
35491 int res2 = 0 ;
35492 PyObject * obj0 = 0 ;
35493 PyObject * obj1 = 0 ;
35494 char * kwnames[] = {
35495 (char *) "self",(char *) "item", NULL
35496 };
35497
35498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35500 if (!SWIG_IsOK(res1)) {
35501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35502 }
35503 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35504 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35505 if (!SWIG_IsOK(res2)) {
35506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35507 }
35508 if (!argp2) {
35509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35510 }
35511 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35512 {
35513 PyThreadState* __tstate = wxPyBeginAllowThreads();
35514 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35515 wxPyEndAllowThreads(__tstate);
35516 if (PyErr_Occurred()) SWIG_fail;
35517 }
35518 {
35519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35520 }
35521 return resultobj;
35522fail:
35523 return NULL;
35524}
35525
35526
35527SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35528 PyObject *resultobj = 0;
35529 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35530 wxTreeItemId *arg2 = 0 ;
35531 bool arg3 = (bool) true ;
35532 size_t result;
35533 void *argp1 = 0 ;
35534 int res1 = 0 ;
35535 void *argp2 = 0 ;
35536 int res2 = 0 ;
35537 bool val3 ;
35538 int ecode3 = 0 ;
35539 PyObject * obj0 = 0 ;
35540 PyObject * obj1 = 0 ;
35541 PyObject * obj2 = 0 ;
35542 char * kwnames[] = {
35543 (char *) "self",(char *) "item",(char *) "recursively", NULL
35544 };
35545
35546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35548 if (!SWIG_IsOK(res1)) {
35549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35550 }
35551 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35553 if (!SWIG_IsOK(res2)) {
35554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35555 }
35556 if (!argp2) {
35557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35558 }
35559 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35560 if (obj2) {
35561 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35562 if (!SWIG_IsOK(ecode3)) {
35563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35564 }
35565 arg3 = static_cast< bool >(val3);
35566 }
35567 {
35568 PyThreadState* __tstate = wxPyBeginAllowThreads();
35569 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35570 wxPyEndAllowThreads(__tstate);
35571 if (PyErr_Occurred()) SWIG_fail;
35572 }
35573 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35574 return resultobj;
35575fail:
35576 return NULL;
d14a1e28
RD
35577}
35578
35579
0085ce49
RD
35580SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35581 PyObject *resultobj = 0;
35582 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35583 wxTreeItemId result;
35584 void *argp1 = 0 ;
35585 int res1 = 0 ;
35586 PyObject *swig_obj[1] ;
35587
35588 if (!args) SWIG_fail;
35589 swig_obj[0] = args;
35590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35591 if (!SWIG_IsOK(res1)) {
35592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35593 }
35594 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35595 {
35596 PyThreadState* __tstate = wxPyBeginAllowThreads();
35597 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35598 wxPyEndAllowThreads(__tstate);
35599 if (PyErr_Occurred()) SWIG_fail;
35600 }
35601 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35602 return resultobj;
35603fail:
35604 return NULL;
d14a1e28
RD
35605}
35606
35607
0085ce49
RD
35608SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35609 PyObject *resultobj = 0;
35610 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35611 wxTreeItemId result;
35612 void *argp1 = 0 ;
35613 int res1 = 0 ;
35614 PyObject *swig_obj[1] ;
35615
35616 if (!args) SWIG_fail;
35617 swig_obj[0] = args;
35618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35619 if (!SWIG_IsOK(res1)) {
35620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35621 }
35622 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35623 {
35624 PyThreadState* __tstate = wxPyBeginAllowThreads();
35625 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35626 wxPyEndAllowThreads(__tstate);
35627 if (PyErr_Occurred()) SWIG_fail;
35628 }
35629 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35630 return resultobj;
35631fail:
35632 return NULL;
d14a1e28
RD
35633}
35634
35635
0085ce49
RD
35636SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35637 PyObject *resultobj = 0;
35638 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35639 PyObject *result = 0 ;
35640 void *argp1 = 0 ;
35641 int res1 = 0 ;
35642 PyObject *swig_obj[1] ;
35643
35644 if (!args) SWIG_fail;
35645 swig_obj[0] = args;
35646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35647 if (!SWIG_IsOK(res1)) {
35648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35649 }
35650 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35651 {
35652 PyThreadState* __tstate = wxPyBeginAllowThreads();
35653 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35654 wxPyEndAllowThreads(__tstate);
35655 if (PyErr_Occurred()) SWIG_fail;
35656 }
35657 resultobj = result;
35658 return resultobj;
35659fail:
35660 return NULL;
35661}
35662
35663
35664SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35665 PyObject *resultobj = 0;
35666 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35667 wxTreeItemId *arg2 = 0 ;
35668 wxTreeItemId result;
35669 void *argp1 = 0 ;
35670 int res1 = 0 ;
35671 void *argp2 = 0 ;
35672 int res2 = 0 ;
35673 PyObject * obj0 = 0 ;
35674 PyObject * obj1 = 0 ;
35675 char * kwnames[] = {
35676 (char *) "self",(char *) "item", NULL
35677 };
35678
35679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35681 if (!SWIG_IsOK(res1)) {
35682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35683 }
35684 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35685 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35686 if (!SWIG_IsOK(res2)) {
35687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35688 }
35689 if (!argp2) {
35690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35691 }
35692 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35693 {
35694 PyThreadState* __tstate = wxPyBeginAllowThreads();
35695 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35696 wxPyEndAllowThreads(__tstate);
35697 if (PyErr_Occurred()) SWIG_fail;
35698 }
35699 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35700 return resultobj;
35701fail:
35702 return NULL;
35703}
35704
35705
35706SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35707 PyObject *resultobj = 0;
35708 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35709 wxTreeItemId *arg2 = 0 ;
35710 PyObject *result = 0 ;
35711 void *argp1 = 0 ;
35712 int res1 = 0 ;
35713 void *argp2 = 0 ;
35714 int res2 = 0 ;
35715 PyObject * obj0 = 0 ;
35716 PyObject * obj1 = 0 ;
35717 char * kwnames[] = {
35718 (char *) "self",(char *) "item", NULL
35719 };
35720
35721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35723 if (!SWIG_IsOK(res1)) {
35724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35725 }
35726 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35728 if (!SWIG_IsOK(res2)) {
35729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35730 }
35731 if (!argp2) {
35732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35733 }
35734 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35735 {
35736 PyThreadState* __tstate = wxPyBeginAllowThreads();
35737 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35738 wxPyEndAllowThreads(__tstate);
35739 if (PyErr_Occurred()) SWIG_fail;
35740 }
35741 resultobj = result;
35742 return resultobj;
35743fail:
35744 return NULL;
35745}
35746
35747
35748SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35749 PyObject *resultobj = 0;
35750 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35751 wxTreeItemId *arg2 = 0 ;
35752 void *arg3 = (void *) 0 ;
35753 PyObject *result = 0 ;
35754 void *argp1 = 0 ;
35755 int res1 = 0 ;
35756 void *argp2 = 0 ;
35757 int res2 = 0 ;
35758 int res3 ;
35759 PyObject * obj0 = 0 ;
35760 PyObject * obj1 = 0 ;
35761 PyObject * obj2 = 0 ;
35762 char * kwnames[] = {
35763 (char *) "self",(char *) "item",(char *) "cookie", NULL
35764 };
35765
35766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35768 if (!SWIG_IsOK(res1)) {
35769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35770 }
35771 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35772 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35773 if (!SWIG_IsOK(res2)) {
35774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35775 }
35776 if (!argp2) {
35777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35778 }
35779 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35780 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35781 if (!SWIG_IsOK(res3)) {
35782 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35783 }
35784 {
35785 PyThreadState* __tstate = wxPyBeginAllowThreads();
35786 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35787 wxPyEndAllowThreads(__tstate);
35788 if (PyErr_Occurred()) SWIG_fail;
35789 }
35790 resultobj = result;
35791 return resultobj;
35792fail:
35793 return NULL;
35794}
35795
35796
35797SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35798 PyObject *resultobj = 0;
35799 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35800 wxTreeItemId *arg2 = 0 ;
35801 wxTreeItemId result;
35802 void *argp1 = 0 ;
35803 int res1 = 0 ;
35804 void *argp2 = 0 ;
35805 int res2 = 0 ;
35806 PyObject * obj0 = 0 ;
35807 PyObject * obj1 = 0 ;
35808 char * kwnames[] = {
35809 (char *) "self",(char *) "item", NULL
35810 };
35811
35812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35814 if (!SWIG_IsOK(res1)) {
35815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35816 }
35817 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35818 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35819 if (!SWIG_IsOK(res2)) {
35820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35821 }
35822 if (!argp2) {
35823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35824 }
35825 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35826 {
35827 PyThreadState* __tstate = wxPyBeginAllowThreads();
35828 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35829 wxPyEndAllowThreads(__tstate);
35830 if (PyErr_Occurred()) SWIG_fail;
35831 }
35832 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35833 return resultobj;
35834fail:
35835 return NULL;
35836}
35837
35838
35839SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35840 PyObject *resultobj = 0;
35841 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35842 wxTreeItemId *arg2 = 0 ;
35843 wxTreeItemId result;
35844 void *argp1 = 0 ;
35845 int res1 = 0 ;
35846 void *argp2 = 0 ;
35847 int res2 = 0 ;
35848 PyObject * obj0 = 0 ;
35849 PyObject * obj1 = 0 ;
35850 char * kwnames[] = {
35851 (char *) "self",(char *) "item", NULL
35852 };
35853
35854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35856 if (!SWIG_IsOK(res1)) {
35857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35858 }
35859 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35860 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35861 if (!SWIG_IsOK(res2)) {
35862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35863 }
35864 if (!argp2) {
35865 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35866 }
35867 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35868 {
35869 PyThreadState* __tstate = wxPyBeginAllowThreads();
35870 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35871 wxPyEndAllowThreads(__tstate);
35872 if (PyErr_Occurred()) SWIG_fail;
35873 }
35874 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35875 return resultobj;
35876fail:
35877 return NULL;
35878}
35879
35880
35881SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35882 PyObject *resultobj = 0;
35883 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35884 wxTreeItemId *arg2 = 0 ;
35885 wxTreeItemId result;
35886 void *argp1 = 0 ;
35887 int res1 = 0 ;
35888 void *argp2 = 0 ;
35889 int res2 = 0 ;
35890 PyObject * obj0 = 0 ;
35891 PyObject * obj1 = 0 ;
35892 char * kwnames[] = {
35893 (char *) "self",(char *) "item", NULL
35894 };
35895
35896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35898 if (!SWIG_IsOK(res1)) {
35899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35900 }
35901 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35902 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35903 if (!SWIG_IsOK(res2)) {
35904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35905 }
35906 if (!argp2) {
35907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35908 }
35909 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35910 {
35911 PyThreadState* __tstate = wxPyBeginAllowThreads();
35912 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35913 wxPyEndAllowThreads(__tstate);
35914 if (PyErr_Occurred()) SWIG_fail;
35915 }
35916 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35917 return resultobj;
35918fail:
35919 return NULL;
d14a1e28
RD
35920}
35921
35922
0085ce49
RD
35923SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35924 PyObject *resultobj = 0;
35925 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35926 wxTreeItemId result;
35927 void *argp1 = 0 ;
35928 int res1 = 0 ;
35929 PyObject *swig_obj[1] ;
35930
35931 if (!args) SWIG_fail;
35932 swig_obj[0] = args;
35933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35934 if (!SWIG_IsOK(res1)) {
35935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35936 }
35937 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35938 {
35939 PyThreadState* __tstate = wxPyBeginAllowThreads();
35940 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35941 wxPyEndAllowThreads(__tstate);
35942 if (PyErr_Occurred()) SWIG_fail;
35943 }
35944 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35945 return resultobj;
35946fail:
35947 return NULL;
35948}
35949
35950
35951SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35952 PyObject *resultobj = 0;
35953 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35954 wxTreeItemId *arg2 = 0 ;
35955 wxTreeItemId result;
35956 void *argp1 = 0 ;
35957 int res1 = 0 ;
35958 void *argp2 = 0 ;
35959 int res2 = 0 ;
35960 PyObject * obj0 = 0 ;
35961 PyObject * obj1 = 0 ;
35962 char * kwnames[] = {
35963 (char *) "self",(char *) "item", NULL
35964 };
35965
35966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35968 if (!SWIG_IsOK(res1)) {
35969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35970 }
35971 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35972 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35973 if (!SWIG_IsOK(res2)) {
35974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35975 }
35976 if (!argp2) {
35977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35978 }
35979 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35980 {
35981 PyThreadState* __tstate = wxPyBeginAllowThreads();
35982 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35983 wxPyEndAllowThreads(__tstate);
35984 if (PyErr_Occurred()) SWIG_fail;
35985 }
35986 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35987 return resultobj;
35988fail:
35989 return NULL;
35990}
35991
35992
35993SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35994 PyObject *resultobj = 0;
35995 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35996 wxTreeItemId *arg2 = 0 ;
35997 wxTreeItemId result;
35998 void *argp1 = 0 ;
35999 int res1 = 0 ;
36000 void *argp2 = 0 ;
36001 int res2 = 0 ;
36002 PyObject * obj0 = 0 ;
36003 PyObject * obj1 = 0 ;
36004 char * kwnames[] = {
36005 (char *) "self",(char *) "item", NULL
36006 };
36007
36008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36010 if (!SWIG_IsOK(res1)) {
36011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36012 }
36013 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36014 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36015 if (!SWIG_IsOK(res2)) {
36016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36017 }
36018 if (!argp2) {
36019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36020 }
36021 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36022 {
36023 PyThreadState* __tstate = wxPyBeginAllowThreads();
36024 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36025 wxPyEndAllowThreads(__tstate);
36026 if (PyErr_Occurred()) SWIG_fail;
36027 }
36028 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36029 return resultobj;
36030fail:
36031 return NULL;
36032}
36033
36034
36035SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36036 PyObject *resultobj = 0;
36037 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36038 wxString *arg2 = 0 ;
36039 int arg3 = (int) -1 ;
36040 int arg4 = (int) -1 ;
36041 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36042 wxTreeItemId result;
36043 void *argp1 = 0 ;
36044 int res1 = 0 ;
36045 bool temp2 = false ;
36046 int val3 ;
36047 int ecode3 = 0 ;
36048 int val4 ;
36049 int ecode4 = 0 ;
36050 int res5 = 0 ;
36051 PyObject * obj0 = 0 ;
36052 PyObject * obj1 = 0 ;
36053 PyObject * obj2 = 0 ;
36054 PyObject * obj3 = 0 ;
36055 PyObject * obj4 = 0 ;
36056 char * kwnames[] = {
36057 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36058 };
36059
36060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36062 if (!SWIG_IsOK(res1)) {
36063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36064 }
36065 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36066 {
36067 arg2 = wxString_in_helper(obj1);
36068 if (arg2 == NULL) SWIG_fail;
36069 temp2 = true;
36070 }
36071 if (obj2) {
36072 ecode3 = SWIG_AsVal_int(obj2, &val3);
36073 if (!SWIG_IsOK(ecode3)) {
36074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36075 }
36076 arg3 = static_cast< int >(val3);
36077 }
36078 if (obj3) {
36079 ecode4 = SWIG_AsVal_int(obj3, &val4);
36080 if (!SWIG_IsOK(ecode4)) {
36081 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36082 }
36083 arg4 = static_cast< int >(val4);
36084 }
36085 if (obj4) {
36086 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36087 if (!SWIG_IsOK(res5)) {
36088 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
3a04f143 36089 }
0085ce49
RD
36090 }
36091 {
36092 PyThreadState* __tstate = wxPyBeginAllowThreads();
36093 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36094 wxPyEndAllowThreads(__tstate);
36095 if (PyErr_Occurred()) SWIG_fail;
36096 }
36097 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36098 {
36099 if (temp2)
36100 delete arg2;
36101 }
36102 return resultobj;
36103fail:
36104 {
36105 if (temp2)
36106 delete arg2;
36107 }
36108 return NULL;
36109}
36110
36111
36112SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36113 PyObject *resultobj = 0;
36114 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36115 wxTreeItemId *arg2 = 0 ;
36116 wxString *arg3 = 0 ;
36117 int arg4 = (int) -1 ;
36118 int arg5 = (int) -1 ;
36119 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36120 wxTreeItemId result;
36121 void *argp1 = 0 ;
36122 int res1 = 0 ;
36123 void *argp2 = 0 ;
36124 int res2 = 0 ;
36125 bool temp3 = false ;
36126 int val4 ;
36127 int ecode4 = 0 ;
36128 int val5 ;
36129 int ecode5 = 0 ;
36130 int res6 = 0 ;
36131 PyObject * obj0 = 0 ;
36132 PyObject * obj1 = 0 ;
36133 PyObject * obj2 = 0 ;
36134 PyObject * obj3 = 0 ;
36135 PyObject * obj4 = 0 ;
36136 PyObject * obj5 = 0 ;
36137 char * kwnames[] = {
36138 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36139 };
36140
36141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36143 if (!SWIG_IsOK(res1)) {
36144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36145 }
36146 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36147 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36148 if (!SWIG_IsOK(res2)) {
36149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36150 }
36151 if (!argp2) {
36152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36153 }
36154 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36155 {
36156 arg3 = wxString_in_helper(obj2);
36157 if (arg3 == NULL) SWIG_fail;
36158 temp3 = true;
36159 }
36160 if (obj3) {
36161 ecode4 = SWIG_AsVal_int(obj3, &val4);
36162 if (!SWIG_IsOK(ecode4)) {
36163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36164 }
36165 arg4 = static_cast< int >(val4);
36166 }
36167 if (obj4) {
36168 ecode5 = SWIG_AsVal_int(obj4, &val5);
36169 if (!SWIG_IsOK(ecode5)) {
36170 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36171 }
36172 arg5 = static_cast< int >(val5);
36173 }
36174 if (obj5) {
36175 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36176 if (!SWIG_IsOK(res6)) {
36177 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 36178 }
0085ce49
RD
36179 }
36180 {
36181 PyThreadState* __tstate = wxPyBeginAllowThreads();
36182 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36183 wxPyEndAllowThreads(__tstate);
36184 if (PyErr_Occurred()) SWIG_fail;
36185 }
36186 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36187 {
36188 if (temp3)
36189 delete arg3;
36190 }
36191 return resultobj;
36192fail:
36193 {
36194 if (temp3)
36195 delete arg3;
36196 }
36197 return NULL;
36198}
36199
36200
36201SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36202 PyObject *resultobj = 0;
36203 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36204 wxTreeItemId *arg2 = 0 ;
36205 wxTreeItemId *arg3 = 0 ;
36206 wxString *arg4 = 0 ;
36207 int arg5 = (int) -1 ;
36208 int arg6 = (int) -1 ;
36209 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36210 wxTreeItemId result;
36211 void *argp1 = 0 ;
36212 int res1 = 0 ;
36213 void *argp2 = 0 ;
36214 int res2 = 0 ;
36215 void *argp3 = 0 ;
36216 int res3 = 0 ;
36217 bool temp4 = false ;
36218 int val5 ;
36219 int ecode5 = 0 ;
36220 int val6 ;
36221 int ecode6 = 0 ;
36222 int res7 = 0 ;
36223 PyObject * obj0 = 0 ;
36224 PyObject * obj1 = 0 ;
36225 PyObject * obj2 = 0 ;
36226 PyObject * obj3 = 0 ;
36227 PyObject * obj4 = 0 ;
36228 PyObject * obj5 = 0 ;
36229 PyObject * obj6 = 0 ;
36230 char * kwnames[] = {
36231 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36232 };
36233
36234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36236 if (!SWIG_IsOK(res1)) {
36237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36238 }
36239 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36240 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36241 if (!SWIG_IsOK(res2)) {
36242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36243 }
36244 if (!argp2) {
36245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36246 }
36247 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36248 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36249 if (!SWIG_IsOK(res3)) {
36250 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36251 }
36252 if (!argp3) {
36253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36254 }
36255 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36256 {
36257 arg4 = wxString_in_helper(obj3);
36258 if (arg4 == NULL) SWIG_fail;
36259 temp4 = true;
36260 }
36261 if (obj4) {
36262 ecode5 = SWIG_AsVal_int(obj4, &val5);
36263 if (!SWIG_IsOK(ecode5)) {
36264 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36265 }
36266 arg5 = static_cast< int >(val5);
36267 }
36268 if (obj5) {
36269 ecode6 = SWIG_AsVal_int(obj5, &val6);
36270 if (!SWIG_IsOK(ecode6)) {
36271 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36272 }
36273 arg6 = static_cast< int >(val6);
36274 }
36275 if (obj6) {
36276 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36277 if (!SWIG_IsOK(res7)) {
36278 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
093d3ff1 36279 }
0085ce49
RD
36280 }
36281 {
36282 PyThreadState* __tstate = wxPyBeginAllowThreads();
36283 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36284 wxPyEndAllowThreads(__tstate);
36285 if (PyErr_Occurred()) SWIG_fail;
36286 }
36287 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36288 {
36289 if (temp4)
36290 delete arg4;
36291 }
36292 return resultobj;
36293fail:
36294 {
36295 if (temp4)
36296 delete arg4;
36297 }
36298 return NULL;
36299}
36300
36301
36302SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36303 PyObject *resultobj = 0;
36304 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36305 wxTreeItemId *arg2 = 0 ;
36306 size_t arg3 ;
36307 wxString *arg4 = 0 ;
36308 int arg5 = (int) -1 ;
36309 int arg6 = (int) -1 ;
36310 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36311 wxTreeItemId result;
36312 void *argp1 = 0 ;
36313 int res1 = 0 ;
36314 void *argp2 = 0 ;
36315 int res2 = 0 ;
36316 size_t val3 ;
36317 int ecode3 = 0 ;
36318 bool temp4 = false ;
36319 int val5 ;
36320 int ecode5 = 0 ;
36321 int val6 ;
36322 int ecode6 = 0 ;
36323 int res7 = 0 ;
36324 PyObject * obj0 = 0 ;
36325 PyObject * obj1 = 0 ;
36326 PyObject * obj2 = 0 ;
36327 PyObject * obj3 = 0 ;
36328 PyObject * obj4 = 0 ;
36329 PyObject * obj5 = 0 ;
36330 PyObject * obj6 = 0 ;
36331 char * kwnames[] = {
36332 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36333 };
36334
36335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36337 if (!SWIG_IsOK(res1)) {
36338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36339 }
36340 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36341 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36342 if (!SWIG_IsOK(res2)) {
36343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36344 }
36345 if (!argp2) {
36346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36347 }
36348 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36349 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36350 if (!SWIG_IsOK(ecode3)) {
36351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36352 }
36353 arg3 = static_cast< size_t >(val3);
36354 {
36355 arg4 = wxString_in_helper(obj3);
36356 if (arg4 == NULL) SWIG_fail;
36357 temp4 = true;
36358 }
36359 if (obj4) {
36360 ecode5 = SWIG_AsVal_int(obj4, &val5);
36361 if (!SWIG_IsOK(ecode5)) {
36362 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36363 }
36364 arg5 = static_cast< int >(val5);
36365 }
36366 if (obj5) {
36367 ecode6 = SWIG_AsVal_int(obj5, &val6);
36368 if (!SWIG_IsOK(ecode6)) {
36369 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36370 }
36371 arg6 = static_cast< int >(val6);
36372 }
36373 if (obj6) {
36374 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36375 if (!SWIG_IsOK(res7)) {
36376 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
3a04f143 36377 }
0085ce49
RD
36378 }
36379 {
36380 PyThreadState* __tstate = wxPyBeginAllowThreads();
36381 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36382 wxPyEndAllowThreads(__tstate);
36383 if (PyErr_Occurred()) SWIG_fail;
36384 }
36385 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36386 {
36387 if (temp4)
36388 delete arg4;
36389 }
36390 return resultobj;
36391fail:
36392 {
36393 if (temp4)
36394 delete arg4;
36395 }
36396 return NULL;
36397}
36398
36399
36400SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36401 PyObject *resultobj = 0;
36402 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36403 wxTreeItemId *arg2 = 0 ;
36404 wxString *arg3 = 0 ;
36405 int arg4 = (int) -1 ;
36406 int arg5 = (int) -1 ;
36407 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36408 wxTreeItemId result;
36409 void *argp1 = 0 ;
36410 int res1 = 0 ;
36411 void *argp2 = 0 ;
36412 int res2 = 0 ;
36413 bool temp3 = false ;
36414 int val4 ;
36415 int ecode4 = 0 ;
36416 int val5 ;
36417 int ecode5 = 0 ;
36418 int res6 = 0 ;
36419 PyObject * obj0 = 0 ;
36420 PyObject * obj1 = 0 ;
36421 PyObject * obj2 = 0 ;
36422 PyObject * obj3 = 0 ;
36423 PyObject * obj4 = 0 ;
36424 PyObject * obj5 = 0 ;
36425 char * kwnames[] = {
36426 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36427 };
36428
36429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36431 if (!SWIG_IsOK(res1)) {
36432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36433 }
36434 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36435 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36436 if (!SWIG_IsOK(res2)) {
36437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36438 }
36439 if (!argp2) {
36440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36441 }
36442 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36443 {
36444 arg3 = wxString_in_helper(obj2);
36445 if (arg3 == NULL) SWIG_fail;
36446 temp3 = true;
36447 }
36448 if (obj3) {
36449 ecode4 = SWIG_AsVal_int(obj3, &val4);
36450 if (!SWIG_IsOK(ecode4)) {
36451 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36452 }
36453 arg4 = static_cast< int >(val4);
36454 }
36455 if (obj4) {
36456 ecode5 = SWIG_AsVal_int(obj4, &val5);
36457 if (!SWIG_IsOK(ecode5)) {
36458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36459 }
36460 arg5 = static_cast< int >(val5);
36461 }
36462 if (obj5) {
36463 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36464 if (!SWIG_IsOK(res6)) {
36465 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 36466 }
0085ce49
RD
36467 }
36468 {
36469 PyThreadState* __tstate = wxPyBeginAllowThreads();
36470 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36471 wxPyEndAllowThreads(__tstate);
36472 if (PyErr_Occurred()) SWIG_fail;
36473 }
36474 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36475 {
36476 if (temp3)
36477 delete arg3;
36478 }
36479 return resultobj;
36480fail:
36481 {
36482 if (temp3)
36483 delete arg3;
36484 }
36485 return NULL;
36486}
36487
36488
36489SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36490 PyObject *resultobj = 0;
36491 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36492 wxTreeItemId *arg2 = 0 ;
36493 void *argp1 = 0 ;
36494 int res1 = 0 ;
36495 void *argp2 = 0 ;
36496 int res2 = 0 ;
36497 PyObject * obj0 = 0 ;
36498 PyObject * obj1 = 0 ;
36499 char * kwnames[] = {
36500 (char *) "self",(char *) "item", NULL
36501 };
36502
36503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36505 if (!SWIG_IsOK(res1)) {
36506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36507 }
36508 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36509 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36510 if (!SWIG_IsOK(res2)) {
36511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36512 }
36513 if (!argp2) {
36514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36515 }
36516 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36517 {
36518 PyThreadState* __tstate = wxPyBeginAllowThreads();
36519 (arg1)->Delete((wxTreeItemId const &)*arg2);
36520 wxPyEndAllowThreads(__tstate);
36521 if (PyErr_Occurred()) SWIG_fail;
36522 }
36523 resultobj = SWIG_Py_Void();
36524 return resultobj;
36525fail:
36526 return NULL;
36527}
36528
36529
36530SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36531 PyObject *resultobj = 0;
36532 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36533 wxTreeItemId *arg2 = 0 ;
36534 void *argp1 = 0 ;
36535 int res1 = 0 ;
36536 void *argp2 = 0 ;
36537 int res2 = 0 ;
36538 PyObject * obj0 = 0 ;
36539 PyObject * obj1 = 0 ;
36540 char * kwnames[] = {
36541 (char *) "self",(char *) "item", NULL
36542 };
36543
36544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36546 if (!SWIG_IsOK(res1)) {
36547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36548 }
36549 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36550 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36551 if (!SWIG_IsOK(res2)) {
36552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36553 }
36554 if (!argp2) {
36555 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36556 }
36557 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36558 {
36559 PyThreadState* __tstate = wxPyBeginAllowThreads();
36560 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36561 wxPyEndAllowThreads(__tstate);
36562 if (PyErr_Occurred()) SWIG_fail;
36563 }
36564 resultobj = SWIG_Py_Void();
36565 return resultobj;
36566fail:
36567 return NULL;
3a04f143
RD
36568}
36569
36570
0085ce49
RD
36571SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36572 PyObject *resultobj = 0;
36573 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36574 void *argp1 = 0 ;
36575 int res1 = 0 ;
36576 PyObject *swig_obj[1] ;
36577
36578 if (!args) SWIG_fail;
36579 swig_obj[0] = args;
36580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36581 if (!SWIG_IsOK(res1)) {
36582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36583 }
36584 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36585 {
36586 PyThreadState* __tstate = wxPyBeginAllowThreads();
36587 (arg1)->DeleteAllItems();
36588 wxPyEndAllowThreads(__tstate);
36589 if (PyErr_Occurred()) SWIG_fail;
36590 }
36591 resultobj = SWIG_Py_Void();
36592 return resultobj;
36593fail:
36594 return NULL;
36595}
36596
36597
36598SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36599 PyObject *resultobj = 0;
36600 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36601 wxTreeItemId *arg2 = 0 ;
36602 void *argp1 = 0 ;
36603 int res1 = 0 ;
36604 void *argp2 = 0 ;
36605 int res2 = 0 ;
36606 PyObject * obj0 = 0 ;
36607 PyObject * obj1 = 0 ;
36608 char * kwnames[] = {
36609 (char *) "self",(char *) "item", NULL
36610 };
36611
36612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36614 if (!SWIG_IsOK(res1)) {
36615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36616 }
36617 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36619 if (!SWIG_IsOK(res2)) {
36620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36621 }
36622 if (!argp2) {
36623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36624 }
36625 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36626 {
36627 PyThreadState* __tstate = wxPyBeginAllowThreads();
36628 (arg1)->Expand((wxTreeItemId const &)*arg2);
36629 wxPyEndAllowThreads(__tstate);
36630 if (PyErr_Occurred()) SWIG_fail;
36631 }
36632 resultobj = SWIG_Py_Void();
36633 return resultobj;
36634fail:
36635 return NULL;
36636}
36637
36638
453fb36b
RD
36639SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36640 PyObject *resultobj = 0;
36641 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36642 wxTreeItemId *arg2 = 0 ;
36643 void *argp1 = 0 ;
36644 int res1 = 0 ;
36645 void *argp2 = 0 ;
36646 int res2 = 0 ;
36647 PyObject * obj0 = 0 ;
36648 PyObject * obj1 = 0 ;
36649 char * kwnames[] = {
36650 (char *) "self",(char *) "item", NULL
36651 };
36652
36653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36655 if (!SWIG_IsOK(res1)) {
36656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36657 }
36658 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36660 if (!SWIG_IsOK(res2)) {
36661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36662 }
36663 if (!argp2) {
36664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36665 }
36666 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36667 {
36668 PyThreadState* __tstate = wxPyBeginAllowThreads();
36669 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36670 wxPyEndAllowThreads(__tstate);
36671 if (PyErr_Occurred()) SWIG_fail;
36672 }
36673 resultobj = SWIG_Py_Void();
36674 return resultobj;
36675fail:
36676 return NULL;
36677}
36678
36679
36680SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36681 PyObject *resultobj = 0;
36682 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36683 void *argp1 = 0 ;
36684 int res1 = 0 ;
36685 PyObject *swig_obj[1] ;
36686
36687 if (!args) SWIG_fail;
36688 swig_obj[0] = args;
36689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36690 if (!SWIG_IsOK(res1)) {
36691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36692 }
36693 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36694 {
36695 PyThreadState* __tstate = wxPyBeginAllowThreads();
36696 (arg1)->ExpandAll();
36697 wxPyEndAllowThreads(__tstate);
36698 if (PyErr_Occurred()) SWIG_fail;
36699 }
36700 resultobj = SWIG_Py_Void();
36701 return resultobj;
36702fail:
36703 return NULL;
36704}
36705
36706
0085ce49
RD
36707SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36708 PyObject *resultobj = 0;
36709 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36710 wxTreeItemId *arg2 = 0 ;
36711 void *argp1 = 0 ;
36712 int res1 = 0 ;
36713 void *argp2 = 0 ;
36714 int res2 = 0 ;
36715 PyObject * obj0 = 0 ;
36716 PyObject * obj1 = 0 ;
36717 char * kwnames[] = {
36718 (char *) "self",(char *) "item", NULL
36719 };
36720
36721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36723 if (!SWIG_IsOK(res1)) {
36724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36725 }
36726 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36728 if (!SWIG_IsOK(res2)) {
36729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36730 }
36731 if (!argp2) {
36732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36733 }
36734 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36735 {
36736 PyThreadState* __tstate = wxPyBeginAllowThreads();
36737 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36738 wxPyEndAllowThreads(__tstate);
36739 if (PyErr_Occurred()) SWIG_fail;
36740 }
36741 resultobj = SWIG_Py_Void();
36742 return resultobj;
36743fail:
36744 return NULL;
36745}
36746
36747
36748SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36749 PyObject *resultobj = 0;
36750 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36751 wxTreeItemId *arg2 = 0 ;
36752 void *argp1 = 0 ;
36753 int res1 = 0 ;
36754 void *argp2 = 0 ;
36755 int res2 = 0 ;
36756 PyObject * obj0 = 0 ;
36757 PyObject * obj1 = 0 ;
36758 char * kwnames[] = {
36759 (char *) "self",(char *) "item", NULL
36760 };
36761
36762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36764 if (!SWIG_IsOK(res1)) {
36765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36766 }
36767 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36768 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36769 if (!SWIG_IsOK(res2)) {
36770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36771 }
36772 if (!argp2) {
36773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36774 }
36775 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36776 {
36777 PyThreadState* __tstate = wxPyBeginAllowThreads();
36778 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36779 wxPyEndAllowThreads(__tstate);
36780 if (PyErr_Occurred()) SWIG_fail;
36781 }
36782 resultobj = SWIG_Py_Void();
36783 return resultobj;
36784fail:
36785 return NULL;
36786}
36787
36788
36789SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36790 PyObject *resultobj = 0;
36791 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36792 wxTreeItemId *arg2 = 0 ;
36793 void *argp1 = 0 ;
36794 int res1 = 0 ;
36795 void *argp2 = 0 ;
36796 int res2 = 0 ;
36797 PyObject * obj0 = 0 ;
36798 PyObject * obj1 = 0 ;
36799 char * kwnames[] = {
36800 (char *) "self",(char *) "item", NULL
36801 };
36802
36803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36805 if (!SWIG_IsOK(res1)) {
36806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36807 }
36808 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36809 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36810 if (!SWIG_IsOK(res2)) {
36811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36812 }
36813 if (!argp2) {
36814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36815 }
36816 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36817 {
36818 PyThreadState* __tstate = wxPyBeginAllowThreads();
36819 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36820 wxPyEndAllowThreads(__tstate);
36821 if (PyErr_Occurred()) SWIG_fail;
36822 }
36823 resultobj = SWIG_Py_Void();
36824 return resultobj;
36825fail:
36826 return NULL;
d14a1e28
RD
36827}
36828
36829
0085ce49
RD
36830SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36831 PyObject *resultobj = 0;
36832 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36833 void *argp1 = 0 ;
36834 int res1 = 0 ;
36835 PyObject *swig_obj[1] ;
36836
36837 if (!args) SWIG_fail;
36838 swig_obj[0] = args;
36839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36840 if (!SWIG_IsOK(res1)) {
36841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36842 }
36843 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36844 {
36845 PyThreadState* __tstate = wxPyBeginAllowThreads();
36846 (arg1)->Unselect();
36847 wxPyEndAllowThreads(__tstate);
36848 if (PyErr_Occurred()) SWIG_fail;
36849 }
36850 resultobj = SWIG_Py_Void();
36851 return resultobj;
36852fail:
36853 return NULL;
36854}
36855
36856
36857SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36858 PyObject *resultobj = 0;
36859 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36860 wxTreeItemId *arg2 = 0 ;
36861 void *argp1 = 0 ;
36862 int res1 = 0 ;
36863 void *argp2 = 0 ;
36864 int res2 = 0 ;
36865 PyObject * obj0 = 0 ;
36866 PyObject * obj1 = 0 ;
36867 char * kwnames[] = {
36868 (char *) "self",(char *) "item", NULL
36869 };
36870
36871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36873 if (!SWIG_IsOK(res1)) {
36874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36875 }
36876 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36878 if (!SWIG_IsOK(res2)) {
36879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36880 }
36881 if (!argp2) {
36882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36883 }
36884 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36885 {
36886 PyThreadState* __tstate = wxPyBeginAllowThreads();
36887 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36888 wxPyEndAllowThreads(__tstate);
36889 if (PyErr_Occurred()) SWIG_fail;
36890 }
36891 resultobj = SWIG_Py_Void();
36892 return resultobj;
36893fail:
36894 return NULL;
d14a1e28
RD
36895}
36896
36897
0085ce49
RD
36898SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36899 PyObject *resultobj = 0;
36900 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36901 void *argp1 = 0 ;
36902 int res1 = 0 ;
36903 PyObject *swig_obj[1] ;
36904
36905 if (!args) SWIG_fail;
36906 swig_obj[0] = args;
36907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36908 if (!SWIG_IsOK(res1)) {
36909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36910 }
36911 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36912 {
36913 PyThreadState* __tstate = wxPyBeginAllowThreads();
36914 (arg1)->UnselectAll();
36915 wxPyEndAllowThreads(__tstate);
36916 if (PyErr_Occurred()) SWIG_fail;
36917 }
36918 resultobj = SWIG_Py_Void();
36919 return resultobj;
36920fail:
36921 return NULL;
36922}
36923
36924
36925SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36926 PyObject *resultobj = 0;
36927 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36928 wxTreeItemId *arg2 = 0 ;
36929 bool arg3 = (bool) true ;
36930 void *argp1 = 0 ;
36931 int res1 = 0 ;
36932 void *argp2 = 0 ;
36933 int res2 = 0 ;
36934 bool val3 ;
36935 int ecode3 = 0 ;
36936 PyObject * obj0 = 0 ;
36937 PyObject * obj1 = 0 ;
36938 PyObject * obj2 = 0 ;
36939 char * kwnames[] = {
36940 (char *) "self",(char *) "item",(char *) "select", NULL
36941 };
36942
36943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36945 if (!SWIG_IsOK(res1)) {
36946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36947 }
36948 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36949 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36950 if (!SWIG_IsOK(res2)) {
36951 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36952 }
36953 if (!argp2) {
36954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36955 }
36956 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36957 if (obj2) {
36958 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36959 if (!SWIG_IsOK(ecode3)) {
36960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36961 }
36962 arg3 = static_cast< bool >(val3);
36963 }
36964 {
36965 PyThreadState* __tstate = wxPyBeginAllowThreads();
36966 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36967 wxPyEndAllowThreads(__tstate);
36968 if (PyErr_Occurred()) SWIG_fail;
36969 }
36970 resultobj = SWIG_Py_Void();
36971 return resultobj;
36972fail:
36973 return NULL;
36974}
36975
36976
36977SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36978 PyObject *resultobj = 0;
36979 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36980 wxTreeItemId *arg2 = 0 ;
36981 void *argp1 = 0 ;
36982 int res1 = 0 ;
36983 void *argp2 = 0 ;
36984 int res2 = 0 ;
36985 PyObject * obj0 = 0 ;
36986 PyObject * obj1 = 0 ;
36987 char * kwnames[] = {
36988 (char *) "self",(char *) "item", NULL
36989 };
36990
36991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36993 if (!SWIG_IsOK(res1)) {
36994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36995 }
36996 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36998 if (!SWIG_IsOK(res2)) {
36999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37000 }
37001 if (!argp2) {
37002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37003 }
37004 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37005 {
37006 PyThreadState* __tstate = wxPyBeginAllowThreads();
37007 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
37008 wxPyEndAllowThreads(__tstate);
37009 if (PyErr_Occurred()) SWIG_fail;
37010 }
37011 resultobj = SWIG_Py_Void();
37012 return resultobj;
37013fail:
37014 return NULL;
37015}
37016
37017
37018SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37019 PyObject *resultobj = 0;
37020 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37021 wxTreeItemId *arg2 = 0 ;
37022 void *argp1 = 0 ;
37023 int res1 = 0 ;
37024 void *argp2 = 0 ;
37025 int res2 = 0 ;
37026 PyObject * obj0 = 0 ;
37027 PyObject * obj1 = 0 ;
37028 char * kwnames[] = {
37029 (char *) "self",(char *) "item", NULL
37030 };
37031
37032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37034 if (!SWIG_IsOK(res1)) {
37035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37036 }
37037 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37038 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37039 if (!SWIG_IsOK(res2)) {
37040 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37041 }
37042 if (!argp2) {
37043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37044 }
37045 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37046 {
37047 PyThreadState* __tstate = wxPyBeginAllowThreads();
37048 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37049 wxPyEndAllowThreads(__tstate);
37050 if (PyErr_Occurred()) SWIG_fail;
37051 }
37052 resultobj = SWIG_Py_Void();
37053 return resultobj;
37054fail:
37055 return NULL;
37056}
37057
37058
37059SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37060 PyObject *resultobj = 0;
37061 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37062 wxTreeItemId *arg2 = 0 ;
37063 void *argp1 = 0 ;
37064 int res1 = 0 ;
37065 void *argp2 = 0 ;
37066 int res2 = 0 ;
37067 PyObject * obj0 = 0 ;
37068 PyObject * obj1 = 0 ;
37069 char * kwnames[] = {
37070 (char *) "self",(char *) "item", NULL
37071 };
37072
37073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37075 if (!SWIG_IsOK(res1)) {
37076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37077 }
37078 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37079 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37080 if (!SWIG_IsOK(res2)) {
37081 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37082 }
37083 if (!argp2) {
37084 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37085 }
37086 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37087 {
37088 PyThreadState* __tstate = wxPyBeginAllowThreads();
37089 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37090 wxPyEndAllowThreads(__tstate);
37091 if (PyErr_Occurred()) SWIG_fail;
37092 }
37093 resultobj = SWIG_Py_Void();
37094 return resultobj;
37095fail:
37096 return NULL;
37097}
37098
37099
37100SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37101 PyObject *resultobj = 0;
37102 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37103 wxTreeItemId *arg2 = 0 ;
37104 void *argp1 = 0 ;
37105 int res1 = 0 ;
37106 void *argp2 = 0 ;
37107 int res2 = 0 ;
37108 PyObject * obj0 = 0 ;
37109 PyObject * obj1 = 0 ;
37110 char * kwnames[] = {
37111 (char *) "self",(char *) "item", NULL
37112 };
37113
37114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37116 if (!SWIG_IsOK(res1)) {
37117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37118 }
37119 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37120 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37121 if (!SWIG_IsOK(res2)) {
37122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37123 }
37124 if (!argp2) {
37125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37126 }
37127 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37128 {
37129 PyThreadState* __tstate = wxPyBeginAllowThreads();
37130 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37131 wxPyEndAllowThreads(__tstate);
37132 if (PyErr_Occurred()) SWIG_fail;
37133 }
37134 resultobj = SWIG_Py_Void();
37135 return resultobj;
37136fail:
37137 return NULL;
d14a1e28
RD
37138}
37139
37140
0085ce49
RD
37141SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37142 PyObject *resultobj = 0;
37143 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37144 wxTextCtrl *result = 0 ;
37145 void *argp1 = 0 ;
37146 int res1 = 0 ;
37147 PyObject *swig_obj[1] ;
37148
37149 if (!args) SWIG_fail;
37150 swig_obj[0] = args;
37151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37152 if (!SWIG_IsOK(res1)) {
37153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37154 }
37155 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37156 {
37157 PyThreadState* __tstate = wxPyBeginAllowThreads();
37158 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37159 wxPyEndAllowThreads(__tstate);
37160 if (PyErr_Occurred()) SWIG_fail;
37161 }
37162 {
37163 resultobj = wxPyMake_wxObject(result, 0);
37164 }
37165 return resultobj;
37166fail:
37167 return NULL;
37168}
37169
37170
37171SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37172 PyObject *resultobj = 0;
37173 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37174 wxTreeItemId *arg2 = 0 ;
37175 void *argp1 = 0 ;
37176 int res1 = 0 ;
37177 void *argp2 = 0 ;
37178 int res2 = 0 ;
37179 PyObject * obj0 = 0 ;
37180 PyObject * obj1 = 0 ;
37181 char * kwnames[] = {
37182 (char *) "self",(char *) "item", NULL
37183 };
37184
37185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37187 if (!SWIG_IsOK(res1)) {
37188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37189 }
37190 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37191 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37192 if (!SWIG_IsOK(res2)) {
37193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37194 }
37195 if (!argp2) {
37196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37197 }
37198 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37199 {
37200 PyThreadState* __tstate = wxPyBeginAllowThreads();
37201 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37202 wxPyEndAllowThreads(__tstate);
37203 if (PyErr_Occurred()) SWIG_fail;
37204 }
37205 resultobj = SWIG_Py_Void();
37206 return resultobj;
37207fail:
37208 return NULL;
37209}
37210
37211
37212SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37213 PyObject *resultobj = 0;
37214 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37215 wxPoint *arg2 = 0 ;
37216 int *arg3 = 0 ;
37217 wxTreeItemId result;
37218 void *argp1 = 0 ;
37219 int res1 = 0 ;
37220 wxPoint temp2 ;
37221 int temp3 ;
37222 int res3 = SWIG_TMPOBJ ;
37223 PyObject * obj0 = 0 ;
37224 PyObject * obj1 = 0 ;
37225 char * kwnames[] = {
37226 (char *) "self",(char *) "point", NULL
37227 };
37228
37229 arg3 = &temp3;
37230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37232 if (!SWIG_IsOK(res1)) {
37233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37234 }
37235 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37236 {
37237 arg2 = &temp2;
37238 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37239 }
37240 {
37241 PyThreadState* __tstate = wxPyBeginAllowThreads();
37242 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37243 wxPyEndAllowThreads(__tstate);
37244 if (PyErr_Occurred()) SWIG_fail;
37245 }
37246 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37247 if (SWIG_IsTmpObj(res3)) {
37248 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37249 } else {
37250 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37251 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37252 }
37253 return resultobj;
37254fail:
37255 return NULL;
37256}
37257
37258
37259SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37260 PyObject *resultobj = 0;
37261 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37262 wxTreeItemId *arg2 = 0 ;
37263 bool arg3 = (bool) false ;
37264 PyObject *result = 0 ;
37265 void *argp1 = 0 ;
37266 int res1 = 0 ;
37267 void *argp2 = 0 ;
37268 int res2 = 0 ;
37269 bool val3 ;
37270 int ecode3 = 0 ;
37271 PyObject * obj0 = 0 ;
37272 PyObject * obj1 = 0 ;
37273 PyObject * obj2 = 0 ;
37274 char * kwnames[] = {
37275 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37276 };
37277
37278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37280 if (!SWIG_IsOK(res1)) {
37281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37282 }
37283 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37284 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37285 if (!SWIG_IsOK(res2)) {
37286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37287 }
37288 if (!argp2) {
37289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37290 }
37291 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37292 if (obj2) {
37293 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37294 if (!SWIG_IsOK(ecode3)) {
37295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37296 }
37297 arg3 = static_cast< bool >(val3);
37298 }
37299 {
37300 PyThreadState* __tstate = wxPyBeginAllowThreads();
37301 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37302 wxPyEndAllowThreads(__tstate);
37303 if (PyErr_Occurred()) SWIG_fail;
37304 }
37305 resultobj = result;
37306 return resultobj;
37307fail:
37308 return NULL;
37309}
37310
37311
37312SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37313 PyObject *resultobj = 0;
37314 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37315 SwigValueWrapper<wxVisualAttributes > result;
37316 int val1 ;
37317 int ecode1 = 0 ;
37318 PyObject * obj0 = 0 ;
37319 char * kwnames[] = {
37320 (char *) "variant", NULL
37321 };
37322
37323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37324 if (obj0) {
37325 ecode1 = SWIG_AsVal_int(obj0, &val1);
37326 if (!SWIG_IsOK(ecode1)) {
37327 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37328 }
37329 arg1 = static_cast< wxWindowVariant >(val1);
37330 }
37331 {
37332 if (!wxPyCheckForApp()) SWIG_fail;
37333 PyThreadState* __tstate = wxPyBeginAllowThreads();
37334 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37335 wxPyEndAllowThreads(__tstate);
37336 if (PyErr_Occurred()) SWIG_fail;
37337 }
37338 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37339 return resultobj;
37340fail:
37341 return NULL;
d14a1e28
RD
37342}
37343
37344
2131d850
RD
37345SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37346 PyObject *resultobj = 0;
37347 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37348 bool arg2 ;
37349 void *argp1 = 0 ;
37350 int res1 = 0 ;
37351 bool val2 ;
37352 int ecode2 = 0 ;
37353 PyObject * obj0 = 0 ;
37354 PyObject * obj1 = 0 ;
37355 char * kwnames[] = {
37356 (char *) "self",(char *) "q", NULL
37357 };
37358
37359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37361 if (!SWIG_IsOK(res1)) {
37362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37363 }
37364 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37365 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37366 if (!SWIG_IsOK(ecode2)) {
37367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37368 }
37369 arg2 = static_cast< bool >(val2);
37370 {
37371 PyThreadState* __tstate = wxPyBeginAllowThreads();
37372 (arg1)->SetQuickBestSize(arg2);
37373 wxPyEndAllowThreads(__tstate);
37374 if (PyErr_Occurred()) SWIG_fail;
37375 }
37376 resultobj = SWIG_Py_Void();
37377 return resultobj;
37378fail:
37379 return NULL;
37380}
37381
37382
37383SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37384 PyObject *resultobj = 0;
37385 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37386 bool result;
37387 void *argp1 = 0 ;
37388 int res1 = 0 ;
37389 PyObject *swig_obj[1] ;
37390
37391 if (!args) SWIG_fail;
37392 swig_obj[0] = args;
37393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37394 if (!SWIG_IsOK(res1)) {
37395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37396 }
37397 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37398 {
37399 PyThreadState* __tstate = wxPyBeginAllowThreads();
37400 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37401 wxPyEndAllowThreads(__tstate);
37402 if (PyErr_Occurred()) SWIG_fail;
37403 }
37404 {
37405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37406 }
37407 return resultobj;
37408fail:
37409 return NULL;
37410}
37411
37412
0085ce49
RD
37413SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37414 PyObject *obj;
37415 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37416 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37417 return SWIG_Py_Void();
d14a1e28
RD
37418}
37419
0085ce49
RD
37420SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37421 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
37422}
37423
0085ce49
RD
37424SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37425 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37426 return 1;
d14a1e28
RD
37427}
37428
37429
0085ce49
RD
37430SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37431 PyObject *pyobj = 0;
37432
37433 {
37434#if wxUSE_UNICODE
37435 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37436#else
37437 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37438#endif
37439 }
37440 return pyobj;
37441}
37442
37443
37444SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37445 PyObject *resultobj = 0;
37446 wxWindow *arg1 = (wxWindow *) 0 ;
37447 int arg2 = (int) (int)-1 ;
37448 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37449 wxString *arg3 = (wxString *) &arg3_defvalue ;
37450 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37451 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37452 wxSize const &arg5_defvalue = wxDefaultSize ;
37453 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37454 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37455 wxString const &arg7_defvalue = wxPyEmptyString ;
37456 wxString *arg7 = (wxString *) &arg7_defvalue ;
37457 int arg8 = (int) 0 ;
37458 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37459 wxString *arg9 = (wxString *) &arg9_defvalue ;
37460 wxGenericDirCtrl *result = 0 ;
37461 void *argp1 = 0 ;
37462 int res1 = 0 ;
37463 int val2 ;
37464 int ecode2 = 0 ;
37465 bool temp3 = false ;
37466 wxPoint temp4 ;
37467 wxSize temp5 ;
37468 long val6 ;
37469 int ecode6 = 0 ;
37470 bool temp7 = false ;
37471 int val8 ;
37472 int ecode8 = 0 ;
37473 bool temp9 = false ;
37474 PyObject * obj0 = 0 ;
37475 PyObject * obj1 = 0 ;
37476 PyObject * obj2 = 0 ;
37477 PyObject * obj3 = 0 ;
37478 PyObject * obj4 = 0 ;
37479 PyObject * obj5 = 0 ;
37480 PyObject * obj6 = 0 ;
37481 PyObject * obj7 = 0 ;
37482 PyObject * obj8 = 0 ;
37483 char * kwnames[] = {
37484 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37485 };
37486
37487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37489 if (!SWIG_IsOK(res1)) {
37490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37491 }
37492 arg1 = reinterpret_cast< wxWindow * >(argp1);
37493 if (obj1) {
37494 ecode2 = SWIG_AsVal_int(obj1, &val2);
37495 if (!SWIG_IsOK(ecode2)) {
37496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37497 }
37498 arg2 = static_cast< int >(val2);
37499 }
37500 if (obj2) {
d14a1e28 37501 {
0085ce49
RD
37502 arg3 = wxString_in_helper(obj2);
37503 if (arg3 == NULL) SWIG_fail;
37504 temp3 = true;
d14a1e28 37505 }
0085ce49
RD
37506 }
37507 if (obj3) {
4f89f6a3 37508 {
0085ce49
RD
37509 arg4 = &temp4;
37510 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 37511 }
0085ce49
RD
37512 }
37513 if (obj4) {
093d3ff1 37514 {
0085ce49
RD
37515 arg5 = &temp5;
37516 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37517 }
0085ce49
RD
37518 }
37519 if (obj5) {
37520 ecode6 = SWIG_AsVal_long(obj5, &val6);
37521 if (!SWIG_IsOK(ecode6)) {
37522 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37523 }
37524 arg6 = static_cast< long >(val6);
37525 }
37526 if (obj6) {
093d3ff1 37527 {
0085ce49
RD
37528 arg7 = wxString_in_helper(obj6);
37529 if (arg7 == NULL) SWIG_fail;
37530 temp7 = true;
093d3ff1 37531 }
0085ce49
RD
37532 }
37533 if (obj7) {
37534 ecode8 = SWIG_AsVal_int(obj7, &val8);
37535 if (!SWIG_IsOK(ecode8)) {
37536 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37537 }
37538 arg8 = static_cast< int >(val8);
37539 }
37540 if (obj8) {
d14a1e28 37541 {
0085ce49
RD
37542 arg9 = wxString_in_helper(obj8);
37543 if (arg9 == NULL) SWIG_fail;
37544 temp9 = true;
d14a1e28 37545 }
0085ce49
RD
37546 }
37547 {
37548 if (!wxPyCheckForApp()) SWIG_fail;
37549 PyThreadState* __tstate = wxPyBeginAllowThreads();
37550 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37551 wxPyEndAllowThreads(__tstate);
37552 if (PyErr_Occurred()) SWIG_fail;
37553 }
37554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37555 {
37556 if (temp3)
37557 delete arg3;
37558 }
37559 {
37560 if (temp7)
37561 delete arg7;
37562 }
37563 {
37564 if (temp9)
37565 delete arg9;
37566 }
37567 return resultobj;
37568fail:
37569 {
37570 if (temp3)
37571 delete arg3;
37572 }
37573 {
37574 if (temp7)
37575 delete arg7;
37576 }
37577 {
37578 if (temp9)
37579 delete arg9;
37580 }
37581 return NULL;
d14a1e28
RD
37582}
37583
37584
0085ce49
RD
37585SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37586 PyObject *resultobj = 0;
37587 wxGenericDirCtrl *result = 0 ;
37588
37589 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37590 {
37591 if (!wxPyCheckForApp()) SWIG_fail;
37592 PyThreadState* __tstate = wxPyBeginAllowThreads();
37593 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37594 wxPyEndAllowThreads(__tstate);
37595 if (PyErr_Occurred()) SWIG_fail;
37596 }
37597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37598 return resultobj;
37599fail:
37600 return NULL;
37601}
37602
37603
37604SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37605 PyObject *resultobj = 0;
37606 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37607 wxWindow *arg2 = (wxWindow *) 0 ;
37608 int arg3 = (int) (int)-1 ;
37609 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37610 wxString *arg4 = (wxString *) &arg4_defvalue ;
37611 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37612 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37613 wxSize const &arg6_defvalue = wxDefaultSize ;
37614 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37615 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37616 wxString const &arg8_defvalue = wxPyEmptyString ;
37617 wxString *arg8 = (wxString *) &arg8_defvalue ;
37618 int arg9 = (int) 0 ;
37619 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37620 wxString *arg10 = (wxString *) &arg10_defvalue ;
37621 bool result;
37622 void *argp1 = 0 ;
37623 int res1 = 0 ;
37624 void *argp2 = 0 ;
37625 int res2 = 0 ;
37626 int val3 ;
37627 int ecode3 = 0 ;
37628 bool temp4 = false ;
37629 wxPoint temp5 ;
37630 wxSize temp6 ;
37631 long val7 ;
37632 int ecode7 = 0 ;
37633 bool temp8 = false ;
37634 int val9 ;
37635 int ecode9 = 0 ;
37636 bool temp10 = false ;
37637 PyObject * obj0 = 0 ;
37638 PyObject * obj1 = 0 ;
37639 PyObject * obj2 = 0 ;
37640 PyObject * obj3 = 0 ;
37641 PyObject * obj4 = 0 ;
37642 PyObject * obj5 = 0 ;
37643 PyObject * obj6 = 0 ;
37644 PyObject * obj7 = 0 ;
37645 PyObject * obj8 = 0 ;
37646 PyObject * obj9 = 0 ;
37647 char * kwnames[] = {
37648 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37649 };
37650
37651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37653 if (!SWIG_IsOK(res1)) {
37654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37655 }
37656 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37657 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37658 if (!SWIG_IsOK(res2)) {
37659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37660 }
37661 arg2 = reinterpret_cast< wxWindow * >(argp2);
37662 if (obj2) {
37663 ecode3 = SWIG_AsVal_int(obj2, &val3);
37664 if (!SWIG_IsOK(ecode3)) {
37665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37666 }
37667 arg3 = static_cast< int >(val3);
37668 }
37669 if (obj3) {
093d3ff1 37670 {
0085ce49
RD
37671 arg4 = wxString_in_helper(obj3);
37672 if (arg4 == NULL) SWIG_fail;
37673 temp4 = true;
093d3ff1 37674 }
0085ce49
RD
37675 }
37676 if (obj4) {
093d3ff1 37677 {
0085ce49
RD
37678 arg5 = &temp5;
37679 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37680 }
0085ce49
RD
37681 }
37682 if (obj5) {
d14a1e28 37683 {
0085ce49
RD
37684 arg6 = &temp6;
37685 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 37686 }
0085ce49
RD
37687 }
37688 if (obj6) {
37689 ecode7 = SWIG_AsVal_long(obj6, &val7);
37690 if (!SWIG_IsOK(ecode7)) {
37691 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37692 }
37693 arg7 = static_cast< long >(val7);
37694 }
37695 if (obj7) {
093d3ff1 37696 {
0085ce49
RD
37697 arg8 = wxString_in_helper(obj7);
37698 if (arg8 == NULL) SWIG_fail;
37699 temp8 = true;
093d3ff1 37700 }
0085ce49
RD
37701 }
37702 if (obj8) {
37703 ecode9 = SWIG_AsVal_int(obj8, &val9);
37704 if (!SWIG_IsOK(ecode9)) {
37705 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37706 }
37707 arg9 = static_cast< int >(val9);
37708 }
37709 if (obj9) {
093d3ff1 37710 {
0085ce49
RD
37711 arg10 = wxString_in_helper(obj9);
37712 if (arg10 == NULL) SWIG_fail;
37713 temp10 = true;
093d3ff1 37714 }
0085ce49
RD
37715 }
37716 {
37717 PyThreadState* __tstate = wxPyBeginAllowThreads();
37718 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37719 wxPyEndAllowThreads(__tstate);
37720 if (PyErr_Occurred()) SWIG_fail;
37721 }
37722 {
37723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37724 }
37725 {
37726 if (temp4)
37727 delete arg4;
37728 }
37729 {
37730 if (temp8)
37731 delete arg8;
37732 }
37733 {
37734 if (temp10)
37735 delete arg10;
37736 }
37737 return resultobj;
37738fail:
37739 {
37740 if (temp4)
37741 delete arg4;
37742 }
37743 {
37744 if (temp8)
37745 delete arg8;
37746 }
37747 {
37748 if (temp10)
37749 delete arg10;
37750 }
37751 return NULL;
37752}
37753
37754
37755SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37756 PyObject *resultobj = 0;
37757 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37758 wxString *arg2 = 0 ;
37759 bool result;
37760 void *argp1 = 0 ;
37761 int res1 = 0 ;
37762 bool temp2 = false ;
37763 PyObject * obj0 = 0 ;
37764 PyObject * obj1 = 0 ;
37765 char * kwnames[] = {
37766 (char *) "self",(char *) "path", NULL
37767 };
37768
37769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37771 if (!SWIG_IsOK(res1)) {
37772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37773 }
37774 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37775 {
37776 arg2 = wxString_in_helper(obj1);
37777 if (arg2 == NULL) SWIG_fail;
37778 temp2 = true;
37779 }
37780 {
37781 PyThreadState* __tstate = wxPyBeginAllowThreads();
37782 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37783 wxPyEndAllowThreads(__tstate);
37784 if (PyErr_Occurred()) SWIG_fail;
37785 }
37786 {
37787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37788 }
37789 {
37790 if (temp2)
37791 delete arg2;
37792 }
37793 return resultobj;
37794fail:
37795 {
37796 if (temp2)
37797 delete arg2;
37798 }
37799 return NULL;
d14a1e28
RD
37800}
37801
37802
704eda0c
RD
37803SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37804 PyObject *resultobj = 0;
37805 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37806 wxString *arg2 = 0 ;
37807 bool result;
37808 void *argp1 = 0 ;
37809 int res1 = 0 ;
37810 bool temp2 = false ;
37811 PyObject * obj0 = 0 ;
37812 PyObject * obj1 = 0 ;
37813 char * kwnames[] = {
37814 (char *) "self",(char *) "path", NULL
37815 };
37816
37817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37819 if (!SWIG_IsOK(res1)) {
37820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37821 }
37822 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37823 {
37824 arg2 = wxString_in_helper(obj1);
37825 if (arg2 == NULL) SWIG_fail;
37826 temp2 = true;
37827 }
37828 {
37829 PyThreadState* __tstate = wxPyBeginAllowThreads();
37830 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37831 wxPyEndAllowThreads(__tstate);
37832 if (PyErr_Occurred()) SWIG_fail;
37833 }
37834 {
37835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37836 }
37837 {
37838 if (temp2)
37839 delete arg2;
37840 }
37841 return resultobj;
37842fail:
37843 {
37844 if (temp2)
37845 delete arg2;
37846 }
37847 return NULL;
37848}
37849
37850
0085ce49
RD
37851SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37852 PyObject *resultobj = 0;
37853 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37854 wxString result;
37855 void *argp1 = 0 ;
37856 int res1 = 0 ;
37857 PyObject *swig_obj[1] ;
37858
37859 if (!args) SWIG_fail;
37860 swig_obj[0] = args;
37861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37862 if (!SWIG_IsOK(res1)) {
37863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37864 }
37865 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37866 {
37867 PyThreadState* __tstate = wxPyBeginAllowThreads();
37868 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37869 wxPyEndAllowThreads(__tstate);
37870 if (PyErr_Occurred()) SWIG_fail;
37871 }
37872 {
37873#if wxUSE_UNICODE
37874 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37875#else
37876 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37877#endif
37878 }
37879 return resultobj;
37880fail:
37881 return NULL;
37882}
37883
37884
37885SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37886 PyObject *resultobj = 0;
37887 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37888 wxString *arg2 = 0 ;
37889 void *argp1 = 0 ;
37890 int res1 = 0 ;
37891 bool temp2 = false ;
37892 PyObject * obj0 = 0 ;
37893 PyObject * obj1 = 0 ;
37894 char * kwnames[] = {
37895 (char *) "self",(char *) "path", NULL
37896 };
37897
37898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37900 if (!SWIG_IsOK(res1)) {
37901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37902 }
37903 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37904 {
37905 arg2 = wxString_in_helper(obj1);
37906 if (arg2 == NULL) SWIG_fail;
37907 temp2 = true;
37908 }
37909 {
37910 PyThreadState* __tstate = wxPyBeginAllowThreads();
37911 (arg1)->SetDefaultPath((wxString const &)*arg2);
37912 wxPyEndAllowThreads(__tstate);
37913 if (PyErr_Occurred()) SWIG_fail;
37914 }
37915 resultobj = SWIG_Py_Void();
37916 {
37917 if (temp2)
37918 delete arg2;
37919 }
37920 return resultobj;
37921fail:
37922 {
37923 if (temp2)
37924 delete arg2;
37925 }
37926 return NULL;
d14a1e28
RD
37927}
37928
37929
0085ce49
RD
37930SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37931 PyObject *resultobj = 0;
37932 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37933 wxString result;
37934 void *argp1 = 0 ;
37935 int res1 = 0 ;
37936 PyObject *swig_obj[1] ;
37937
37938 if (!args) SWIG_fail;
37939 swig_obj[0] = args;
37940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37941 if (!SWIG_IsOK(res1)) {
37942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37943 }
37944 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37945 {
37946 PyThreadState* __tstate = wxPyBeginAllowThreads();
37947 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37948 wxPyEndAllowThreads(__tstate);
37949 if (PyErr_Occurred()) SWIG_fail;
37950 }
37951 {
37952#if wxUSE_UNICODE
37953 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37954#else
37955 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37956#endif
37957 }
37958 return resultobj;
37959fail:
37960 return NULL;
d14a1e28
RD
37961}
37962
37963
0085ce49
RD
37964SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37965 PyObject *resultobj = 0;
37966 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37967 wxString result;
37968 void *argp1 = 0 ;
37969 int res1 = 0 ;
37970 PyObject *swig_obj[1] ;
37971
37972 if (!args) SWIG_fail;
37973 swig_obj[0] = args;
37974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37975 if (!SWIG_IsOK(res1)) {
37976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37977 }
37978 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37979 {
37980 PyThreadState* __tstate = wxPyBeginAllowThreads();
37981 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37982 wxPyEndAllowThreads(__tstate);
37983 if (PyErr_Occurred()) SWIG_fail;
37984 }
37985 {
37986#if wxUSE_UNICODE
37987 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37988#else
37989 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37990#endif
37991 }
37992 return resultobj;
37993fail:
37994 return NULL;
37995}
37996
37997
37998SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37999 PyObject *resultobj = 0;
38000 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38001 wxString *arg2 = 0 ;
38002 void *argp1 = 0 ;
38003 int res1 = 0 ;
38004 bool temp2 = false ;
38005 PyObject * obj0 = 0 ;
38006 PyObject * obj1 = 0 ;
38007 char * kwnames[] = {
38008 (char *) "self",(char *) "path", NULL
38009 };
38010
38011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
38012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38013 if (!SWIG_IsOK(res1)) {
38014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38015 }
38016 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38017 {
38018 arg2 = wxString_in_helper(obj1);
38019 if (arg2 == NULL) SWIG_fail;
38020 temp2 = true;
38021 }
38022 {
38023 PyThreadState* __tstate = wxPyBeginAllowThreads();
38024 (arg1)->SetPath((wxString const &)*arg2);
38025 wxPyEndAllowThreads(__tstate);
38026 if (PyErr_Occurred()) SWIG_fail;
38027 }
38028 resultobj = SWIG_Py_Void();
38029 {
38030 if (temp2)
38031 delete arg2;
38032 }
38033 return resultobj;
38034fail:
38035 {
38036 if (temp2)
38037 delete arg2;
38038 }
38039 return NULL;
38040}
38041
38042
38043SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38044 PyObject *resultobj = 0;
38045 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38046 bool arg2 ;
38047 void *argp1 = 0 ;
38048 int res1 = 0 ;
38049 bool val2 ;
38050 int ecode2 = 0 ;
38051 PyObject * obj0 = 0 ;
38052 PyObject * obj1 = 0 ;
38053 char * kwnames[] = {
38054 (char *) "self",(char *) "show", NULL
38055 };
38056
38057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38059 if (!SWIG_IsOK(res1)) {
38060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38061 }
38062 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38063 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38064 if (!SWIG_IsOK(ecode2)) {
38065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38066 }
38067 arg2 = static_cast< bool >(val2);
38068 {
38069 PyThreadState* __tstate = wxPyBeginAllowThreads();
38070 (arg1)->ShowHidden(arg2);
38071 wxPyEndAllowThreads(__tstate);
38072 if (PyErr_Occurred()) SWIG_fail;
38073 }
38074 resultobj = SWIG_Py_Void();
38075 return resultobj;
38076fail:
38077 return NULL;
d14a1e28
RD
38078}
38079
38080
0085ce49
RD
38081SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38082 PyObject *resultobj = 0;
38083 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38084 bool result;
38085 void *argp1 = 0 ;
38086 int res1 = 0 ;
38087 PyObject *swig_obj[1] ;
38088
38089 if (!args) SWIG_fail;
38090 swig_obj[0] = args;
38091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38092 if (!SWIG_IsOK(res1)) {
38093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38094 }
38095 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38096 {
38097 PyThreadState* __tstate = wxPyBeginAllowThreads();
38098 result = (bool)(arg1)->GetShowHidden();
38099 wxPyEndAllowThreads(__tstate);
38100 if (PyErr_Occurred()) SWIG_fail;
38101 }
38102 {
38103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38104 }
38105 return resultobj;
38106fail:
38107 return NULL;
d14a1e28
RD
38108}
38109
38110
0085ce49
RD
38111SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38112 PyObject *resultobj = 0;
38113 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38114 wxString result;
38115 void *argp1 = 0 ;
38116 int res1 = 0 ;
38117 PyObject *swig_obj[1] ;
38118
38119 if (!args) SWIG_fail;
38120 swig_obj[0] = args;
38121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38122 if (!SWIG_IsOK(res1)) {
38123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38124 }
38125 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38126 {
38127 PyThreadState* __tstate = wxPyBeginAllowThreads();
38128 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38129 wxPyEndAllowThreads(__tstate);
38130 if (PyErr_Occurred()) SWIG_fail;
38131 }
38132 {
38133#if wxUSE_UNICODE
38134 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38135#else
38136 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38137#endif
38138 }
38139 return resultobj;
38140fail:
38141 return NULL;
38142}
38143
38144
38145SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38146 PyObject *resultobj = 0;
38147 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38148 wxString *arg2 = 0 ;
38149 void *argp1 = 0 ;
38150 int res1 = 0 ;
38151 bool temp2 = false ;
38152 PyObject * obj0 = 0 ;
38153 PyObject * obj1 = 0 ;
38154 char * kwnames[] = {
38155 (char *) "self",(char *) "filter", NULL
38156 };
38157
38158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38160 if (!SWIG_IsOK(res1)) {
38161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38162 }
38163 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38164 {
38165 arg2 = wxString_in_helper(obj1);
38166 if (arg2 == NULL) SWIG_fail;
38167 temp2 = true;
38168 }
38169 {
38170 PyThreadState* __tstate = wxPyBeginAllowThreads();
38171 (arg1)->SetFilter((wxString const &)*arg2);
38172 wxPyEndAllowThreads(__tstate);
38173 if (PyErr_Occurred()) SWIG_fail;
38174 }
38175 resultobj = SWIG_Py_Void();
38176 {
38177 if (temp2)
38178 delete arg2;
38179 }
38180 return resultobj;
38181fail:
38182 {
38183 if (temp2)
38184 delete arg2;
38185 }
38186 return NULL;
d14a1e28
RD
38187}
38188
38189
0085ce49
RD
38190SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38191 PyObject *resultobj = 0;
38192 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38193 int result;
38194 void *argp1 = 0 ;
38195 int res1 = 0 ;
38196 PyObject *swig_obj[1] ;
38197
38198 if (!args) SWIG_fail;
38199 swig_obj[0] = args;
38200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38201 if (!SWIG_IsOK(res1)) {
38202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38203 }
38204 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38205 {
38206 PyThreadState* __tstate = wxPyBeginAllowThreads();
38207 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38208 wxPyEndAllowThreads(__tstate);
38209 if (PyErr_Occurred()) SWIG_fail;
38210 }
38211 resultobj = SWIG_From_int(static_cast< int >(result));
38212 return resultobj;
38213fail:
38214 return NULL;
38215}
38216
38217
38218SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38219 PyObject *resultobj = 0;
38220 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38221 int arg2 ;
38222 void *argp1 = 0 ;
38223 int res1 = 0 ;
38224 int val2 ;
38225 int ecode2 = 0 ;
38226 PyObject * obj0 = 0 ;
38227 PyObject * obj1 = 0 ;
38228 char * kwnames[] = {
38229 (char *) "self",(char *) "n", NULL
38230 };
38231
38232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38234 if (!SWIG_IsOK(res1)) {
38235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38236 }
38237 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38238 ecode2 = SWIG_AsVal_int(obj1, &val2);
38239 if (!SWIG_IsOK(ecode2)) {
38240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38241 }
38242 arg2 = static_cast< int >(val2);
38243 {
38244 PyThreadState* __tstate = wxPyBeginAllowThreads();
38245 (arg1)->SetFilterIndex(arg2);
38246 wxPyEndAllowThreads(__tstate);
38247 if (PyErr_Occurred()) SWIG_fail;
38248 }
38249 resultobj = SWIG_Py_Void();
38250 return resultobj;
38251fail:
38252 return NULL;
d14a1e28
RD
38253}
38254
38255
0085ce49
RD
38256SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38257 PyObject *resultobj = 0;
38258 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38259 wxTreeItemId result;
38260 void *argp1 = 0 ;
38261 int res1 = 0 ;
38262 PyObject *swig_obj[1] ;
38263
38264 if (!args) SWIG_fail;
38265 swig_obj[0] = args;
38266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38267 if (!SWIG_IsOK(res1)) {
38268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38269 }
38270 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38271 {
38272 PyThreadState* __tstate = wxPyBeginAllowThreads();
38273 result = (arg1)->GetRootId();
38274 wxPyEndAllowThreads(__tstate);
38275 if (PyErr_Occurred()) SWIG_fail;
38276 }
38277 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38278 return resultobj;
38279fail:
38280 return NULL;
d14a1e28
RD
38281}
38282
38283
0085ce49
RD
38284SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38285 PyObject *resultobj = 0;
38286 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38287 wxPyTreeCtrl *result = 0 ;
38288 void *argp1 = 0 ;
38289 int res1 = 0 ;
38290 PyObject *swig_obj[1] ;
38291
38292 if (!args) SWIG_fail;
38293 swig_obj[0] = args;
38294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38295 if (!SWIG_IsOK(res1)) {
38296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38297 }
38298 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38299 {
38300 PyThreadState* __tstate = wxPyBeginAllowThreads();
38301 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38302 wxPyEndAllowThreads(__tstate);
38303 if (PyErr_Occurred()) SWIG_fail;
38304 }
38305 {
38306 resultobj = wxPyMake_wxObject(result, 0);
38307 }
38308 return resultobj;
38309fail:
38310 return NULL;
d14a1e28
RD
38311}
38312
38313
0085ce49
RD
38314SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38315 PyObject *resultobj = 0;
38316 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38317 wxDirFilterListCtrl *result = 0 ;
38318 void *argp1 = 0 ;
38319 int res1 = 0 ;
38320 PyObject *swig_obj[1] ;
38321
38322 if (!args) SWIG_fail;
38323 swig_obj[0] = args;
38324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38325 if (!SWIG_IsOK(res1)) {
38326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38327 }
38328 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38329 {
38330 PyThreadState* __tstate = wxPyBeginAllowThreads();
38331 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38332 wxPyEndAllowThreads(__tstate);
38333 if (PyErr_Occurred()) SWIG_fail;
38334 }
38335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38336 return resultobj;
38337fail:
38338 return NULL;
38339}
38340
38341
38342SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38343 PyObject *resultobj = 0;
38344 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38345 wxTreeItemId arg2 ;
38346 wxString *arg3 = 0 ;
38347 bool *arg4 = 0 ;
38348 wxTreeItemId result;
38349 void *argp1 = 0 ;
38350 int res1 = 0 ;
38351 void *argp2 ;
38352 int res2 = 0 ;
38353 bool temp3 = false ;
38354 bool temp4 ;
38355 int res4 = SWIG_TMPOBJ ;
38356 PyObject * obj0 = 0 ;
38357 PyObject * obj1 = 0 ;
38358 PyObject * obj2 = 0 ;
38359 char * kwnames[] = {
38360 (char *) "self",(char *) "parentId",(char *) "path", NULL
38361 };
38362
38363 arg4 = &temp4;
38364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38366 if (!SWIG_IsOK(res1)) {
38367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38368 }
38369 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38370 {
38371 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38372 if (!SWIG_IsOK(res2)) {
38373 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38374 }
38375 if (!argp2) {
38376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38377 } else {
38378 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38379 arg2 = *temp;
38380 if (SWIG_IsNewObj(res2)) delete temp;
d14a1e28 38381 }
0085ce49
RD
38382 }
38383 {
38384 arg3 = wxString_in_helper(obj2);
38385 if (arg3 == NULL) SWIG_fail;
38386 temp3 = true;
38387 }
38388 {
38389 PyThreadState* __tstate = wxPyBeginAllowThreads();
38390 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38391 wxPyEndAllowThreads(__tstate);
38392 if (PyErr_Occurred()) SWIG_fail;
38393 }
38394 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38395 if (SWIG_IsTmpObj(res4)) {
38396 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38397 } else {
38398 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38399 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38400 }
38401 {
38402 if (temp3)
38403 delete arg3;
38404 }
38405 return resultobj;
38406fail:
38407 {
38408 if (temp3)
38409 delete arg3;
38410 }
38411 return NULL;
d14a1e28
RD
38412}
38413
38414
0085ce49
RD
38415SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38416 PyObject *resultobj = 0;
38417 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38418 void *argp1 = 0 ;
38419 int res1 = 0 ;
38420 PyObject *swig_obj[1] ;
38421
38422 if (!args) SWIG_fail;
38423 swig_obj[0] = args;
38424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38425 if (!SWIG_IsOK(res1)) {
38426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38427 }
38428 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38429 {
38430 PyThreadState* __tstate = wxPyBeginAllowThreads();
38431 (arg1)->DoResize();
38432 wxPyEndAllowThreads(__tstate);
38433 if (PyErr_Occurred()) SWIG_fail;
38434 }
38435 resultobj = SWIG_Py_Void();
38436 return resultobj;
38437fail:
38438 return NULL;
d14a1e28
RD
38439}
38440
38441
0085ce49
RD
38442SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38443 PyObject *resultobj = 0;
38444 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38445 void *argp1 = 0 ;
38446 int res1 = 0 ;
38447 PyObject *swig_obj[1] ;
38448
38449 if (!args) SWIG_fail;
38450 swig_obj[0] = args;
38451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38452 if (!SWIG_IsOK(res1)) {
38453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38454 }
38455 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38456 {
38457 PyThreadState* __tstate = wxPyBeginAllowThreads();
38458 (arg1)->ReCreateTree();
38459 wxPyEndAllowThreads(__tstate);
38460 if (PyErr_Occurred()) SWIG_fail;
38461 }
38462 resultobj = SWIG_Py_Void();
38463 return resultobj;
38464fail:
38465 return NULL;
38466}
38467
38468
38469SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38470 PyObject *obj;
38471 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38472 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38473 return SWIG_Py_Void();
38474}
38475
38476SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38477 return SWIG_Python_InitShadowInstance(args);
38478}
38479
38480SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38481 PyObject *resultobj = 0;
38482 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38483 int arg2 = (int) (int)-1 ;
38484 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38485 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38486 wxSize const &arg4_defvalue = wxDefaultSize ;
38487 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38488 long arg5 = (long) 0 ;
38489 wxDirFilterListCtrl *result = 0 ;
38490 void *argp1 = 0 ;
38491 int res1 = 0 ;
38492 int val2 ;
38493 int ecode2 = 0 ;
38494 wxPoint temp3 ;
38495 wxSize temp4 ;
38496 long val5 ;
38497 int ecode5 = 0 ;
38498 PyObject * obj0 = 0 ;
38499 PyObject * obj1 = 0 ;
38500 PyObject * obj2 = 0 ;
38501 PyObject * obj3 = 0 ;
38502 PyObject * obj4 = 0 ;
38503 char * kwnames[] = {
38504 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38505 };
38506
38507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38509 if (!SWIG_IsOK(res1)) {
38510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38511 }
38512 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38513 if (obj1) {
38514 ecode2 = SWIG_AsVal_int(obj1, &val2);
38515 if (!SWIG_IsOK(ecode2)) {
38516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38517 }
38518 arg2 = static_cast< int >(val2);
38519 }
38520 if (obj2) {
d14a1e28 38521 {
0085ce49
RD
38522 arg3 = &temp3;
38523 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 38524 }
0085ce49
RD
38525 }
38526 if (obj3) {
d14a1e28 38527 {
0085ce49
RD
38528 arg4 = &temp4;
38529 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 38530 }
0085ce49
RD
38531 }
38532 if (obj4) {
38533 ecode5 = SWIG_AsVal_long(obj4, &val5);
38534 if (!SWIG_IsOK(ecode5)) {
38535 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38536 }
38537 arg5 = static_cast< long >(val5);
38538 }
38539 {
38540 if (!wxPyCheckForApp()) SWIG_fail;
38541 PyThreadState* __tstate = wxPyBeginAllowThreads();
38542 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38543 wxPyEndAllowThreads(__tstate);
38544 if (PyErr_Occurred()) SWIG_fail;
38545 }
38546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38547 return resultobj;
38548fail:
38549 return NULL;
d14a1e28
RD
38550}
38551
38552
0085ce49
RD
38553SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38554 PyObject *resultobj = 0;
38555 wxDirFilterListCtrl *result = 0 ;
38556
38557 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38558 {
38559 if (!wxPyCheckForApp()) SWIG_fail;
38560 PyThreadState* __tstate = wxPyBeginAllowThreads();
38561 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38562 wxPyEndAllowThreads(__tstate);
38563 if (PyErr_Occurred()) SWIG_fail;
38564 }
38565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38566 return resultobj;
38567fail:
38568 return NULL;
38569}
38570
38571
38572SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38573 PyObject *resultobj = 0;
38574 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38575 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38576 int arg3 = (int) (int)-1 ;
38577 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38578 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38579 wxSize const &arg5_defvalue = wxDefaultSize ;
38580 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38581 long arg6 = (long) 0 ;
38582 bool result;
38583 void *argp1 = 0 ;
38584 int res1 = 0 ;
38585 void *argp2 = 0 ;
38586 int res2 = 0 ;
38587 int val3 ;
38588 int ecode3 = 0 ;
38589 wxPoint temp4 ;
38590 wxSize temp5 ;
38591 long val6 ;
38592 int ecode6 = 0 ;
38593 PyObject * obj0 = 0 ;
38594 PyObject * obj1 = 0 ;
38595 PyObject * obj2 = 0 ;
38596 PyObject * obj3 = 0 ;
38597 PyObject * obj4 = 0 ;
38598 PyObject * obj5 = 0 ;
38599 char * kwnames[] = {
38600 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38601 };
38602
38603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38605 if (!SWIG_IsOK(res1)) {
38606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38607 }
38608 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38609 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38610 if (!SWIG_IsOK(res2)) {
38611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38612 }
38613 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38614 if (obj2) {
38615 ecode3 = SWIG_AsVal_int(obj2, &val3);
38616 if (!SWIG_IsOK(ecode3)) {
38617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38618 }
38619 arg3 = static_cast< int >(val3);
38620 }
38621 if (obj3) {
093d3ff1 38622 {
0085ce49
RD
38623 arg4 = &temp4;
38624 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 38625 }
0085ce49
RD
38626 }
38627 if (obj4) {
d14a1e28 38628 {
0085ce49
RD
38629 arg5 = &temp5;
38630 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 38631 }
0085ce49
RD
38632 }
38633 if (obj5) {
38634 ecode6 = SWIG_AsVal_long(obj5, &val6);
38635 if (!SWIG_IsOK(ecode6)) {
38636 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38637 }
38638 arg6 = static_cast< long >(val6);
38639 }
38640 {
38641 PyThreadState* __tstate = wxPyBeginAllowThreads();
38642 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38643 wxPyEndAllowThreads(__tstate);
38644 if (PyErr_Occurred()) SWIG_fail;
38645 }
38646 {
38647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38648 }
38649 return resultobj;
38650fail:
38651 return NULL;
38652}
38653
38654
38655SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38656 PyObject *resultobj = 0;
38657 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38658 wxString *arg2 = 0 ;
38659 int arg3 ;
38660 void *argp1 = 0 ;
38661 int res1 = 0 ;
38662 bool temp2 = false ;
38663 int val3 ;
38664 int ecode3 = 0 ;
38665 PyObject * obj0 = 0 ;
38666 PyObject * obj1 = 0 ;
38667 PyObject * obj2 = 0 ;
38668 char * kwnames[] = {
38669 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38670 };
38671
38672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38674 if (!SWIG_IsOK(res1)) {
38675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38676 }
38677 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38678 {
38679 arg2 = wxString_in_helper(obj1);
38680 if (arg2 == NULL) SWIG_fail;
38681 temp2 = true;
38682 }
38683 ecode3 = SWIG_AsVal_int(obj2, &val3);
38684 if (!SWIG_IsOK(ecode3)) {
38685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38686 }
38687 arg3 = static_cast< int >(val3);
38688 {
38689 PyThreadState* __tstate = wxPyBeginAllowThreads();
38690 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38691 wxPyEndAllowThreads(__tstate);
38692 if (PyErr_Occurred()) SWIG_fail;
38693 }
38694 resultobj = SWIG_Py_Void();
38695 {
38696 if (temp2)
38697 delete arg2;
38698 }
38699 return resultobj;
38700fail:
38701 {
38702 if (temp2)
38703 delete arg2;
38704 }
38705 return NULL;
38706}
38707
38708
38709SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38710 PyObject *obj;
38711 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38712 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38713 return SWIG_Py_Void();
38714}
38715
38716SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38717 return SWIG_Python_InitShadowInstance(args);
38718}
38719
38720SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38721 PyObject *resultobj = 0;
38722 wxWindow *arg1 = (wxWindow *) 0 ;
38723 int arg2 = (int) (int)-1 ;
38724 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38725 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38726 wxSize const &arg4_defvalue = wxDefaultSize ;
38727 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38728 long arg5 = (long) 0 ;
38729 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38730 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38731 wxString const &arg7_defvalue = wxPyControlNameStr ;
38732 wxString *arg7 = (wxString *) &arg7_defvalue ;
38733 wxPyControl *result = 0 ;
38734 void *argp1 = 0 ;
38735 int res1 = 0 ;
38736 int val2 ;
38737 int ecode2 = 0 ;
38738 wxPoint temp3 ;
38739 wxSize temp4 ;
38740 long val5 ;
38741 int ecode5 = 0 ;
38742 void *argp6 = 0 ;
38743 int res6 = 0 ;
38744 bool temp7 = false ;
38745 PyObject * obj0 = 0 ;
38746 PyObject * obj1 = 0 ;
38747 PyObject * obj2 = 0 ;
38748 PyObject * obj3 = 0 ;
38749 PyObject * obj4 = 0 ;
38750 PyObject * obj5 = 0 ;
38751 PyObject * obj6 = 0 ;
38752 char * kwnames[] = {
38753 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38754 };
38755
38756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38758 if (!SWIG_IsOK(res1)) {
38759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38760 }
38761 arg1 = reinterpret_cast< wxWindow * >(argp1);
38762 if (obj1) {
38763 ecode2 = SWIG_AsVal_int(obj1, &val2);
38764 if (!SWIG_IsOK(ecode2)) {
38765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38766 }
38767 arg2 = static_cast< int >(val2);
38768 }
38769 if (obj2) {
093d3ff1 38770 {
0085ce49
RD
38771 arg3 = &temp3;
38772 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 38773 }
0085ce49
RD
38774 }
38775 if (obj3) {
d14a1e28 38776 {
0085ce49
RD
38777 arg4 = &temp4;
38778 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 38779 }
0085ce49
RD
38780 }
38781 if (obj4) {
38782 ecode5 = SWIG_AsVal_long(obj4, &val5);
38783 if (!SWIG_IsOK(ecode5)) {
38784 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38785 }
38786 arg5 = static_cast< long >(val5);
38787 }
38788 if (obj5) {
38789 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38790 if (!SWIG_IsOK(res6)) {
38791 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38792 }
38793 if (!argp6) {
38794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 38795 }
0085ce49
RD
38796 arg6 = reinterpret_cast< wxValidator * >(argp6);
38797 }
38798 if (obj6) {
d14a1e28 38799 {
0085ce49
RD
38800 arg7 = wxString_in_helper(obj6);
38801 if (arg7 == NULL) SWIG_fail;
38802 temp7 = true;
d14a1e28 38803 }
0085ce49
RD
38804 }
38805 {
38806 if (!wxPyCheckForApp()) SWIG_fail;
38807 PyThreadState* __tstate = wxPyBeginAllowThreads();
38808 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38809 wxPyEndAllowThreads(__tstate);
38810 if (PyErr_Occurred()) SWIG_fail;
38811 }
38812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38813 {
38814 if (temp7)
38815 delete arg7;
38816 }
38817 return resultobj;
38818fail:
38819 {
38820 if (temp7)
38821 delete arg7;
38822 }
38823 return NULL;
d14a1e28
RD
38824}
38825
38826
0085ce49
RD
38827SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38828 PyObject *resultobj = 0;
38829 wxPyControl *result = 0 ;
38830
38831 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38832 {
38833 if (!wxPyCheckForApp()) SWIG_fail;
38834 PyThreadState* __tstate = wxPyBeginAllowThreads();
38835 result = (wxPyControl *)new wxPyControl();
38836 wxPyEndAllowThreads(__tstate);
38837 if (PyErr_Occurred()) SWIG_fail;
38838 }
38839 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38840 return resultobj;
38841fail:
38842 return NULL;
38843}
38844
38845
38846SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38847 PyObject *resultobj = 0;
38848 wxPyControl *arg1 = (wxPyControl *) 0 ;
38849 PyObject *arg2 = (PyObject *) 0 ;
38850 PyObject *arg3 = (PyObject *) 0 ;
38851 void *argp1 = 0 ;
38852 int res1 = 0 ;
38853 PyObject * obj0 = 0 ;
38854 PyObject * obj1 = 0 ;
38855 PyObject * obj2 = 0 ;
38856 char * kwnames[] = {
38857 (char *) "self",(char *) "self",(char *) "_class", NULL
38858 };
38859
38860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38862 if (!SWIG_IsOK(res1)) {
38863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38864 }
38865 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38866 arg2 = obj1;
38867 arg3 = obj2;
38868 {
38869 PyThreadState* __tstate = wxPyBeginAllowThreads();
38870 (arg1)->_setCallbackInfo(arg2,arg3);
38871 wxPyEndAllowThreads(__tstate);
38872 if (PyErr_Occurred()) SWIG_fail;
38873 }
38874 resultobj = SWIG_Py_Void();
38875 return resultobj;
38876fail:
38877 return NULL;
38878}
38879
38880
0085ce49
RD
38881SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38882 PyObject *resultobj = 0;
38883 wxPyControl *arg1 = (wxPyControl *) 0 ;
38884 wxDC *arg2 = (wxDC *) 0 ;
38885 bool result;
38886 void *argp1 = 0 ;
38887 int res1 = 0 ;
38888 void *argp2 = 0 ;
38889 int res2 = 0 ;
38890 PyObject * obj0 = 0 ;
38891 PyObject * obj1 = 0 ;
38892 char * kwnames[] = {
38893 (char *) "self",(char *) "dc", NULL
38894 };
38895
38896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38898 if (!SWIG_IsOK(res1)) {
38899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38900 }
38901 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38902 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38903 if (!SWIG_IsOK(res2)) {
38904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38905 }
38906 arg2 = reinterpret_cast< wxDC * >(argp2);
38907 {
38908 PyThreadState* __tstate = wxPyBeginAllowThreads();
38909 result = (bool)(arg1)->DoEraseBackground(arg2);
38910 wxPyEndAllowThreads(__tstate);
38911 if (PyErr_Occurred()) SWIG_fail;
38912 }
38913 {
38914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38915 }
38916 return resultobj;
38917fail:
38918 return NULL;
38919}
38920
38921
38922SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38923 PyObject *resultobj = 0;
38924 wxPyControl *arg1 = (wxPyControl *) 0 ;
38925 int arg2 ;
38926 int arg3 ;
38927 int arg4 ;
38928 int arg5 ;
38929 void *argp1 = 0 ;
38930 int res1 = 0 ;
38931 int val2 ;
38932 int ecode2 = 0 ;
38933 int val3 ;
38934 int ecode3 = 0 ;
38935 int val4 ;
38936 int ecode4 = 0 ;
38937 int val5 ;
38938 int ecode5 = 0 ;
38939 PyObject * obj0 = 0 ;
38940 PyObject * obj1 = 0 ;
38941 PyObject * obj2 = 0 ;
38942 PyObject * obj3 = 0 ;
38943 PyObject * obj4 = 0 ;
38944 char * kwnames[] = {
38945 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38946 };
38947
38948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38950 if (!SWIG_IsOK(res1)) {
38951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38952 }
38953 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38954 ecode2 = SWIG_AsVal_int(obj1, &val2);
38955 if (!SWIG_IsOK(ecode2)) {
38956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38957 }
38958 arg2 = static_cast< int >(val2);
38959 ecode3 = SWIG_AsVal_int(obj2, &val3);
38960 if (!SWIG_IsOK(ecode3)) {
38961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38962 }
38963 arg3 = static_cast< int >(val3);
38964 ecode4 = SWIG_AsVal_int(obj3, &val4);
38965 if (!SWIG_IsOK(ecode4)) {
38966 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38967 }
38968 arg4 = static_cast< int >(val4);
38969 ecode5 = SWIG_AsVal_int(obj4, &val5);
38970 if (!SWIG_IsOK(ecode5)) {
38971 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38972 }
38973 arg5 = static_cast< int >(val5);
38974 {
38975 PyThreadState* __tstate = wxPyBeginAllowThreads();
38976 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38977 wxPyEndAllowThreads(__tstate);
38978 if (PyErr_Occurred()) SWIG_fail;
38979 }
38980 resultobj = SWIG_Py_Void();
38981 return resultobj;
38982fail:
38983 return NULL;
38984}
38985
38986
38987SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38988 PyObject *resultobj = 0;
38989 wxPyControl *arg1 = (wxPyControl *) 0 ;
38990 int arg2 ;
38991 int arg3 ;
38992 int arg4 ;
38993 int arg5 ;
38994 int arg6 = (int) wxSIZE_AUTO ;
38995 void *argp1 = 0 ;
38996 int res1 = 0 ;
38997 int val2 ;
38998 int ecode2 = 0 ;
38999 int val3 ;
39000 int ecode3 = 0 ;
39001 int val4 ;
39002 int ecode4 = 0 ;
39003 int val5 ;
39004 int ecode5 = 0 ;
39005 int val6 ;
39006 int ecode6 = 0 ;
39007 PyObject * obj0 = 0 ;
39008 PyObject * obj1 = 0 ;
39009 PyObject * obj2 = 0 ;
39010 PyObject * obj3 = 0 ;
39011 PyObject * obj4 = 0 ;
39012 PyObject * obj5 = 0 ;
39013 char * kwnames[] = {
39014 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39015 };
39016
39017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39019 if (!SWIG_IsOK(res1)) {
39020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39021 }
39022 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39023 ecode2 = SWIG_AsVal_int(obj1, &val2);
39024 if (!SWIG_IsOK(ecode2)) {
39025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39026 }
39027 arg2 = static_cast< int >(val2);
39028 ecode3 = SWIG_AsVal_int(obj2, &val3);
39029 if (!SWIG_IsOK(ecode3)) {
39030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39031 }
39032 arg3 = static_cast< int >(val3);
39033 ecode4 = SWIG_AsVal_int(obj3, &val4);
39034 if (!SWIG_IsOK(ecode4)) {
39035 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39036 }
39037 arg4 = static_cast< int >(val4);
39038 ecode5 = SWIG_AsVal_int(obj4, &val5);
39039 if (!SWIG_IsOK(ecode5)) {
39040 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39041 }
39042 arg5 = static_cast< int >(val5);
39043 if (obj5) {
39044 ecode6 = SWIG_AsVal_int(obj5, &val6);
39045 if (!SWIG_IsOK(ecode6)) {
39046 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39047 }
39048 arg6 = static_cast< int >(val6);
39049 }
39050 {
39051 PyThreadState* __tstate = wxPyBeginAllowThreads();
39052 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39053 wxPyEndAllowThreads(__tstate);
39054 if (PyErr_Occurred()) SWIG_fail;
39055 }
39056 resultobj = SWIG_Py_Void();
39057 return resultobj;
39058fail:
39059 return NULL;
39060}
39061
39062
39063SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39064 PyObject *resultobj = 0;
39065 wxPyControl *arg1 = (wxPyControl *) 0 ;
39066 int arg2 ;
39067 int arg3 ;
39068 void *argp1 = 0 ;
39069 int res1 = 0 ;
39070 int val2 ;
39071 int ecode2 = 0 ;
39072 int val3 ;
39073 int ecode3 = 0 ;
39074 PyObject * obj0 = 0 ;
39075 PyObject * obj1 = 0 ;
39076 PyObject * obj2 = 0 ;
39077 char * kwnames[] = {
39078 (char *) "self",(char *) "width",(char *) "height", NULL
39079 };
39080
39081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39083 if (!SWIG_IsOK(res1)) {
39084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39085 }
39086 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39087 ecode2 = SWIG_AsVal_int(obj1, &val2);
39088 if (!SWIG_IsOK(ecode2)) {
39089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39090 }
39091 arg2 = static_cast< int >(val2);
39092 ecode3 = SWIG_AsVal_int(obj2, &val3);
39093 if (!SWIG_IsOK(ecode3)) {
39094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39095 }
39096 arg3 = static_cast< int >(val3);
39097 {
39098 PyThreadState* __tstate = wxPyBeginAllowThreads();
39099 (arg1)->DoSetClientSize(arg2,arg3);
39100 wxPyEndAllowThreads(__tstate);
39101 if (PyErr_Occurred()) SWIG_fail;
39102 }
39103 resultobj = SWIG_Py_Void();
39104 return resultobj;
39105fail:
39106 return NULL;
39107}
39108
39109
39110SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39111 PyObject *resultobj = 0;
39112 wxPyControl *arg1 = (wxPyControl *) 0 ;
39113 int arg2 ;
39114 int arg3 ;
39115 void *argp1 = 0 ;
39116 int res1 = 0 ;
39117 int val2 ;
39118 int ecode2 = 0 ;
39119 int val3 ;
39120 int ecode3 = 0 ;
39121 PyObject * obj0 = 0 ;
39122 PyObject * obj1 = 0 ;
39123 PyObject * obj2 = 0 ;
39124 char * kwnames[] = {
39125 (char *) "self",(char *) "x",(char *) "y", NULL
39126 };
39127
39128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39130 if (!SWIG_IsOK(res1)) {
39131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39132 }
39133 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39134 ecode2 = SWIG_AsVal_int(obj1, &val2);
39135 if (!SWIG_IsOK(ecode2)) {
39136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39137 }
39138 arg2 = static_cast< int >(val2);
39139 ecode3 = SWIG_AsVal_int(obj2, &val3);
39140 if (!SWIG_IsOK(ecode3)) {
39141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39142 }
39143 arg3 = static_cast< int >(val3);
39144 {
39145 PyThreadState* __tstate = wxPyBeginAllowThreads();
39146 (arg1)->DoSetVirtualSize(arg2,arg3);
39147 wxPyEndAllowThreads(__tstate);
39148 if (PyErr_Occurred()) SWIG_fail;
39149 }
39150 resultobj = SWIG_Py_Void();
39151 return resultobj;
39152fail:
39153 return NULL;
39154}
39155
39156
39157SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39158 PyObject *resultobj = 0;
39159 wxPyControl *arg1 = (wxPyControl *) 0 ;
39160 int *arg2 = (int *) 0 ;
39161 int *arg3 = (int *) 0 ;
39162 void *argp1 = 0 ;
39163 int res1 = 0 ;
39164 int temp2 ;
39165 int res2 = SWIG_TMPOBJ ;
39166 int temp3 ;
39167 int res3 = SWIG_TMPOBJ ;
39168 PyObject *swig_obj[1] ;
39169
39170 arg2 = &temp2;
39171 arg3 = &temp3;
39172 if (!args) SWIG_fail;
39173 swig_obj[0] = args;
39174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39175 if (!SWIG_IsOK(res1)) {
39176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39177 }
39178 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39179 {
39180 PyThreadState* __tstate = wxPyBeginAllowThreads();
39181 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39182 wxPyEndAllowThreads(__tstate);
39183 if (PyErr_Occurred()) SWIG_fail;
39184 }
39185 resultobj = SWIG_Py_Void();
39186 if (SWIG_IsTmpObj(res2)) {
39187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39188 } else {
39189 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39191 }
39192 if (SWIG_IsTmpObj(res3)) {
39193 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39194 } else {
39195 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39196 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39197 }
39198 return resultobj;
39199fail:
39200 return NULL;
39201}
39202
39203
39204SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39205 PyObject *resultobj = 0;
39206 wxPyControl *arg1 = (wxPyControl *) 0 ;
39207 int *arg2 = (int *) 0 ;
39208 int *arg3 = (int *) 0 ;
39209 void *argp1 = 0 ;
39210 int res1 = 0 ;
39211 int temp2 ;
39212 int res2 = SWIG_TMPOBJ ;
39213 int temp3 ;
39214 int res3 = SWIG_TMPOBJ ;
39215 PyObject *swig_obj[1] ;
39216
39217 arg2 = &temp2;
39218 arg3 = &temp3;
39219 if (!args) SWIG_fail;
39220 swig_obj[0] = args;
39221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39222 if (!SWIG_IsOK(res1)) {
39223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39224 }
39225 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39226 {
39227 PyThreadState* __tstate = wxPyBeginAllowThreads();
39228 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39229 wxPyEndAllowThreads(__tstate);
39230 if (PyErr_Occurred()) SWIG_fail;
39231 }
39232 resultobj = SWIG_Py_Void();
39233 if (SWIG_IsTmpObj(res2)) {
39234 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39235 } else {
39236 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39237 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39238 }
39239 if (SWIG_IsTmpObj(res3)) {
39240 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39241 } else {
39242 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39243 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39244 }
39245 return resultobj;
39246fail:
39247 return NULL;
39248}
39249
39250
39251SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39252 PyObject *resultobj = 0;
39253 wxPyControl *arg1 = (wxPyControl *) 0 ;
39254 int *arg2 = (int *) 0 ;
39255 int *arg3 = (int *) 0 ;
39256 void *argp1 = 0 ;
39257 int res1 = 0 ;
39258 int temp2 ;
39259 int res2 = SWIG_TMPOBJ ;
39260 int temp3 ;
39261 int res3 = SWIG_TMPOBJ ;
39262 PyObject *swig_obj[1] ;
39263
39264 arg2 = &temp2;
39265 arg3 = &temp3;
39266 if (!args) SWIG_fail;
39267 swig_obj[0] = args;
39268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39269 if (!SWIG_IsOK(res1)) {
39270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39271 }
39272 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39273 {
39274 PyThreadState* __tstate = wxPyBeginAllowThreads();
39275 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39276 wxPyEndAllowThreads(__tstate);
39277 if (PyErr_Occurred()) SWIG_fail;
39278 }
39279 resultobj = SWIG_Py_Void();
39280 if (SWIG_IsTmpObj(res2)) {
39281 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39282 } else {
39283 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39284 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39285 }
39286 if (SWIG_IsTmpObj(res3)) {
39287 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39288 } else {
39289 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39290 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39291 }
39292 return resultobj;
39293fail:
39294 return NULL;
d14a1e28
RD
39295}
39296
39297
0085ce49
RD
39298SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39299 PyObject *resultobj = 0;
39300 wxPyControl *arg1 = (wxPyControl *) 0 ;
39301 wxSize result;
39302 void *argp1 = 0 ;
39303 int res1 = 0 ;
39304 PyObject *swig_obj[1] ;
39305
39306 if (!args) SWIG_fail;
39307 swig_obj[0] = args;
39308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39309 if (!SWIG_IsOK(res1)) {
39310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39311 }
39312 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39313 {
39314 PyThreadState* __tstate = wxPyBeginAllowThreads();
39315 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39316 wxPyEndAllowThreads(__tstate);
39317 if (PyErr_Occurred()) SWIG_fail;
39318 }
39319 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39320 return resultobj;
39321fail:
39322 return NULL;
d14a1e28
RD
39323}
39324
39325
0085ce49
RD
39326SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39327 PyObject *resultobj = 0;
39328 wxPyControl *arg1 = (wxPyControl *) 0 ;
39329 wxSize result;
39330 void *argp1 = 0 ;
39331 int res1 = 0 ;
39332 PyObject *swig_obj[1] ;
39333
39334 if (!args) SWIG_fail;
39335 swig_obj[0] = args;
39336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39337 if (!SWIG_IsOK(res1)) {
39338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39339 }
39340 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39341 {
39342 PyThreadState* __tstate = wxPyBeginAllowThreads();
39343 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39344 wxPyEndAllowThreads(__tstate);
39345 if (PyErr_Occurred()) SWIG_fail;
39346 }
39347 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39348 return resultobj;
39349fail:
39350 return NULL;
d14a1e28
RD
39351}
39352
39353
0085ce49
RD
39354SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39355 PyObject *resultobj = 0;
39356 wxPyControl *arg1 = (wxPyControl *) 0 ;
39357 SwigValueWrapper<wxVisualAttributes > result;
39358 void *argp1 = 0 ;
39359 int res1 = 0 ;
39360 PyObject *swig_obj[1] ;
39361
39362 if (!args) SWIG_fail;
39363 swig_obj[0] = args;
39364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39365 if (!SWIG_IsOK(res1)) {
39366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39367 }
39368 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39369 {
39370 PyThreadState* __tstate = wxPyBeginAllowThreads();
39371 result = (arg1)->GetDefaultAttributes();
39372 wxPyEndAllowThreads(__tstate);
39373 if (PyErr_Occurred()) SWIG_fail;
39374 }
39375 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39376 return resultobj;
39377fail:
39378 return NULL;
d14a1e28
RD
39379}
39380
39381
0085ce49
RD
39382SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39383 PyObject *resultobj = 0;
39384 wxPyControl *arg1 = (wxPyControl *) 0 ;
39385 void *argp1 = 0 ;
39386 int res1 = 0 ;
39387 PyObject *swig_obj[1] ;
39388
39389 if (!args) SWIG_fail;
39390 swig_obj[0] = args;
39391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39392 if (!SWIG_IsOK(res1)) {
39393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39394 }
39395 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39396 {
39397 PyThreadState* __tstate = wxPyBeginAllowThreads();
39398 (arg1)->OnInternalIdle();
39399 wxPyEndAllowThreads(__tstate);
39400 if (PyErr_Occurred()) SWIG_fail;
39401 }
39402 resultobj = SWIG_Py_Void();
39403 return resultobj;
39404fail:
39405 return NULL;
39406}
39407
39408
39409SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39410 PyObject *obj;
39411 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39412 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39413 return SWIG_Py_Void();
39414}
39415
39416SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39417 return SWIG_Python_InitShadowInstance(args);
39418}
39419
39420SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39421 PyObject *resultobj = 0;
39422 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39423 int arg2 = (int) 0 ;
39424 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39425 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39426 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
0085ce49
RD
39427 wxHelpEvent *result = 0 ;
39428 int val1 ;
39429 int ecode1 = 0 ;
39430 int val2 ;
39431 int ecode2 = 0 ;
39432 wxPoint temp3 ;
704eda0c
RD
39433 int val4 ;
39434 int ecode4 = 0 ;
0085ce49
RD
39435 PyObject * obj0 = 0 ;
39436 PyObject * obj1 = 0 ;
39437 PyObject * obj2 = 0 ;
704eda0c 39438 PyObject * obj3 = 0 ;
0085ce49 39439 char * kwnames[] = {
704eda0c 39440 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
0085ce49
RD
39441 };
39442
704eda0c 39443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
39444 if (obj0) {
39445 ecode1 = SWIG_AsVal_int(obj0, &val1);
39446 if (!SWIG_IsOK(ecode1)) {
39447 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39448 }
39449 arg1 = static_cast< wxEventType >(val1);
39450 }
39451 if (obj1) {
39452 ecode2 = SWIG_AsVal_int(obj1, &val2);
39453 if (!SWIG_IsOK(ecode2)) {
39454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39455 }
39456 arg2 = static_cast< int >(val2);
39457 }
39458 if (obj2) {
d14a1e28 39459 {
0085ce49
RD
39460 arg3 = &temp3;
39461 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 39462 }
0085ce49 39463 }
704eda0c
RD
39464 if (obj3) {
39465 ecode4 = SWIG_AsVal_int(obj3, &val4);
39466 if (!SWIG_IsOK(ecode4)) {
39467 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39468 }
39469 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39470 }
0085ce49
RD
39471 {
39472 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39473 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
0085ce49
RD
39474 wxPyEndAllowThreads(__tstate);
39475 if (PyErr_Occurred()) SWIG_fail;
39476 }
39477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39478 return resultobj;
39479fail:
39480 return NULL;
d14a1e28
RD
39481}
39482
39483
0085ce49
RD
39484SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39485 PyObject *resultobj = 0;
39486 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39487 wxPoint result;
39488 void *argp1 = 0 ;
39489 int res1 = 0 ;
39490 PyObject *swig_obj[1] ;
39491
39492 if (!args) SWIG_fail;
39493 swig_obj[0] = args;
39494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39495 if (!SWIG_IsOK(res1)) {
39496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39497 }
39498 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39499 {
39500 PyThreadState* __tstate = wxPyBeginAllowThreads();
39501 result = ((wxHelpEvent const *)arg1)->GetPosition();
39502 wxPyEndAllowThreads(__tstate);
39503 if (PyErr_Occurred()) SWIG_fail;
39504 }
39505 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39506 return resultobj;
39507fail:
39508 return NULL;
39509}
39510
39511
39512SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39513 PyObject *resultobj = 0;
39514 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39515 wxPoint *arg2 = 0 ;
39516 void *argp1 = 0 ;
39517 int res1 = 0 ;
39518 wxPoint temp2 ;
39519 PyObject * obj0 = 0 ;
39520 PyObject * obj1 = 0 ;
39521 char * kwnames[] = {
39522 (char *) "self",(char *) "pos", NULL
39523 };
39524
39525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39527 if (!SWIG_IsOK(res1)) {
39528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39529 }
39530 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39531 {
39532 arg2 = &temp2;
39533 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39534 }
39535 {
39536 PyThreadState* __tstate = wxPyBeginAllowThreads();
39537 (arg1)->SetPosition((wxPoint const &)*arg2);
39538 wxPyEndAllowThreads(__tstate);
39539 if (PyErr_Occurred()) SWIG_fail;
39540 }
39541 resultobj = SWIG_Py_Void();
39542 return resultobj;
39543fail:
39544 return NULL;
d14a1e28
RD
39545}
39546
39547
0085ce49
RD
39548SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39549 PyObject *resultobj = 0;
39550 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39551 wxString *result = 0 ;
39552 void *argp1 = 0 ;
39553 int res1 = 0 ;
39554 PyObject *swig_obj[1] ;
39555
39556 if (!args) SWIG_fail;
39557 swig_obj[0] = args;
39558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39559 if (!SWIG_IsOK(res1)) {
39560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39561 }
39562 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39563 {
39564 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 39565 {
0085ce49
RD
39566 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39567 result = (wxString *) &_result_ref;
093d3ff1 39568 }
0085ce49
RD
39569 wxPyEndAllowThreads(__tstate);
39570 if (PyErr_Occurred()) SWIG_fail;
39571 }
39572 {
39573#if wxUSE_UNICODE
39574 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39575#else
39576 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39577#endif
39578 }
39579 return resultobj;
39580fail:
39581 return NULL;
39582}
39583
39584
39585SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39586 PyObject *resultobj = 0;
39587 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39588 wxString *arg2 = 0 ;
39589 void *argp1 = 0 ;
39590 int res1 = 0 ;
39591 bool temp2 = false ;
39592 PyObject * obj0 = 0 ;
39593 PyObject * obj1 = 0 ;
39594 char * kwnames[] = {
39595 (char *) "self",(char *) "link", NULL
39596 };
39597
39598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39600 if (!SWIG_IsOK(res1)) {
39601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39602 }
39603 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39604 {
39605 arg2 = wxString_in_helper(obj1);
39606 if (arg2 == NULL) SWIG_fail;
39607 temp2 = true;
39608 }
39609 {
39610 PyThreadState* __tstate = wxPyBeginAllowThreads();
39611 (arg1)->SetLink((wxString const &)*arg2);
39612 wxPyEndAllowThreads(__tstate);
39613 if (PyErr_Occurred()) SWIG_fail;
39614 }
39615 resultobj = SWIG_Py_Void();
39616 {
39617 if (temp2)
39618 delete arg2;
39619 }
39620 return resultobj;
39621fail:
39622 {
39623 if (temp2)
39624 delete arg2;
39625 }
39626 return NULL;
d14a1e28
RD
39627}
39628
39629
0085ce49
RD
39630SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39631 PyObject *resultobj = 0;
39632 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39633 wxString *result = 0 ;
39634 void *argp1 = 0 ;
39635 int res1 = 0 ;
39636 PyObject *swig_obj[1] ;
39637
39638 if (!args) SWIG_fail;
39639 swig_obj[0] = args;
39640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39641 if (!SWIG_IsOK(res1)) {
39642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39643 }
39644 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39645 {
39646 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 39647 {
0085ce49
RD
39648 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39649 result = (wxString *) &_result_ref;
d14a1e28 39650 }
0085ce49
RD
39651 wxPyEndAllowThreads(__tstate);
39652 if (PyErr_Occurred()) SWIG_fail;
39653 }
39654 {
39655#if wxUSE_UNICODE
39656 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39657#else
39658 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39659#endif
39660 }
39661 return resultobj;
39662fail:
39663 return NULL;
39664}
39665
39666
39667SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39668 PyObject *resultobj = 0;
39669 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39670 wxString *arg2 = 0 ;
39671 void *argp1 = 0 ;
39672 int res1 = 0 ;
39673 bool temp2 = false ;
39674 PyObject * obj0 = 0 ;
39675 PyObject * obj1 = 0 ;
39676 char * kwnames[] = {
39677 (char *) "self",(char *) "target", NULL
39678 };
39679
39680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39682 if (!SWIG_IsOK(res1)) {
39683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39684 }
39685 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39686 {
39687 arg2 = wxString_in_helper(obj1);
39688 if (arg2 == NULL) SWIG_fail;
39689 temp2 = true;
39690 }
39691 {
39692 PyThreadState* __tstate = wxPyBeginAllowThreads();
39693 (arg1)->SetTarget((wxString const &)*arg2);
39694 wxPyEndAllowThreads(__tstate);
39695 if (PyErr_Occurred()) SWIG_fail;
39696 }
39697 resultobj = SWIG_Py_Void();
39698 {
39699 if (temp2)
39700 delete arg2;
39701 }
39702 return resultobj;
39703fail:
39704 {
39705 if (temp2)
39706 delete arg2;
39707 }
39708 return NULL;
d14a1e28
RD
39709}
39710
39711
704eda0c
RD
39712SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39713 PyObject *resultobj = 0;
39714 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39715 wxHelpEvent::Origin result;
39716 void *argp1 = 0 ;
39717 int res1 = 0 ;
39718 PyObject *swig_obj[1] ;
39719
39720 if (!args) SWIG_fail;
39721 swig_obj[0] = args;
39722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39723 if (!SWIG_IsOK(res1)) {
39724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39725 }
39726 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39727 {
39728 PyThreadState* __tstate = wxPyBeginAllowThreads();
39729 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39730 wxPyEndAllowThreads(__tstate);
39731 if (PyErr_Occurred()) SWIG_fail;
39732 }
39733 resultobj = SWIG_From_int(static_cast< int >(result));
39734 return resultobj;
39735fail:
39736 return NULL;
39737}
39738
39739
39740SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39741 PyObject *resultobj = 0;
39742 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39743 wxHelpEvent::Origin arg2 ;
39744 void *argp1 = 0 ;
39745 int res1 = 0 ;
39746 int val2 ;
39747 int ecode2 = 0 ;
39748 PyObject * obj0 = 0 ;
39749 PyObject * obj1 = 0 ;
39750 char * kwnames[] = {
39751 (char *) "self",(char *) "origin", NULL
39752 };
39753
39754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39756 if (!SWIG_IsOK(res1)) {
39757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39758 }
39759 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39760 ecode2 = SWIG_AsVal_int(obj1, &val2);
39761 if (!SWIG_IsOK(ecode2)) {
39762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39763 }
39764 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39765 {
39766 PyThreadState* __tstate = wxPyBeginAllowThreads();
39767 (arg1)->SetOrigin(arg2);
39768 wxPyEndAllowThreads(__tstate);
39769 if (PyErr_Occurred()) SWIG_fail;
39770 }
39771 resultobj = SWIG_Py_Void();
39772 return resultobj;
39773fail:
39774 return NULL;
39775}
39776
39777
0085ce49
RD
39778SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39779 PyObject *obj;
39780 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39781 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39782 return SWIG_Py_Void();
d14a1e28
RD
39783}
39784
0085ce49
RD
39785SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39786 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
39787}
39788
0085ce49
RD
39789SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39790 PyObject *resultobj = 0;
39791 wxWindow *arg1 = (wxWindow *) NULL ;
39792 bool arg2 = (bool) true ;
39793 wxContextHelp *result = 0 ;
39794 void *argp1 = 0 ;
39795 int res1 = 0 ;
39796 bool val2 ;
39797 int ecode2 = 0 ;
39798 PyObject * obj0 = 0 ;
39799 PyObject * obj1 = 0 ;
39800 char * kwnames[] = {
39801 (char *) "window",(char *) "doNow", NULL
39802 };
39803
39804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39805 if (obj0) {
39806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39807 if (!SWIG_IsOK(res1)) {
39808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d14a1e28 39809 }
0085ce49
RD
39810 arg1 = reinterpret_cast< wxWindow * >(argp1);
39811 }
39812 if (obj1) {
39813 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39814 if (!SWIG_IsOK(ecode2)) {
39815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39816 }
39817 arg2 = static_cast< bool >(val2);
39818 }
39819 {
39820 if (!wxPyCheckForApp()) SWIG_fail;
39821 PyThreadState* __tstate = wxPyBeginAllowThreads();
39822 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39823 wxPyEndAllowThreads(__tstate);
39824 if (PyErr_Occurred()) SWIG_fail;
39825 }
39826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39827 return resultobj;
39828fail:
39829 return NULL;
d14a1e28
RD
39830}
39831
39832
0085ce49
RD
39833SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39834 PyObject *resultobj = 0;
39835 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39836 void *argp1 = 0 ;
39837 int res1 = 0 ;
39838 PyObject *swig_obj[1] ;
39839
39840 if (!args) SWIG_fail;
39841 swig_obj[0] = args;
39842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39843 if (!SWIG_IsOK(res1)) {
39844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39845 }
39846 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39847 {
39848 PyThreadState* __tstate = wxPyBeginAllowThreads();
39849 delete arg1;
3a04f143 39850
0085ce49
RD
39851 wxPyEndAllowThreads(__tstate);
39852 if (PyErr_Occurred()) SWIG_fail;
39853 }
39854 resultobj = SWIG_Py_Void();
39855 return resultobj;
39856fail:
39857 return NULL;
39858}
39859
39860
39861SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39862 PyObject *resultobj = 0;
39863 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39864 wxWindow *arg2 = (wxWindow *) NULL ;
39865 bool result;
39866 void *argp1 = 0 ;
39867 int res1 = 0 ;
39868 void *argp2 = 0 ;
39869 int res2 = 0 ;
39870 PyObject * obj0 = 0 ;
39871 PyObject * obj1 = 0 ;
39872 char * kwnames[] = {
39873 (char *) "self",(char *) "window", NULL
39874 };
39875
39876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39878 if (!SWIG_IsOK(res1)) {
39879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39880 }
39881 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39882 if (obj1) {
39883 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39884 if (!SWIG_IsOK(res2)) {
39885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
3a04f143 39886 }
0085ce49
RD
39887 arg2 = reinterpret_cast< wxWindow * >(argp2);
39888 }
39889 {
39890 PyThreadState* __tstate = wxPyBeginAllowThreads();
39891 result = (bool)(arg1)->BeginContextHelp(arg2);
39892 wxPyEndAllowThreads(__tstate);
39893 if (PyErr_Occurred()) SWIG_fail;
39894 }
39895 {
39896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39897 }
39898 return resultobj;
39899fail:
39900 return NULL;
3a04f143
RD
39901}
39902
39903
0085ce49
RD
39904SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39905 PyObject *resultobj = 0;
39906 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39907 bool result;
39908 void *argp1 = 0 ;
39909 int res1 = 0 ;
39910 PyObject *swig_obj[1] ;
39911
39912 if (!args) SWIG_fail;
39913 swig_obj[0] = args;
39914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39915 if (!SWIG_IsOK(res1)) {
39916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39917 }
39918 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39919 {
39920 PyThreadState* __tstate = wxPyBeginAllowThreads();
39921 result = (bool)(arg1)->EndContextHelp();
39922 wxPyEndAllowThreads(__tstate);
39923 if (PyErr_Occurred()) SWIG_fail;
39924 }
39925 {
39926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39927 }
39928 return resultobj;
39929fail:
39930 return NULL;
39931}
39932
39933
39934SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39935 PyObject *obj;
39936 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39937 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39938 return SWIG_Py_Void();
39939}
39940
39941SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39942 return SWIG_Python_InitShadowInstance(args);
39943}
39944
39945SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39946 PyObject *resultobj = 0;
39947 wxWindow *arg1 = (wxWindow *) 0 ;
39948 int arg2 = (int) wxID_CONTEXT_HELP ;
39949 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39950 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39951 wxSize const &arg4_defvalue = wxDefaultSize ;
39952 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39953 long arg5 = (long) wxBU_AUTODRAW ;
39954 wxContextHelpButton *result = 0 ;
39955 void *argp1 = 0 ;
39956 int res1 = 0 ;
39957 int val2 ;
39958 int ecode2 = 0 ;
39959 wxPoint temp3 ;
39960 wxSize temp4 ;
39961 long val5 ;
39962 int ecode5 = 0 ;
39963 PyObject * obj0 = 0 ;
39964 PyObject * obj1 = 0 ;
39965 PyObject * obj2 = 0 ;
39966 PyObject * obj3 = 0 ;
39967 PyObject * obj4 = 0 ;
39968 char * kwnames[] = {
39969 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39970 };
39971
39972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39974 if (!SWIG_IsOK(res1)) {
39975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39976 }
39977 arg1 = reinterpret_cast< wxWindow * >(argp1);
39978 if (obj1) {
39979 ecode2 = SWIG_AsVal_int(obj1, &val2);
39980 if (!SWIG_IsOK(ecode2)) {
39981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39982 }
39983 arg2 = static_cast< int >(val2);
39984 }
39985 if (obj2) {
d14a1e28 39986 {
0085ce49
RD
39987 arg3 = &temp3;
39988 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 39989 }
0085ce49
RD
39990 }
39991 if (obj3) {
4f89f6a3 39992 {
0085ce49
RD
39993 arg4 = &temp4;
39994 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 39995 }
0085ce49
RD
39996 }
39997 if (obj4) {
39998 ecode5 = SWIG_AsVal_long(obj4, &val5);
39999 if (!SWIG_IsOK(ecode5)) {
40000 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
40001 }
40002 arg5 = static_cast< long >(val5);
40003 }
40004 {
40005 if (!wxPyCheckForApp()) SWIG_fail;
40006 PyThreadState* __tstate = wxPyBeginAllowThreads();
40007 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40008 wxPyEndAllowThreads(__tstate);
40009 if (PyErr_Occurred()) SWIG_fail;
40010 }
40011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40012 return resultobj;
40013fail:
40014 return NULL;
d14a1e28
RD
40015}
40016
40017
0085ce49
RD
40018SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40019 PyObject *obj;
40020 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40021 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40022 return SWIG_Py_Void();
d14a1e28
RD
40023}
40024
0085ce49
RD
40025SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40026 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
40027}
40028
f52cbe90
RD
40029SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40030 PyObject *resultobj = 0;
40031 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40032 void *argp1 = 0 ;
40033 int res1 = 0 ;
40034 PyObject *swig_obj[1] ;
40035
40036 if (!args) SWIG_fail;
40037 swig_obj[0] = args;
40038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40039 if (!SWIG_IsOK(res1)) {
40040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40041 }
40042 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40043 {
40044 PyThreadState* __tstate = wxPyBeginAllowThreads();
40045 delete arg1;
40046
40047 wxPyEndAllowThreads(__tstate);
40048 if (PyErr_Occurred()) SWIG_fail;
40049 }
40050 resultobj = SWIG_Py_Void();
40051 return resultobj;
40052fail:
40053 return NULL;
40054}
40055
40056
0085ce49
RD
40057SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40058 PyObject *resultobj = 0;
40059 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40060 wxHelpProvider *result = 0 ;
40061 int res1 = 0 ;
40062 PyObject * obj0 = 0 ;
40063 char * kwnames[] = {
40064 (char *) "helpProvider", NULL
40065 };
40066
40067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40068 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40069 if (!SWIG_IsOK(res1)) {
40070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40071 }
40072 {
40073 PyThreadState* __tstate = wxPyBeginAllowThreads();
40074 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40075 wxPyEndAllowThreads(__tstate);
40076 if (PyErr_Occurred()) SWIG_fail;
40077 }
40078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40079 return resultobj;
40080fail:
40081 return NULL;
d14a1e28
RD
40082}
40083
40084
0085ce49
RD
40085SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40086 PyObject *resultobj = 0;
40087 wxHelpProvider *result = 0 ;
40088
40089 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40090 {
40091 PyThreadState* __tstate = wxPyBeginAllowThreads();
40092 result = (wxHelpProvider *)wxHelpProvider::Get();
40093 wxPyEndAllowThreads(__tstate);
40094 if (PyErr_Occurred()) SWIG_fail;
40095 }
40096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40097 return resultobj;
40098fail:
40099 return NULL;
40100}
40101
40102
40103SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40104 PyObject *resultobj = 0;
40105 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40106 wxWindow *arg2 = (wxWindow *) 0 ;
40107 wxString result;
40108 void *argp1 = 0 ;
40109 int res1 = 0 ;
40110 void *argp2 = 0 ;
40111 int res2 = 0 ;
40112 PyObject * obj0 = 0 ;
40113 PyObject * obj1 = 0 ;
40114 char * kwnames[] = {
40115 (char *) "self",(char *) "window", NULL
40116 };
40117
40118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40120 if (!SWIG_IsOK(res1)) {
40121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40122 }
40123 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40124 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40125 if (!SWIG_IsOK(res2)) {
40126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40127 }
40128 arg2 = reinterpret_cast< wxWindow * >(argp2);
40129 {
40130 PyThreadState* __tstate = wxPyBeginAllowThreads();
40131 result = (arg1)->GetHelp((wxWindow const *)arg2);
40132 wxPyEndAllowThreads(__tstate);
40133 if (PyErr_Occurred()) SWIG_fail;
40134 }
40135 {
40136#if wxUSE_UNICODE
40137 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40138#else
40139 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40140#endif
40141 }
40142 return resultobj;
40143fail:
40144 return NULL;
40145}
40146
40147
40148SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40149 PyObject *resultobj = 0;
40150 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40151 wxWindow *arg2 = (wxWindow *) 0 ;
40152 bool result;
40153 void *argp1 = 0 ;
40154 int res1 = 0 ;
40155 void *argp2 = 0 ;
40156 int res2 = 0 ;
40157 PyObject * obj0 = 0 ;
40158 PyObject * obj1 = 0 ;
40159 char * kwnames[] = {
40160 (char *) "self",(char *) "window", NULL
40161 };
40162
40163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40165 if (!SWIG_IsOK(res1)) {
40166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40167 }
40168 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40169 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40170 if (!SWIG_IsOK(res2)) {
40171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40172 }
40173 arg2 = reinterpret_cast< wxWindow * >(argp2);
40174 {
40175 PyThreadState* __tstate = wxPyBeginAllowThreads();
40176 result = (bool)(arg1)->ShowHelp(arg2);
40177 wxPyEndAllowThreads(__tstate);
40178 if (PyErr_Occurred()) SWIG_fail;
40179 }
40180 {
40181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40182 }
40183 return resultobj;
40184fail:
40185 return NULL;
40186}
40187
40188
b850e7f3
RD
40189SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40190 PyObject *resultobj = 0;
40191 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40192 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40193 wxPoint *arg3 = 0 ;
40194 wxHelpEvent::Origin arg4 ;
40195 bool result;
40196 void *argp1 = 0 ;
40197 int res1 = 0 ;
40198 void *argp2 = 0 ;
40199 int res2 = 0 ;
40200 wxPoint temp3 ;
40201 int val4 ;
40202 int ecode4 = 0 ;
40203 PyObject * obj0 = 0 ;
40204 PyObject * obj1 = 0 ;
40205 PyObject * obj2 = 0 ;
40206 PyObject * obj3 = 0 ;
40207 char * kwnames[] = {
40208 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40209 };
40210
40211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40213 if (!SWIG_IsOK(res1)) {
40214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40215 }
40216 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40218 if (!SWIG_IsOK(res2)) {
40219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40220 }
40221 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40222 {
40223 arg3 = &temp3;
40224 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40225 }
40226 ecode4 = SWIG_AsVal_int(obj3, &val4);
40227 if (!SWIG_IsOK(ecode4)) {
40228 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40229 }
40230 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40231 {
40232 PyThreadState* __tstate = wxPyBeginAllowThreads();
40233 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40234 wxPyEndAllowThreads(__tstate);
40235 if (PyErr_Occurred()) SWIG_fail;
40236 }
40237 {
40238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40239 }
40240 return resultobj;
40241fail:
40242 return NULL;
40243}
40244
40245
0085ce49
RD
40246SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40247 PyObject *resultobj = 0;
40248 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40249 wxWindow *arg2 = (wxWindow *) 0 ;
40250 wxString *arg3 = 0 ;
40251 void *argp1 = 0 ;
40252 int res1 = 0 ;
40253 void *argp2 = 0 ;
40254 int res2 = 0 ;
40255 bool temp3 = false ;
40256 PyObject * obj0 = 0 ;
40257 PyObject * obj1 = 0 ;
40258 PyObject * obj2 = 0 ;
40259 char * kwnames[] = {
40260 (char *) "self",(char *) "window",(char *) "text", NULL
40261 };
40262
40263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40265 if (!SWIG_IsOK(res1)) {
40266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40267 }
40268 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40269 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40270 if (!SWIG_IsOK(res2)) {
40271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40272 }
40273 arg2 = reinterpret_cast< wxWindow * >(argp2);
40274 {
40275 arg3 = wxString_in_helper(obj2);
40276 if (arg3 == NULL) SWIG_fail;
40277 temp3 = true;
40278 }
40279 {
40280 PyThreadState* __tstate = wxPyBeginAllowThreads();
40281 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40282 wxPyEndAllowThreads(__tstate);
40283 if (PyErr_Occurred()) SWIG_fail;
40284 }
40285 resultobj = SWIG_Py_Void();
40286 {
40287 if (temp3)
40288 delete arg3;
40289 }
40290 return resultobj;
40291fail:
40292 {
40293 if (temp3)
40294 delete arg3;
40295 }
40296 return NULL;
40297}
40298
40299
40300SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40301 PyObject *resultobj = 0;
40302 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40303 int arg2 ;
40304 wxString *arg3 = 0 ;
40305 void *argp1 = 0 ;
40306 int res1 = 0 ;
40307 int val2 ;
40308 int ecode2 = 0 ;
40309 bool temp3 = false ;
40310 PyObject * obj0 = 0 ;
40311 PyObject * obj1 = 0 ;
40312 PyObject * obj2 = 0 ;
40313 char * kwnames[] = {
40314 (char *) "self",(char *) "id",(char *) "text", NULL
40315 };
40316
40317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40319 if (!SWIG_IsOK(res1)) {
40320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40321 }
40322 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40323 ecode2 = SWIG_AsVal_int(obj1, &val2);
40324 if (!SWIG_IsOK(ecode2)) {
40325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40326 }
40327 arg2 = static_cast< int >(val2);
40328 {
40329 arg3 = wxString_in_helper(obj2);
40330 if (arg3 == NULL) SWIG_fail;
40331 temp3 = true;
40332 }
40333 {
40334 PyThreadState* __tstate = wxPyBeginAllowThreads();
40335 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40336 wxPyEndAllowThreads(__tstate);
40337 if (PyErr_Occurred()) SWIG_fail;
40338 }
40339 resultobj = SWIG_Py_Void();
40340 {
40341 if (temp3)
40342 delete arg3;
40343 }
40344 return resultobj;
40345fail:
40346 {
40347 if (temp3)
40348 delete arg3;
40349 }
40350 return NULL;
40351}
40352
40353
40354SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40355 PyObject *resultobj = 0;
40356 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40357 wxWindow *arg2 = (wxWindow *) 0 ;
40358 void *argp1 = 0 ;
40359 int res1 = 0 ;
40360 void *argp2 = 0 ;
40361 int res2 = 0 ;
40362 PyObject * obj0 = 0 ;
40363 PyObject * obj1 = 0 ;
40364 char * kwnames[] = {
40365 (char *) "self",(char *) "window", NULL
40366 };
40367
40368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40370 if (!SWIG_IsOK(res1)) {
40371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40372 }
40373 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40374 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40375 if (!SWIG_IsOK(res2)) {
40376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40377 }
40378 arg2 = reinterpret_cast< wxWindow * >(argp2);
40379 {
40380 PyThreadState* __tstate = wxPyBeginAllowThreads();
40381 (arg1)->RemoveHelp(arg2);
40382 wxPyEndAllowThreads(__tstate);
40383 if (PyErr_Occurred()) SWIG_fail;
40384 }
40385 resultobj = SWIG_Py_Void();
40386 return resultobj;
40387fail:
40388 return NULL;
d14a1e28
RD
40389}
40390
40391
0085ce49
RD
40392SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40393 PyObject *resultobj = 0;
40394 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40395 void *argp1 = 0 ;
40396 int res1 = 0 ;
40397 PyObject *swig_obj[1] ;
40398
40399 if (!args) SWIG_fail;
40400 swig_obj[0] = args;
40401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40402 if (!SWIG_IsOK(res1)) {
40403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40404 }
40405 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40406 {
40407 PyThreadState* __tstate = wxPyBeginAllowThreads();
40408 wxHelpProvider_Destroy(arg1);
40409 wxPyEndAllowThreads(__tstate);
40410 if (PyErr_Occurred()) SWIG_fail;
40411 }
40412 resultobj = SWIG_Py_Void();
40413 return resultobj;
40414fail:
40415 return NULL;
22bfe96c
RD
40416}
40417
40418
0085ce49
RD
40419SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40420 PyObject *obj;
40421 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40422 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40423 return SWIG_Py_Void();
b2dc1044
RD
40424}
40425
0085ce49
RD
40426SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40427 PyObject *resultobj = 0;
40428 wxSimpleHelpProvider *result = 0 ;
40429
40430 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40431 {
40432 PyThreadState* __tstate = wxPyBeginAllowThreads();
40433 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40434 wxPyEndAllowThreads(__tstate);
40435 if (PyErr_Occurred()) SWIG_fail;
40436 }
40437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40438 return resultobj;
40439fail:
40440 return NULL;
40441}
40442
40443
40444SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40445 PyObject *obj;
40446 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40447 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40448 return SWIG_Py_Void();
40449}
40450
40451SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40452 return SWIG_Python_InitShadowInstance(args);
40453}
40454
40455SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40456 PyObject *resultobj = 0;
40457 wxBitmap *arg1 = 0 ;
40458 wxCursor const &arg2_defvalue = wxNullCursor ;
40459 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40460 wxGenericDragImage *result = 0 ;
40461 void *argp1 = 0 ;
40462 int res1 = 0 ;
40463 void *argp2 = 0 ;
40464 int res2 = 0 ;
40465 PyObject * obj0 = 0 ;
40466 PyObject * obj1 = 0 ;
40467 char * kwnames[] = {
40468 (char *) "image",(char *) "cursor", NULL
40469 };
40470
40471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40472 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40473 if (!SWIG_IsOK(res1)) {
40474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40475 }
40476 if (!argp1) {
40477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40478 }
40479 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40480 if (obj1) {
40481 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40482 if (!SWIG_IsOK(res2)) {
40483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40484 }
0085ce49
RD
40485 if (!argp2) {
40486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40487 }
0085ce49
RD
40488 arg2 = reinterpret_cast< wxCursor * >(argp2);
40489 }
40490 {
40491 if (!wxPyCheckForApp()) SWIG_fail;
40492 PyThreadState* __tstate = wxPyBeginAllowThreads();
40493 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40494 wxPyEndAllowThreads(__tstate);
40495 if (PyErr_Occurred()) SWIG_fail;
40496 }
40497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40498 return resultobj;
40499fail:
40500 return NULL;
40501}
40502
40503
40504SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40505 PyObject *resultobj = 0;
40506 wxIcon *arg1 = 0 ;
40507 wxCursor const &arg2_defvalue = wxNullCursor ;
40508 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40509 wxGenericDragImage *result = 0 ;
40510 void *argp1 = 0 ;
40511 int res1 = 0 ;
40512 void *argp2 = 0 ;
40513 int res2 = 0 ;
40514 PyObject * obj0 = 0 ;
40515 PyObject * obj1 = 0 ;
40516 char * kwnames[] = {
40517 (char *) "image",(char *) "cursor", NULL
40518 };
40519
40520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40521 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40522 if (!SWIG_IsOK(res1)) {
40523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40524 }
40525 if (!argp1) {
40526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40527 }
40528 arg1 = reinterpret_cast< wxIcon * >(argp1);
40529 if (obj1) {
40530 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40531 if (!SWIG_IsOK(res2)) {
40532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40533 }
0085ce49
RD
40534 if (!argp2) {
40535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40536 }
0085ce49
RD
40537 arg2 = reinterpret_cast< wxCursor * >(argp2);
40538 }
40539 {
40540 if (!wxPyCheckForApp()) SWIG_fail;
40541 PyThreadState* __tstate = wxPyBeginAllowThreads();
40542 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40543 wxPyEndAllowThreads(__tstate);
40544 if (PyErr_Occurred()) SWIG_fail;
40545 }
40546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40547 return resultobj;
40548fail:
40549 return NULL;
40550}
40551
40552
40553SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40554 PyObject *resultobj = 0;
40555 wxString *arg1 = 0 ;
40556 wxCursor const &arg2_defvalue = wxNullCursor ;
40557 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40558 wxGenericDragImage *result = 0 ;
40559 bool temp1 = false ;
40560 void *argp2 = 0 ;
40561 int res2 = 0 ;
40562 PyObject * obj0 = 0 ;
40563 PyObject * obj1 = 0 ;
40564 char * kwnames[] = {
40565 (char *) "str",(char *) "cursor", NULL
40566 };
40567
40568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40569 {
40570 arg1 = wxString_in_helper(obj0);
40571 if (arg1 == NULL) SWIG_fail;
40572 temp1 = true;
40573 }
40574 if (obj1) {
40575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40576 if (!SWIG_IsOK(res2)) {
40577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 40578 }
0085ce49
RD
40579 if (!argp2) {
40580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40581 }
40582 arg2 = reinterpret_cast< wxCursor * >(argp2);
40583 }
40584 {
40585 if (!wxPyCheckForApp()) SWIG_fail;
40586 PyThreadState* __tstate = wxPyBeginAllowThreads();
40587 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40588 wxPyEndAllowThreads(__tstate);
40589 if (PyErr_Occurred()) SWIG_fail;
40590 }
40591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40592 {
40593 if (temp1)
40594 delete arg1;
40595 }
40596 return resultobj;
40597fail:
40598 {
40599 if (temp1)
40600 delete arg1;
40601 }
40602 return NULL;
40603}
40604
40605
40606SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40607 PyObject *resultobj = 0;
40608 wxPyTreeCtrl *arg1 = 0 ;
40609 wxTreeItemId *arg2 = 0 ;
40610 wxGenericDragImage *result = 0 ;
40611 void *argp1 = 0 ;
40612 int res1 = 0 ;
40613 void *argp2 = 0 ;
40614 int res2 = 0 ;
40615 PyObject * obj0 = 0 ;
40616 PyObject * obj1 = 0 ;
40617 char * kwnames[] = {
40618 (char *) "treeCtrl",(char *) "id", NULL
40619 };
40620
40621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40622 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40623 if (!SWIG_IsOK(res1)) {
40624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40625 }
40626 if (!argp1) {
40627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40628 }
40629 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40630 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40631 if (!SWIG_IsOK(res2)) {
40632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40633 }
40634 if (!argp2) {
40635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40636 }
40637 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40638 {
40639 if (!wxPyCheckForApp()) SWIG_fail;
40640 PyThreadState* __tstate = wxPyBeginAllowThreads();
40641 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40642 wxPyEndAllowThreads(__tstate);
40643 if (PyErr_Occurred()) SWIG_fail;
40644 }
40645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40646 return resultobj;
40647fail:
40648 return NULL;
40649}
40650
40651
40652SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40653 PyObject *resultobj = 0;
40654 wxPyListCtrl *arg1 = 0 ;
40655 long arg2 ;
40656 wxGenericDragImage *result = 0 ;
40657 void *argp1 = 0 ;
40658 int res1 = 0 ;
40659 long val2 ;
40660 int ecode2 = 0 ;
40661 PyObject * obj0 = 0 ;
40662 PyObject * obj1 = 0 ;
40663 char * kwnames[] = {
40664 (char *) "listCtrl",(char *) "id", NULL
40665 };
40666
40667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40668 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40669 if (!SWIG_IsOK(res1)) {
40670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40671 }
40672 if (!argp1) {
40673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40674 }
40675 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40676 ecode2 = SWIG_AsVal_long(obj1, &val2);
40677 if (!SWIG_IsOK(ecode2)) {
40678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40679 }
40680 arg2 = static_cast< long >(val2);
40681 {
40682 if (!wxPyCheckForApp()) SWIG_fail;
40683 PyThreadState* __tstate = wxPyBeginAllowThreads();
40684 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40685 wxPyEndAllowThreads(__tstate);
40686 if (PyErr_Occurred()) SWIG_fail;
40687 }
40688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40689 return resultobj;
40690fail:
40691 return NULL;
7e08d4ef
RD
40692}
40693
40694
0085ce49
RD
40695SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40696 PyObject *resultobj = 0;
40697 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40698 void *argp1 = 0 ;
40699 int res1 = 0 ;
40700 PyObject *swig_obj[1] ;
40701
40702 if (!args) SWIG_fail;
40703 swig_obj[0] = args;
40704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40705 if (!SWIG_IsOK(res1)) {
40706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40707 }
40708 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40709 {
40710 PyThreadState* __tstate = wxPyBeginAllowThreads();
40711 delete arg1;
d14a1e28 40712
0085ce49
RD
40713 wxPyEndAllowThreads(__tstate);
40714 if (PyErr_Occurred()) SWIG_fail;
40715 }
40716 resultobj = SWIG_Py_Void();
40717 return resultobj;
40718fail:
40719 return NULL;
40720}
40721
40722
40723SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40724 PyObject *resultobj = 0;
40725 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40726 wxBitmap *arg2 = (wxBitmap *) 0 ;
40727 void *argp1 = 0 ;
40728 int res1 = 0 ;
40729 void *argp2 = 0 ;
40730 int res2 = 0 ;
40731 PyObject * obj0 = 0 ;
40732 PyObject * obj1 = 0 ;
40733 char * kwnames[] = {
40734 (char *) "self",(char *) "bitmap", NULL
40735 };
40736
40737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40739 if (!SWIG_IsOK(res1)) {
40740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40741 }
40742 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40743 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40744 if (!SWIG_IsOK(res2)) {
40745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40746 }
40747 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40748 {
40749 PyThreadState* __tstate = wxPyBeginAllowThreads();
40750 (arg1)->SetBackingBitmap(arg2);
40751 wxPyEndAllowThreads(__tstate);
40752 if (PyErr_Occurred()) SWIG_fail;
40753 }
40754 resultobj = SWIG_Py_Void();
40755 return resultobj;
40756fail:
40757 return NULL;
40758}
40759
40760
40761SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40762 PyObject *resultobj = 0;
40763 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40764 wxPoint *arg2 = 0 ;
40765 wxWindow *arg3 = (wxWindow *) 0 ;
40766 bool arg4 = (bool) false ;
40767 wxRect *arg5 = (wxRect *) NULL ;
40768 bool result;
40769 void *argp1 = 0 ;
40770 int res1 = 0 ;
40771 wxPoint temp2 ;
40772 void *argp3 = 0 ;
40773 int res3 = 0 ;
40774 bool val4 ;
40775 int ecode4 = 0 ;
40776 void *argp5 = 0 ;
40777 int res5 = 0 ;
40778 PyObject * obj0 = 0 ;
40779 PyObject * obj1 = 0 ;
40780 PyObject * obj2 = 0 ;
40781 PyObject * obj3 = 0 ;
40782 PyObject * obj4 = 0 ;
40783 char * kwnames[] = {
40784 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40785 };
40786
40787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40789 if (!SWIG_IsOK(res1)) {
40790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40791 }
40792 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40793 {
40794 arg2 = &temp2;
40795 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40796 }
40797 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40798 if (!SWIG_IsOK(res3)) {
40799 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40800 }
40801 arg3 = reinterpret_cast< wxWindow * >(argp3);
40802 if (obj3) {
40803 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40804 if (!SWIG_IsOK(ecode4)) {
40805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40806 }
40807 arg4 = static_cast< bool >(val4);
40808 }
40809 if (obj4) {
40810 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40811 if (!SWIG_IsOK(res5)) {
40812 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d14a1e28 40813 }
0085ce49
RD
40814 arg5 = reinterpret_cast< wxRect * >(argp5);
40815 }
40816 {
40817 PyThreadState* __tstate = wxPyBeginAllowThreads();
40818 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40819 wxPyEndAllowThreads(__tstate);
40820 if (PyErr_Occurred()) SWIG_fail;
40821 }
40822 {
40823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40824 }
40825 return resultobj;
40826fail:
40827 return NULL;
40828}
40829
40830
40831SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40832 PyObject *resultobj = 0;
40833 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40834 wxPoint *arg2 = 0 ;
40835 wxWindow *arg3 = (wxWindow *) 0 ;
40836 wxWindow *arg4 = (wxWindow *) 0 ;
40837 bool result;
40838 void *argp1 = 0 ;
40839 int res1 = 0 ;
40840 wxPoint temp2 ;
40841 void *argp3 = 0 ;
40842 int res3 = 0 ;
40843 void *argp4 = 0 ;
40844 int res4 = 0 ;
40845 PyObject * obj0 = 0 ;
40846 PyObject * obj1 = 0 ;
40847 PyObject * obj2 = 0 ;
40848 PyObject * obj3 = 0 ;
40849 char * kwnames[] = {
40850 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40851 };
40852
40853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40855 if (!SWIG_IsOK(res1)) {
40856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40857 }
40858 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40859 {
40860 arg2 = &temp2;
40861 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40862 }
40863 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40864 if (!SWIG_IsOK(res3)) {
40865 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40866 }
40867 arg3 = reinterpret_cast< wxWindow * >(argp3);
40868 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40869 if (!SWIG_IsOK(res4)) {
40870 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40871 }
40872 arg4 = reinterpret_cast< wxWindow * >(argp4);
40873 {
40874 PyThreadState* __tstate = wxPyBeginAllowThreads();
40875 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40876 wxPyEndAllowThreads(__tstate);
40877 if (PyErr_Occurred()) SWIG_fail;
40878 }
40879 {
40880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40881 }
40882 return resultobj;
40883fail:
40884 return NULL;
d14a1e28
RD
40885}
40886
40887
0085ce49
RD
40888SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40889 PyObject *resultobj = 0;
40890 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40891 bool result;
40892 void *argp1 = 0 ;
40893 int res1 = 0 ;
40894 PyObject *swig_obj[1] ;
40895
40896 if (!args) SWIG_fail;
40897 swig_obj[0] = args;
40898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40899 if (!SWIG_IsOK(res1)) {
40900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40901 }
40902 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40903 {
40904 PyThreadState* __tstate = wxPyBeginAllowThreads();
40905 result = (bool)(arg1)->EndDrag();
40906 wxPyEndAllowThreads(__tstate);
40907 if (PyErr_Occurred()) SWIG_fail;
40908 }
40909 {
40910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40911 }
40912 return resultobj;
40913fail:
40914 return NULL;
40915}
40916
40917
40918SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40919 PyObject *resultobj = 0;
40920 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40921 wxPoint *arg2 = 0 ;
40922 bool result;
40923 void *argp1 = 0 ;
40924 int res1 = 0 ;
40925 wxPoint temp2 ;
40926 PyObject * obj0 = 0 ;
40927 PyObject * obj1 = 0 ;
40928 char * kwnames[] = {
40929 (char *) "self",(char *) "pt", NULL
40930 };
40931
40932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40934 if (!SWIG_IsOK(res1)) {
40935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40936 }
40937 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40938 {
40939 arg2 = &temp2;
40940 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40941 }
40942 {
40943 PyThreadState* __tstate = wxPyBeginAllowThreads();
40944 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40945 wxPyEndAllowThreads(__tstate);
40946 if (PyErr_Occurred()) SWIG_fail;
40947 }
40948 {
40949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40950 }
40951 return resultobj;
40952fail:
40953 return NULL;
d14a1e28
RD
40954}
40955
40956
0085ce49
RD
40957SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40958 PyObject *resultobj = 0;
40959 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40960 bool result;
40961 void *argp1 = 0 ;
40962 int res1 = 0 ;
40963 PyObject *swig_obj[1] ;
40964
40965 if (!args) SWIG_fail;
40966 swig_obj[0] = args;
40967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40968 if (!SWIG_IsOK(res1)) {
40969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40970 }
40971 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40972 {
40973 PyThreadState* __tstate = wxPyBeginAllowThreads();
40974 result = (bool)(arg1)->Show();
40975 wxPyEndAllowThreads(__tstate);
40976 if (PyErr_Occurred()) SWIG_fail;
40977 }
40978 {
40979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40980 }
40981 return resultobj;
40982fail:
40983 return NULL;
d14a1e28
RD
40984}
40985
40986
0085ce49
RD
40987SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40988 PyObject *resultobj = 0;
40989 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40990 bool result;
40991 void *argp1 = 0 ;
40992 int res1 = 0 ;
40993 PyObject *swig_obj[1] ;
40994
40995 if (!args) SWIG_fail;
40996 swig_obj[0] = args;
40997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40998 if (!SWIG_IsOK(res1)) {
40999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41000 }
41001 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41002 {
41003 PyThreadState* __tstate = wxPyBeginAllowThreads();
41004 result = (bool)(arg1)->Hide();
41005 wxPyEndAllowThreads(__tstate);
41006 if (PyErr_Occurred()) SWIG_fail;
41007 }
41008 {
41009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41010 }
41011 return resultobj;
41012fail:
41013 return NULL;
41014}
41015
41016
41017SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41018 PyObject *resultobj = 0;
41019 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41020 wxPoint *arg2 = 0 ;
41021 wxRect result;
41022 void *argp1 = 0 ;
41023 int res1 = 0 ;
41024 wxPoint temp2 ;
41025 PyObject * obj0 = 0 ;
41026 PyObject * obj1 = 0 ;
41027 char * kwnames[] = {
41028 (char *) "self",(char *) "pos", NULL
41029 };
41030
41031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41033 if (!SWIG_IsOK(res1)) {
41034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41035 }
41036 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41037 {
41038 arg2 = &temp2;
41039 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41040 }
41041 {
41042 PyThreadState* __tstate = wxPyBeginAllowThreads();
41043 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41044 wxPyEndAllowThreads(__tstate);
41045 if (PyErr_Occurred()) SWIG_fail;
41046 }
41047 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41048 return resultobj;
41049fail:
41050 return NULL;
41051}
41052
41053
41054SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41055 PyObject *resultobj = 0;
41056 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41057 wxDC *arg2 = 0 ;
41058 wxPoint *arg3 = 0 ;
41059 bool result;
41060 void *argp1 = 0 ;
41061 int res1 = 0 ;
41062 void *argp2 = 0 ;
41063 int res2 = 0 ;
41064 wxPoint temp3 ;
41065 PyObject * obj0 = 0 ;
41066 PyObject * obj1 = 0 ;
41067 PyObject * obj2 = 0 ;
41068 char * kwnames[] = {
41069 (char *) "self",(char *) "dc",(char *) "pos", NULL
41070 };
41071
41072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41074 if (!SWIG_IsOK(res1)) {
41075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41076 }
41077 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41078 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41079 if (!SWIG_IsOK(res2)) {
41080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41081 }
41082 if (!argp2) {
41083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41084 }
41085 arg2 = reinterpret_cast< wxDC * >(argp2);
41086 {
41087 arg3 = &temp3;
41088 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41089 }
41090 {
41091 PyThreadState* __tstate = wxPyBeginAllowThreads();
41092 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41093 wxPyEndAllowThreads(__tstate);
41094 if (PyErr_Occurred()) SWIG_fail;
41095 }
41096 {
41097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41098 }
41099 return resultobj;
41100fail:
41101 return NULL;
41102}
41103
41104
41105SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41106 PyObject *resultobj = 0;
41107 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41108 wxDC *arg2 = 0 ;
41109 wxMemoryDC *arg3 = 0 ;
41110 wxRect *arg4 = 0 ;
41111 wxRect *arg5 = 0 ;
41112 bool result;
41113 void *argp1 = 0 ;
41114 int res1 = 0 ;
41115 void *argp2 = 0 ;
41116 int res2 = 0 ;
41117 void *argp3 = 0 ;
41118 int res3 = 0 ;
41119 wxRect temp4 ;
41120 wxRect temp5 ;
41121 PyObject * obj0 = 0 ;
41122 PyObject * obj1 = 0 ;
41123 PyObject * obj2 = 0 ;
41124 PyObject * obj3 = 0 ;
41125 PyObject * obj4 = 0 ;
41126 char * kwnames[] = {
41127 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41128 };
41129
41130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41132 if (!SWIG_IsOK(res1)) {
41133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41134 }
41135 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41136 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41137 if (!SWIG_IsOK(res2)) {
41138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41139 }
41140 if (!argp2) {
41141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41142 }
41143 arg2 = reinterpret_cast< wxDC * >(argp2);
41144 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41145 if (!SWIG_IsOK(res3)) {
41146 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41147 }
41148 if (!argp3) {
41149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41150 }
41151 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41152 {
41153 arg4 = &temp4;
41154 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41155 }
41156 {
41157 arg5 = &temp5;
41158 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41159 }
41160 {
41161 PyThreadState* __tstate = wxPyBeginAllowThreads();
41162 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41163 wxPyEndAllowThreads(__tstate);
41164 if (PyErr_Occurred()) SWIG_fail;
41165 }
41166 {
41167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41168 }
41169 return resultobj;
41170fail:
41171 return NULL;
41172}
41173
41174
41175SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41176 PyObject *resultobj = 0;
41177 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41178 wxPoint *arg2 = 0 ;
41179 wxPoint *arg3 = 0 ;
41180 bool arg4 ;
41181 bool arg5 ;
41182 bool result;
41183 void *argp1 = 0 ;
41184 int res1 = 0 ;
41185 wxPoint temp2 ;
41186 wxPoint temp3 ;
41187 bool val4 ;
41188 int ecode4 = 0 ;
41189 bool val5 ;
41190 int ecode5 = 0 ;
41191 PyObject * obj0 = 0 ;
41192 PyObject * obj1 = 0 ;
41193 PyObject * obj2 = 0 ;
41194 PyObject * obj3 = 0 ;
41195 PyObject * obj4 = 0 ;
41196 char * kwnames[] = {
41197 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41198 };
41199
41200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41202 if (!SWIG_IsOK(res1)) {
41203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41204 }
41205 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41206 {
41207 arg2 = &temp2;
41208 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41209 }
41210 {
41211 arg3 = &temp3;
41212 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41213 }
41214 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41215 if (!SWIG_IsOK(ecode4)) {
41216 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41217 }
41218 arg4 = static_cast< bool >(val4);
41219 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41220 if (!SWIG_IsOK(ecode5)) {
41221 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41222 }
41223 arg5 = static_cast< bool >(val5);
41224 {
41225 PyThreadState* __tstate = wxPyBeginAllowThreads();
41226 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41227 wxPyEndAllowThreads(__tstate);
41228 if (PyErr_Occurred()) SWIG_fail;
41229 }
41230 {
41231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41232 }
41233 return resultobj;
41234fail:
41235 return NULL;
d14a1e28
RD
41236}
41237
41238
0085ce49
RD
41239SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41240 PyObject *obj;
41241 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41242 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41243 return SWIG_Py_Void();
d14a1e28
RD
41244}
41245
0085ce49
RD
41246SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41247 return SWIG_Python_InitShadowInstance(args);
41248}
d14a1e28 41249
0085ce49
RD
41250SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41251 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41252 return 1;
d14a1e28
RD
41253}
41254
41255
0085ce49
RD
41256SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41257 PyObject *pyobj = 0;
41258
41259 {
41260#if wxUSE_UNICODE
41261 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41262#else
41263 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41264#endif
41265 }
41266 return pyobj;
41267}
41268
41269
41270SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41271 PyObject *resultobj = 0;
41272 wxWindow *arg1 = (wxWindow *) 0 ;
41273 int arg2 = (int) -1 ;
41274 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41275 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41276 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41277 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41278 wxSize const &arg5_defvalue = wxDefaultSize ;
41279 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41280 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41281 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41282 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41283 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41284 wxString *arg8 = (wxString *) &arg8_defvalue ;
41285 wxDatePickerCtrl *result = 0 ;
41286 void *argp1 = 0 ;
41287 int res1 = 0 ;
41288 int val2 ;
41289 int ecode2 = 0 ;
41290 void *argp3 = 0 ;
41291 int res3 = 0 ;
41292 wxPoint temp4 ;
41293 wxSize temp5 ;
41294 long val6 ;
41295 int ecode6 = 0 ;
41296 void *argp7 = 0 ;
41297 int res7 = 0 ;
41298 bool temp8 = false ;
41299 PyObject * obj0 = 0 ;
41300 PyObject * obj1 = 0 ;
41301 PyObject * obj2 = 0 ;
41302 PyObject * obj3 = 0 ;
41303 PyObject * obj4 = 0 ;
41304 PyObject * obj5 = 0 ;
41305 PyObject * obj6 = 0 ;
41306 PyObject * obj7 = 0 ;
41307 char * kwnames[] = {
41308 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41309 };
41310
41311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41313 if (!SWIG_IsOK(res1)) {
41314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41315 }
41316 arg1 = reinterpret_cast< wxWindow * >(argp1);
41317 if (obj1) {
41318 ecode2 = SWIG_AsVal_int(obj1, &val2);
41319 if (!SWIG_IsOK(ecode2)) {
41320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41321 }
41322 arg2 = static_cast< int >(val2);
41323 }
41324 if (obj2) {
41325 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41326 if (!SWIG_IsOK(res3)) {
41327 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 41328 }
0085ce49
RD
41329 if (!argp3) {
41330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 41331 }
0085ce49
RD
41332 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41333 }
41334 if (obj3) {
d14a1e28 41335 {
0085ce49
RD
41336 arg4 = &temp4;
41337 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 41338 }
0085ce49
RD
41339 }
41340 if (obj4) {
d14a1e28 41341 {
0085ce49
RD
41342 arg5 = &temp5;
41343 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 41344 }
0085ce49
RD
41345 }
41346 if (obj5) {
41347 ecode6 = SWIG_AsVal_long(obj5, &val6);
41348 if (!SWIG_IsOK(ecode6)) {
41349 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41350 }
41351 arg6 = static_cast< long >(val6);
41352 }
41353 if (obj6) {
41354 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41355 if (!SWIG_IsOK(res7)) {
41356 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41357 }
41358 if (!argp7) {
41359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 41360 }
0085ce49
RD
41361 arg7 = reinterpret_cast< wxValidator * >(argp7);
41362 }
41363 if (obj7) {
d14a1e28 41364 {
0085ce49
RD
41365 arg8 = wxString_in_helper(obj7);
41366 if (arg8 == NULL) SWIG_fail;
41367 temp8 = true;
d14a1e28 41368 }
0085ce49
RD
41369 }
41370 {
41371 if (!wxPyCheckForApp()) SWIG_fail;
41372 PyThreadState* __tstate = wxPyBeginAllowThreads();
41373 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41374 wxPyEndAllowThreads(__tstate);
41375 if (PyErr_Occurred()) SWIG_fail;
41376 }
41377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41378 {
41379 if (temp8)
41380 delete arg8;
41381 }
41382 return resultobj;
41383fail:
41384 {
41385 if (temp8)
41386 delete arg8;
41387 }
41388 return NULL;
d14a1e28
RD
41389}
41390
41391
0085ce49
RD
41392SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41393 PyObject *resultobj = 0;
41394 wxDatePickerCtrl *result = 0 ;
41395
41396 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41397 {
41398 if (!wxPyCheckForApp()) SWIG_fail;
41399 PyThreadState* __tstate = wxPyBeginAllowThreads();
41400 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41401 wxPyEndAllowThreads(__tstate);
41402 if (PyErr_Occurred()) SWIG_fail;
41403 }
41404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41405 return resultobj;
41406fail:
41407 return NULL;
41408}
41409
41410
41411SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41412 PyObject *resultobj = 0;
41413 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41414 wxWindow *arg2 = (wxWindow *) 0 ;
41415 int arg3 = (int) -1 ;
41416 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41417 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41418 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41419 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41420 wxSize const &arg6_defvalue = wxDefaultSize ;
41421 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41422 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41423 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41424 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41425 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41426 wxString *arg9 = (wxString *) &arg9_defvalue ;
41427 bool result;
41428 void *argp1 = 0 ;
41429 int res1 = 0 ;
41430 void *argp2 = 0 ;
41431 int res2 = 0 ;
41432 int val3 ;
41433 int ecode3 = 0 ;
41434 void *argp4 = 0 ;
41435 int res4 = 0 ;
41436 wxPoint temp5 ;
41437 wxSize temp6 ;
41438 long val7 ;
41439 int ecode7 = 0 ;
41440 void *argp8 = 0 ;
41441 int res8 = 0 ;
41442 bool temp9 = false ;
41443 PyObject * obj0 = 0 ;
41444 PyObject * obj1 = 0 ;
41445 PyObject * obj2 = 0 ;
41446 PyObject * obj3 = 0 ;
41447 PyObject * obj4 = 0 ;
41448 PyObject * obj5 = 0 ;
41449 PyObject * obj6 = 0 ;
41450 PyObject * obj7 = 0 ;
41451 PyObject * obj8 = 0 ;
41452 char * kwnames[] = {
41453 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41454 };
41455
41456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41458 if (!SWIG_IsOK(res1)) {
41459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41460 }
41461 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41462 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41463 if (!SWIG_IsOK(res2)) {
41464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41465 }
41466 arg2 = reinterpret_cast< wxWindow * >(argp2);
41467 if (obj2) {
41468 ecode3 = SWIG_AsVal_int(obj2, &val3);
41469 if (!SWIG_IsOK(ecode3)) {
41470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41471 }
41472 arg3 = static_cast< int >(val3);
41473 }
41474 if (obj3) {
41475 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41476 if (!SWIG_IsOK(res4)) {
41477 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 41478 }
0085ce49
RD
41479 if (!argp4) {
41480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 41481 }
0085ce49
RD
41482 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41483 }
41484 if (obj4) {
d14a1e28 41485 {
0085ce49
RD
41486 arg5 = &temp5;
41487 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 41488 }
0085ce49
RD
41489 }
41490 if (obj5) {
d14a1e28 41491 {
0085ce49
RD
41492 arg6 = &temp6;
41493 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41494 }
41495 }
41496 if (obj6) {
41497 ecode7 = SWIG_AsVal_long(obj6, &val7);
41498 if (!SWIG_IsOK(ecode7)) {
41499 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41500 }
41501 arg7 = static_cast< long >(val7);
41502 }
41503 if (obj7) {
41504 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41505 if (!SWIG_IsOK(res8)) {
41506 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41507 }
41508 if (!argp8) {
41509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 41510 }
0085ce49
RD
41511 arg8 = reinterpret_cast< wxValidator * >(argp8);
41512 }
41513 if (obj8) {
d14a1e28 41514 {
0085ce49
RD
41515 arg9 = wxString_in_helper(obj8);
41516 if (arg9 == NULL) SWIG_fail;
41517 temp9 = true;
d14a1e28 41518 }
0085ce49
RD
41519 }
41520 {
41521 PyThreadState* __tstate = wxPyBeginAllowThreads();
41522 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41523 wxPyEndAllowThreads(__tstate);
41524 if (PyErr_Occurred()) SWIG_fail;
41525 }
41526 {
41527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41528 }
41529 {
41530 if (temp9)
41531 delete arg9;
41532 }
41533 return resultobj;
41534fail:
41535 {
41536 if (temp9)
41537 delete arg9;
41538 }
41539 return NULL;
41540}
41541
41542
41543SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41544 PyObject *resultobj = 0;
41545 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41546 wxDateTime *arg2 = 0 ;
41547 void *argp1 = 0 ;
41548 int res1 = 0 ;
41549 void *argp2 = 0 ;
41550 int res2 = 0 ;
41551 PyObject * obj0 = 0 ;
41552 PyObject * obj1 = 0 ;
41553 char * kwnames[] = {
41554 (char *) "self",(char *) "dt", NULL
41555 };
41556
41557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41559 if (!SWIG_IsOK(res1)) {
41560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41561 }
41562 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41564 if (!SWIG_IsOK(res2)) {
41565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41566 }
41567 if (!argp2) {
41568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41569 }
41570 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41571 {
41572 PyThreadState* __tstate = wxPyBeginAllowThreads();
41573 (arg1)->SetValue((wxDateTime const &)*arg2);
41574 wxPyEndAllowThreads(__tstate);
41575 if (PyErr_Occurred()) SWIG_fail;
41576 }
41577 resultobj = SWIG_Py_Void();
41578 return resultobj;
41579fail:
41580 return NULL;
d14a1e28
RD
41581}
41582
41583
0085ce49
RD
41584SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41585 PyObject *resultobj = 0;
41586 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41587 wxDateTime result;
41588 void *argp1 = 0 ;
41589 int res1 = 0 ;
41590 PyObject *swig_obj[1] ;
41591
41592 if (!args) SWIG_fail;
41593 swig_obj[0] = args;
41594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41595 if (!SWIG_IsOK(res1)) {
41596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41597 }
41598 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41599 {
41600 PyThreadState* __tstate = wxPyBeginAllowThreads();
41601 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41602 wxPyEndAllowThreads(__tstate);
41603 if (PyErr_Occurred()) SWIG_fail;
41604 }
41605 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41606 return resultobj;
41607fail:
41608 return NULL;
41609}
41610
41611
41612SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41613 PyObject *resultobj = 0;
41614 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41615 wxDateTime *arg2 = 0 ;
41616 wxDateTime *arg3 = 0 ;
41617 void *argp1 = 0 ;
41618 int res1 = 0 ;
41619 void *argp2 = 0 ;
41620 int res2 = 0 ;
41621 void *argp3 = 0 ;
41622 int res3 = 0 ;
41623 PyObject * obj0 = 0 ;
41624 PyObject * obj1 = 0 ;
41625 PyObject * obj2 = 0 ;
41626 char * kwnames[] = {
41627 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41628 };
41629
41630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41632 if (!SWIG_IsOK(res1)) {
41633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41634 }
41635 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41636 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41637 if (!SWIG_IsOK(res2)) {
41638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41639 }
41640 if (!argp2) {
41641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41642 }
41643 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41644 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41645 if (!SWIG_IsOK(res3)) {
41646 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41647 }
41648 if (!argp3) {
41649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41650 }
41651 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41652 {
41653 PyThreadState* __tstate = wxPyBeginAllowThreads();
41654 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41655 wxPyEndAllowThreads(__tstate);
41656 if (PyErr_Occurred()) SWIG_fail;
41657 }
41658 resultobj = SWIG_Py_Void();
41659 return resultobj;
41660fail:
41661 return NULL;
d14a1e28
RD
41662}
41663
41664
0085ce49
RD
41665SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41666 PyObject *resultobj = 0;
41667 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41668 wxDateTime result;
41669 void *argp1 = 0 ;
41670 int res1 = 0 ;
41671 PyObject *swig_obj[1] ;
41672
41673 if (!args) SWIG_fail;
41674 swig_obj[0] = args;
41675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41676 if (!SWIG_IsOK(res1)) {
41677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41678 }
41679 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41680 {
41681 PyThreadState* __tstate = wxPyBeginAllowThreads();
41682 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41683 wxPyEndAllowThreads(__tstate);
41684 if (PyErr_Occurred()) SWIG_fail;
41685 }
41686 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41687 return resultobj;
41688fail:
41689 return NULL;
d14a1e28
RD
41690}
41691
41692
0085ce49
RD
41693SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41694 PyObject *resultobj = 0;
41695 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41696 wxDateTime result;
41697 void *argp1 = 0 ;
41698 int res1 = 0 ;
41699 PyObject *swig_obj[1] ;
41700
41701 if (!args) SWIG_fail;
41702 swig_obj[0] = args;
41703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41704 if (!SWIG_IsOK(res1)) {
41705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41706 }
41707 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41708 {
41709 PyThreadState* __tstate = wxPyBeginAllowThreads();
41710 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41711 wxPyEndAllowThreads(__tstate);
41712 if (PyErr_Occurred()) SWIG_fail;
41713 }
41714 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41715 return resultobj;
41716fail:
41717 return NULL;
d14a1e28
RD
41718}
41719
41720
0085ce49
RD
41721SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41722 PyObject *obj;
41723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41724 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41725 return SWIG_Py_Void();
d14a1e28
RD
41726}
41727
0085ce49
RD
41728SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41729 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
41730}
41731
704eda0c
RD
41732SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41733 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41734 return 1;
41735}
41736
41737
41738SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41739 PyObject *pyobj = 0;
41740
41741 {
41742#if wxUSE_UNICODE
41743 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41744#else
41745 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41746#endif
41747 }
41748 return pyobj;
41749}
41750
41751
41752SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41753 PyObject *resultobj = 0;
41754 wxWindow *arg1 = (wxWindow *) 0 ;
41755 int arg2 ;
41756 wxString *arg3 = 0 ;
41757 wxString *arg4 = 0 ;
41758 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41759 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41760 wxSize const &arg6_defvalue = wxDefaultSize ;
41761 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41762 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41763 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41764 wxString *arg8 = (wxString *) &arg8_defvalue ;
41765 wxHyperlinkCtrl *result = 0 ;
41766 void *argp1 = 0 ;
41767 int res1 = 0 ;
41768 int val2 ;
41769 int ecode2 = 0 ;
41770 bool temp3 = false ;
41771 bool temp4 = false ;
41772 wxPoint temp5 ;
41773 wxSize temp6 ;
41774 long val7 ;
41775 int ecode7 = 0 ;
41776 bool temp8 = false ;
41777 PyObject * obj0 = 0 ;
41778 PyObject * obj1 = 0 ;
41779 PyObject * obj2 = 0 ;
41780 PyObject * obj3 = 0 ;
41781 PyObject * obj4 = 0 ;
41782 PyObject * obj5 = 0 ;
41783 PyObject * obj6 = 0 ;
41784 PyObject * obj7 = 0 ;
41785 char * kwnames[] = {
41786 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41787 };
41788
41789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41791 if (!SWIG_IsOK(res1)) {
41792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41793 }
41794 arg1 = reinterpret_cast< wxWindow * >(argp1);
41795 ecode2 = SWIG_AsVal_int(obj1, &val2);
41796 if (!SWIG_IsOK(ecode2)) {
41797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41798 }
41799 arg2 = static_cast< int >(val2);
41800 {
41801 arg3 = wxString_in_helper(obj2);
41802 if (arg3 == NULL) SWIG_fail;
41803 temp3 = true;
41804 }
41805 {
41806 arg4 = wxString_in_helper(obj3);
41807 if (arg4 == NULL) SWIG_fail;
41808 temp4 = true;
41809 }
41810 if (obj4) {
41811 {
41812 arg5 = &temp5;
41813 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41814 }
41815 }
41816 if (obj5) {
41817 {
41818 arg6 = &temp6;
41819 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41820 }
41821 }
41822 if (obj6) {
41823 ecode7 = SWIG_AsVal_long(obj6, &val7);
41824 if (!SWIG_IsOK(ecode7)) {
41825 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41826 }
41827 arg7 = static_cast< long >(val7);
41828 }
41829 if (obj7) {
41830 {
41831 arg8 = wxString_in_helper(obj7);
41832 if (arg8 == NULL) SWIG_fail;
41833 temp8 = true;
41834 }
41835 }
41836 {
41837 if (!wxPyCheckForApp()) SWIG_fail;
41838 PyThreadState* __tstate = wxPyBeginAllowThreads();
41839 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41840 wxPyEndAllowThreads(__tstate);
41841 if (PyErr_Occurred()) SWIG_fail;
41842 }
41843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41844 {
41845 if (temp3)
41846 delete arg3;
41847 }
41848 {
41849 if (temp4)
41850 delete arg4;
41851 }
41852 {
41853 if (temp8)
41854 delete arg8;
41855 }
41856 return resultobj;
41857fail:
41858 {
41859 if (temp3)
41860 delete arg3;
41861 }
41862 {
41863 if (temp4)
41864 delete arg4;
41865 }
41866 {
41867 if (temp8)
41868 delete arg8;
41869 }
41870 return NULL;
41871}
41872
41873
41874SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41875 PyObject *resultobj = 0;
41876 wxHyperlinkCtrl *result = 0 ;
41877
41878 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41879 {
41880 if (!wxPyCheckForApp()) SWIG_fail;
41881 PyThreadState* __tstate = wxPyBeginAllowThreads();
41882 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41883 wxPyEndAllowThreads(__tstate);
41884 if (PyErr_Occurred()) SWIG_fail;
41885 }
41886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41887 return resultobj;
41888fail:
41889 return NULL;
41890}
41891
41892
41893SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41894 PyObject *resultobj = 0;
41895 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41896 wxWindow *arg2 = (wxWindow *) 0 ;
41897 int arg3 ;
41898 wxString *arg4 = 0 ;
41899 wxString *arg5 = 0 ;
41900 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41901 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41902 wxSize const &arg7_defvalue = wxDefaultSize ;
41903 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41904 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41905 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41906 wxString *arg9 = (wxString *) &arg9_defvalue ;
41907 bool result;
41908 void *argp1 = 0 ;
41909 int res1 = 0 ;
41910 void *argp2 = 0 ;
41911 int res2 = 0 ;
41912 int val3 ;
41913 int ecode3 = 0 ;
41914 bool temp4 = false ;
41915 bool temp5 = false ;
41916 wxPoint temp6 ;
41917 wxSize temp7 ;
41918 long val8 ;
41919 int ecode8 = 0 ;
41920 bool temp9 = false ;
41921 PyObject * obj0 = 0 ;
41922 PyObject * obj1 = 0 ;
41923 PyObject * obj2 = 0 ;
41924 PyObject * obj3 = 0 ;
41925 PyObject * obj4 = 0 ;
41926 PyObject * obj5 = 0 ;
41927 PyObject * obj6 = 0 ;
41928 PyObject * obj7 = 0 ;
41929 PyObject * obj8 = 0 ;
41930 char * kwnames[] = {
41931 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41932 };
41933
41934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41936 if (!SWIG_IsOK(res1)) {
41937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41938 }
41939 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41940 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41941 if (!SWIG_IsOK(res2)) {
41942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41943 }
41944 arg2 = reinterpret_cast< wxWindow * >(argp2);
41945 ecode3 = SWIG_AsVal_int(obj2, &val3);
41946 if (!SWIG_IsOK(ecode3)) {
41947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41948 }
41949 arg3 = static_cast< int >(val3);
41950 {
41951 arg4 = wxString_in_helper(obj3);
41952 if (arg4 == NULL) SWIG_fail;
41953 temp4 = true;
41954 }
41955 {
41956 arg5 = wxString_in_helper(obj4);
41957 if (arg5 == NULL) SWIG_fail;
41958 temp5 = true;
41959 }
41960 if (obj5) {
41961 {
41962 arg6 = &temp6;
41963 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41964 }
41965 }
41966 if (obj6) {
41967 {
41968 arg7 = &temp7;
41969 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41970 }
41971 }
41972 if (obj7) {
41973 ecode8 = SWIG_AsVal_long(obj7, &val8);
41974 if (!SWIG_IsOK(ecode8)) {
41975 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41976 }
41977 arg8 = static_cast< long >(val8);
41978 }
41979 if (obj8) {
41980 {
41981 arg9 = wxString_in_helper(obj8);
41982 if (arg9 == NULL) SWIG_fail;
41983 temp9 = true;
41984 }
41985 }
41986 {
41987 PyThreadState* __tstate = wxPyBeginAllowThreads();
41988 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41989 wxPyEndAllowThreads(__tstate);
41990 if (PyErr_Occurred()) SWIG_fail;
41991 }
41992 {
41993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41994 }
41995 {
41996 if (temp4)
41997 delete arg4;
41998 }
41999 {
42000 if (temp5)
42001 delete arg5;
42002 }
42003 {
42004 if (temp9)
42005 delete arg9;
42006 }
42007 return resultobj;
42008fail:
42009 {
42010 if (temp4)
42011 delete arg4;
42012 }
42013 {
42014 if (temp5)
42015 delete arg5;
42016 }
42017 {
42018 if (temp9)
42019 delete arg9;
42020 }
42021 return NULL;
42022}
42023
42024
42025SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42026 PyObject *resultobj = 0;
42027 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42028 wxColour result;
42029 void *argp1 = 0 ;
42030 int res1 = 0 ;
42031 PyObject *swig_obj[1] ;
42032
42033 if (!args) SWIG_fail;
42034 swig_obj[0] = args;
42035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42036 if (!SWIG_IsOK(res1)) {
42037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42038 }
42039 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42040 {
42041 PyThreadState* __tstate = wxPyBeginAllowThreads();
42042 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42043 wxPyEndAllowThreads(__tstate);
42044 if (PyErr_Occurred()) SWIG_fail;
42045 }
42046 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42047 return resultobj;
42048fail:
42049 return NULL;
42050}
42051
42052
42053SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42054 PyObject *resultobj = 0;
42055 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42056 wxColour *arg2 = 0 ;
42057 void *argp1 = 0 ;
42058 int res1 = 0 ;
42059 wxColour temp2 ;
42060 PyObject * obj0 = 0 ;
42061 PyObject * obj1 = 0 ;
42062 char * kwnames[] = {
42063 (char *) "self",(char *) "colour", NULL
42064 };
42065
42066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42068 if (!SWIG_IsOK(res1)) {
42069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42070 }
42071 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42072 {
42073 arg2 = &temp2;
42074 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42075 }
42076 {
42077 PyThreadState* __tstate = wxPyBeginAllowThreads();
42078 (arg1)->SetHoverColour((wxColour const &)*arg2);
42079 wxPyEndAllowThreads(__tstate);
42080 if (PyErr_Occurred()) SWIG_fail;
42081 }
42082 resultobj = SWIG_Py_Void();
42083 return resultobj;
42084fail:
42085 return NULL;
42086}
42087
42088
42089SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42090 PyObject *resultobj = 0;
42091 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42092 wxColour result;
42093 void *argp1 = 0 ;
42094 int res1 = 0 ;
42095 PyObject *swig_obj[1] ;
42096
42097 if (!args) SWIG_fail;
42098 swig_obj[0] = args;
42099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42100 if (!SWIG_IsOK(res1)) {
42101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42102 }
42103 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42104 {
42105 PyThreadState* __tstate = wxPyBeginAllowThreads();
42106 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42107 wxPyEndAllowThreads(__tstate);
42108 if (PyErr_Occurred()) SWIG_fail;
42109 }
42110 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42111 return resultobj;
42112fail:
42113 return NULL;
42114}
42115
42116
42117SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42118 PyObject *resultobj = 0;
42119 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42120 wxColour *arg2 = 0 ;
42121 void *argp1 = 0 ;
42122 int res1 = 0 ;
42123 wxColour temp2 ;
42124 PyObject * obj0 = 0 ;
42125 PyObject * obj1 = 0 ;
42126 char * kwnames[] = {
42127 (char *) "self",(char *) "colour", NULL
42128 };
42129
42130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42132 if (!SWIG_IsOK(res1)) {
42133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42134 }
42135 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42136 {
42137 arg2 = &temp2;
42138 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42139 }
42140 {
42141 PyThreadState* __tstate = wxPyBeginAllowThreads();
42142 (arg1)->SetNormalColour((wxColour const &)*arg2);
42143 wxPyEndAllowThreads(__tstate);
42144 if (PyErr_Occurred()) SWIG_fail;
42145 }
42146 resultobj = SWIG_Py_Void();
42147 return resultobj;
42148fail:
42149 return NULL;
42150}
42151
42152
42153SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42154 PyObject *resultobj = 0;
42155 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42156 wxColour result;
42157 void *argp1 = 0 ;
42158 int res1 = 0 ;
42159 PyObject *swig_obj[1] ;
42160
42161 if (!args) SWIG_fail;
42162 swig_obj[0] = args;
42163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42164 if (!SWIG_IsOK(res1)) {
42165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42166 }
42167 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42168 {
42169 PyThreadState* __tstate = wxPyBeginAllowThreads();
42170 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42171 wxPyEndAllowThreads(__tstate);
42172 if (PyErr_Occurred()) SWIG_fail;
42173 }
42174 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42175 return resultobj;
42176fail:
42177 return NULL;
42178}
42179
42180
42181SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42182 PyObject *resultobj = 0;
42183 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42184 wxColour *arg2 = 0 ;
42185 void *argp1 = 0 ;
42186 int res1 = 0 ;
42187 wxColour temp2 ;
42188 PyObject * obj0 = 0 ;
42189 PyObject * obj1 = 0 ;
42190 char * kwnames[] = {
42191 (char *) "self",(char *) "colour", NULL
42192 };
42193
42194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42196 if (!SWIG_IsOK(res1)) {
42197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42198 }
42199 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42200 {
42201 arg2 = &temp2;
42202 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42203 }
42204 {
42205 PyThreadState* __tstate = wxPyBeginAllowThreads();
42206 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42207 wxPyEndAllowThreads(__tstate);
42208 if (PyErr_Occurred()) SWIG_fail;
42209 }
42210 resultobj = SWIG_Py_Void();
42211 return resultobj;
42212fail:
42213 return NULL;
42214}
42215
42216
42217SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42218 PyObject *resultobj = 0;
42219 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42220 wxString result;
42221 void *argp1 = 0 ;
42222 int res1 = 0 ;
42223 PyObject *swig_obj[1] ;
42224
42225 if (!args) SWIG_fail;
42226 swig_obj[0] = args;
42227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42228 if (!SWIG_IsOK(res1)) {
42229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42230 }
42231 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42232 {
42233 PyThreadState* __tstate = wxPyBeginAllowThreads();
42234 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42235 wxPyEndAllowThreads(__tstate);
42236 if (PyErr_Occurred()) SWIG_fail;
42237 }
42238 {
42239#if wxUSE_UNICODE
42240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42241#else
42242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42243#endif
42244 }
42245 return resultobj;
42246fail:
42247 return NULL;
42248}
42249
42250
42251SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42252 PyObject *resultobj = 0;
42253 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42254 wxString *arg2 = 0 ;
42255 void *argp1 = 0 ;
42256 int res1 = 0 ;
42257 bool temp2 = false ;
42258 PyObject * obj0 = 0 ;
42259 PyObject * obj1 = 0 ;
42260 char * kwnames[] = {
42261 (char *) "self",(char *) "url", NULL
42262 };
42263
42264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42266 if (!SWIG_IsOK(res1)) {
42267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42268 }
42269 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42270 {
42271 arg2 = wxString_in_helper(obj1);
42272 if (arg2 == NULL) SWIG_fail;
42273 temp2 = true;
42274 }
42275 {
42276 PyThreadState* __tstate = wxPyBeginAllowThreads();
42277 (arg1)->SetURL((wxString const &)*arg2);
42278 wxPyEndAllowThreads(__tstate);
42279 if (PyErr_Occurred()) SWIG_fail;
42280 }
42281 resultobj = SWIG_Py_Void();
42282 {
42283 if (temp2)
42284 delete arg2;
42285 }
42286 return resultobj;
42287fail:
42288 {
42289 if (temp2)
42290 delete arg2;
42291 }
42292 return NULL;
42293}
42294
42295
42296SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42297 PyObject *resultobj = 0;
42298 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42299 bool arg2 = (bool) true ;
42300 void *argp1 = 0 ;
42301 int res1 = 0 ;
42302 bool val2 ;
42303 int ecode2 = 0 ;
42304 PyObject * obj0 = 0 ;
42305 PyObject * obj1 = 0 ;
42306 char * kwnames[] = {
42307 (char *) "self",(char *) "visited", NULL
42308 };
42309
42310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42312 if (!SWIG_IsOK(res1)) {
42313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42314 }
42315 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42316 if (obj1) {
42317 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42318 if (!SWIG_IsOK(ecode2)) {
42319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42320 }
42321 arg2 = static_cast< bool >(val2);
42322 }
42323 {
42324 PyThreadState* __tstate = wxPyBeginAllowThreads();
42325 (arg1)->SetVisited(arg2);
42326 wxPyEndAllowThreads(__tstate);
42327 if (PyErr_Occurred()) SWIG_fail;
42328 }
42329 resultobj = SWIG_Py_Void();
42330 return resultobj;
42331fail:
42332 return NULL;
42333}
42334
42335
42336SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42337 PyObject *resultobj = 0;
42338 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42339 bool result;
42340 void *argp1 = 0 ;
42341 int res1 = 0 ;
42342 PyObject *swig_obj[1] ;
42343
42344 if (!args) SWIG_fail;
42345 swig_obj[0] = args;
42346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42347 if (!SWIG_IsOK(res1)) {
42348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42349 }
42350 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42351 {
42352 PyThreadState* __tstate = wxPyBeginAllowThreads();
42353 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42354 wxPyEndAllowThreads(__tstate);
42355 if (PyErr_Occurred()) SWIG_fail;
42356 }
42357 {
42358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42359 }
42360 return resultobj;
42361fail:
42362 return NULL;
42363}
42364
42365
42366SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42367 PyObject *obj;
42368 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42369 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42370 return SWIG_Py_Void();
42371}
42372
42373SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42374 return SWIG_Python_InitShadowInstance(args);
42375}
42376
42377SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42378 PyObject *resultobj = 0;
42379 wxObject *arg1 = (wxObject *) 0 ;
42380 int arg2 ;
42381 wxString *arg3 = 0 ;
42382 wxHyperlinkEvent *result = 0 ;
42383 void *argp1 = 0 ;
42384 int res1 = 0 ;
42385 int val2 ;
42386 int ecode2 = 0 ;
42387 bool temp3 = false ;
42388 PyObject * obj0 = 0 ;
42389 PyObject * obj1 = 0 ;
42390 PyObject * obj2 = 0 ;
42391 char * kwnames[] = {
42392 (char *) "generator",(char *) "id",(char *) "url", NULL
42393 };
42394
42395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42397 if (!SWIG_IsOK(res1)) {
42398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42399 }
42400 arg1 = reinterpret_cast< wxObject * >(argp1);
42401 ecode2 = SWIG_AsVal_int(obj1, &val2);
42402 if (!SWIG_IsOK(ecode2)) {
42403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42404 }
42405 arg2 = static_cast< int >(val2);
42406 {
42407 arg3 = wxString_in_helper(obj2);
42408 if (arg3 == NULL) SWIG_fail;
42409 temp3 = true;
42410 }
42411 {
42412 PyThreadState* __tstate = wxPyBeginAllowThreads();
42413 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42414 wxPyEndAllowThreads(__tstate);
42415 if (PyErr_Occurred()) SWIG_fail;
42416 }
42417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42418 {
42419 if (temp3)
42420 delete arg3;
42421 }
42422 return resultobj;
42423fail:
42424 {
42425 if (temp3)
42426 delete arg3;
42427 }
42428 return NULL;
42429}
42430
42431
42432SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42433 PyObject *resultobj = 0;
42434 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42435 wxString result;
42436 void *argp1 = 0 ;
42437 int res1 = 0 ;
42438 PyObject *swig_obj[1] ;
42439
42440 if (!args) SWIG_fail;
42441 swig_obj[0] = args;
42442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42443 if (!SWIG_IsOK(res1)) {
42444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42445 }
42446 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42447 {
42448 PyThreadState* __tstate = wxPyBeginAllowThreads();
42449 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42450 wxPyEndAllowThreads(__tstate);
42451 if (PyErr_Occurred()) SWIG_fail;
42452 }
42453 {
42454#if wxUSE_UNICODE
42455 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42456#else
42457 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42458#endif
42459 }
42460 return resultobj;
42461fail:
42462 return NULL;
42463}
42464
42465
42466SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42467 PyObject *resultobj = 0;
42468 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42469 wxString *arg2 = 0 ;
42470 void *argp1 = 0 ;
42471 int res1 = 0 ;
42472 bool temp2 = false ;
42473 PyObject * obj0 = 0 ;
42474 PyObject * obj1 = 0 ;
42475 char * kwnames[] = {
42476 (char *) "self",(char *) "url", NULL
42477 };
42478
42479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42481 if (!SWIG_IsOK(res1)) {
42482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42483 }
42484 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42485 {
42486 arg2 = wxString_in_helper(obj1);
42487 if (arg2 == NULL) SWIG_fail;
42488 temp2 = true;
42489 }
42490 {
42491 PyThreadState* __tstate = wxPyBeginAllowThreads();
42492 (arg1)->SetURL((wxString const &)*arg2);
42493 wxPyEndAllowThreads(__tstate);
42494 if (PyErr_Occurred()) SWIG_fail;
42495 }
42496 resultobj = SWIG_Py_Void();
42497 {
42498 if (temp2)
42499 delete arg2;
42500 }
42501 return resultobj;
42502fail:
42503 {
42504 if (temp2)
42505 delete arg2;
42506 }
42507 return NULL;
42508}
42509
42510
42511SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42512 PyObject *obj;
42513 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42514 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42515 return SWIG_Py_Void();
42516}
42517
42518SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42519 return SWIG_Python_InitShadowInstance(args);
42520}
42521
b850e7f3
RD
42522SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42523 PyObject *resultobj = 0;
42524 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42525 wxWindow *arg2 = (wxWindow *) 0 ;
42526 int arg3 ;
42527 wxString const &arg4_defvalue = wxEmptyString ;
42528 wxString *arg4 = (wxString *) &arg4_defvalue ;
42529 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42530 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42531 wxSize const &arg6_defvalue = wxDefaultSize ;
42532 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42533 long arg7 = (long) 0 ;
42534 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42535 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42536 wxString const &arg9_defvalue = wxButtonNameStr ;
42537 wxString *arg9 = (wxString *) &arg9_defvalue ;
42538 bool result;
42539 void *argp1 = 0 ;
42540 int res1 = 0 ;
42541 void *argp2 = 0 ;
42542 int res2 = 0 ;
42543 int val3 ;
42544 int ecode3 = 0 ;
42545 bool temp4 = false ;
42546 wxPoint temp5 ;
42547 wxSize temp6 ;
42548 long val7 ;
42549 int ecode7 = 0 ;
42550 void *argp8 = 0 ;
42551 int res8 = 0 ;
42552 bool temp9 = false ;
42553 PyObject * obj0 = 0 ;
42554 PyObject * obj1 = 0 ;
42555 PyObject * obj2 = 0 ;
42556 PyObject * obj3 = 0 ;
42557 PyObject * obj4 = 0 ;
42558 PyObject * obj5 = 0 ;
42559 PyObject * obj6 = 0 ;
42560 PyObject * obj7 = 0 ;
42561 PyObject * obj8 = 0 ;
42562 char * kwnames[] = {
42563 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42564 };
42565
42566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42568 if (!SWIG_IsOK(res1)) {
42569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42570 }
42571 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42572 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42573 if (!SWIG_IsOK(res2)) {
42574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42575 }
42576 arg2 = reinterpret_cast< wxWindow * >(argp2);
42577 ecode3 = SWIG_AsVal_int(obj2, &val3);
42578 if (!SWIG_IsOK(ecode3)) {
42579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42580 }
42581 arg3 = static_cast< int >(val3);
42582 if (obj3) {
42583 {
42584 arg4 = wxString_in_helper(obj3);
42585 if (arg4 == NULL) SWIG_fail;
42586 temp4 = true;
42587 }
42588 }
42589 if (obj4) {
42590 {
42591 arg5 = &temp5;
42592 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42593 }
42594 }
42595 if (obj5) {
42596 {
42597 arg6 = &temp6;
42598 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42599 }
42600 }
42601 if (obj6) {
42602 ecode7 = SWIG_AsVal_long(obj6, &val7);
42603 if (!SWIG_IsOK(ecode7)) {
42604 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42605 }
42606 arg7 = static_cast< long >(val7);
42607 }
42608 if (obj7) {
42609 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42610 if (!SWIG_IsOK(res8)) {
42611 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42612 }
42613 if (!argp8) {
42614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42615 }
42616 arg8 = reinterpret_cast< wxValidator * >(argp8);
42617 }
42618 if (obj8) {
42619 {
42620 arg9 = wxString_in_helper(obj8);
42621 if (arg9 == NULL) SWIG_fail;
42622 temp9 = true;
42623 }
42624 }
42625 {
42626 PyThreadState* __tstate = wxPyBeginAllowThreads();
42627 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42628 wxPyEndAllowThreads(__tstate);
42629 if (PyErr_Occurred()) SWIG_fail;
42630 }
42631 {
42632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42633 }
42634 {
42635 if (temp4)
42636 delete arg4;
42637 }
42638 {
42639 if (temp9)
42640 delete arg9;
42641 }
42642 return resultobj;
42643fail:
42644 {
42645 if (temp4)
42646 delete arg4;
42647 }
42648 {
42649 if (temp9)
42650 delete arg9;
42651 }
42652 return NULL;
42653}
42654
42655
42656SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42657 PyObject *resultobj = 0;
42658 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42659 int arg2 ;
42660 void *argp1 = 0 ;
42661 int res1 = 0 ;
42662 int val2 ;
42663 int ecode2 = 0 ;
42664 PyObject * obj0 = 0 ;
42665 PyObject * obj1 = 0 ;
42666 char * kwnames[] = {
42667 (char *) "self",(char *) "newmargin", NULL
42668 };
42669
42670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42672 if (!SWIG_IsOK(res1)) {
42673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42674 }
42675 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42676 ecode2 = SWIG_AsVal_int(obj1, &val2);
42677 if (!SWIG_IsOK(ecode2)) {
42678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42679 }
42680 arg2 = static_cast< int >(val2);
42681 {
42682 PyThreadState* __tstate = wxPyBeginAllowThreads();
42683 (arg1)->SetInternalMargin(arg2);
42684 wxPyEndAllowThreads(__tstate);
42685 if (PyErr_Occurred()) SWIG_fail;
42686 }
42687 resultobj = SWIG_Py_Void();
42688 return resultobj;
42689fail:
42690 return NULL;
42691}
42692
42693
42694SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42695 PyObject *resultobj = 0;
42696 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42697 int result;
42698 void *argp1 = 0 ;
42699 int res1 = 0 ;
42700 PyObject *swig_obj[1] ;
42701
42702 if (!args) SWIG_fail;
42703 swig_obj[0] = args;
42704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42705 if (!SWIG_IsOK(res1)) {
42706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42707 }
42708 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42709 {
42710 PyThreadState* __tstate = wxPyBeginAllowThreads();
42711 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42712 wxPyEndAllowThreads(__tstate);
42713 if (PyErr_Occurred()) SWIG_fail;
42714 }
42715 resultobj = SWIG_From_int(static_cast< int >(result));
42716 return resultobj;
42717fail:
42718 return NULL;
42719}
42720
42721
42722SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42723 PyObject *resultobj = 0;
42724 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42725 int arg2 ;
42726 void *argp1 = 0 ;
42727 int res1 = 0 ;
42728 int val2 ;
42729 int ecode2 = 0 ;
42730 PyObject * obj0 = 0 ;
42731 PyObject * obj1 = 0 ;
42732 char * kwnames[] = {
42733 (char *) "self",(char *) "prop", NULL
42734 };
42735
42736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42738 if (!SWIG_IsOK(res1)) {
42739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42740 }
42741 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42742 ecode2 = SWIG_AsVal_int(obj1, &val2);
42743 if (!SWIG_IsOK(ecode2)) {
42744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42745 }
42746 arg2 = static_cast< int >(val2);
42747 {
42748 PyThreadState* __tstate = wxPyBeginAllowThreads();
42749 (arg1)->SetTextCtrlProportion(arg2);
42750 wxPyEndAllowThreads(__tstate);
42751 if (PyErr_Occurred()) SWIG_fail;
42752 }
42753 resultobj = SWIG_Py_Void();
42754 return resultobj;
42755fail:
42756 return NULL;
42757}
42758
42759
42760SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42761 PyObject *resultobj = 0;
42762 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42763 int result;
42764 void *argp1 = 0 ;
42765 int res1 = 0 ;
42766 PyObject *swig_obj[1] ;
42767
42768 if (!args) SWIG_fail;
42769 swig_obj[0] = args;
42770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42771 if (!SWIG_IsOK(res1)) {
42772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42773 }
42774 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42775 {
42776 PyThreadState* __tstate = wxPyBeginAllowThreads();
42777 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42778 wxPyEndAllowThreads(__tstate);
42779 if (PyErr_Occurred()) SWIG_fail;
42780 }
42781 resultobj = SWIG_From_int(static_cast< int >(result));
42782 return resultobj;
42783fail:
42784 return NULL;
42785}
42786
42787
10044bf1
RD
42788SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42789 PyObject *resultobj = 0;
42790 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42791 int arg2 ;
42792 void *argp1 = 0 ;
42793 int res1 = 0 ;
42794 int val2 ;
42795 int ecode2 = 0 ;
42796 PyObject * obj0 = 0 ;
42797 PyObject * obj1 = 0 ;
42798 char * kwnames[] = {
42799 (char *) "self",(char *) "prop", NULL
42800 };
42801
42802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42804 if (!SWIG_IsOK(res1)) {
42805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42806 }
42807 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42808 ecode2 = SWIG_AsVal_int(obj1, &val2);
42809 if (!SWIG_IsOK(ecode2)) {
42810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42811 }
42812 arg2 = static_cast< int >(val2);
42813 {
42814 PyThreadState* __tstate = wxPyBeginAllowThreads();
42815 (arg1)->SetPickerCtrlProportion(arg2);
42816 wxPyEndAllowThreads(__tstate);
42817 if (PyErr_Occurred()) SWIG_fail;
42818 }
42819 resultobj = SWIG_Py_Void();
42820 return resultobj;
42821fail:
42822 return NULL;
42823}
42824
42825
42826SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42827 PyObject *resultobj = 0;
42828 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42829 int result;
42830 void *argp1 = 0 ;
42831 int res1 = 0 ;
42832 PyObject *swig_obj[1] ;
42833
42834 if (!args) SWIG_fail;
42835 swig_obj[0] = args;
42836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42837 if (!SWIG_IsOK(res1)) {
42838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42839 }
42840 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42841 {
42842 PyThreadState* __tstate = wxPyBeginAllowThreads();
42843 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42844 wxPyEndAllowThreads(__tstate);
42845 if (PyErr_Occurred()) SWIG_fail;
42846 }
42847 resultobj = SWIG_From_int(static_cast< int >(result));
42848 return resultobj;
42849fail:
42850 return NULL;
42851}
42852
42853
b02396e8
RD
42854SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42855 PyObject *resultobj = 0;
42856 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42857 bool result;
42858 void *argp1 = 0 ;
42859 int res1 = 0 ;
42860 PyObject *swig_obj[1] ;
42861
42862 if (!args) SWIG_fail;
42863 swig_obj[0] = args;
42864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42865 if (!SWIG_IsOK(res1)) {
42866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42867 }
42868 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42869 {
42870 PyThreadState* __tstate = wxPyBeginAllowThreads();
42871 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42872 wxPyEndAllowThreads(__tstate);
42873 if (PyErr_Occurred()) SWIG_fail;
42874 }
42875 {
42876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42877 }
42878 return resultobj;
42879fail:
42880 return NULL;
42881}
42882
42883
42884SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42885 PyObject *resultobj = 0;
42886 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42887 bool arg2 = (bool) true ;
42888 void *argp1 = 0 ;
42889 int res1 = 0 ;
42890 bool val2 ;
42891 int ecode2 = 0 ;
42892 PyObject * obj0 = 0 ;
42893 PyObject * obj1 = 0 ;
42894 char * kwnames[] = {
42895 (char *) "self",(char *) "grow", NULL
42896 };
42897
42898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42900 if (!SWIG_IsOK(res1)) {
42901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42902 }
42903 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42904 if (obj1) {
42905 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42906 if (!SWIG_IsOK(ecode2)) {
42907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42908 }
42909 arg2 = static_cast< bool >(val2);
42910 }
42911 {
42912 PyThreadState* __tstate = wxPyBeginAllowThreads();
42913 (arg1)->SetTextCtrlGrowable(arg2);
42914 wxPyEndAllowThreads(__tstate);
42915 if (PyErr_Occurred()) SWIG_fail;
42916 }
42917 resultobj = SWIG_Py_Void();
42918 return resultobj;
42919fail:
42920 return NULL;
42921}
42922
42923
42924SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42925 PyObject *resultobj = 0;
42926 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42927 bool result;
42928 void *argp1 = 0 ;
42929 int res1 = 0 ;
42930 PyObject *swig_obj[1] ;
42931
42932 if (!args) SWIG_fail;
42933 swig_obj[0] = args;
42934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42935 if (!SWIG_IsOK(res1)) {
42936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42937 }
42938 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42939 {
42940 PyThreadState* __tstate = wxPyBeginAllowThreads();
42941 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42942 wxPyEndAllowThreads(__tstate);
42943 if (PyErr_Occurred()) SWIG_fail;
42944 }
42945 {
42946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42947 }
42948 return resultobj;
42949fail:
42950 return NULL;
42951}
42952
42953
42954SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42955 PyObject *resultobj = 0;
42956 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42957 bool arg2 = (bool) true ;
42958 void *argp1 = 0 ;
42959 int res1 = 0 ;
42960 bool val2 ;
42961 int ecode2 = 0 ;
42962 PyObject * obj0 = 0 ;
42963 PyObject * obj1 = 0 ;
42964 char * kwnames[] = {
42965 (char *) "self",(char *) "grow", NULL
42966 };
42967
42968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42970 if (!SWIG_IsOK(res1)) {
42971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42972 }
42973 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42974 if (obj1) {
42975 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42976 if (!SWIG_IsOK(ecode2)) {
42977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42978 }
42979 arg2 = static_cast< bool >(val2);
42980 }
42981 {
42982 PyThreadState* __tstate = wxPyBeginAllowThreads();
42983 (arg1)->SetPickerCtrlGrowable(arg2);
42984 wxPyEndAllowThreads(__tstate);
42985 if (PyErr_Occurred()) SWIG_fail;
42986 }
42987 resultobj = SWIG_Py_Void();
42988 return resultobj;
42989fail:
42990 return NULL;
42991}
42992
42993
b850e7f3
RD
42994SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42995 PyObject *resultobj = 0;
42996 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42997 bool result;
42998 void *argp1 = 0 ;
42999 int res1 = 0 ;
43000 PyObject *swig_obj[1] ;
43001
43002 if (!args) SWIG_fail;
43003 swig_obj[0] = args;
43004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43005 if (!SWIG_IsOK(res1)) {
43006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43007 }
43008 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43009 {
43010 PyThreadState* __tstate = wxPyBeginAllowThreads();
43011 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43012 wxPyEndAllowThreads(__tstate);
43013 if (PyErr_Occurred()) SWIG_fail;
43014 }
43015 {
43016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43017 }
43018 return resultobj;
43019fail:
43020 return NULL;
43021}
43022
43023
43024SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43025 PyObject *resultobj = 0;
43026 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43027 wxTextCtrl *result = 0 ;
43028 void *argp1 = 0 ;
43029 int res1 = 0 ;
43030 PyObject *swig_obj[1] ;
43031
43032 if (!args) SWIG_fail;
43033 swig_obj[0] = args;
43034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43035 if (!SWIG_IsOK(res1)) {
43036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43037 }
43038 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43039 {
43040 PyThreadState* __tstate = wxPyBeginAllowThreads();
43041 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43042 wxPyEndAllowThreads(__tstate);
43043 if (PyErr_Occurred()) SWIG_fail;
43044 }
43045 {
43046 resultobj = wxPyMake_wxObject(result, 0);
43047 }
43048 return resultobj;
43049fail:
43050 return NULL;
43051}
43052
43053
43054SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43055 PyObject *resultobj = 0;
43056 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43057 wxControl *result = 0 ;
43058 void *argp1 = 0 ;
43059 int res1 = 0 ;
43060 PyObject *swig_obj[1] ;
43061
43062 if (!args) SWIG_fail;
43063 swig_obj[0] = args;
43064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43065 if (!SWIG_IsOK(res1)) {
43066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43067 }
43068 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43069 {
43070 PyThreadState* __tstate = wxPyBeginAllowThreads();
43071 result = (wxControl *)(arg1)->GetPickerCtrl();
43072 wxPyEndAllowThreads(__tstate);
43073 if (PyErr_Occurred()) SWIG_fail;
43074 }
43075 {
43076 resultobj = wxPyMake_wxObject(result, 0);
43077 }
43078 return resultobj;
43079fail:
43080 return NULL;
43081}
43082
43083
43084SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43085 PyObject *obj;
43086 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43087 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43088 return SWIG_Py_Void();
43089}
43090
43091SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43092 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43093 return 1;
43094}
43095
43096
43097SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43098 PyObject *pyobj = 0;
43099
43100 {
43101#if wxUSE_UNICODE
43102 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43103#else
43104 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43105#endif
43106 }
43107 return pyobj;
43108}
43109
43110
43111SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43112 PyObject *resultobj = 0;
43113 wxWindow *arg1 = (wxWindow *) 0 ;
43114 int arg2 = (int) -1 ;
43115 wxColour const &arg3_defvalue = *wxBLACK ;
43116 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43117 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43118 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43119 wxSize const &arg5_defvalue = wxDefaultSize ;
43120 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43121 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43122 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43123 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43124 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43125 wxString *arg8 = (wxString *) &arg8_defvalue ;
43126 wxColourPickerCtrl *result = 0 ;
43127 void *argp1 = 0 ;
43128 int res1 = 0 ;
43129 int val2 ;
43130 int ecode2 = 0 ;
43131 wxColour temp3 ;
43132 wxPoint temp4 ;
43133 wxSize temp5 ;
43134 long val6 ;
43135 int ecode6 = 0 ;
43136 void *argp7 = 0 ;
43137 int res7 = 0 ;
43138 bool temp8 = false ;
43139 PyObject * obj0 = 0 ;
43140 PyObject * obj1 = 0 ;
43141 PyObject * obj2 = 0 ;
43142 PyObject * obj3 = 0 ;
43143 PyObject * obj4 = 0 ;
43144 PyObject * obj5 = 0 ;
43145 PyObject * obj6 = 0 ;
43146 PyObject * obj7 = 0 ;
43147 char * kwnames[] = {
43148 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43149 };
43150
43151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43153 if (!SWIG_IsOK(res1)) {
43154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43155 }
43156 arg1 = reinterpret_cast< wxWindow * >(argp1);
43157 if (obj1) {
43158 ecode2 = SWIG_AsVal_int(obj1, &val2);
43159 if (!SWIG_IsOK(ecode2)) {
43160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43161 }
43162 arg2 = static_cast< int >(val2);
43163 }
43164 if (obj2) {
43165 {
43166 arg3 = &temp3;
43167 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43168 }
43169 }
43170 if (obj3) {
43171 {
43172 arg4 = &temp4;
43173 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43174 }
43175 }
43176 if (obj4) {
43177 {
43178 arg5 = &temp5;
43179 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43180 }
43181 }
43182 if (obj5) {
43183 ecode6 = SWIG_AsVal_long(obj5, &val6);
43184 if (!SWIG_IsOK(ecode6)) {
43185 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43186 }
43187 arg6 = static_cast< long >(val6);
43188 }
43189 if (obj6) {
43190 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43191 if (!SWIG_IsOK(res7)) {
43192 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43193 }
43194 if (!argp7) {
43195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43196 }
43197 arg7 = reinterpret_cast< wxValidator * >(argp7);
43198 }
43199 if (obj7) {
43200 {
43201 arg8 = wxString_in_helper(obj7);
43202 if (arg8 == NULL) SWIG_fail;
43203 temp8 = true;
43204 }
43205 }
43206 {
43207 if (!wxPyCheckForApp()) SWIG_fail;
43208 PyThreadState* __tstate = wxPyBeginAllowThreads();
43209 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43210 wxPyEndAllowThreads(__tstate);
43211 if (PyErr_Occurred()) SWIG_fail;
43212 }
43213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43214 {
43215 if (temp8)
43216 delete arg8;
43217 }
43218 return resultobj;
43219fail:
43220 {
43221 if (temp8)
43222 delete arg8;
43223 }
43224 return NULL;
43225}
43226
43227
43228SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43229 PyObject *resultobj = 0;
43230 wxColourPickerCtrl *result = 0 ;
43231
43232 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43233 {
43234 if (!wxPyCheckForApp()) SWIG_fail;
43235 PyThreadState* __tstate = wxPyBeginAllowThreads();
43236 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43237 wxPyEndAllowThreads(__tstate);
43238 if (PyErr_Occurred()) SWIG_fail;
43239 }
43240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43241 return resultobj;
43242fail:
43243 return NULL;
43244}
43245
43246
43247SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43248 PyObject *resultobj = 0;
43249 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43250 wxWindow *arg2 = (wxWindow *) 0 ;
43251 int arg3 ;
43252 wxColour const &arg4_defvalue = *wxBLACK ;
43253 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43254 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43255 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43256 wxSize const &arg6_defvalue = wxDefaultSize ;
43257 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43258 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43259 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43260 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43261 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43262 wxString *arg9 = (wxString *) &arg9_defvalue ;
43263 bool result;
43264 void *argp1 = 0 ;
43265 int res1 = 0 ;
43266 void *argp2 = 0 ;
43267 int res2 = 0 ;
43268 int val3 ;
43269 int ecode3 = 0 ;
43270 wxColour temp4 ;
43271 wxPoint temp5 ;
43272 wxSize temp6 ;
43273 long val7 ;
43274 int ecode7 = 0 ;
43275 void *argp8 = 0 ;
43276 int res8 = 0 ;
43277 bool temp9 = false ;
43278 PyObject * obj0 = 0 ;
43279 PyObject * obj1 = 0 ;
43280 PyObject * obj2 = 0 ;
43281 PyObject * obj3 = 0 ;
43282 PyObject * obj4 = 0 ;
43283 PyObject * obj5 = 0 ;
43284 PyObject * obj6 = 0 ;
43285 PyObject * obj7 = 0 ;
43286 PyObject * obj8 = 0 ;
43287 char * kwnames[] = {
43288 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43289 };
43290
43291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43293 if (!SWIG_IsOK(res1)) {
43294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43295 }
43296 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43297 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43298 if (!SWIG_IsOK(res2)) {
43299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43300 }
43301 arg2 = reinterpret_cast< wxWindow * >(argp2);
43302 ecode3 = SWIG_AsVal_int(obj2, &val3);
43303 if (!SWIG_IsOK(ecode3)) {
43304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43305 }
43306 arg3 = static_cast< int >(val3);
43307 if (obj3) {
43308 {
43309 arg4 = &temp4;
43310 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43311 }
43312 }
43313 if (obj4) {
43314 {
43315 arg5 = &temp5;
43316 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43317 }
43318 }
43319 if (obj5) {
43320 {
43321 arg6 = &temp6;
43322 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43323 }
43324 }
43325 if (obj6) {
43326 ecode7 = SWIG_AsVal_long(obj6, &val7);
43327 if (!SWIG_IsOK(ecode7)) {
43328 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43329 }
43330 arg7 = static_cast< long >(val7);
43331 }
43332 if (obj7) {
43333 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43334 if (!SWIG_IsOK(res8)) {
43335 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43336 }
43337 if (!argp8) {
43338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43339 }
43340 arg8 = reinterpret_cast< wxValidator * >(argp8);
43341 }
43342 if (obj8) {
43343 {
43344 arg9 = wxString_in_helper(obj8);
43345 if (arg9 == NULL) SWIG_fail;
43346 temp9 = true;
43347 }
43348 }
43349 {
43350 PyThreadState* __tstate = wxPyBeginAllowThreads();
43351 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43352 wxPyEndAllowThreads(__tstate);
43353 if (PyErr_Occurred()) SWIG_fail;
43354 }
43355 {
43356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43357 }
43358 {
43359 if (temp9)
43360 delete arg9;
43361 }
43362 return resultobj;
43363fail:
43364 {
43365 if (temp9)
43366 delete arg9;
43367 }
43368 return NULL;
43369}
43370
43371
43372SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43373 PyObject *resultobj = 0;
43374 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43375 wxColour result;
43376 void *argp1 = 0 ;
43377 int res1 = 0 ;
43378 PyObject *swig_obj[1] ;
43379
43380 if (!args) SWIG_fail;
43381 swig_obj[0] = args;
43382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43383 if (!SWIG_IsOK(res1)) {
43384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43385 }
43386 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43387 {
43388 PyThreadState* __tstate = wxPyBeginAllowThreads();
43389 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43390 wxPyEndAllowThreads(__tstate);
43391 if (PyErr_Occurred()) SWIG_fail;
43392 }
43393 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43394 return resultobj;
43395fail:
43396 return NULL;
43397}
43398
43399
43400SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43401 PyObject *resultobj = 0;
43402 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43403 wxColour *arg2 = 0 ;
43404 void *argp1 = 0 ;
43405 int res1 = 0 ;
43406 wxColour temp2 ;
43407 PyObject * obj0 = 0 ;
43408 PyObject * obj1 = 0 ;
43409 char * kwnames[] = {
43410 (char *) "self",(char *) "col", NULL
43411 };
43412
43413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43415 if (!SWIG_IsOK(res1)) {
43416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43417 }
43418 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43419 {
43420 arg2 = &temp2;
43421 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43422 }
43423 {
43424 PyThreadState* __tstate = wxPyBeginAllowThreads();
43425 (arg1)->SetColour((wxColour const &)*arg2);
43426 wxPyEndAllowThreads(__tstate);
43427 if (PyErr_Occurred()) SWIG_fail;
43428 }
43429 resultobj = SWIG_Py_Void();
43430 return resultobj;
43431fail:
43432 return NULL;
43433}
43434
43435
43436SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43437 PyObject *obj;
43438 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43439 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43440 return SWIG_Py_Void();
43441}
43442
43443SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43444 return SWIG_Python_InitShadowInstance(args);
43445}
43446
43447SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43448 PyObject *resultobj = 0;
43449 wxObject *arg1 = (wxObject *) 0 ;
43450 int arg2 ;
43451 wxColour *arg3 = 0 ;
43452 wxColourPickerEvent *result = 0 ;
43453 void *argp1 = 0 ;
43454 int res1 = 0 ;
43455 int val2 ;
43456 int ecode2 = 0 ;
43457 wxColour temp3 ;
43458 PyObject * obj0 = 0 ;
43459 PyObject * obj1 = 0 ;
43460 PyObject * obj2 = 0 ;
43461 char * kwnames[] = {
43462 (char *) "generator",(char *) "id",(char *) "col", NULL
43463 };
43464
43465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43467 if (!SWIG_IsOK(res1)) {
43468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43469 }
43470 arg1 = reinterpret_cast< wxObject * >(argp1);
43471 ecode2 = SWIG_AsVal_int(obj1, &val2);
43472 if (!SWIG_IsOK(ecode2)) {
43473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43474 }
43475 arg2 = static_cast< int >(val2);
43476 {
43477 arg3 = &temp3;
43478 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43479 }
43480 {
43481 PyThreadState* __tstate = wxPyBeginAllowThreads();
43482 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43483 wxPyEndAllowThreads(__tstate);
43484 if (PyErr_Occurred()) SWIG_fail;
43485 }
43486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43487 return resultobj;
43488fail:
43489 return NULL;
43490}
43491
43492
43493SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43494 PyObject *resultobj = 0;
43495 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43496 wxColour result;
43497 void *argp1 = 0 ;
43498 int res1 = 0 ;
43499 PyObject *swig_obj[1] ;
43500
43501 if (!args) SWIG_fail;
43502 swig_obj[0] = args;
43503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43504 if (!SWIG_IsOK(res1)) {
43505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43506 }
43507 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43508 {
43509 PyThreadState* __tstate = wxPyBeginAllowThreads();
43510 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43511 wxPyEndAllowThreads(__tstate);
43512 if (PyErr_Occurred()) SWIG_fail;
43513 }
43514 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43515 return resultobj;
43516fail:
43517 return NULL;
43518}
43519
43520
43521SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43522 PyObject *resultobj = 0;
43523 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43524 wxColour *arg2 = 0 ;
43525 void *argp1 = 0 ;
43526 int res1 = 0 ;
43527 wxColour temp2 ;
43528 PyObject * obj0 = 0 ;
43529 PyObject * obj1 = 0 ;
43530 char * kwnames[] = {
43531 (char *) "self",(char *) "c", NULL
43532 };
43533
43534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43536 if (!SWIG_IsOK(res1)) {
43537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43538 }
43539 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43540 {
43541 arg2 = &temp2;
43542 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43543 }
43544 {
43545 PyThreadState* __tstate = wxPyBeginAllowThreads();
43546 (arg1)->SetColour((wxColour const &)*arg2);
43547 wxPyEndAllowThreads(__tstate);
43548 if (PyErr_Occurred()) SWIG_fail;
43549 }
43550 resultobj = SWIG_Py_Void();
43551 return resultobj;
43552fail:
43553 return NULL;
43554}
43555
43556
43557SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43558 PyObject *obj;
43559 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43560 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43561 return SWIG_Py_Void();
43562}
43563
43564SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43565 return SWIG_Python_InitShadowInstance(args);
43566}
43567
43568SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43569 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43570 return 1;
43571}
43572
43573
43574SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43575 PyObject *pyobj = 0;
43576
43577 {
43578#if wxUSE_UNICODE
43579 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43580#else
43581 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43582#endif
43583 }
43584 return pyobj;
43585}
43586
43587
43588SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43589 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43590 return 1;
43591}
43592
43593
43594SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43595 PyObject *pyobj = 0;
43596
43597 {
43598#if wxUSE_UNICODE
43599 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43600#else
43601 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43602#endif
43603 }
43604 return pyobj;
43605}
43606
43607
43608SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43609 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43610 return 1;
43611}
43612
43613
43614SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43615 PyObject *pyobj = 0;
43616
43617 {
43618#if wxUSE_UNICODE
43619 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43620#else
43621 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43622#endif
43623 }
43624 return pyobj;
43625}
43626
43627
43628SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43629 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43630 return 1;
43631}
43632
43633
43634SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43635 PyObject *pyobj = 0;
43636
43637 {
43638#if wxUSE_UNICODE
43639 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43640#else
43641 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43642#endif
43643 }
43644 return pyobj;
43645}
43646
43647
43648SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43649 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43650 return 1;
43651}
43652
43653
43654SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43655 PyObject *pyobj = 0;
43656
43657 {
43658#if wxUSE_UNICODE
43659 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43660#else
43661 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43662#endif
43663 }
43664 return pyobj;
43665}
43666
43667
43668SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43669 PyObject *resultobj = 0;
43670 wxWindow *arg1 = (wxWindow *) 0 ;
43671 int arg2 = (int) -1 ;
43672 wxString const &arg3_defvalue = wxPyEmptyString ;
43673 wxString *arg3 = (wxString *) &arg3_defvalue ;
43674 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43675 wxString *arg4 = (wxString *) &arg4_defvalue ;
43676 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43677 wxString *arg5 = (wxString *) &arg5_defvalue ;
43678 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43679 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43680 wxSize const &arg7_defvalue = wxDefaultSize ;
43681 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43682 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43683 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43684 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43685 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43686 wxString *arg10 = (wxString *) &arg10_defvalue ;
43687 wxFilePickerCtrl *result = 0 ;
43688 void *argp1 = 0 ;
43689 int res1 = 0 ;
43690 int val2 ;
43691 int ecode2 = 0 ;
43692 bool temp3 = false ;
43693 bool temp4 = false ;
43694 bool temp5 = false ;
43695 wxPoint temp6 ;
43696 wxSize temp7 ;
43697 long val8 ;
43698 int ecode8 = 0 ;
43699 void *argp9 = 0 ;
43700 int res9 = 0 ;
43701 bool temp10 = false ;
43702 PyObject * obj0 = 0 ;
43703 PyObject * obj1 = 0 ;
43704 PyObject * obj2 = 0 ;
43705 PyObject * obj3 = 0 ;
43706 PyObject * obj4 = 0 ;
43707 PyObject * obj5 = 0 ;
43708 PyObject * obj6 = 0 ;
43709 PyObject * obj7 = 0 ;
43710 PyObject * obj8 = 0 ;
43711 PyObject * obj9 = 0 ;
43712 char * kwnames[] = {
43713 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43714 };
43715
43716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43718 if (!SWIG_IsOK(res1)) {
43719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43720 }
43721 arg1 = reinterpret_cast< wxWindow * >(argp1);
43722 if (obj1) {
43723 ecode2 = SWIG_AsVal_int(obj1, &val2);
43724 if (!SWIG_IsOK(ecode2)) {
43725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43726 }
43727 arg2 = static_cast< int >(val2);
43728 }
43729 if (obj2) {
43730 {
43731 arg3 = wxString_in_helper(obj2);
43732 if (arg3 == NULL) SWIG_fail;
43733 temp3 = true;
43734 }
43735 }
43736 if (obj3) {
43737 {
43738 arg4 = wxString_in_helper(obj3);
43739 if (arg4 == NULL) SWIG_fail;
43740 temp4 = true;
43741 }
43742 }
43743 if (obj4) {
43744 {
43745 arg5 = wxString_in_helper(obj4);
43746 if (arg5 == NULL) SWIG_fail;
43747 temp5 = true;
43748 }
43749 }
43750 if (obj5) {
43751 {
43752 arg6 = &temp6;
43753 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43754 }
43755 }
43756 if (obj6) {
43757 {
43758 arg7 = &temp7;
43759 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43760 }
43761 }
43762 if (obj7) {
43763 ecode8 = SWIG_AsVal_long(obj7, &val8);
43764 if (!SWIG_IsOK(ecode8)) {
43765 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43766 }
43767 arg8 = static_cast< long >(val8);
43768 }
43769 if (obj8) {
43770 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43771 if (!SWIG_IsOK(res9)) {
43772 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43773 }
43774 if (!argp9) {
43775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43776 }
43777 arg9 = reinterpret_cast< wxValidator * >(argp9);
43778 }
43779 if (obj9) {
43780 {
43781 arg10 = wxString_in_helper(obj9);
43782 if (arg10 == NULL) SWIG_fail;
43783 temp10 = true;
43784 }
43785 }
43786 {
43787 if (!wxPyCheckForApp()) SWIG_fail;
43788 PyThreadState* __tstate = wxPyBeginAllowThreads();
43789 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);
43790 wxPyEndAllowThreads(__tstate);
43791 if (PyErr_Occurred()) SWIG_fail;
43792 }
43793 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43794 {
43795 if (temp3)
43796 delete arg3;
43797 }
43798 {
43799 if (temp4)
43800 delete arg4;
43801 }
43802 {
43803 if (temp5)
43804 delete arg5;
43805 }
43806 {
43807 if (temp10)
43808 delete arg10;
43809 }
43810 return resultobj;
43811fail:
43812 {
43813 if (temp3)
43814 delete arg3;
43815 }
43816 {
43817 if (temp4)
43818 delete arg4;
43819 }
43820 {
43821 if (temp5)
43822 delete arg5;
43823 }
43824 {
43825 if (temp10)
43826 delete arg10;
43827 }
43828 return NULL;
43829}
43830
43831
43832SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43833 PyObject *resultobj = 0;
43834 wxFilePickerCtrl *result = 0 ;
43835
43836 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43837 {
43838 if (!wxPyCheckForApp()) SWIG_fail;
43839 PyThreadState* __tstate = wxPyBeginAllowThreads();
43840 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43841 wxPyEndAllowThreads(__tstate);
43842 if (PyErr_Occurred()) SWIG_fail;
43843 }
43844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43845 return resultobj;
43846fail:
43847 return NULL;
43848}
43849
43850
43851SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43852 PyObject *resultobj = 0;
43853 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43854 wxWindow *arg2 = (wxWindow *) 0 ;
43855 int arg3 = (int) -1 ;
43856 wxString const &arg4_defvalue = wxPyEmptyString ;
43857 wxString *arg4 = (wxString *) &arg4_defvalue ;
43858 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43859 wxString *arg5 = (wxString *) &arg5_defvalue ;
43860 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43861 wxString *arg6 = (wxString *) &arg6_defvalue ;
43862 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43863 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43864 wxSize const &arg8_defvalue = wxDefaultSize ;
43865 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43866 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43867 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43868 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43869 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43870 wxString *arg11 = (wxString *) &arg11_defvalue ;
43871 bool result;
43872 void *argp1 = 0 ;
43873 int res1 = 0 ;
43874 void *argp2 = 0 ;
43875 int res2 = 0 ;
43876 int val3 ;
43877 int ecode3 = 0 ;
43878 bool temp4 = false ;
43879 bool temp5 = false ;
43880 bool temp6 = false ;
43881 wxPoint temp7 ;
43882 wxSize temp8 ;
43883 long val9 ;
43884 int ecode9 = 0 ;
43885 void *argp10 = 0 ;
43886 int res10 = 0 ;
43887 bool temp11 = false ;
43888 PyObject * obj0 = 0 ;
43889 PyObject * obj1 = 0 ;
43890 PyObject * obj2 = 0 ;
43891 PyObject * obj3 = 0 ;
43892 PyObject * obj4 = 0 ;
43893 PyObject * obj5 = 0 ;
43894 PyObject * obj6 = 0 ;
43895 PyObject * obj7 = 0 ;
43896 PyObject * obj8 = 0 ;
43897 PyObject * obj9 = 0 ;
43898 PyObject * obj10 = 0 ;
43899 char * kwnames[] = {
43900 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43901 };
43902
43903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43905 if (!SWIG_IsOK(res1)) {
43906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43907 }
43908 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43909 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43910 if (!SWIG_IsOK(res2)) {
43911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43912 }
43913 arg2 = reinterpret_cast< wxWindow * >(argp2);
43914 if (obj2) {
43915 ecode3 = SWIG_AsVal_int(obj2, &val3);
43916 if (!SWIG_IsOK(ecode3)) {
43917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43918 }
43919 arg3 = static_cast< int >(val3);
43920 }
43921 if (obj3) {
43922 {
43923 arg4 = wxString_in_helper(obj3);
43924 if (arg4 == NULL) SWIG_fail;
43925 temp4 = true;
43926 }
43927 }
43928 if (obj4) {
43929 {
43930 arg5 = wxString_in_helper(obj4);
43931 if (arg5 == NULL) SWIG_fail;
43932 temp5 = true;
43933 }
43934 }
43935 if (obj5) {
43936 {
43937 arg6 = wxString_in_helper(obj5);
43938 if (arg6 == NULL) SWIG_fail;
43939 temp6 = true;
43940 }
43941 }
43942 if (obj6) {
43943 {
43944 arg7 = &temp7;
43945 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43946 }
43947 }
43948 if (obj7) {
43949 {
43950 arg8 = &temp8;
43951 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43952 }
43953 }
43954 if (obj8) {
43955 ecode9 = SWIG_AsVal_long(obj8, &val9);
43956 if (!SWIG_IsOK(ecode9)) {
43957 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43958 }
43959 arg9 = static_cast< long >(val9);
43960 }
43961 if (obj9) {
43962 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43963 if (!SWIG_IsOK(res10)) {
43964 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43965 }
43966 if (!argp10) {
43967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43968 }
43969 arg10 = reinterpret_cast< wxValidator * >(argp10);
43970 }
43971 if (obj10) {
43972 {
43973 arg11 = wxString_in_helper(obj10);
43974 if (arg11 == NULL) SWIG_fail;
43975 temp11 = true;
43976 }
43977 }
43978 {
43979 PyThreadState* __tstate = wxPyBeginAllowThreads();
43980 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);
43981 wxPyEndAllowThreads(__tstate);
43982 if (PyErr_Occurred()) SWIG_fail;
43983 }
43984 {
43985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43986 }
43987 {
43988 if (temp4)
43989 delete arg4;
43990 }
43991 {
43992 if (temp5)
43993 delete arg5;
43994 }
43995 {
43996 if (temp6)
43997 delete arg6;
43998 }
43999 {
44000 if (temp11)
44001 delete arg11;
44002 }
44003 return resultobj;
44004fail:
44005 {
44006 if (temp4)
44007 delete arg4;
44008 }
44009 {
44010 if (temp5)
44011 delete arg5;
44012 }
44013 {
44014 if (temp6)
44015 delete arg6;
44016 }
44017 {
44018 if (temp11)
44019 delete arg11;
44020 }
44021 return NULL;
44022}
44023
44024
44025SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44026 PyObject *resultobj = 0;
44027 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44028 wxString result;
44029 void *argp1 = 0 ;
44030 int res1 = 0 ;
44031 PyObject *swig_obj[1] ;
44032
44033 if (!args) SWIG_fail;
44034 swig_obj[0] = args;
44035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44036 if (!SWIG_IsOK(res1)) {
44037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44038 }
44039 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44040 {
44041 PyThreadState* __tstate = wxPyBeginAllowThreads();
44042 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44043 wxPyEndAllowThreads(__tstate);
44044 if (PyErr_Occurred()) SWIG_fail;
44045 }
44046 {
44047#if wxUSE_UNICODE
44048 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44049#else
44050 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44051#endif
44052 }
44053 return resultobj;
44054fail:
44055 return NULL;
44056}
44057
44058
44059SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44060 PyObject *resultobj = 0;
44061 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44062 wxString *arg2 = 0 ;
44063 void *argp1 = 0 ;
44064 int res1 = 0 ;
44065 bool temp2 = false ;
44066 PyObject * obj0 = 0 ;
44067 PyObject * obj1 = 0 ;
44068 char * kwnames[] = {
44069 (char *) "self",(char *) "str", NULL
44070 };
44071
44072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44074 if (!SWIG_IsOK(res1)) {
44075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44076 }
44077 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44078 {
44079 arg2 = wxString_in_helper(obj1);
44080 if (arg2 == NULL) SWIG_fail;
44081 temp2 = true;
44082 }
44083 {
44084 PyThreadState* __tstate = wxPyBeginAllowThreads();
44085 (arg1)->SetPath((wxString const &)*arg2);
44086 wxPyEndAllowThreads(__tstate);
44087 if (PyErr_Occurred()) SWIG_fail;
44088 }
44089 resultobj = SWIG_Py_Void();
44090 {
44091 if (temp2)
44092 delete arg2;
44093 }
44094 return resultobj;
44095fail:
44096 {
44097 if (temp2)
44098 delete arg2;
44099 }
44100 return NULL;
44101}
44102
44103
b02396e8
RD
44104SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44105 PyObject *resultobj = 0;
44106 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44107 wxString *arg2 = 0 ;
44108 bool result;
44109 void *argp1 = 0 ;
44110 int res1 = 0 ;
44111 bool temp2 = false ;
44112 PyObject * obj0 = 0 ;
44113 PyObject * obj1 = 0 ;
44114 char * kwnames[] = {
44115 (char *) "self",(char *) "path", NULL
44116 };
44117
44118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44120 if (!SWIG_IsOK(res1)) {
44121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44122 }
44123 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44124 {
44125 arg2 = wxString_in_helper(obj1);
44126 if (arg2 == NULL) SWIG_fail;
44127 temp2 = true;
44128 }
44129 {
44130 PyThreadState* __tstate = wxPyBeginAllowThreads();
44131 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44132 wxPyEndAllowThreads(__tstate);
44133 if (PyErr_Occurred()) SWIG_fail;
44134 }
44135 {
44136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44137 }
44138 {
44139 if (temp2)
44140 delete arg2;
44141 }
44142 return resultobj;
44143fail:
44144 {
44145 if (temp2)
44146 delete arg2;
44147 }
44148 return NULL;
44149}
44150
44151
44152SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44153 PyObject *resultobj = 0;
44154 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44155 wxString result;
44156 void *argp1 = 0 ;
44157 int res1 = 0 ;
44158 PyObject *swig_obj[1] ;
44159
44160 if (!args) SWIG_fail;
44161 swig_obj[0] = args;
44162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44163 if (!SWIG_IsOK(res1)) {
44164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44165 }
44166 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44167 {
44168 PyThreadState* __tstate = wxPyBeginAllowThreads();
44169 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44170 wxPyEndAllowThreads(__tstate);
44171 if (PyErr_Occurred()) SWIG_fail;
44172 }
44173 {
44174#if wxUSE_UNICODE
44175 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44176#else
44177 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44178#endif
44179 }
44180 return resultobj;
44181fail:
44182 return NULL;
44183}
44184
44185
b850e7f3
RD
44186SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44187 PyObject *obj;
44188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44189 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44190 return SWIG_Py_Void();
44191}
44192
44193SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44194 return SWIG_Python_InitShadowInstance(args);
44195}
44196
44197SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44198 PyObject *resultobj = 0;
44199 wxWindow *arg1 = (wxWindow *) 0 ;
44200 int arg2 = (int) -1 ;
44201 wxString const &arg3_defvalue = wxPyEmptyString ;
44202 wxString *arg3 = (wxString *) &arg3_defvalue ;
44203 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44204 wxString *arg4 = (wxString *) &arg4_defvalue ;
44205 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44206 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44207 wxSize const &arg6_defvalue = wxDefaultSize ;
44208 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44209 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44210 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44211 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44212 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44213 wxString *arg9 = (wxString *) &arg9_defvalue ;
44214 wxDirPickerCtrl *result = 0 ;
44215 void *argp1 = 0 ;
44216 int res1 = 0 ;
44217 int val2 ;
44218 int ecode2 = 0 ;
44219 bool temp3 = false ;
44220 bool temp4 = false ;
44221 wxPoint temp5 ;
44222 wxSize temp6 ;
44223 long val7 ;
44224 int ecode7 = 0 ;
44225 void *argp8 = 0 ;
44226 int res8 = 0 ;
44227 bool temp9 = false ;
44228 PyObject * obj0 = 0 ;
44229 PyObject * obj1 = 0 ;
44230 PyObject * obj2 = 0 ;
44231 PyObject * obj3 = 0 ;
44232 PyObject * obj4 = 0 ;
44233 PyObject * obj5 = 0 ;
44234 PyObject * obj6 = 0 ;
44235 PyObject * obj7 = 0 ;
44236 PyObject * obj8 = 0 ;
44237 char * kwnames[] = {
44238 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44239 };
44240
44241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44243 if (!SWIG_IsOK(res1)) {
44244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44245 }
44246 arg1 = reinterpret_cast< wxWindow * >(argp1);
44247 if (obj1) {
44248 ecode2 = SWIG_AsVal_int(obj1, &val2);
44249 if (!SWIG_IsOK(ecode2)) {
44250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44251 }
44252 arg2 = static_cast< int >(val2);
44253 }
44254 if (obj2) {
44255 {
44256 arg3 = wxString_in_helper(obj2);
44257 if (arg3 == NULL) SWIG_fail;
44258 temp3 = true;
44259 }
44260 }
44261 if (obj3) {
44262 {
44263 arg4 = wxString_in_helper(obj3);
44264 if (arg4 == NULL) SWIG_fail;
44265 temp4 = true;
44266 }
44267 }
44268 if (obj4) {
44269 {
44270 arg5 = &temp5;
44271 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44272 }
44273 }
44274 if (obj5) {
44275 {
44276 arg6 = &temp6;
44277 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44278 }
44279 }
44280 if (obj6) {
44281 ecode7 = SWIG_AsVal_long(obj6, &val7);
44282 if (!SWIG_IsOK(ecode7)) {
44283 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44284 }
44285 arg7 = static_cast< long >(val7);
44286 }
44287 if (obj7) {
44288 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44289 if (!SWIG_IsOK(res8)) {
44290 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44291 }
44292 if (!argp8) {
44293 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44294 }
44295 arg8 = reinterpret_cast< wxValidator * >(argp8);
44296 }
44297 if (obj8) {
44298 {
44299 arg9 = wxString_in_helper(obj8);
44300 if (arg9 == NULL) SWIG_fail;
44301 temp9 = true;
44302 }
44303 }
44304 {
44305 if (!wxPyCheckForApp()) SWIG_fail;
44306 PyThreadState* __tstate = wxPyBeginAllowThreads();
44307 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);
44308 wxPyEndAllowThreads(__tstate);
44309 if (PyErr_Occurred()) SWIG_fail;
44310 }
44311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44312 {
44313 if (temp3)
44314 delete arg3;
44315 }
44316 {
44317 if (temp4)
44318 delete arg4;
44319 }
44320 {
44321 if (temp9)
44322 delete arg9;
44323 }
44324 return resultobj;
44325fail:
44326 {
44327 if (temp3)
44328 delete arg3;
44329 }
44330 {
44331 if (temp4)
44332 delete arg4;
44333 }
44334 {
44335 if (temp9)
44336 delete arg9;
44337 }
44338 return NULL;
44339}
44340
44341
44342SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44343 PyObject *resultobj = 0;
44344 wxDirPickerCtrl *result = 0 ;
44345
44346 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44347 {
44348 if (!wxPyCheckForApp()) SWIG_fail;
44349 PyThreadState* __tstate = wxPyBeginAllowThreads();
44350 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44351 wxPyEndAllowThreads(__tstate);
44352 if (PyErr_Occurred()) SWIG_fail;
44353 }
44354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44355 return resultobj;
44356fail:
44357 return NULL;
44358}
44359
44360
44361SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44362 PyObject *resultobj = 0;
44363 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44364 wxWindow *arg2 = (wxWindow *) 0 ;
44365 int arg3 = (int) -1 ;
44366 wxString const &arg4_defvalue = wxPyEmptyString ;
44367 wxString *arg4 = (wxString *) &arg4_defvalue ;
44368 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44369 wxString *arg5 = (wxString *) &arg5_defvalue ;
44370 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44371 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44372 wxSize const &arg7_defvalue = wxDefaultSize ;
44373 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44374 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44375 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44376 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44377 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44378 wxString *arg10 = (wxString *) &arg10_defvalue ;
44379 bool result;
44380 void *argp1 = 0 ;
44381 int res1 = 0 ;
44382 void *argp2 = 0 ;
44383 int res2 = 0 ;
44384 int val3 ;
44385 int ecode3 = 0 ;
44386 bool temp4 = false ;
44387 bool temp5 = false ;
44388 wxPoint temp6 ;
44389 wxSize temp7 ;
44390 long val8 ;
44391 int ecode8 = 0 ;
44392 void *argp9 = 0 ;
44393 int res9 = 0 ;
44394 bool temp10 = false ;
44395 PyObject * obj0 = 0 ;
44396 PyObject * obj1 = 0 ;
44397 PyObject * obj2 = 0 ;
44398 PyObject * obj3 = 0 ;
44399 PyObject * obj4 = 0 ;
44400 PyObject * obj5 = 0 ;
44401 PyObject * obj6 = 0 ;
44402 PyObject * obj7 = 0 ;
44403 PyObject * obj8 = 0 ;
44404 PyObject * obj9 = 0 ;
44405 char * kwnames[] = {
44406 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44407 };
44408
44409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44411 if (!SWIG_IsOK(res1)) {
44412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44413 }
44414 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44415 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44416 if (!SWIG_IsOK(res2)) {
44417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44418 }
44419 arg2 = reinterpret_cast< wxWindow * >(argp2);
44420 if (obj2) {
44421 ecode3 = SWIG_AsVal_int(obj2, &val3);
44422 if (!SWIG_IsOK(ecode3)) {
44423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44424 }
44425 arg3 = static_cast< int >(val3);
44426 }
44427 if (obj3) {
44428 {
44429 arg4 = wxString_in_helper(obj3);
44430 if (arg4 == NULL) SWIG_fail;
44431 temp4 = true;
44432 }
44433 }
44434 if (obj4) {
44435 {
44436 arg5 = wxString_in_helper(obj4);
44437 if (arg5 == NULL) SWIG_fail;
44438 temp5 = true;
44439 }
44440 }
44441 if (obj5) {
44442 {
44443 arg6 = &temp6;
44444 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44445 }
44446 }
44447 if (obj6) {
44448 {
44449 arg7 = &temp7;
44450 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44451 }
44452 }
44453 if (obj7) {
44454 ecode8 = SWIG_AsVal_long(obj7, &val8);
44455 if (!SWIG_IsOK(ecode8)) {
44456 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44457 }
44458 arg8 = static_cast< long >(val8);
44459 }
44460 if (obj8) {
44461 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44462 if (!SWIG_IsOK(res9)) {
44463 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44464 }
44465 if (!argp9) {
44466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44467 }
44468 arg9 = reinterpret_cast< wxValidator * >(argp9);
44469 }
44470 if (obj9) {
44471 {
44472 arg10 = wxString_in_helper(obj9);
44473 if (arg10 == NULL) SWIG_fail;
44474 temp10 = true;
44475 }
44476 }
44477 {
44478 PyThreadState* __tstate = wxPyBeginAllowThreads();
44479 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);
44480 wxPyEndAllowThreads(__tstate);
44481 if (PyErr_Occurred()) SWIG_fail;
44482 }
44483 {
44484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44485 }
44486 {
44487 if (temp4)
44488 delete arg4;
44489 }
44490 {
44491 if (temp5)
44492 delete arg5;
44493 }
44494 {
44495 if (temp10)
44496 delete arg10;
44497 }
44498 return resultobj;
44499fail:
44500 {
44501 if (temp4)
44502 delete arg4;
44503 }
44504 {
44505 if (temp5)
44506 delete arg5;
44507 }
44508 {
44509 if (temp10)
44510 delete arg10;
44511 }
44512 return NULL;
44513}
44514
44515
44516SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44517 PyObject *resultobj = 0;
44518 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44519 wxString result;
44520 void *argp1 = 0 ;
44521 int res1 = 0 ;
44522 PyObject *swig_obj[1] ;
44523
44524 if (!args) SWIG_fail;
44525 swig_obj[0] = args;
44526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44527 if (!SWIG_IsOK(res1)) {
44528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44529 }
44530 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44531 {
44532 PyThreadState* __tstate = wxPyBeginAllowThreads();
44533 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44534 wxPyEndAllowThreads(__tstate);
44535 if (PyErr_Occurred()) SWIG_fail;
44536 }
44537 {
44538#if wxUSE_UNICODE
44539 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44540#else
44541 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44542#endif
44543 }
44544 return resultobj;
44545fail:
44546 return NULL;
44547}
44548
44549
44550SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44551 PyObject *resultobj = 0;
44552 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44553 wxString *arg2 = 0 ;
44554 void *argp1 = 0 ;
44555 int res1 = 0 ;
44556 bool temp2 = false ;
44557 PyObject * obj0 = 0 ;
44558 PyObject * obj1 = 0 ;
44559 char * kwnames[] = {
44560 (char *) "self",(char *) "str", NULL
44561 };
44562
44563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44565 if (!SWIG_IsOK(res1)) {
44566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44567 }
44568 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44569 {
44570 arg2 = wxString_in_helper(obj1);
44571 if (arg2 == NULL) SWIG_fail;
44572 temp2 = true;
44573 }
44574 {
44575 PyThreadState* __tstate = wxPyBeginAllowThreads();
44576 (arg1)->SetPath((wxString const &)*arg2);
44577 wxPyEndAllowThreads(__tstate);
44578 if (PyErr_Occurred()) SWIG_fail;
44579 }
44580 resultobj = SWIG_Py_Void();
44581 {
44582 if (temp2)
44583 delete arg2;
44584 }
44585 return resultobj;
44586fail:
44587 {
44588 if (temp2)
44589 delete arg2;
44590 }
44591 return NULL;
44592}
44593
44594
b02396e8
RD
44595SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44596 PyObject *resultobj = 0;
44597 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44598 wxString *arg2 = 0 ;
44599 bool result;
44600 void *argp1 = 0 ;
44601 int res1 = 0 ;
44602 bool temp2 = false ;
44603 PyObject * obj0 = 0 ;
44604 PyObject * obj1 = 0 ;
44605 char * kwnames[] = {
44606 (char *) "self",(char *) "path", NULL
44607 };
44608
44609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44611 if (!SWIG_IsOK(res1)) {
44612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44613 }
44614 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44615 {
44616 arg2 = wxString_in_helper(obj1);
44617 if (arg2 == NULL) SWIG_fail;
44618 temp2 = true;
44619 }
44620 {
44621 PyThreadState* __tstate = wxPyBeginAllowThreads();
44622 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44623 wxPyEndAllowThreads(__tstate);
44624 if (PyErr_Occurred()) SWIG_fail;
44625 }
44626 {
44627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44628 }
44629 {
44630 if (temp2)
44631 delete arg2;
44632 }
44633 return resultobj;
44634fail:
44635 {
44636 if (temp2)
44637 delete arg2;
44638 }
44639 return NULL;
44640}
44641
44642
44643SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44644 PyObject *resultobj = 0;
44645 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44646 wxString result;
44647 void *argp1 = 0 ;
44648 int res1 = 0 ;
44649 PyObject *swig_obj[1] ;
44650
44651 if (!args) SWIG_fail;
44652 swig_obj[0] = args;
44653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44654 if (!SWIG_IsOK(res1)) {
44655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44656 }
44657 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44658 {
44659 PyThreadState* __tstate = wxPyBeginAllowThreads();
44660 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44661 wxPyEndAllowThreads(__tstate);
44662 if (PyErr_Occurred()) SWIG_fail;
44663 }
44664 {
44665#if wxUSE_UNICODE
44666 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44667#else
44668 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44669#endif
44670 }
44671 return resultobj;
44672fail:
44673 return NULL;
44674}
44675
44676
b850e7f3
RD
44677SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44678 PyObject *obj;
44679 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44680 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44681 return SWIG_Py_Void();
44682}
44683
44684SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44685 return SWIG_Python_InitShadowInstance(args);
44686}
44687
44688SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44689 PyObject *resultobj = 0;
44690 wxEventType arg1 ;
44691 wxObject *arg2 = (wxObject *) 0 ;
44692 int arg3 ;
44693 wxString *arg4 = 0 ;
44694 wxFileDirPickerEvent *result = 0 ;
44695 int val1 ;
44696 int ecode1 = 0 ;
44697 void *argp2 = 0 ;
44698 int res2 = 0 ;
44699 int val3 ;
44700 int ecode3 = 0 ;
44701 bool temp4 = false ;
44702 PyObject * obj0 = 0 ;
44703 PyObject * obj1 = 0 ;
44704 PyObject * obj2 = 0 ;
44705 PyObject * obj3 = 0 ;
44706 char * kwnames[] = {
44707 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44708 };
44709
44710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44711 ecode1 = SWIG_AsVal_int(obj0, &val1);
44712 if (!SWIG_IsOK(ecode1)) {
44713 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44714 }
44715 arg1 = static_cast< wxEventType >(val1);
44716 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44717 if (!SWIG_IsOK(res2)) {
44718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44719 }
44720 arg2 = reinterpret_cast< wxObject * >(argp2);
44721 ecode3 = SWIG_AsVal_int(obj2, &val3);
44722 if (!SWIG_IsOK(ecode3)) {
44723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44724 }
44725 arg3 = static_cast< int >(val3);
44726 {
44727 arg4 = wxString_in_helper(obj3);
44728 if (arg4 == NULL) SWIG_fail;
44729 temp4 = true;
44730 }
44731 {
44732 PyThreadState* __tstate = wxPyBeginAllowThreads();
44733 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44734 wxPyEndAllowThreads(__tstate);
44735 if (PyErr_Occurred()) SWIG_fail;
44736 }
44737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44738 {
44739 if (temp4)
44740 delete arg4;
44741 }
44742 return resultobj;
44743fail:
44744 {
44745 if (temp4)
44746 delete arg4;
44747 }
44748 return NULL;
44749}
44750
44751
44752SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44753 PyObject *resultobj = 0;
44754 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44755 wxString result;
44756 void *argp1 = 0 ;
44757 int res1 = 0 ;
44758 PyObject *swig_obj[1] ;
44759
44760 if (!args) SWIG_fail;
44761 swig_obj[0] = args;
44762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44763 if (!SWIG_IsOK(res1)) {
44764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44765 }
44766 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44767 {
44768 PyThreadState* __tstate = wxPyBeginAllowThreads();
44769 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44770 wxPyEndAllowThreads(__tstate);
44771 if (PyErr_Occurred()) SWIG_fail;
44772 }
44773 {
44774#if wxUSE_UNICODE
44775 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44776#else
44777 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44778#endif
44779 }
44780 return resultobj;
44781fail:
44782 return NULL;
44783}
44784
44785
44786SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44787 PyObject *resultobj = 0;
44788 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44789 wxString *arg2 = 0 ;
44790 void *argp1 = 0 ;
44791 int res1 = 0 ;
44792 bool temp2 = false ;
44793 PyObject * obj0 = 0 ;
44794 PyObject * obj1 = 0 ;
44795 char * kwnames[] = {
44796 (char *) "self",(char *) "p", NULL
44797 };
44798
44799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44801 if (!SWIG_IsOK(res1)) {
44802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44803 }
44804 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44805 {
44806 arg2 = wxString_in_helper(obj1);
44807 if (arg2 == NULL) SWIG_fail;
44808 temp2 = true;
44809 }
44810 {
44811 PyThreadState* __tstate = wxPyBeginAllowThreads();
44812 (arg1)->SetPath((wxString const &)*arg2);
44813 wxPyEndAllowThreads(__tstate);
44814 if (PyErr_Occurred()) SWIG_fail;
44815 }
44816 resultobj = SWIG_Py_Void();
44817 {
44818 if (temp2)
44819 delete arg2;
44820 }
44821 return resultobj;
44822fail:
44823 {
44824 if (temp2)
44825 delete arg2;
44826 }
44827 return NULL;
44828}
44829
44830
44831SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44832 PyObject *obj;
44833 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44834 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44835 return SWIG_Py_Void();
44836}
44837
44838SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44839 return SWIG_Python_InitShadowInstance(args);
44840}
44841
44842SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44843 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44844 return 1;
44845}
44846
44847
44848SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44849 PyObject *pyobj = 0;
44850
44851 {
44852#if wxUSE_UNICODE
44853 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44854#else
44855 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44856#endif
44857 }
44858 return pyobj;
44859}
44860
44861
44862SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44863 PyObject *resultobj = 0;
44864 wxWindow *arg1 = (wxWindow *) 0 ;
44865 int arg2 = (int) -1 ;
f89238b9 44866 wxFont const &arg3_defvalue = wxNullFont ;
b850e7f3
RD
44867 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44868 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44869 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44870 wxSize const &arg5_defvalue = wxDefaultSize ;
44871 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44872 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44873 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44874 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44875 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44876 wxString *arg8 = (wxString *) &arg8_defvalue ;
44877 wxFontPickerCtrl *result = 0 ;
44878 void *argp1 = 0 ;
44879 int res1 = 0 ;
44880 int val2 ;
44881 int ecode2 = 0 ;
44882 void *argp3 = 0 ;
44883 int res3 = 0 ;
44884 wxPoint temp4 ;
44885 wxSize temp5 ;
44886 long val6 ;
44887 int ecode6 = 0 ;
44888 void *argp7 = 0 ;
44889 int res7 = 0 ;
44890 bool temp8 = false ;
44891 PyObject * obj0 = 0 ;
44892 PyObject * obj1 = 0 ;
44893 PyObject * obj2 = 0 ;
44894 PyObject * obj3 = 0 ;
44895 PyObject * obj4 = 0 ;
44896 PyObject * obj5 = 0 ;
44897 PyObject * obj6 = 0 ;
44898 PyObject * obj7 = 0 ;
44899 char * kwnames[] = {
44900 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44901 };
44902
44903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44905 if (!SWIG_IsOK(res1)) {
44906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44907 }
44908 arg1 = reinterpret_cast< wxWindow * >(argp1);
44909 if (obj1) {
44910 ecode2 = SWIG_AsVal_int(obj1, &val2);
44911 if (!SWIG_IsOK(ecode2)) {
44912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44913 }
44914 arg2 = static_cast< int >(val2);
44915 }
44916 if (obj2) {
44917 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44918 if (!SWIG_IsOK(res3)) {
44919 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44920 }
44921 if (!argp3) {
44922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44923 }
44924 arg3 = reinterpret_cast< wxFont * >(argp3);
44925 }
44926 if (obj3) {
44927 {
44928 arg4 = &temp4;
44929 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44930 }
44931 }
44932 if (obj4) {
44933 {
44934 arg5 = &temp5;
44935 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44936 }
44937 }
44938 if (obj5) {
44939 ecode6 = SWIG_AsVal_long(obj5, &val6);
44940 if (!SWIG_IsOK(ecode6)) {
44941 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44942 }
44943 arg6 = static_cast< long >(val6);
44944 }
44945 if (obj6) {
44946 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44947 if (!SWIG_IsOK(res7)) {
44948 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44949 }
44950 if (!argp7) {
44951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44952 }
44953 arg7 = reinterpret_cast< wxValidator * >(argp7);
44954 }
44955 if (obj7) {
44956 {
44957 arg8 = wxString_in_helper(obj7);
44958 if (arg8 == NULL) SWIG_fail;
44959 temp8 = true;
44960 }
44961 }
44962 {
44963 if (!wxPyCheckForApp()) SWIG_fail;
44964 PyThreadState* __tstate = wxPyBeginAllowThreads();
44965 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44966 wxPyEndAllowThreads(__tstate);
44967 if (PyErr_Occurred()) SWIG_fail;
44968 }
44969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44970 {
44971 if (temp8)
44972 delete arg8;
44973 }
44974 return resultobj;
44975fail:
44976 {
44977 if (temp8)
44978 delete arg8;
44979 }
44980 return NULL;
44981}
44982
44983
44984SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44985 PyObject *resultobj = 0;
44986 wxFontPickerCtrl *result = 0 ;
44987
44988 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44989 {
44990 if (!wxPyCheckForApp()) SWIG_fail;
44991 PyThreadState* __tstate = wxPyBeginAllowThreads();
44992 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44993 wxPyEndAllowThreads(__tstate);
44994 if (PyErr_Occurred()) SWIG_fail;
44995 }
44996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44997 return resultobj;
44998fail:
44999 return NULL;
45000}
45001
45002
45003SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45004 PyObject *resultobj = 0;
45005 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45006 wxWindow *arg2 = (wxWindow *) 0 ;
45007 int arg3 = (int) -1 ;
f89238b9 45008 wxFont const &arg4_defvalue = wxNullFont ;
b850e7f3
RD
45009 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45010 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45011 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45012 wxSize const &arg6_defvalue = wxDefaultSize ;
45013 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45014 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45015 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45016 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45017 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45018 wxString *arg9 = (wxString *) &arg9_defvalue ;
45019 bool result;
45020 void *argp1 = 0 ;
45021 int res1 = 0 ;
45022 void *argp2 = 0 ;
45023 int res2 = 0 ;
45024 int val3 ;
45025 int ecode3 = 0 ;
45026 void *argp4 = 0 ;
45027 int res4 = 0 ;
45028 wxPoint temp5 ;
45029 wxSize temp6 ;
45030 long val7 ;
45031 int ecode7 = 0 ;
45032 void *argp8 = 0 ;
45033 int res8 = 0 ;
45034 bool temp9 = false ;
45035 PyObject * obj0 = 0 ;
45036 PyObject * obj1 = 0 ;
45037 PyObject * obj2 = 0 ;
45038 PyObject * obj3 = 0 ;
45039 PyObject * obj4 = 0 ;
45040 PyObject * obj5 = 0 ;
45041 PyObject * obj6 = 0 ;
45042 PyObject * obj7 = 0 ;
45043 PyObject * obj8 = 0 ;
45044 char * kwnames[] = {
45045 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45046 };
45047
45048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45050 if (!SWIG_IsOK(res1)) {
45051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45052 }
45053 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45054 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45055 if (!SWIG_IsOK(res2)) {
45056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45057 }
45058 arg2 = reinterpret_cast< wxWindow * >(argp2);
45059 if (obj2) {
45060 ecode3 = SWIG_AsVal_int(obj2, &val3);
45061 if (!SWIG_IsOK(ecode3)) {
45062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45063 }
45064 arg3 = static_cast< int >(val3);
45065 }
45066 if (obj3) {
45067 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45068 if (!SWIG_IsOK(res4)) {
45069 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45070 }
45071 if (!argp4) {
45072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45073 }
45074 arg4 = reinterpret_cast< wxFont * >(argp4);
45075 }
45076 if (obj4) {
45077 {
45078 arg5 = &temp5;
45079 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45080 }
45081 }
45082 if (obj5) {
45083 {
45084 arg6 = &temp6;
45085 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45086 }
45087 }
45088 if (obj6) {
45089 ecode7 = SWIG_AsVal_long(obj6, &val7);
45090 if (!SWIG_IsOK(ecode7)) {
45091 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45092 }
45093 arg7 = static_cast< long >(val7);
45094 }
45095 if (obj7) {
45096 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45097 if (!SWIG_IsOK(res8)) {
45098 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45099 }
45100 if (!argp8) {
45101 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45102 }
45103 arg8 = reinterpret_cast< wxValidator * >(argp8);
45104 }
45105 if (obj8) {
45106 {
45107 arg9 = wxString_in_helper(obj8);
45108 if (arg9 == NULL) SWIG_fail;
45109 temp9 = true;
45110 }
45111 }
45112 {
45113 PyThreadState* __tstate = wxPyBeginAllowThreads();
45114 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45115 wxPyEndAllowThreads(__tstate);
45116 if (PyErr_Occurred()) SWIG_fail;
45117 }
45118 {
45119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45120 }
45121 {
45122 if (temp9)
45123 delete arg9;
45124 }
45125 return resultobj;
45126fail:
45127 {
45128 if (temp9)
45129 delete arg9;
45130 }
45131 return NULL;
45132}
45133
45134
45135SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45136 PyObject *resultobj = 0;
45137 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45138 wxFont result;
45139 void *argp1 = 0 ;
45140 int res1 = 0 ;
45141 PyObject *swig_obj[1] ;
45142
45143 if (!args) SWIG_fail;
45144 swig_obj[0] = args;
45145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45146 if (!SWIG_IsOK(res1)) {
45147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45148 }
45149 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45150 {
45151 PyThreadState* __tstate = wxPyBeginAllowThreads();
45152 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45153 wxPyEndAllowThreads(__tstate);
45154 if (PyErr_Occurred()) SWIG_fail;
45155 }
45156 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45157 return resultobj;
45158fail:
45159 return NULL;
45160}
45161
45162
45163SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45164 PyObject *resultobj = 0;
45165 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45166 wxFont *arg2 = 0 ;
45167 void *argp1 = 0 ;
45168 int res1 = 0 ;
45169 void *argp2 = 0 ;
45170 int res2 = 0 ;
45171 PyObject * obj0 = 0 ;
45172 PyObject * obj1 = 0 ;
45173 char * kwnames[] = {
45174 (char *) "self",(char *) "f", NULL
45175 };
45176
45177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45179 if (!SWIG_IsOK(res1)) {
45180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45181 }
45182 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45183 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45184 if (!SWIG_IsOK(res2)) {
45185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45186 }
45187 if (!argp2) {
45188 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45189 }
45190 arg2 = reinterpret_cast< wxFont * >(argp2);
45191 {
45192 PyThreadState* __tstate = wxPyBeginAllowThreads();
45193 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45194 wxPyEndAllowThreads(__tstate);
45195 if (PyErr_Occurred()) SWIG_fail;
45196 }
45197 resultobj = SWIG_Py_Void();
45198 return resultobj;
45199fail:
45200 return NULL;
45201}
45202
45203
45204SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45205 PyObject *resultobj = 0;
45206 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45207 unsigned int arg2 ;
45208 void *argp1 = 0 ;
45209 int res1 = 0 ;
45210 unsigned int val2 ;
45211 int ecode2 = 0 ;
45212 PyObject * obj0 = 0 ;
45213 PyObject * obj1 = 0 ;
45214 char * kwnames[] = {
45215 (char *) "self",(char *) "max", NULL
45216 };
45217
45218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45220 if (!SWIG_IsOK(res1)) {
45221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45222 }
45223 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45224 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45225 if (!SWIG_IsOK(ecode2)) {
45226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45227 }
45228 arg2 = static_cast< unsigned int >(val2);
45229 {
45230 PyThreadState* __tstate = wxPyBeginAllowThreads();
45231 (arg1)->SetMaxPointSize(arg2);
45232 wxPyEndAllowThreads(__tstate);
45233 if (PyErr_Occurred()) SWIG_fail;
45234 }
45235 resultobj = SWIG_Py_Void();
45236 return resultobj;
45237fail:
45238 return NULL;
45239}
45240
45241
45242SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45243 PyObject *resultobj = 0;
45244 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45245 unsigned int result;
45246 void *argp1 = 0 ;
45247 int res1 = 0 ;
45248 PyObject *swig_obj[1] ;
45249
45250 if (!args) SWIG_fail;
45251 swig_obj[0] = args;
45252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45253 if (!SWIG_IsOK(res1)) {
45254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45255 }
45256 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45257 {
45258 PyThreadState* __tstate = wxPyBeginAllowThreads();
45259 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45260 wxPyEndAllowThreads(__tstate);
45261 if (PyErr_Occurred()) SWIG_fail;
45262 }
45263 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45264 return resultobj;
45265fail:
45266 return NULL;
45267}
45268
45269
45270SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45271 PyObject *obj;
45272 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45273 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45274 return SWIG_Py_Void();
45275}
45276
45277SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45278 return SWIG_Python_InitShadowInstance(args);
45279}
45280
45281SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45282 PyObject *resultobj = 0;
45283 wxObject *arg1 = (wxObject *) 0 ;
45284 int arg2 ;
45285 wxFont *arg3 = 0 ;
45286 wxFontPickerEvent *result = 0 ;
45287 void *argp1 = 0 ;
45288 int res1 = 0 ;
45289 int val2 ;
45290 int ecode2 = 0 ;
45291 void *argp3 = 0 ;
45292 int res3 = 0 ;
45293 PyObject * obj0 = 0 ;
45294 PyObject * obj1 = 0 ;
45295 PyObject * obj2 = 0 ;
45296 char * kwnames[] = {
45297 (char *) "generator",(char *) "id",(char *) "f", NULL
45298 };
45299
45300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45302 if (!SWIG_IsOK(res1)) {
45303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45304 }
45305 arg1 = reinterpret_cast< wxObject * >(argp1);
45306 ecode2 = SWIG_AsVal_int(obj1, &val2);
45307 if (!SWIG_IsOK(ecode2)) {
45308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45309 }
45310 arg2 = static_cast< int >(val2);
45311 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45312 if (!SWIG_IsOK(res3)) {
45313 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45314 }
45315 if (!argp3) {
45316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45317 }
45318 arg3 = reinterpret_cast< wxFont * >(argp3);
45319 {
45320 PyThreadState* __tstate = wxPyBeginAllowThreads();
45321 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45322 wxPyEndAllowThreads(__tstate);
45323 if (PyErr_Occurred()) SWIG_fail;
45324 }
45325 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45326 return resultobj;
45327fail:
45328 return NULL;
45329}
45330
45331
45332SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45333 PyObject *resultobj = 0;
45334 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45335 wxFont result;
45336 void *argp1 = 0 ;
45337 int res1 = 0 ;
45338 PyObject *swig_obj[1] ;
45339
45340 if (!args) SWIG_fail;
45341 swig_obj[0] = args;
45342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45343 if (!SWIG_IsOK(res1)) {
45344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45345 }
45346 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45347 {
45348 PyThreadState* __tstate = wxPyBeginAllowThreads();
45349 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45350 wxPyEndAllowThreads(__tstate);
45351 if (PyErr_Occurred()) SWIG_fail;
45352 }
45353 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45354 return resultobj;
45355fail:
45356 return NULL;
45357}
45358
45359
45360SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45361 PyObject *resultobj = 0;
45362 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45363 wxFont *arg2 = 0 ;
45364 void *argp1 = 0 ;
45365 int res1 = 0 ;
45366 void *argp2 = 0 ;
45367 int res2 = 0 ;
45368 PyObject * obj0 = 0 ;
45369 PyObject * obj1 = 0 ;
45370 char * kwnames[] = {
45371 (char *) "self",(char *) "c", NULL
45372 };
45373
45374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45376 if (!SWIG_IsOK(res1)) {
45377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45378 }
45379 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45380 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45381 if (!SWIG_IsOK(res2)) {
45382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45383 }
45384 if (!argp2) {
45385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45386 }
45387 arg2 = reinterpret_cast< wxFont * >(argp2);
45388 {
45389 PyThreadState* __tstate = wxPyBeginAllowThreads();
45390 (arg1)->SetFont((wxFont const &)*arg2);
45391 wxPyEndAllowThreads(__tstate);
45392 if (PyErr_Occurred()) SWIG_fail;
45393 }
45394 resultobj = SWIG_Py_Void();
45395 return resultobj;
45396fail:
45397 return NULL;
45398}
45399
45400
45401SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45402 PyObject *obj;
45403 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45404 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45405 return SWIG_Py_Void();
45406}
45407
45408SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45409 return SWIG_Python_InitShadowInstance(args);
45410}
45411
5172800e
RD
45412SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45413 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45414 return 1;
45415}
45416
45417
45418SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45419 PyObject *pyobj = 0;
45420
45421 {
45422#if wxUSE_UNICODE
45423 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45424#else
45425 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45426#endif
45427 }
45428 return pyobj;
45429}
45430
45431
45432SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45433 PyObject *resultobj = 0;
45434 wxWindow *arg1 = (wxWindow *) 0 ;
45435 int arg2 = (int) -1 ;
45436 wxString const &arg3_defvalue = wxPyEmptyString ;
45437 wxString *arg3 = (wxString *) &arg3_defvalue ;
45438 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45439 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45440 wxSize const &arg5_defvalue = wxDefaultSize ;
45441 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45442 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45443 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45444 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45445 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45446 wxString *arg8 = (wxString *) &arg8_defvalue ;
45447 wxCollapsiblePane *result = 0 ;
45448 void *argp1 = 0 ;
45449 int res1 = 0 ;
45450 int val2 ;
45451 int ecode2 = 0 ;
45452 bool temp3 = false ;
45453 wxPoint temp4 ;
45454 wxSize temp5 ;
45455 long val6 ;
45456 int ecode6 = 0 ;
45457 void *argp7 = 0 ;
45458 int res7 = 0 ;
45459 bool temp8 = false ;
45460 PyObject * obj0 = 0 ;
45461 PyObject * obj1 = 0 ;
45462 PyObject * obj2 = 0 ;
45463 PyObject * obj3 = 0 ;
45464 PyObject * obj4 = 0 ;
45465 PyObject * obj5 = 0 ;
45466 PyObject * obj6 = 0 ;
45467 PyObject * obj7 = 0 ;
45468 char * kwnames[] = {
45469 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45470 };
45471
45472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45474 if (!SWIG_IsOK(res1)) {
45475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45476 }
45477 arg1 = reinterpret_cast< wxWindow * >(argp1);
45478 if (obj1) {
45479 ecode2 = SWIG_AsVal_int(obj1, &val2);
45480 if (!SWIG_IsOK(ecode2)) {
45481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45482 }
45483 arg2 = static_cast< int >(val2);
45484 }
45485 if (obj2) {
45486 {
45487 arg3 = wxString_in_helper(obj2);
45488 if (arg3 == NULL) SWIG_fail;
45489 temp3 = true;
45490 }
45491 }
45492 if (obj3) {
45493 {
45494 arg4 = &temp4;
45495 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45496 }
45497 }
45498 if (obj4) {
45499 {
45500 arg5 = &temp5;
45501 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45502 }
45503 }
45504 if (obj5) {
45505 ecode6 = SWIG_AsVal_long(obj5, &val6);
45506 if (!SWIG_IsOK(ecode6)) {
45507 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45508 }
45509 arg6 = static_cast< long >(val6);
45510 }
45511 if (obj6) {
45512 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45513 if (!SWIG_IsOK(res7)) {
45514 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45515 }
45516 if (!argp7) {
45517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45518 }
45519 arg7 = reinterpret_cast< wxValidator * >(argp7);
45520 }
45521 if (obj7) {
45522 {
45523 arg8 = wxString_in_helper(obj7);
45524 if (arg8 == NULL) SWIG_fail;
45525 temp8 = true;
45526 }
45527 }
45528 {
45529 if (!wxPyCheckForApp()) SWIG_fail;
45530 PyThreadState* __tstate = wxPyBeginAllowThreads();
45531 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45532 wxPyEndAllowThreads(__tstate);
45533 if (PyErr_Occurred()) SWIG_fail;
45534 }
45535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45536 {
45537 if (temp3)
45538 delete arg3;
45539 }
45540 {
45541 if (temp8)
45542 delete arg8;
45543 }
45544 return resultobj;
45545fail:
45546 {
45547 if (temp3)
45548 delete arg3;
45549 }
45550 {
45551 if (temp8)
45552 delete arg8;
45553 }
45554 return NULL;
45555}
45556
45557
45558SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45559 PyObject *resultobj = 0;
45560 wxCollapsiblePane *result = 0 ;
45561
45562 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45563 {
45564 if (!wxPyCheckForApp()) SWIG_fail;
45565 PyThreadState* __tstate = wxPyBeginAllowThreads();
45566 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45567 wxPyEndAllowThreads(__tstate);
45568 if (PyErr_Occurred()) SWIG_fail;
45569 }
45570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45571 return resultobj;
45572fail:
45573 return NULL;
45574}
45575
45576
45577SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45578 PyObject *resultobj = 0;
45579 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45580 wxWindow *arg2 = (wxWindow *) 0 ;
45581 int arg3 = (int) -1 ;
45582 wxString const &arg4_defvalue = wxPyEmptyString ;
45583 wxString *arg4 = (wxString *) &arg4_defvalue ;
45584 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45585 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45586 wxSize const &arg6_defvalue = wxDefaultSize ;
45587 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45588 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45589 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45590 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45591 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45592 wxString *arg9 = (wxString *) &arg9_defvalue ;
45593 bool result;
45594 void *argp1 = 0 ;
45595 int res1 = 0 ;
45596 void *argp2 = 0 ;
45597 int res2 = 0 ;
45598 int val3 ;
45599 int ecode3 = 0 ;
45600 bool temp4 = false ;
45601 wxPoint temp5 ;
45602 wxSize temp6 ;
45603 long val7 ;
45604 int ecode7 = 0 ;
45605 void *argp8 = 0 ;
45606 int res8 = 0 ;
45607 bool temp9 = false ;
45608 PyObject * obj0 = 0 ;
45609 PyObject * obj1 = 0 ;
45610 PyObject * obj2 = 0 ;
45611 PyObject * obj3 = 0 ;
45612 PyObject * obj4 = 0 ;
45613 PyObject * obj5 = 0 ;
45614 PyObject * obj6 = 0 ;
45615 PyObject * obj7 = 0 ;
45616 PyObject * obj8 = 0 ;
45617 char * kwnames[] = {
45618 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45619 };
45620
45621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45623 if (!SWIG_IsOK(res1)) {
45624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45625 }
45626 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45627 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45628 if (!SWIG_IsOK(res2)) {
45629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45630 }
45631 arg2 = reinterpret_cast< wxWindow * >(argp2);
45632 if (obj2) {
45633 ecode3 = SWIG_AsVal_int(obj2, &val3);
45634 if (!SWIG_IsOK(ecode3)) {
45635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
45636 }
45637 arg3 = static_cast< int >(val3);
45638 }
45639 if (obj3) {
45640 {
45641 arg4 = wxString_in_helper(obj3);
45642 if (arg4 == NULL) SWIG_fail;
45643 temp4 = true;
45644 }
45645 }
45646 if (obj4) {
45647 {
45648 arg5 = &temp5;
45649 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45650 }
45651 }
45652 if (obj5) {
45653 {
45654 arg6 = &temp6;
45655 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45656 }
45657 }
45658 if (obj6) {
45659 ecode7 = SWIG_AsVal_long(obj6, &val7);
45660 if (!SWIG_IsOK(ecode7)) {
45661 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
45662 }
45663 arg7 = static_cast< long >(val7);
45664 }
45665 if (obj7) {
45666 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45667 if (!SWIG_IsOK(res8)) {
45668 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45669 }
45670 if (!argp8) {
45671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45672 }
45673 arg8 = reinterpret_cast< wxValidator * >(argp8);
45674 }
45675 if (obj8) {
45676 {
45677 arg9 = wxString_in_helper(obj8);
45678 if (arg9 == NULL) SWIG_fail;
45679 temp9 = true;
45680 }
45681 }
45682 {
45683 PyThreadState* __tstate = wxPyBeginAllowThreads();
45684 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45685 wxPyEndAllowThreads(__tstate);
45686 if (PyErr_Occurred()) SWIG_fail;
45687 }
45688 {
45689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45690 }
45691 {
45692 if (temp4)
45693 delete arg4;
45694 }
45695 {
45696 if (temp9)
45697 delete arg9;
45698 }
45699 return resultobj;
45700fail:
45701 {
45702 if (temp4)
45703 delete arg4;
45704 }
45705 {
45706 if (temp9)
45707 delete arg9;
45708 }
45709 return NULL;
45710}
45711
45712
45713SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45714 PyObject *resultobj = 0;
45715 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45716 bool arg2 = (bool) true ;
45717 void *argp1 = 0 ;
45718 int res1 = 0 ;
45719 bool val2 ;
45720 int ecode2 = 0 ;
45721 PyObject * obj0 = 0 ;
45722 PyObject * obj1 = 0 ;
45723 char * kwnames[] = {
45724 (char *) "self",(char *) "collapse", NULL
45725 };
45726
45727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
45728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45729 if (!SWIG_IsOK(res1)) {
45730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45731 }
45732 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45733 if (obj1) {
45734 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45735 if (!SWIG_IsOK(ecode2)) {
45736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
45737 }
45738 arg2 = static_cast< bool >(val2);
45739 }
45740 {
45741 PyThreadState* __tstate = wxPyBeginAllowThreads();
45742 (arg1)->Collapse(arg2);
45743 wxPyEndAllowThreads(__tstate);
45744 if (PyErr_Occurred()) SWIG_fail;
45745 }
45746 resultobj = SWIG_Py_Void();
45747 return resultobj;
45748fail:
45749 return NULL;
45750}
45751
45752
45753SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45754 PyObject *resultobj = 0;
45755 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45756 void *argp1 = 0 ;
45757 int res1 = 0 ;
45758 PyObject *swig_obj[1] ;
45759
45760 if (!args) SWIG_fail;
45761 swig_obj[0] = args;
45762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45763 if (!SWIG_IsOK(res1)) {
45764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45765 }
45766 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45767 {
45768 PyThreadState* __tstate = wxPyBeginAllowThreads();
45769 (arg1)->Expand();
45770 wxPyEndAllowThreads(__tstate);
45771 if (PyErr_Occurred()) SWIG_fail;
45772 }
45773 resultobj = SWIG_Py_Void();
45774 return resultobj;
45775fail:
45776 return NULL;
45777}
45778
45779
45780SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45781 PyObject *resultobj = 0;
45782 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45783 bool result;
45784 void *argp1 = 0 ;
45785 int res1 = 0 ;
45786 PyObject *swig_obj[1] ;
45787
45788 if (!args) SWIG_fail;
45789 swig_obj[0] = args;
45790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45791 if (!SWIG_IsOK(res1)) {
45792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45793 }
45794 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45795 {
45796 PyThreadState* __tstate = wxPyBeginAllowThreads();
45797 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
45798 wxPyEndAllowThreads(__tstate);
45799 if (PyErr_Occurred()) SWIG_fail;
45800 }
45801 {
45802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45803 }
45804 return resultobj;
45805fail:
45806 return NULL;
45807}
45808
45809
45810SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45811 PyObject *resultobj = 0;
45812 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45813 bool result;
45814 void *argp1 = 0 ;
45815 int res1 = 0 ;
45816 PyObject *swig_obj[1] ;
45817
45818 if (!args) SWIG_fail;
45819 swig_obj[0] = args;
45820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45821 if (!SWIG_IsOK(res1)) {
45822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45823 }
45824 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45825 {
45826 PyThreadState* __tstate = wxPyBeginAllowThreads();
45827 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
45828 wxPyEndAllowThreads(__tstate);
45829 if (PyErr_Occurred()) SWIG_fail;
45830 }
45831 {
45832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45833 }
45834 return resultobj;
45835fail:
45836 return NULL;
45837}
45838
45839
45840SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45841 PyObject *resultobj = 0;
45842 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45843 wxWindow *result = 0 ;
45844 void *argp1 = 0 ;
45845 int res1 = 0 ;
45846 PyObject *swig_obj[1] ;
45847
45848 if (!args) SWIG_fail;
45849 swig_obj[0] = args;
45850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45851 if (!SWIG_IsOK(res1)) {
45852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45853 }
45854 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45855 {
45856 PyThreadState* __tstate = wxPyBeginAllowThreads();
45857 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
45858 wxPyEndAllowThreads(__tstate);
45859 if (PyErr_Occurred()) SWIG_fail;
45860 }
45861 {
45862 resultobj = wxPyMake_wxObject(result, 0);
45863 }
45864 return resultobj;
45865fail:
45866 return NULL;
45867}
45868
45869
45870SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45871 PyObject *obj;
45872 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45873 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
45874 return SWIG_Py_Void();
45875}
45876
45877SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45878 return SWIG_Python_InitShadowInstance(args);
45879}
45880
45881SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45882 PyObject *resultobj = 0;
45883 wxObject *arg1 = (wxObject *) 0 ;
45884 int arg2 ;
45885 bool arg3 ;
45886 wxCollapsiblePaneEvent *result = 0 ;
45887 void *argp1 = 0 ;
45888 int res1 = 0 ;
45889 int val2 ;
45890 int ecode2 = 0 ;
45891 bool val3 ;
45892 int ecode3 = 0 ;
45893 PyObject * obj0 = 0 ;
45894 PyObject * obj1 = 0 ;
45895 PyObject * obj2 = 0 ;
45896 char * kwnames[] = {
45897 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
45898 };
45899
45900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45902 if (!SWIG_IsOK(res1)) {
45903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45904 }
45905 arg1 = reinterpret_cast< wxObject * >(argp1);
45906 ecode2 = SWIG_AsVal_int(obj1, &val2);
45907 if (!SWIG_IsOK(ecode2)) {
45908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
45909 }
45910 arg2 = static_cast< int >(val2);
45911 ecode3 = SWIG_AsVal_bool(obj2, &val3);
45912 if (!SWIG_IsOK(ecode3)) {
45913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
45914 }
45915 arg3 = static_cast< bool >(val3);
45916 {
45917 PyThreadState* __tstate = wxPyBeginAllowThreads();
45918 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
45919 wxPyEndAllowThreads(__tstate);
45920 if (PyErr_Occurred()) SWIG_fail;
45921 }
45922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
45923 return resultobj;
45924fail:
45925 return NULL;
45926}
45927
45928
45929SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45930 PyObject *resultobj = 0;
45931 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45932 bool result;
45933 void *argp1 = 0 ;
45934 int res1 = 0 ;
45935 PyObject *swig_obj[1] ;
45936
45937 if (!args) SWIG_fail;
45938 swig_obj[0] = args;
45939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45940 if (!SWIG_IsOK(res1)) {
45941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
45942 }
45943 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45944 {
45945 PyThreadState* __tstate = wxPyBeginAllowThreads();
45946 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
45947 wxPyEndAllowThreads(__tstate);
45948 if (PyErr_Occurred()) SWIG_fail;
45949 }
45950 {
45951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45952 }
45953 return resultobj;
45954fail:
45955 return NULL;
45956}
45957
45958
45959SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45960 PyObject *resultobj = 0;
45961 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45962 bool arg2 ;
45963 void *argp1 = 0 ;
45964 int res1 = 0 ;
45965 bool val2 ;
45966 int ecode2 = 0 ;
45967 PyObject * obj0 = 0 ;
45968 PyObject * obj1 = 0 ;
45969 char * kwnames[] = {
45970 (char *) "self",(char *) "c", NULL
45971 };
45972
45973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
45974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45975 if (!SWIG_IsOK(res1)) {
45976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
45977 }
45978 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45979 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45980 if (!SWIG_IsOK(ecode2)) {
45981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
45982 }
45983 arg2 = static_cast< bool >(val2);
45984 {
45985 PyThreadState* __tstate = wxPyBeginAllowThreads();
45986 (arg1)->SetCollapsed(arg2);
45987 wxPyEndAllowThreads(__tstate);
45988 if (PyErr_Occurred()) SWIG_fail;
45989 }
45990 resultobj = SWIG_Py_Void();
45991 return resultobj;
45992fail:
45993 return NULL;
45994}
45995
45996
45997SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45998 PyObject *obj;
45999 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46000 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
46001 return SWIG_Py_Void();
46002}
46003
46004SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46005 return SWIG_Python_InitShadowInstance(args);
46006}
46007
b850e7f3
RD
46008static PyMethodDef SwigMethods[] = {
46009 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
46010 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
46011 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46012 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
46013 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
46014 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46015 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
46016 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
46017 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
46019 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46020 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
46021 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
46022 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
46023 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
46024 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
46025 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
46027 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46028 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46029 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46031 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
46032 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
46033 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
46034 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
46035 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
46037 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
46039 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
46040 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46041 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
46042 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
46043 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
46044 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
46045 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
46047 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
46048 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
46049 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
46050 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46051 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
46052 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46053 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
46054 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
46055 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
46057 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46058 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
46059 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46060 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
46061 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
46062 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
46063 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46064 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
46065 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
46066 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46067 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
46068 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
46069 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
46070 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46071 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
46072 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46073 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
46074 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46075 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
46076 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
46077 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
46078 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
46079 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
46080 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
46081 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
46082 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
46083 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
46084 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46085 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
46086 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
46087 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
46088 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
46089 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46090 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46091 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
46092 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46093 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
ae5bc7f3 46094 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
b850e7f3
RD
46095 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
46096 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
46098 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
46099 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
46100 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46101 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
46102 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
46103 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
46104 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
46105 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46106 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46107 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
46108 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
46109 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
46110 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
46111 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46112 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
46113 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
46114 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46115 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
46116 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
46117 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
46118 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
46119 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46120 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46122 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
46123 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
46124 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46125 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
46126 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46127 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
46128 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46129 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46130 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46131 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
46132 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
46133 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46134 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
46135 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46136 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46137 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
46138 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46139 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46140 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46141 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46142 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
46143 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
46144 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46145 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
46146 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
46147 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
46148 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46149 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46150 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
46151 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46152 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46153 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46154 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46155 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46156 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
46157 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
46158 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46159 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
46160 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46161 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46162 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46163 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
46164 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
46165 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
46166 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46167 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
46168 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
46169 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
46170 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46171 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46172 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46173 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
46174 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
46175 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46176 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46177 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
46178 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
46179 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
46180 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
46181 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
46182 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
46183 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
46184 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
46185 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46186 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
46187 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
46188 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
46189 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
46190 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
46191 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
46192 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
46193 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
46194 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
46195 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
46196 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
46197 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
46198 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
46199 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46200 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
46201 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46202 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
46203 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
46204 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
46205 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46206 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46207 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
46208 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
46209 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
46210 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
46211 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
46212 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
46213 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
46214 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
46215 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
46216 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
46217 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46218 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46219 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
46220 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
46221 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
46222 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 46223 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46224 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
46225 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
46226 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
46227 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
46228 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46229 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46230 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46231 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
46232 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46233 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
46234 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46235 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46236 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
46237 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
46238 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
46239 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
46240 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
46241 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
46242 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
46243 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
46244 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
46245 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
46246 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
46247 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46248 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
46249 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
46250 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
46251 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46252 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
46253 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 46254 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
b850e7f3
RD
46255 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
46256 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46257 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46258 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
46259 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
46260 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46261 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
46262 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
46263 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
46264 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
46265 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
46266 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
46267 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
46268 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46269 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
46270 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
46271 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
46272 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
46273 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
46274 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46275 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46276 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
46277 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
46278 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
46279 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
46280 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46281 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
46282 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
46283 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
46284 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46285 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46286 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46287 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46288 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
46289 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46290 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
46291 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
46292 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46293 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
46294 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46295 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
46296 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46297 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
46298 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46299 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
46300 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
46301 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46302 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46303 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
46304 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
46305 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46306 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
46307 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46308 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
46309 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
46310 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
46311 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
46312 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46313 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46314 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
46315 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
46316 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46317 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
46318 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
46319 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46320 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
46321 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
46322 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
46323 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46324 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
46325 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
46326 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
46327 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46328 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46329 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46330 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46331 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46332 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46333 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
46334 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
46335 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
46336 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
46337 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46338 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
46339 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46340 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46341 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
46342 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
46343 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
46344 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
46345 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46346 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
46347 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46348 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46349 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
46350 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
46351 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46352 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46353 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
46354 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46355 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
46356 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
46357 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
46358 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
46359 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
46360 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
46361 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
46362 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
46363 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
46364 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
46365 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
46366 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46367 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46368 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
46369 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
46370 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
46371 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
46372 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46373 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46374 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
46375 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46376 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
46377 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
46378 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
46379 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
46380 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
46381 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
46382 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46383 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46384 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46385 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46386 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
46387 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46388 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46389 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46390 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
46391 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
46392 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 46393 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
e9d6f3a4
RD
46394 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46395 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
0085ce49
RD
46396 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
46397 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 46398 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
0085ce49
RD
46399 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
46400 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
46401 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
46402 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
46403 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
46404 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 46405 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 46406 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46407 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46408 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46409 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
46410 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46411 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
46412 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46413 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
46414 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46415 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
46416 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
46417 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
46418 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
46419 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46420 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
46421 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
46422 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46423 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
46424 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
46425 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46426 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46427 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
46428 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
46429 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46430 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
46431 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
46432 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
46433 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
46434 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46435 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
46436 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
46437 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
46438 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46439 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
46440 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
46441 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
46442 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
46443 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46444 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
46445 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
46446 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
46447 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46448 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
46449 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
46450 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
46451 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
46452 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46453 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
46454 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
46455 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46456 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
46457 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
46458 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
46459 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
46460 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
46461 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
46462 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46463 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
46464 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
46465 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
46466 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
46467 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46468 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
46469 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
46470 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
46471 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
46472 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46473 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
46474 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
46475 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
46476 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
46477 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
46478 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
46479 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
46480 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
46481 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
46482 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
46483 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
46484 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
46485 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
46486 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
46487 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
46488 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
46489 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
46490 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
46491 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
46492 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
46493 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
46494 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
46495 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46496 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46497 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46498 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46499 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46500 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
46501 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
46502 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
46503 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46504 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
46505 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
46506 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
46507 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
46508 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
46509 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
46510 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
46511 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
46512 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
46513 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
46514 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
46515 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
46516 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
46517 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
46518 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
46519 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
46520 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
46521 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
46522 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46523 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46524 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
46525 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
46526 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46527 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46528 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46529 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46530 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46531 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
46532 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46533 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
46534 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
46535 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
46536 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
46537 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
46538 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
46539 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
46540 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
46541 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
46542 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
46543 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
46544 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
46545 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
46546 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46547 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
46548 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
46549 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
46550 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
46551 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
46552 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
46553 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46554 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46555 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
46556 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
46557 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46558 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
46559 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46560 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46561 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46562 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
46563 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
46564 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
46565 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
46566 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
46567 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
46568 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
46569 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
46570 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
46571 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
46572 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
46573 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
46574 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
46575 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
46576 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
46577 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46578 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46579 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
46580 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
46581 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
46582 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
46583 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46584 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46585 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
46586 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46587 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46588 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46589 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
46590 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
46591 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
46592 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
46593 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
46594 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
46595 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
46596 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
46597 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
46598 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
46599 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
46600 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
46601 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
46602 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
46603 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
46604 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
46605 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
46606 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
46607 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
46608 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
46609 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
46610 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
46611 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
46612 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
46613 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
46614 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
46615 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
46616 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
46617 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
46618 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
46619 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
46620 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
46621 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
46622 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
46623 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
46624 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
46625 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46626 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
46627 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
46628 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
46629 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
46630 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
46631 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
46632 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
46633 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
46634 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
46635 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
46636 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
46637 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
46638 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
46639 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
46640 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
46641 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
46642 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
46643 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
46644 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
46645 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
46646 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
46647 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
46648 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
46649 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
46650 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46651 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
46652 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
46653 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46654 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
46655 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46656 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46657 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46658 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46659 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46660 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46661 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
46662 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
46663 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
46664 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46665 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46666 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46667 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46668 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46669 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46670 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46671 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46672 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46673 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46674 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46675 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46676 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
46677 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46678 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
46679 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
46680 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
46681 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46682 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
46683 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
46684 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46685 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
46686 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46687 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46688 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46689 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46690 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46691 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
46692 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
46693 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
46694 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
46695 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
46696 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
46697 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
46698 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46699 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
46700 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
46701 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46702 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46703 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
46704 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46705 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
46706 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46707 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46708 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46709 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46710 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
46711 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46712 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
46713 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46714 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
46715 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
46716 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46717 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46718 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46719 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46720 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46721 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46722 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
46723 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
46724 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46725 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
46726 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
46727 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
46728 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
46729 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46730 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46731 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
46732 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
46733 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46734 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
46735 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46736 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46737 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46738 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
46739 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
46740 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
46741 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
46742 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
46743 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46744 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46745 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
46746 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
46747 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
46748 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
46749 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46750 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
46751 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
46752 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46753 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
46754 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46755 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
46756 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
46757 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 46758 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
0085ce49
RD
46759 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
46760 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46761 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
46762 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
46763 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
46764 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46765 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
46766 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
46767 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46768 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
46769 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46770 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
46771 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46772 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46773 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
46774 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
46775 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
46776 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46777 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
46778 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46779 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46780 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
46781 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
46782 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46783 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
46784 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46785 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
46786 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
46787 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46788 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46789 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46790 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46791 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46792 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46793 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46794 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46795 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46796 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46797 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46798 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46799 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46800 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46801 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46802 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46803 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
46804 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
46805 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46806 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46807 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46808 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46809 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46810 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46811 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46812 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
46813 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
46814 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
46815 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
46816 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
46817 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
46818 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
46819 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
46820 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
46821 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46822 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46823 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
46824 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46825 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46826 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
46827 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46828 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46829 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
46830 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46831 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46832 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46833 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
46834 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
453fb36b
RD
46835 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46836 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
0085ce49
RD
46837 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46838 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
46839 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46840 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
46841 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46842 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
46843 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46844 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46845 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46846 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46847 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46848 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46849 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46850 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46851 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46852 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
46853 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46854 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
0085ce49
RD
46855 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46856 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46857 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46858 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46859 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46860 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46861 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46862 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46863 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46864 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46865 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46866 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46867 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46868 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46869 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46870 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46871 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46872 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46873 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46874 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46875 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46876 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46877 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46878 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46879 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46880 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46881 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46882 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46883 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46884 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46885 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46886 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46887 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46888 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46889 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46890 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46891 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46892 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46893 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46894 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46895 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46896 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46897 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46898 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46899 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46900 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46901 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46902 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46903 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46904 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46905 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46906 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46907 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46908 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46909 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46910 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
46911 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46912 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46913 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46914 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46915 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46916 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46917 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46918 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46919 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46920 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46921 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46922 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46923 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 46924 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
0085ce49
RD
46925 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46926 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46927 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46928 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 46929 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46930 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46931 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46932 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46933 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46934 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46935 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46936 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46937 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46938 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46939 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46940 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46941 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46942 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46943 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46944 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46945 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46946 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46947 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46948 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46949 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46950 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46951 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46952 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46953 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46954 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46955 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46956 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46957 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46958 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46959 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46960 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46961 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46962 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46963 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46964 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46965 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46966 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
46967 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46968 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46969 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46970 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46971 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46972 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46973 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46974 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46975 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46976 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46977 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46978 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46979 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46980 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46981 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46982 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46983 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46984 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46985 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46986 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
46987 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46988 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46989 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46990 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46991 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
10044bf1
RD
46992 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46993 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
46994 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46995 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46996 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46997 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46998 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46999 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
47000 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
47001 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
47002 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47003 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
47004 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47005 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
47006 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47007 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
47008 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
47009 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47010 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
47011 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47012 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
47013 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
47014 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47015 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
47016 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47017 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
47018 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
47019 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47020 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
47021 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
47022 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
47023 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47024 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
47025 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47026 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
47027 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
47028 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47029 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
47030 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
47031 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
47032 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47033 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
47034 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47035 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
47036 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
47037 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47038 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
47039 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47040 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
47041 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
47042 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
47043 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
47044 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
47045 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
47046 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47047 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
47048 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47049 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
47050 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
5172800e
RD
47051 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
47052 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
47053 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47054 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47055 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
47056 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
47057 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
47058 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
47059 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
47060 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
47061 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47062 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
47063 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
47064 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
47065 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
0085ce49
RD
47066 { NULL, NULL, 0, NULL }
47067};
47068
47069
47070/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
47071
47072static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
47073 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
47074}
47075static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
47076 return (void *)((wxEvent *) ((wxMenuEvent *) x));
47077}
47078static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
47079 return (void *)((wxEvent *) ((wxCloseEvent *) x));
47080}
47081static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
47082 return (void *)((wxEvent *) ((wxMouseEvent *) x));
47083}
47084static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
47085 return (void *)((wxEvent *) ((wxEraseEvent *) x));
47086}
47087static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
47088 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47089}
47090static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
47091 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47092}
47093static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
47094 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
47095}
b850e7f3
RD
47096static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
47097 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
47098}
47099static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
47100 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47101}
47102static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
47103 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
47104}
0085ce49
RD
47105static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
47106 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
47107}
47108static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
47109 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
47110}
47111static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
47112 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
47113}
0085ce49
RD
47114static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
47115 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
47116}
34e0a3bb
RD
47117static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
47118 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
47119}
2131d850
RD
47120static void *_p_wxPyEventTo_p_wxEvent(void *x) {
47121 return (void *)((wxEvent *) ((wxPyEvent *) x));
47122}
0085ce49
RD
47123static void *_p_wxListEventTo_p_wxEvent(void *x) {
47124 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47125}
47126static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
47127 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47128}
47129static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
47130 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47131}
47132static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
47133 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47134}
47135static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
47136 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47137}
47138static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
47139 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47140}
47141static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
47142 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
47143}
47144static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
47145 return (void *)((wxEvent *) ((wxIdleEvent *) x));
47146}
47147static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
47148 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
47149}
47150static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
47151 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
47152}
47153static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
47154 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
47155}
47156static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
47157 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
47158}
47159static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
47160 return (void *)((wxEvent *) ((wxActivateEvent *) x));
47161}
47162static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
47163 return (void *)((wxEvent *) ((wxSizeEvent *) x));
47164}
47165static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
47166 return (void *)((wxEvent *) ((wxMoveEvent *) x));
47167}
47168static void *_p_wxDateEventTo_p_wxEvent(void *x) {
47169 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
47170}
5172800e
RD
47171static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
47172 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47173}
0085ce49
RD
47174static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
47175 return (void *)((wxEvent *) ((wxPaintEvent *) x));
47176}
47177static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
47178 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
47179}
34e0a3bb
RD
47180static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
47181 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
47182}
0085ce49
RD
47183static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
47184 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
47185}
47186static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
47187 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
47188}
47189static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
47190 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
47191}
47192static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
47193 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47194}
47195static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
47196 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
47197}
704eda0c
RD
47198static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
47199 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
47200}
0085ce49
RD
47201static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
47202 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
47203}
47204static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
47205 return (void *)((wxEvent *) ((wxFocusEvent *) x));
47206}
47207static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
47208 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
47209}
47210static void *_p_wxShowEventTo_p_wxEvent(void *x) {
47211 return (void *)((wxEvent *) ((wxShowEvent *) x));
47212}
47213static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
47214 return (void *)((wxEvent *) ((wxCommandEvent *) x));
47215}
47216static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
47217 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
47218}
47219static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
47220 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47221}
47222static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
47223 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
47224}
47225static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
47226 return (void *)((wxEvent *) ((wxKeyEvent *) x));
47227}
47228static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
47229 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
47230}
47231static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
47232 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47233}
b850e7f3
RD
47234static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
47235 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
47236}
47237static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
47238 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
47239}
47240static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
47241 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
47242}
47243static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
47244 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
47245}
0085ce49
RD
47246static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
47247 return (void *)((wxItemContainer *) ((wxComboBox *) x));
47248}
47249static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
47250 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47251}
47252static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
47253 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
47254}
47255static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
47256 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
47257}
47258static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
47259 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
47260}
47261static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
47262 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47263}
47264static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
47265 return (void *)((wxPyListCtrl *) ((wxListView *) x));
47266}
5172800e
RD
47267static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
47268 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
47269}
0085ce49
RD
47270static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
47271 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
47272}
47273static void *_p_wxToolBarTo_p_wxControl(void *x) {
47274 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
47275}
b850e7f3
RD
47276static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
47277 return (void *)((wxControl *) ((wxPickerBase *) x));
47278}
0085ce49
RD
47279static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
47280 return (void *)((wxControl *) ((wxToggleButton *) x));
47281}
47282static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
47283 return (void *)((wxControl *) ((wxRadioButton *) x));
47284}
47285static void *_p_wxToolbookTo_p_wxControl(void *x) {
47286 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
47287}
47288static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
47289 return (void *)((wxControl *) ((wxToolBarBase *) x));
47290}
47291static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
47292 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47293}
47294static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
47295 return (void *)((wxControl *) ((wxPyListCtrl *) x));
47296}
47297static void *_p_wxComboBoxTo_p_wxControl(void *x) {
47298 return (void *)((wxControl *) ((wxComboBox *) x));
47299}
47300static void *_p_wxPyControlTo_p_wxControl(void *x) {
47301 return (void *)((wxControl *) ((wxPyControl *) x));
47302}
47303static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
47304 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
47305}
47306static void *_p_wxScrollBarTo_p_wxControl(void *x) {
47307 return (void *)((wxControl *) ((wxScrollBar *) x));
47308}
47309static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
47310 return (void *)((wxControl *) ((wxControlWithItems *) x));
47311}
47312static void *_p_wxGaugeTo_p_wxControl(void *x) {
47313 return (void *)((wxControl *) ((wxGauge *) x));
47314}
47315static void *_p_wxStaticLineTo_p_wxControl(void *x) {
47316 return (void *)((wxControl *) ((wxStaticLine *) x));
47317}
47318static void *_p_wxChoicebookTo_p_wxControl(void *x) {
47319 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
47320}
47321static void *_p_wxListbookTo_p_wxControl(void *x) {
47322 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
47323}
704eda0c
RD
47324static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
47325 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
47326}
0085ce49
RD
47327static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
47328 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
47329}
47330static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
47331 return (void *)((wxControl *) ((wxCheckBox *) x));
47332}
47333static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
47334 return (void *)((wxControl *) ((wxRadioBox *) x));
47335}
47336static void *_p_wxChoiceTo_p_wxControl(void *x) {
47337 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
47338}
47339static void *_p_wxListBoxTo_p_wxControl(void *x) {
47340 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
47341}
47342static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
47343 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47344}
47345static void *_p_wxListViewTo_p_wxControl(void *x) {
47346 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
47347}
47348static void *_p_wxNotebookTo_p_wxControl(void *x) {
47349 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
47350}
47351static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
47352 return (void *)((wxControl *) ((wxStaticBitmap *) x));
47353}
47354static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
47355 return (void *)((wxControl *) ((wxSpinCtrl *) x));
47356}
47357static void *_p_wxStaticTextTo_p_wxControl(void *x) {
47358 return (void *)((wxControl *) ((wxStaticText *) x));
47359}
47360static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
47361 return (void *)((wxControl *) ((wxStaticBox *) x));
47362}
47363static void *_p_wxSliderTo_p_wxControl(void *x) {
47364 return (void *)((wxControl *) ((wxSlider *) x));
47365}
47366static void *_p_wxTreebookTo_p_wxControl(void *x) {
47367 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
47368}
47369static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
47370 return (void *)((wxControl *) ((wxSpinButton *) x));
47371}
47372static void *_p_wxButtonTo_p_wxControl(void *x) {
47373 return (void *)((wxControl *) ((wxButton *) x));
47374}
47375static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
47376 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
47377}
47378static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
47379 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47380}
47381static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
47382 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
47383}
b850e7f3
RD
47384static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
47385 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
47386}
47387static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
47388 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
47389}
47390static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
47391 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
47392}
47393static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
47394 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
47395}
0085ce49
RD
47396static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
47397 return (void *)((wxControl *) ((wxTextCtrl *) x));
47398}
47399static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
47400 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
47401}
47402static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
47403 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
47404}
47405static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
47406 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47407}
47408static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
47409 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
47410}
47411static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
47412 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
47413}
47414static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
47415 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
47416}
47417static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
47418 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47419}
47420static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
47421 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47422}
47423static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
47424 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47425}
47426static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
47427 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47428}
47429static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
47430 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47431}
47432static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
47433 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
47434}
47435static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
47436 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
47437}
47438static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
47439 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
47440}
47441static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
47442 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
47443}
47444static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
47445 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
47446}
5172800e
RD
47447static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
47448 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
47449}
0085ce49
RD
47450static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
47451 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
47452}
47453static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
47454 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47455}
47456static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
47457 return (void *)((wxEvtHandler *) ((wxValidator *) x));
47458}
47459static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
47460 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
47461}
47462static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
47463 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47464}
b850e7f3
RD
47465static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
47466 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
47467}
0085ce49
RD
47468static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
47469 return (void *)((wxEvtHandler *) ((wxMenu *) x));
47470}
47471static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
47472 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
47473}
47474static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
47475 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
47476}
47477static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
47478 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47479}
47480static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
47481 return (void *)((wxEvtHandler *) ((wxWindow *) x));
47482}
47483static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
47484 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
47485}
47486static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
47487 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
47488}
47489static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
47490 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47491}
47492static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
47493 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47494}
47495static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
47496 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47497}
47498static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
47499 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
47500}
47501static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
47502 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
47503}
47504static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
47505 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47506}
47507static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
47508 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
47509}
47510static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
47511 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47512}
47513static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
47514 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
47515}
47516static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
47517 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
47518}
47519static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
47520 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47521}
47522static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
47523 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47524}
704eda0c
RD
47525static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
47526 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47527}
0085ce49
RD
47528static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
47529 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47530}
47531static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
47532 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
47533}
47534static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
47535 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
47536}
47537static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
47538 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47539}
47540static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
47541 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47542}
47543static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
47544 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47545}
47546static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
47547 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47548}
47549static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
47550 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47551}
47552static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
47553 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47554}
47555static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
47556 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47557}
47558static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
47559 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
47560}
47561static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
47562 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
47563}
47564static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
47565 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
47566}
47567static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
47568 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47569}
47570static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
47571 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
47572}
47573static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
47574 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
47575}
47576static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
47577 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47578}
47579static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
47580 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47581}
47582static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
47583 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47584}
b850e7f3
RD
47585static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
47586 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47587}
47588static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
47589 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47590}
47591static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
47592 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47593}
47594static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
47595 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47596}
0085ce49
RD
47597static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
47598 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47599}
47600static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
47601 return (void *)((wxListBox *) ((wxCheckListBox *) x));
47602}
47603static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
47604 return (void *)((wxButton *) ((wxBitmapButton *) x));
47605}
47606static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
47607 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
47608}
47609static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
47610 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
47611}
47612static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
47613 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
47614}
47615static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
47616 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
47617}
47618static void *_p_wxToolbookTo_p_wxObject(void *x) {
47619 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47620}
0085ce49
RD
47621static void *_p_wxSizerItemTo_p_wxObject(void *x) {
47622 return (void *)((wxObject *) ((wxSizerItem *) x));
47623}
34e0a3bb
RD
47624static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
47625 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
47626}
0085ce49
RD
47627static void *_p_wxScrollEventTo_p_wxObject(void *x) {
47628 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
47629}
47630static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
47631 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
47632}
47633static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
47634 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
47635}
47636static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
47637 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
47638}
47639static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
47640 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
47641}
47642static void *_p_wxSizerTo_p_wxObject(void *x) {
47643 return (void *)((wxObject *) ((wxSizer *) x));
47644}
47645static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
47646 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
47647}
47648static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
47649 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
47650}
47651static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
47652 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47653}
47654static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
47655 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
47656}
47657static void *_p_wxEventTo_p_wxObject(void *x) {
47658 return (void *)((wxObject *) ((wxEvent *) x));
47659}
47660static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
47661 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
47662}
47663static void *_p_wxGridSizerTo_p_wxObject(void *x) {
47664 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
47665}
47666static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
47667 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
47668}
47669static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
47670 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47671}
b850e7f3
RD
47672static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
47673 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
47674}
0085ce49
RD
47675static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
47676 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47677}
47678static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
47679 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47680}
2131d850
RD
47681static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
47682 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
47683}
0085ce49
RD
47684static void *_p_wxPaintEventTo_p_wxObject(void *x) {
47685 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
47686}
47687static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
47688 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
47689}
47690static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
47691 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
47692}
47693static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
47694 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
47695}
47696static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
47697 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47698}
47699static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
47700 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
47701}
47702static void *_p_wxStaticLineTo_p_wxObject(void *x) {
47703 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
47704}
47705static void *_p_wxControlTo_p_wxObject(void *x) {
47706 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
47707}
47708static void *_p_wxPyControlTo_p_wxObject(void *x) {
47709 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
47710}
47711static void *_p_wxGaugeTo_p_wxObject(void *x) {
47712 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
47713}
47714static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
47715 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
47716}
47717static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
47718 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
47719}
47720static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
47721 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47722}
47723static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
47724 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
47725}
b850e7f3
RD
47726static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
47727 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
47728}
47729static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
47730 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47731}
47732static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
47733 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
47734}
0085ce49
RD
47735static void *_p_wxChoiceTo_p_wxObject(void *x) {
47736 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47737}
47738static void *_p_wxFSFileTo_p_wxObject(void *x) {
47739 return (void *)((wxObject *) ((wxFSFile *) x));
47740}
47741static void *_p_wxPySizerTo_p_wxObject(void *x) {
47742 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
47743}
47744static void *_p_wxTreebookTo_p_wxObject(void *x) {
47745 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47746}
47747static void *_p_wxListViewTo_p_wxObject(void *x) {
47748 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47749}
704eda0c
RD
47750static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
47751 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
47752}
0085ce49
RD
47753static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
47754 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47755}
47756static void *_p_wxNotebookTo_p_wxObject(void *x) {
47757 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47758}
47759static void *_p_wxPyEventTo_p_wxObject(void *x) {
47760 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
47761}
47762static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
47763 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
47764}
47765static void *_p_wxChoicebookTo_p_wxObject(void *x) {
47766 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47767}
47768static void *_p_wxListbookTo_p_wxObject(void *x) {
47769 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47770}
47771static void *_p_wxShowEventTo_p_wxObject(void *x) {
47772 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
47773}
47774static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
47775 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47776}
47777static void *_p_wxSliderTo_p_wxObject(void *x) {
47778 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
47779}
47780static void *_p_wxMenuItemTo_p_wxObject(void *x) {
47781 return (void *)((wxObject *) ((wxMenuItem *) x));
47782}
47783static void *_p_wxDateEventTo_p_wxObject(void *x) {
47784 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
47785}
47786static void *_p_wxIdleEventTo_p_wxObject(void *x) {
47787 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
47788}
47789static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
47790 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
47791}
47792static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
47793 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
47794}
47795static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
47796 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
47797}
47798static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
47799 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
47800}
47801static void *_p_wxSizeEventTo_p_wxObject(void *x) {
47802 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
47803}
47804static void *_p_wxMoveEventTo_p_wxObject(void *x) {
47805 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
47806}
47807static void *_p_wxActivateEventTo_p_wxObject(void *x) {
47808 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
47809}
47810static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
47811 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
47812}
47813static void *_p_wxContextHelpTo_p_wxObject(void *x) {
47814 return (void *)((wxObject *) ((wxContextHelp *) x));
47815}
5172800e
RD
47816static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
47817 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47818}
0085ce49
RD
47819static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
47820 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47821}
47822static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
47823 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
47824}
47825static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
47826 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
47827}
47828static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
47829 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
47830}
47831static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
47832 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
47833}
47834static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
47835 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
47836}
47837static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
47838 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
47839}
47840static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
47841 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
47842}
47843static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47844 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47845}
47846static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47847 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47848}
47849static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
47850 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
47851}
47852static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47853 return (void *)((wxObject *) ((wxImageHandler *) x));
47854}
47855static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47856 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47857}
47858static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47859 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47860}
580080c5
RD
47861static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
47862 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
47863}
0085ce49
RD
47864static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47865 return (void *)((wxObject *) ((wxEvtHandler *) x));
47866}
34e0a3bb
RD
47867static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
47868 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
47869}
0085ce49
RD
47870static void *_p_wxListEventTo_p_wxObject(void *x) {
47871 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47872}
47873static void *_p_wxListBoxTo_p_wxObject(void *x) {
47874 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47875}
47876static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47877 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47878}
47879static void *_p_wxButtonTo_p_wxObject(void *x) {
47880 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47881}
47882static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47883 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47884}
47885static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47886 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47887}
47888static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47889 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47890}
0085ce49
RD
47891static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47892 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47893}
580080c5
RD
47894static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47895 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47896}
0085ce49
RD
47897static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47898 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47899}
47900static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47901 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47902}
47903static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47904 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
47905}
47906static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47907 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47908}
47909static void *_p_wxListItemTo_p_wxObject(void *x) {
47910 return (void *)((wxObject *) ((wxListItem *) x));
47911}
47912static void *_p_wxImageTo_p_wxObject(void *x) {
47913 return (void *)((wxObject *) ((wxImage *) x));
47914}
47915static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47916 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47917}
47918static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47919 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47920}
47921static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47922 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47923}
47924static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47925 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47926}
47927static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47928 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47929}
47930static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47931 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47932}
47933static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47934 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47935}
47936static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47937 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47938}
47939static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47940 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47941}
47942static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47943 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47944}
47945static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47946 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47947}
47948static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47949 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47950}
47951static void *_p_wxWindowTo_p_wxObject(void *x) {
47952 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47953}
47954static void *_p_wxMenuTo_p_wxObject(void *x) {
47955 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47956}
47957static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47958 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47959}
47960static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47961 return (void *)((wxObject *) ((wxFileSystem *) x));
47962}
5172800e
RD
47963static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
47964 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
47965}
0085ce49
RD
47966static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47967 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47968}
47969static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47970 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47971}
47972static void *_p_wxPyAppTo_p_wxObject(void *x) {
47973 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47974}
47975static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47976 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47977}
47978static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47979 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47980}
47981static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47982 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47983}
47984static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47985 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47986}
47987static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47988 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47989}
47990static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47991 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47992}
47993static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47994 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47995}
47996static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47997 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47998}
47999static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
48000 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
48001}
48002static void *_p_wxFocusEventTo_p_wxObject(void *x) {
48003 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
48004}
48005static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
48006 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
48007}
48008static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
48009 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48010}
b850e7f3
RD
48011static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
48012 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48013}
48014static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
48015 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48016}
48017static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
48018 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48019}
48020static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
48021 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48022}
0085ce49
RD
48023static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
48024 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48025}
704eda0c
RD
48026static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
48027 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48028}
0085ce49
RD
48029static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
48030 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
48031}
48032static void *_p_wxToolBarTo_p_wxObject(void *x) {
48033 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48034}
48035static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
48036 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
48037}
48038static void *_p_wxValidatorTo_p_wxObject(void *x) {
48039 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
48040}
5172800e
RD
48041static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
48042 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
48043}
0085ce49
RD
48044static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
48045 return (void *)((wxWindow *) ((wxMenuBar *) x));
48046}
48047static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
48048 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
48049}
48050static void *_p_wxToolBarTo_p_wxWindow(void *x) {
48051 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48052}
b850e7f3
RD
48053static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
48054 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
48055}
0085ce49
RD
48056static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
48057 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
48058}
48059static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
48060 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
48061}
48062static void *_p_wxToolbookTo_p_wxWindow(void *x) {
48063 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48064}
48065static void *_p_wxControlTo_p_wxWindow(void *x) {
48066 return (void *)((wxWindow *) ((wxControl *) x));
48067}
48068static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
48069 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
48070}
48071static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
48072 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
48073}
48074static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
48075 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
48076}
48077static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
48078 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48079}
48080static void *_p_wxPyControlTo_p_wxWindow(void *x) {
48081 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
48082}
48083static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
48084 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
48085}
48086static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
48087 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
48088}
48089static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
48090 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
48091}
48092static void *_p_wxGaugeTo_p_wxWindow(void *x) {
48093 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
48094}
48095static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
48096 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
48097}
48098static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
48099 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48100}
48101static void *_p_wxListbookTo_p_wxWindow(void *x) {
48102 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48103}
704eda0c
RD
48104static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
48105 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
48106}
0085ce49
RD
48107static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
48108 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
48109}
48110static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
48111 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
48112}
48113static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
48114 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
48115}
48116static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
48117 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48118}
48119static void *_p_wxChoiceTo_p_wxWindow(void *x) {
48120 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48121}
48122static void *_p_wxListBoxTo_p_wxWindow(void *x) {
48123 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48124}
48125static void *_p_wxListViewTo_p_wxWindow(void *x) {
48126 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48127}
48128static void *_p_wxNotebookTo_p_wxWindow(void *x) {
48129 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48130}
48131static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
48132 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
48133}
48134static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
48135 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
48136}
48137static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
48138 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
48139}
48140static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
48141 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
48142}
48143static void *_p_wxSliderTo_p_wxWindow(void *x) {
48144 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
48145}
48146static void *_p_wxTreebookTo_p_wxWindow(void *x) {
48147 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48148}
48149static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
48150 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
48151}
48152static void *_p_wxButtonTo_p_wxWindow(void *x) {
48153 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
48154}
48155static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
48156 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
48157}
48158static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
48159 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48160}
48161static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
48162 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
48163}
b850e7f3
RD
48164static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
48165 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48166}
48167static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
48168 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48169}
48170static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
48171 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48172}
48173static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
48174 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48175}
0085ce49
RD
48176static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
48177 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
48178}
48179static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48180 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48181}
48182static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48183 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48184}
48185static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48186 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48187}
48188static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48189 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48190}
48191static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48192 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48193}
48194static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
48195 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48196}
704eda0c
RD
48197static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
48198 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
48199}
2131d850
RD
48200static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
48201 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
48202}
b850e7f3
RD
48203static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
48204 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
48205}
48206static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
48207 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48208}
48209static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
48210 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
48211}
0085ce49
RD
48212static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
48213 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
48214}
48215static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
48216 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
48217}
48218static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
48219 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
48220}
48221static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
48222 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
48223}
48224static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
48225 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
48226}
0085ce49
RD
48227static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
48228 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48229}
2131d850
RD
48230static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
48231 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48232}
0085ce49
RD
48233static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
48234 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48235}
48236static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
48237 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48238}
48239static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
48240 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48241}
48242static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
48243 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
48244}
48245static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
48246 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
48247}
48248static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
48249 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
48250}
5172800e
RD
48251static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
48252 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48253}
0085ce49
RD
48254static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
48255 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48256}
48257static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
48258 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
48259}
48260static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
48261 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
48262}
48263static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
48264 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
48265}
48266static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
48267 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
48268}
48269static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
48270 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
48271}
48272static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
48273 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
48274}
48275static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
48276 return (void *)((wxControlWithItems *) ((wxChoice *) x));
48277}
48278static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
48279 return (void *)((wxControlWithItems *) ((wxListBox *) x));
48280}
48281static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
48282 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
48283}
48284static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
48285 return (void *)((wxValidator *) ((wxPyValidator *) x));
48286}
48287static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
48288static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
48289static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
48290static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
48291static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
48292static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
48293static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
48294static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
48295static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
48296static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
48297static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
48298static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
48299static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
48300static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
48301static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
48302static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
48303static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
48304static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
48305static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
48306static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
48307static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
5172800e
RD
48308static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
48309static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
0085ce49 48310static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
48311static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
48312static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
48313static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
48314static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
48315static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 48316static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
48317static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
48318static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
48319static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
48320static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
48321static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
48322static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
48323static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
48324static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
48325static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
48326static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
48327static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
48328static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
48329static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
48330static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
48331static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
48332static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 48333static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
0085ce49
RD
48334static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
48335static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
48336static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
48337static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
48338static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
48339static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
48340static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
48341static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
34e0a3bb 48342static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49
RD
48343static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
48344static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
48345static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
48346static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
48347static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
48348static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
34e0a3bb 48349static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
0085ce49
RD
48350static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
48351static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
48352static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
48353static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
48354static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
48355static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
48356static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
48357static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
48358static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
48359static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
48360static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
48361static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
48362static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
48363static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
48364static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
48365static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
b850e7f3
RD
48366static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
48367static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
0085ce49 48368static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
48369static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
48370static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
48371static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
48372static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
48373static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
48374static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
48375static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
48376static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
48377static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
48378static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
48379static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
48380static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
48381static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
48382static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
48383static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
48384static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
48385static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
48386static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
48387static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
48388static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
48389static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
48390static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
48391static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
48392static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
48393static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
48394static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
48395static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 48396static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 48397static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
48398static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
48399static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
48400static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
48401static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
48402static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
48403static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
48404static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
48405static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
48406static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
48407static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
0085ce49
RD
48408static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
48409static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
48410static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
48411static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
5172800e 48412static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
48413static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
48414static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
48415static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
48416static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 48417static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 48418static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
0085ce49
RD
48419static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
48420static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
580080c5 48421static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
0085ce49 48422static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 48423static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
0085ce49
RD
48424static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
48425static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
48426static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 48427static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
0085ce49
RD
48428static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
48429static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
48430static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
48431static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
48432static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
48433static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
48434static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
48435static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
48436static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
48437static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
48438static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
48439static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
48440static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
48441static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
48442static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
48443static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
48444static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
48445static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
48446static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
48447static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
48448static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
48449static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
48450static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
48451static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
48452static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
48453static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
48454static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
48455static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
48456static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
48457static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
48458static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
48459static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
48460static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
48461static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
48462static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
48463static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 48464static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
0085ce49
RD
48465
48466static swig_type_info *swig_type_initial[] = {
48467 &_swigt__p_bool,
48468 &_swigt__p_char,
48469 &_swigt__p_form_ops_t,
48470 &_swigt__p_int,
48471 &_swigt__p_long,
48472 &_swigt__p_unsigned_char,
48473 &_swigt__p_unsigned_int,
48474 &_swigt__p_unsigned_long,
48475 &_swigt__p_void,
48476 &_swigt__p_wxANIHandler,
48477 &_swigt__p_wxAcceleratorTable,
48478 &_swigt__p_wxActivateEvent,
48479 &_swigt__p_wxArrayInt,
48480 &_swigt__p_wxArrayString,
48481 &_swigt__p_wxBMPHandler,
48482 &_swigt__p_wxBitmap,
48483 &_swigt__p_wxBitmapButton,
48484 &_swigt__p_wxBookCtrlBase,
48485 &_swigt__p_wxBookCtrlBaseEvent,
48486 &_swigt__p_wxBoxSizer,
48487 &_swigt__p_wxButton,
48488 &_swigt__p_wxCURHandler,
48489 &_swigt__p_wxCheckBox,
48490 &_swigt__p_wxCheckListBox,
48491 &_swigt__p_wxChildFocusEvent,
48492 &_swigt__p_wxChoice,
48493 &_swigt__p_wxChoicebook,
48494 &_swigt__p_wxChoicebookEvent,
2131d850 48495 &_swigt__p_wxClipboardTextEvent,
0085ce49 48496 &_swigt__p_wxCloseEvent,
5172800e
RD
48497 &_swigt__p_wxCollapsiblePane,
48498 &_swigt__p_wxCollapsiblePaneEvent,
0085ce49 48499 &_swigt__p_wxColour,
b850e7f3
RD
48500 &_swigt__p_wxColourPickerCtrl,
48501 &_swigt__p_wxColourPickerEvent,
0085ce49
RD
48502 &_swigt__p_wxComboBox,
48503 &_swigt__p_wxCommandEvent,
48504 &_swigt__p_wxContextHelp,
48505 &_swigt__p_wxContextHelpButton,
48506 &_swigt__p_wxContextMenuEvent,
48507 &_swigt__p_wxControl,
48508 &_swigt__p_wxControlWithItems,
48509 &_swigt__p_wxCursor,
48510 &_swigt__p_wxDC,
48511 &_swigt__p_wxDateEvent,
48512 &_swigt__p_wxDatePickerCtrl,
48513 &_swigt__p_wxDateTime,
48514 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 48515 &_swigt__p_wxDirPickerCtrl,
0085ce49
RD
48516 &_swigt__p_wxDisplayChangedEvent,
48517 &_swigt__p_wxDropFilesEvent,
48518 &_swigt__p_wxDuplexMode,
48519 &_swigt__p_wxEraseEvent,
48520 &_swigt__p_wxEvent,
48521 &_swigt__p_wxEvtHandler,
48522 &_swigt__p_wxFSFile,
b850e7f3
RD
48523 &_swigt__p_wxFileDirPickerEvent,
48524 &_swigt__p_wxFilePickerCtrl,
0085ce49
RD
48525 &_swigt__p_wxFileSystem,
48526 &_swigt__p_wxFlexGridSizer,
48527 &_swigt__p_wxFocusEvent,
48528 &_swigt__p_wxFont,
b850e7f3
RD
48529 &_swigt__p_wxFontPickerCtrl,
48530 &_swigt__p_wxFontPickerEvent,
0085ce49
RD
48531 &_swigt__p_wxGBSizerItem,
48532 &_swigt__p_wxGIFHandler,
48533 &_swigt__p_wxGauge,
48534 &_swigt__p_wxGenericDirCtrl,
48535 &_swigt__p_wxGenericDragImage,
48536 &_swigt__p_wxGridBagSizer,
48537 &_swigt__p_wxGridSizer,
48538 &_swigt__p_wxHelpEvent,
48539 &_swigt__p_wxHelpProvider,
704eda0c
RD
48540 &_swigt__p_wxHyperlinkCtrl,
48541 &_swigt__p_wxHyperlinkEvent,
0085ce49
RD
48542 &_swigt__p_wxICOHandler,
48543 &_swigt__p_wxIcon,
48544 &_swigt__p_wxIconizeEvent,
48545 &_swigt__p_wxIdleEvent,
48546 &_swigt__p_wxImage,
48547 &_swigt__p_wxImageHandler,
48548 &_swigt__p_wxImageList,
48549 &_swigt__p_wxIndividualLayoutConstraint,
48550 &_swigt__p_wxInitDialogEvent,
48551 &_swigt__p_wxItemContainer,
48552 &_swigt__p_wxJPEGHandler,
48553 &_swigt__p_wxKeyEvent,
48554 &_swigt__p_wxLayoutConstraints,
48555 &_swigt__p_wxListBox,
48556 &_swigt__p_wxListEvent,
48557 &_swigt__p_wxListItem,
48558 &_swigt__p_wxListItemAttr,
48559 &_swigt__p_wxListView,
48560 &_swigt__p_wxListbook,
48561 &_swigt__p_wxListbookEvent,
48562 &_swigt__p_wxMaximizeEvent,
48563 &_swigt__p_wxMemoryDC,
48564 &_swigt__p_wxMenu,
48565 &_swigt__p_wxMenuBar,
48566 &_swigt__p_wxMenuEvent,
48567 &_swigt__p_wxMenuItem,
48568 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 48569 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
48570 &_swigt__p_wxMouseEvent,
48571 &_swigt__p_wxMoveEvent,
48572 &_swigt__p_wxNavigationKeyEvent,
48573 &_swigt__p_wxNcPaintEvent,
48574 &_swigt__p_wxNotebook,
48575 &_swigt__p_wxNotebookEvent,
48576 &_swigt__p_wxNotifyEvent,
48577 &_swigt__p_wxObject,
48578 &_swigt__p_wxPCXHandler,
48579 &_swigt__p_wxPNGHandler,
48580 &_swigt__p_wxPNMHandler,
48581 &_swigt__p_wxPaintEvent,
48582 &_swigt__p_wxPaletteChangedEvent,
48583 &_swigt__p_wxPaperSize,
b850e7f3 48584 &_swigt__p_wxPickerBase,
0085ce49
RD
48585 &_swigt__p_wxPoint,
48586 &_swigt__p_wxPyApp,
48587 &_swigt__p_wxPyCommandEvent,
48588 &_swigt__p_wxPyControl,
48589 &_swigt__p_wxPyEvent,
48590 &_swigt__p_wxPyImageHandler,
48591 &_swigt__p_wxPyListCtrl,
48592 &_swigt__p_wxPySizer,
48593 &_swigt__p_wxPyTreeCtrl,
48594 &_swigt__p_wxPyTreeItemData,
48595 &_swigt__p_wxPyValidator,
48596 &_swigt__p_wxQueryNewPaletteEvent,
48597 &_swigt__p_wxRadioBox,
48598 &_swigt__p_wxRadioButton,
48599 &_swigt__p_wxRect,
48600 &_swigt__p_wxScrollBar,
48601 &_swigt__p_wxScrollEvent,
48602 &_swigt__p_wxScrollWinEvent,
48603 &_swigt__p_wxSetCursorEvent,
48604 &_swigt__p_wxShowEvent,
48605 &_swigt__p_wxSimpleHelpProvider,
48606 &_swigt__p_wxSize,
48607 &_swigt__p_wxSizeEvent,
48608 &_swigt__p_wxSizer,
48609 &_swigt__p_wxSizerItem,
48610 &_swigt__p_wxSlider,
48611 &_swigt__p_wxSpinButton,
48612 &_swigt__p_wxSpinCtrl,
48613 &_swigt__p_wxSpinEvent,
48614 &_swigt__p_wxStaticBitmap,
48615 &_swigt__p_wxStaticBox,
48616 &_swigt__p_wxStaticBoxSizer,
48617 &_swigt__p_wxStaticLine,
48618 &_swigt__p_wxStaticText,
48619 &_swigt__p_wxStdDialogButtonSizer,
48620 &_swigt__p_wxString,
48621 &_swigt__p_wxSysColourChangedEvent,
580080c5 48622 &_swigt__p_wxTGAHandler,
0085ce49
RD
48623 &_swigt__p_wxTIFFHandler,
48624 &_swigt__p_wxTextAttr,
48625 &_swigt__p_wxTextCtrl,
48626 &_swigt__p_wxTextUrlEvent,
48627 &_swigt__p_wxToggleButton,
48628 &_swigt__p_wxToolBar,
48629 &_swigt__p_wxToolBarBase,
48630 &_swigt__p_wxToolBarToolBase,
48631 &_swigt__p_wxToolbook,
48632 &_swigt__p_wxToolbookEvent,
0085ce49
RD
48633 &_swigt__p_wxTreeEvent,
48634 &_swigt__p_wxTreeItemId,
48635 &_swigt__p_wxTreebook,
48636 &_swigt__p_wxTreebookEvent,
48637 &_swigt__p_wxUpdateUIEvent,
48638 &_swigt__p_wxValidator,
48639 &_swigt__p_wxVisualAttributes,
48640 &_swigt__p_wxWindow,
b850e7f3 48641 &_swigt__p_wxWindowBase,
0085ce49
RD
48642 &_swigt__p_wxWindowCreateEvent,
48643 &_swigt__p_wxWindowDestroyEvent,
48644 &_swigt__p_wxXPMHandler,
48645};
48646
48647static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
48648static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
48649static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
48650static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
48651static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
48652static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
48653static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
48654static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
48655static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
48656static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
48657static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
48658static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
48659static 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}};
48660static 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}};
48661static 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}};
48662static 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}};
48663static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
48664static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
48665static 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}};
48666static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
48667static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e
RD
48668static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
48669static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 48670static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48671static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48672static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48673static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
48674static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 48675static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48676static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
48677static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
48678static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48679static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48680static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
48681static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
48682static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48683static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48684static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
48685static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48686static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48687static 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}};
48688static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
48689static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
48690static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48691static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
48692static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 48693static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48694static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
48695static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48696static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
48697static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
48698static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
48699static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
48700static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 48701static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48702static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
48703static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48704static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48705static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
48706static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48707static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 48708static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48709static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48710static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48711static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48712static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48713static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48714static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48715static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
48716static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48717static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
48718static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48719static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48720static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48721static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
48722static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
48723static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
48724static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48725static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48726static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48727static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 48728static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48729static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48730static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48731static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
48732static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
48733static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
48734static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
48735static 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
48736static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
48737static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48738static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
48739static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
48740static 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}};
48741static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48742static 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}};
48743static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
48744static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
48745static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
48746static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
48747static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
48748static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48749static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
48750static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
48751static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
48752static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48753static 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}};
48754static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 48755static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 48756static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48757static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
48758static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48759static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48760static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
48761static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
48762static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48763static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48764static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
48765static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
48766static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48767static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
48768static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
48769static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
48770static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48771static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48772static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
48773static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
48774static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
48775static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 48776static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 48777static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48778static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
48779static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 48780static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 48781static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 48782static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48783static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
48784static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48785static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
0085ce49 48786static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 48787static 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
48788static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
48789static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
48790static 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}};
48791static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
48792static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
48793static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
48794static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
48795static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
48796static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
48797static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
48798static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
48799static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
48800static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
48801static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
48802static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
48803static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
48804static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
48805static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
48806static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
48807static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
48808static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
48809static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
48810static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
48811static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
48812static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
48813static 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}};
48814static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
48815static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
48816static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48817static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
48818static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
48819static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
48820static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48821static 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}};
48822static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48823static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
b850e7f3 48824static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
48825
48826static swig_cast_info *swig_cast_initial[] = {
48827 _swigc__p_bool,
48828 _swigc__p_char,
48829 _swigc__p_form_ops_t,
48830 _swigc__p_int,
48831 _swigc__p_long,
48832 _swigc__p_unsigned_char,
48833 _swigc__p_unsigned_int,
48834 _swigc__p_unsigned_long,
48835 _swigc__p_void,
48836 _swigc__p_wxANIHandler,
48837 _swigc__p_wxAcceleratorTable,
48838 _swigc__p_wxActivateEvent,
48839 _swigc__p_wxArrayInt,
48840 _swigc__p_wxArrayString,
48841 _swigc__p_wxBMPHandler,
48842 _swigc__p_wxBitmap,
48843 _swigc__p_wxBitmapButton,
48844 _swigc__p_wxBookCtrlBase,
48845 _swigc__p_wxBookCtrlBaseEvent,
48846 _swigc__p_wxBoxSizer,
48847 _swigc__p_wxButton,
48848 _swigc__p_wxCURHandler,
48849 _swigc__p_wxCheckBox,
48850 _swigc__p_wxCheckListBox,
48851 _swigc__p_wxChildFocusEvent,
48852 _swigc__p_wxChoice,
48853 _swigc__p_wxChoicebook,
48854 _swigc__p_wxChoicebookEvent,
2131d850 48855 _swigc__p_wxClipboardTextEvent,
0085ce49 48856 _swigc__p_wxCloseEvent,
5172800e
RD
48857 _swigc__p_wxCollapsiblePane,
48858 _swigc__p_wxCollapsiblePaneEvent,
0085ce49 48859 _swigc__p_wxColour,
b850e7f3
RD
48860 _swigc__p_wxColourPickerCtrl,
48861 _swigc__p_wxColourPickerEvent,
0085ce49
RD
48862 _swigc__p_wxComboBox,
48863 _swigc__p_wxCommandEvent,
48864 _swigc__p_wxContextHelp,
48865 _swigc__p_wxContextHelpButton,
48866 _swigc__p_wxContextMenuEvent,
48867 _swigc__p_wxControl,
48868 _swigc__p_wxControlWithItems,
48869 _swigc__p_wxCursor,
48870 _swigc__p_wxDC,
48871 _swigc__p_wxDateEvent,
48872 _swigc__p_wxDatePickerCtrl,
48873 _swigc__p_wxDateTime,
48874 _swigc__p_wxDirFilterListCtrl,
b850e7f3 48875 _swigc__p_wxDirPickerCtrl,
0085ce49
RD
48876 _swigc__p_wxDisplayChangedEvent,
48877 _swigc__p_wxDropFilesEvent,
48878 _swigc__p_wxDuplexMode,
48879 _swigc__p_wxEraseEvent,
48880 _swigc__p_wxEvent,
48881 _swigc__p_wxEvtHandler,
48882 _swigc__p_wxFSFile,
b850e7f3
RD
48883 _swigc__p_wxFileDirPickerEvent,
48884 _swigc__p_wxFilePickerCtrl,
0085ce49
RD
48885 _swigc__p_wxFileSystem,
48886 _swigc__p_wxFlexGridSizer,
48887 _swigc__p_wxFocusEvent,
48888 _swigc__p_wxFont,
b850e7f3
RD
48889 _swigc__p_wxFontPickerCtrl,
48890 _swigc__p_wxFontPickerEvent,
0085ce49
RD
48891 _swigc__p_wxGBSizerItem,
48892 _swigc__p_wxGIFHandler,
48893 _swigc__p_wxGauge,
48894 _swigc__p_wxGenericDirCtrl,
48895 _swigc__p_wxGenericDragImage,
48896 _swigc__p_wxGridBagSizer,
48897 _swigc__p_wxGridSizer,
48898 _swigc__p_wxHelpEvent,
48899 _swigc__p_wxHelpProvider,
704eda0c
RD
48900 _swigc__p_wxHyperlinkCtrl,
48901 _swigc__p_wxHyperlinkEvent,
0085ce49
RD
48902 _swigc__p_wxICOHandler,
48903 _swigc__p_wxIcon,
48904 _swigc__p_wxIconizeEvent,
48905 _swigc__p_wxIdleEvent,
48906 _swigc__p_wxImage,
48907 _swigc__p_wxImageHandler,
48908 _swigc__p_wxImageList,
48909 _swigc__p_wxIndividualLayoutConstraint,
48910 _swigc__p_wxInitDialogEvent,
48911 _swigc__p_wxItemContainer,
48912 _swigc__p_wxJPEGHandler,
48913 _swigc__p_wxKeyEvent,
48914 _swigc__p_wxLayoutConstraints,
48915 _swigc__p_wxListBox,
48916 _swigc__p_wxListEvent,
48917 _swigc__p_wxListItem,
48918 _swigc__p_wxListItemAttr,
48919 _swigc__p_wxListView,
48920 _swigc__p_wxListbook,
48921 _swigc__p_wxListbookEvent,
48922 _swigc__p_wxMaximizeEvent,
48923 _swigc__p_wxMemoryDC,
48924 _swigc__p_wxMenu,
48925 _swigc__p_wxMenuBar,
48926 _swigc__p_wxMenuEvent,
48927 _swigc__p_wxMenuItem,
48928 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 48929 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
48930 _swigc__p_wxMouseEvent,
48931 _swigc__p_wxMoveEvent,
48932 _swigc__p_wxNavigationKeyEvent,
48933 _swigc__p_wxNcPaintEvent,
48934 _swigc__p_wxNotebook,
48935 _swigc__p_wxNotebookEvent,
48936 _swigc__p_wxNotifyEvent,
48937 _swigc__p_wxObject,
48938 _swigc__p_wxPCXHandler,
48939 _swigc__p_wxPNGHandler,
48940 _swigc__p_wxPNMHandler,
48941 _swigc__p_wxPaintEvent,
48942 _swigc__p_wxPaletteChangedEvent,
48943 _swigc__p_wxPaperSize,
b850e7f3 48944 _swigc__p_wxPickerBase,
0085ce49
RD
48945 _swigc__p_wxPoint,
48946 _swigc__p_wxPyApp,
48947 _swigc__p_wxPyCommandEvent,
48948 _swigc__p_wxPyControl,
48949 _swigc__p_wxPyEvent,
48950 _swigc__p_wxPyImageHandler,
48951 _swigc__p_wxPyListCtrl,
48952 _swigc__p_wxPySizer,
48953 _swigc__p_wxPyTreeCtrl,
48954 _swigc__p_wxPyTreeItemData,
48955 _swigc__p_wxPyValidator,
48956 _swigc__p_wxQueryNewPaletteEvent,
48957 _swigc__p_wxRadioBox,
48958 _swigc__p_wxRadioButton,
48959 _swigc__p_wxRect,
48960 _swigc__p_wxScrollBar,
48961 _swigc__p_wxScrollEvent,
48962 _swigc__p_wxScrollWinEvent,
48963 _swigc__p_wxSetCursorEvent,
48964 _swigc__p_wxShowEvent,
48965 _swigc__p_wxSimpleHelpProvider,
48966 _swigc__p_wxSize,
48967 _swigc__p_wxSizeEvent,
48968 _swigc__p_wxSizer,
48969 _swigc__p_wxSizerItem,
48970 _swigc__p_wxSlider,
48971 _swigc__p_wxSpinButton,
48972 _swigc__p_wxSpinCtrl,
48973 _swigc__p_wxSpinEvent,
48974 _swigc__p_wxStaticBitmap,
48975 _swigc__p_wxStaticBox,
48976 _swigc__p_wxStaticBoxSizer,
48977 _swigc__p_wxStaticLine,
48978 _swigc__p_wxStaticText,
48979 _swigc__p_wxStdDialogButtonSizer,
48980 _swigc__p_wxString,
48981 _swigc__p_wxSysColourChangedEvent,
580080c5 48982 _swigc__p_wxTGAHandler,
0085ce49
RD
48983 _swigc__p_wxTIFFHandler,
48984 _swigc__p_wxTextAttr,
48985 _swigc__p_wxTextCtrl,
48986 _swigc__p_wxTextUrlEvent,
48987 _swigc__p_wxToggleButton,
48988 _swigc__p_wxToolBar,
48989 _swigc__p_wxToolBarBase,
48990 _swigc__p_wxToolBarToolBase,
48991 _swigc__p_wxToolbook,
48992 _swigc__p_wxToolbookEvent,
0085ce49
RD
48993 _swigc__p_wxTreeEvent,
48994 _swigc__p_wxTreeItemId,
48995 _swigc__p_wxTreebook,
48996 _swigc__p_wxTreebookEvent,
48997 _swigc__p_wxUpdateUIEvent,
48998 _swigc__p_wxValidator,
48999 _swigc__p_wxVisualAttributes,
49000 _swigc__p_wxWindow,
b850e7f3 49001 _swigc__p_wxWindowBase,
0085ce49
RD
49002 _swigc__p_wxWindowCreateEvent,
49003 _swigc__p_wxWindowDestroyEvent,
49004 _swigc__p_wxXPMHandler,
49005};
49006
49007
49008/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
49009
49010static swig_const_info swig_const_table[] = {
49011{0, 0, 0, 0.0, 0, 0}};
49012
49013#ifdef __cplusplus
49014}
49015#endif
49016/* -----------------------------------------------------------------------------
49017 * Type initialization:
49018 * This problem is tough by the requirement that no dynamic
49019 * memory is used. Also, since swig_type_info structures store pointers to
49020 * swig_cast_info structures and swig_cast_info structures store pointers back
49021 * to swig_type_info structures, we need some lookup code at initialization.
49022 * The idea is that swig generates all the structures that are needed.
49023 * The runtime then collects these partially filled structures.
49024 * The SWIG_InitializeModule function takes these initial arrays out of
49025 * swig_module, and does all the lookup, filling in the swig_module.types
49026 * array with the correct data and linking the correct swig_cast_info
49027 * structures together.
49028 *
49029 * The generated swig_type_info structures are assigned staticly to an initial
49030 * array. We just loop though that array, and handle each type individually.
49031 * First we lookup if this type has been already loaded, and if so, use the
49032 * loaded structure instead of the generated one. Then we have to fill in the
49033 * cast linked list. The cast data is initially stored in something like a
49034 * two-dimensional array. Each row corresponds to a type (there are the same
49035 * number of rows as there are in the swig_type_initial array). Each entry in
49036 * a column is one of the swig_cast_info structures for that type.
49037 * The cast_initial array is actually an array of arrays, because each row has
49038 * a variable number of columns. So to actually build the cast linked list,
49039 * we find the array of casts associated with the type, and loop through it
49040 * adding the casts to the list. The one last trick we need to do is making
49041 * sure the type pointer in the swig_cast_info struct is correct.
49042 *
49043 * First off, we lookup the cast->type name to see if it is already loaded.
49044 * There are three cases to handle:
49045 * 1) If the cast->type has already been loaded AND the type we are adding
49046 * casting info to has not been loaded (it is in this module), THEN we
49047 * replace the cast->type pointer with the type pointer that has already
49048 * been loaded.
49049 * 2) If BOTH types (the one we are adding casting info to, and the
49050 * cast->type) are loaded, THEN the cast info has already been loaded by
49051 * the previous module so we just ignore it.
49052 * 3) Finally, if cast->type has not already been loaded, then we add that
49053 * swig_cast_info to the linked list (because the cast->type) pointer will
49054 * be correct.
49055 * ----------------------------------------------------------------------------- */
49056
49057#ifdef __cplusplus
49058extern "C" {
49059#if 0
49060} /* c-mode */
49061#endif
49062#endif
49063
49064#if 0
49065#define SWIGRUNTIME_DEBUG
49066#endif
49067
49068SWIGRUNTIME void
49069SWIG_InitializeModule(void *clientdata) {
49070 size_t i;
49071 swig_module_info *module_head;
49072 static int init_run = 0;
49073
49074 clientdata = clientdata;
49075
49076 if (init_run) return;
49077 init_run = 1;
49078
49079 /* Initialize the swig_module */
49080 swig_module.type_initial = swig_type_initial;
49081 swig_module.cast_initial = swig_cast_initial;
49082
49083 /* Try and load any already created modules */
49084 module_head = SWIG_GetModule(clientdata);
49085 if (module_head) {
49086 swig_module.next = module_head->next;
49087 module_head->next = &swig_module;
49088 } else {
49089 /* This is the first module loaded */
49090 swig_module.next = &swig_module;
49091 SWIG_SetModule(clientdata, &swig_module);
49092 }
49093
49094 /* Now work on filling in swig_module.types */
49095#ifdef SWIGRUNTIME_DEBUG
49096 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
49097#endif
49098 for (i = 0; i < swig_module.size; ++i) {
49099 swig_type_info *type = 0;
49100 swig_type_info *ret;
49101 swig_cast_info *cast;
d14a1e28 49102
0085ce49
RD
49103#ifdef SWIGRUNTIME_DEBUG
49104 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49105#endif
d14a1e28 49106
0085ce49
RD
49107 /* if there is another module already loaded */
49108 if (swig_module.next != &swig_module) {
49109 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 49110 }
0085ce49
RD
49111 if (type) {
49112 /* Overwrite clientdata field */
49113#ifdef SWIGRUNTIME_DEBUG
49114 printf("SWIG_InitializeModule: found type %s\n", type->name);
49115#endif
49116 if (swig_module.type_initial[i]->clientdata) {
49117 type->clientdata = swig_module.type_initial[i]->clientdata;
49118#ifdef SWIGRUNTIME_DEBUG
49119 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
49120#endif
49121 }
49122 } else {
49123 type = swig_module.type_initial[i];
093d3ff1 49124 }
d14a1e28 49125
0085ce49
RD
49126 /* Insert casting types */
49127 cast = swig_module.cast_initial[i];
49128 while (cast->type) {
49129 /* Don't need to add information already in the list */
49130 ret = 0;
49131#ifdef SWIGRUNTIME_DEBUG
49132 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
49133#endif
49134 if (swig_module.next != &swig_module) {
49135 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
49136#ifdef SWIGRUNTIME_DEBUG
49137 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
49138#endif
49139 }
49140 if (ret) {
49141 if (type == swig_module.type_initial[i]) {
49142#ifdef SWIGRUNTIME_DEBUG
49143 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
49144#endif
49145 cast->type = ret;
49146 ret = 0;
49147 } else {
49148 /* Check for casting already in the list */
49149 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
49150#ifdef SWIGRUNTIME_DEBUG
49151 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
49152#endif
49153 if (!ocast) ret = 0;
49154 }
49155 }
49156
49157 if (!ret) {
49158#ifdef SWIGRUNTIME_DEBUG
49159 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
49160#endif
49161 if (type->cast) {
49162 type->cast->prev = cast;
49163 cast->next = type->cast;
49164 }
49165 type->cast = cast;
49166 }
49167 cast++;
093d3ff1 49168 }
0085ce49
RD
49169 /* Set entry in modules->types array equal to the type */
49170 swig_module.types[i] = type;
49171 }
49172 swig_module.types[i] = 0;
49173
49174#ifdef SWIGRUNTIME_DEBUG
49175 printf("**** SWIG_InitializeModule: Cast List ******\n");
49176 for (i = 0; i < swig_module.size; ++i) {
49177 int j = 0;
49178 swig_cast_info *cast = swig_module.cast_initial[i];
49179 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49180 while (cast->type) {
49181 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
49182 cast++;
49183 ++j;
49184 }
49185 printf("---- Total casts: %d\n",j);
49186 }
49187 printf("**** SWIG_InitializeModule: Cast List ******\n");
49188#endif
49189}
49190
49191/* This function will propagate the clientdata field of type to
49192* any new swig_type_info structures that have been added into the list
49193* of equivalent types. It is like calling
49194* SWIG_TypeClientData(type, clientdata) a second time.
49195*/
49196SWIGRUNTIME void
49197SWIG_PropagateClientData(void) {
49198 size_t i;
49199 swig_cast_info *equiv;
49200 static int init_run = 0;
49201
49202 if (init_run) return;
49203 init_run = 1;
49204
49205 for (i = 0; i < swig_module.size; i++) {
49206 if (swig_module.types[i]->clientdata) {
49207 equiv = swig_module.types[i]->cast;
49208 while (equiv) {
49209 if (!equiv->converter) {
49210 if (equiv->type && !equiv->type->clientdata)
49211 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
49212 }
49213 equiv = equiv->next;
49214 }
093d3ff1 49215 }
0085ce49
RD
49216 }
49217}
49218
49219#ifdef __cplusplus
49220#if 0
49221{
49222 /* c-mode */
49223#endif
49224}
49225#endif
49226
49227
49228
49229#ifdef __cplusplus
49230extern "C" {
49231#endif
49232
49233 /* Python-specific SWIG API */
49234#define SWIG_newvarlink() SWIG_Python_newvarlink()
49235#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
49236#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
49237
49238 /* -----------------------------------------------------------------------------
49239 * global variable support code.
49240 * ----------------------------------------------------------------------------- */
49241
49242 typedef struct swig_globalvar {
49243 char *name; /* Name of global variable */
49244 PyObject *(*get_attr)(void); /* Return the current value */
49245 int (*set_attr)(PyObject *); /* Set the value */
49246 struct swig_globalvar *next;
49247 } swig_globalvar;
49248
49249 typedef struct swig_varlinkobject {
49250 PyObject_HEAD
49251 swig_globalvar *vars;
49252 } swig_varlinkobject;
49253
49254 SWIGINTERN PyObject *
49255 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
49256 return PyString_FromString("<Swig global variables>");
49257 }
49258
49259 SWIGINTERN PyObject *
49260 swig_varlink_str(swig_varlinkobject *v) {
49261 PyObject *str = PyString_FromString("(");
49262 swig_globalvar *var;
49263 for (var = v->vars; var; var=var->next) {
49264 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
49265 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
49266 }
49267 PyString_ConcatAndDel(&str,PyString_FromString(")"));
49268 return str;
49269 }
49270
49271 SWIGINTERN int
49272 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
49273 PyObject *str = swig_varlink_str(v);
49274 fprintf(fp,"Swig global variables ");
49275 fprintf(fp,"%s\n", PyString_AsString(str));
49276 Py_DECREF(str);
49277 return 0;
49278 }
49279
49280 SWIGINTERN void
49281 swig_varlink_dealloc(swig_varlinkobject *v) {
49282 swig_globalvar *var = v->vars;
49283 while (var) {
49284 swig_globalvar *n = var->next;
49285 free(var->name);
49286 free(var);
49287 var = n;
093d3ff1 49288 }
0085ce49
RD
49289 }
49290
49291 SWIGINTERN PyObject *
49292 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
49293 PyObject *res = NULL;
49294 swig_globalvar *var = v->vars;
49295 while (var) {
49296 if (strcmp(var->name,n) == 0) {
49297 res = (*var->get_attr)();
49298 break;
49299 }
49300 var = var->next;
093d3ff1 49301 }
0085ce49
RD
49302 if (res == NULL && !PyErr_Occurred()) {
49303 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 49304 }
0085ce49
RD
49305 return res;
49306 }
49307
49308 SWIGINTERN int
49309 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
49310 int res = 1;
49311 swig_globalvar *var = v->vars;
49312 while (var) {
49313 if (strcmp(var->name,n) == 0) {
49314 res = (*var->set_attr)(p);
49315 break;
49316 }
49317 var = var->next;
093d3ff1 49318 }
0085ce49
RD
49319 if (res == 1 && !PyErr_Occurred()) {
49320 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 49321 }
0085ce49
RD
49322 return res;
49323 }
49324
49325 SWIGINTERN PyTypeObject*
49326 swig_varlink_type(void) {
49327 static char varlink__doc__[] = "Swig var link object";
49328 static PyTypeObject varlink_type;
49329 static int type_init = 0;
49330 if (!type_init) {
49331 const PyTypeObject tmp
49332 = {
49333 PyObject_HEAD_INIT(NULL)
49334 0, /* Number of items in variable part (ob_size) */
49335 (char *)"swigvarlink", /* Type name (tp_name) */
49336 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
49337 0, /* Itemsize (tp_itemsize) */
49338 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
49339 (printfunc) swig_varlink_print, /* Print (tp_print) */
49340 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
49341 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
49342 0, /* tp_compare */
49343 (reprfunc) swig_varlink_repr, /* tp_repr */
49344 0, /* tp_as_number */
49345 0, /* tp_as_sequence */
49346 0, /* tp_as_mapping */
49347 0, /* tp_hash */
49348 0, /* tp_call */
49349 (reprfunc)swig_varlink_str, /* tp_str */
49350 0, /* tp_getattro */
49351 0, /* tp_setattro */
49352 0, /* tp_as_buffer */
49353 0, /* tp_flags */
49354 varlink__doc__, /* tp_doc */
49355 0, /* tp_traverse */
49356 0, /* tp_clear */
49357 0, /* tp_richcompare */
49358 0, /* tp_weaklistoffset */
49359#if PY_VERSION_HEX >= 0x02020000
49360 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
49361#endif
49362#if PY_VERSION_HEX >= 0x02030000
49363 0, /* tp_del */
49364#endif
49365#ifdef COUNT_ALLOCS
49366 0,0,0,0 /* tp_alloc -> tp_next */
49367#endif
49368 };
49369 varlink_type = tmp;
49370 varlink_type.ob_type = &PyType_Type;
49371 type_init = 1;
53aa7709 49372 }
0085ce49
RD
49373 return &varlink_type;
49374 }
49375
49376 /* Create a variable linking object for use later */
49377 SWIGINTERN PyObject *
49378 SWIG_Python_newvarlink(void) {
49379 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
49380 if (result) {
49381 result->vars = 0;
49382 }
49383 return ((PyObject*) result);
49384 }
49385
49386 SWIGINTERN void
49387 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
49388 swig_varlinkobject *v = (swig_varlinkobject *) p;
49389 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
49390 if (gv) {
49391 size_t size = strlen(name)+1;
49392 gv->name = (char *)malloc(size);
49393 if (gv->name) {
49394 strncpy(gv->name,name,size);
49395 gv->get_attr = get_attr;
49396 gv->set_attr = set_attr;
49397 gv->next = v->vars;
49398 }
53aa7709 49399 }
0085ce49
RD
49400 v->vars = gv;
49401 }
49402
49403 SWIGINTERN PyObject *
49404 SWIG_globals() {
49405 static PyObject *_SWIG_globals = 0;
49406 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
49407 return _SWIG_globals;
49408 }
49409
49410 /* -----------------------------------------------------------------------------
49411 * constants/methods manipulation
49412 * ----------------------------------------------------------------------------- */
49413
49414 /* Install Constants */
49415 SWIGINTERN void
49416 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
49417 PyObject *obj = 0;
49418 size_t i;
49419 for (i = 0; constants[i].type; ++i) {
49420 switch(constants[i].type) {
49421 case SWIG_PY_POINTER:
49422 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
49423 break;
49424 case SWIG_PY_BINARY:
49425 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
49426 break;
49427 default:
49428 obj = 0;
49429 break;
49430 }
49431 if (obj) {
49432 PyDict_SetItemString(d, constants[i].name, obj);
49433 Py_DECREF(obj);
49434 }
53aa7709 49435 }
0085ce49
RD
49436 }
49437
49438 /* -----------------------------------------------------------------------------*/
49439 /* Fix SwigMethods to carry the callback ptrs when needed */
49440 /* -----------------------------------------------------------------------------*/
49441
49442 SWIGINTERN void
49443 SWIG_Python_FixMethods(PyMethodDef *methods,
49444 swig_const_info *const_table,
49445 swig_type_info **types,
49446 swig_type_info **types_initial) {
49447 size_t i;
49448 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 49449 const char *c = methods[i].ml_doc;
0085ce49
RD
49450 if (c && (c = strstr(c, "swig_ptr: "))) {
49451 int j;
49452 swig_const_info *ci = 0;
453fb36b 49453 const char *name = c + 10;
0085ce49
RD
49454 for (j = 0; const_table[j].type; ++j) {
49455 if (strncmp(const_table[j].name, name,
49456 strlen(const_table[j].name)) == 0) {
49457 ci = &(const_table[j]);
49458 break;
49459 }
49460 }
49461 if (ci) {
49462 size_t shift = (ci->ptype) - types;
49463 swig_type_info *ty = types_initial[shift];
49464 size_t ldoc = (c - methods[i].ml_doc);
49465 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
49466 char *ndoc = (char*)malloc(ldoc + lptr + 10);
49467 if (ndoc) {
49468 char *buff = ndoc;
49469 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
49470 if (ptr) {
49471 strncpy(buff, methods[i].ml_doc, ldoc);
49472 buff += ldoc;
49473 strncpy(buff, "swig_ptr: ", 10);
49474 buff += 10;
49475 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
49476 methods[i].ml_doc = ndoc;
49477 }
49478 }
49479 }
49480 }
53aa7709 49481 }
0085ce49
RD
49482 }
49483
49484#ifdef __cplusplus
49485}
49486#endif
49487
49488/* -----------------------------------------------------------------------------*
49489 * Partial Init method
49490 * -----------------------------------------------------------------------------*/
49491
49492#ifdef __cplusplus
49493extern "C"
49494#endif
49495SWIGEXPORT void SWIG_init(void) {
49496 PyObject *m, *d;
49497
49498 /* Fix SwigMethods to carry the callback ptrs when needed */
49499 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
49500
49501 m = Py_InitModule((char *) SWIG_name, SwigMethods);
49502 d = PyModule_GetDict(m);
49503
49504 SWIG_InitializeModule(0);
49505 SWIG_InstallConstants(d,swig_const_table);
49506
49507
49508 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
49509 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
49510 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
49511 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
49512 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
49513 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
49514 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
49515 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
49516 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
49517 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
49518 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
49519 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
49520 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
49521 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
49522 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
49523 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
49524 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
49525 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
49526 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
49527 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
49528 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
49529 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
0085ce49
RD
49530 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
49531 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
49532 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
49533 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
49534 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
49535 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
49536 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
49537 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
49538 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
49539 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
49540 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
49541 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
49542 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
49543 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
49544 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
49545 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
49546 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
49547 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
49548 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
49549 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
49550 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
49551 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
49552 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
0085ce49
RD
49553 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
49554 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
49555 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
49556 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
49557 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
49558 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
49559 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
49560 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
49561 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
49562 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
49563 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
49564 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
49565 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
49566 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
49567 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
49568 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
49569 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
49570 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
49571 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
49572 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
49573 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
49574 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
49575 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
49576 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
49577 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
49578 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
49579 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
f5263701 49580 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
0085ce49
RD
49581 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
49582 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
49583 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
49584 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
49585 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
49586 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
49587 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
49588 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
49589 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
49590 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
49591 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
49592 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
49593 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
49594 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
49595 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
49596 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
49597 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
49598 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
49599 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
49600 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
49601 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
49602 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
49603 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
49604 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
49605 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
49606 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
49607 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
49608 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
49609 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
49610 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
49611 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
49612 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
49613 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
49614 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
49615 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
49616 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 49617 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
49618 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
49619 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
49620 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
49621 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
49622 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
0085ce49
RD
49623 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
49624 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
49625 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
49626 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
49627 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
49628 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
49629 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
49630 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
49631 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
49632 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
49633 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 49634 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
0085ce49
RD
49635 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
49636 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
49637 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
49638 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
49639 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
49640 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
49641 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
49642 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
49643 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
49644 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
49645 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
49646 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
49647 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
49648 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
49649 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
49650 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
49651 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
49652 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
49653 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
49654 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
49655 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
49656 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
49657 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
49658 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
49659 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
49660 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
49661 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
49662 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
49663 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
8f514ab4
RD
49664 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
49665 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
49666 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
49667 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
0085ce49
RD
49668 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
49669 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
49670 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
49671 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
49672 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
49673 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
49674 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
49675 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
49676 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 49677 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
0085ce49
RD
49678 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
49679 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
49680 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
49681 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
49682 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
49683 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
49684 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
49685 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
49686 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
49687 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
49688 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
49689 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
49690 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
49691 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
49692 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
49693 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
49694 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
49695 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
49696 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
49697 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
49698 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
49699 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
49700 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
49701 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
49702 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
49703 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
49704 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
49705 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
49706 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
49707 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
49708 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
49709 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
49710 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
49711 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
49712 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
49713 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
49714 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
49715 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
49716 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
49717 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
49718 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
49719 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
49720 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
49721 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
49722 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
49723 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
49724 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 49725 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
0085ce49
RD
49726 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
49727 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
49728 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
49729 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
49730 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
49731 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
49732 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
49733 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
49734 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
49735 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
49736 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
49737 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
49738 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
49739 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
49740 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
49741 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
49742 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
49743 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
49744 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
49745 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
49746 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
49747 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
49748 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
49749 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
49750 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
49751 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
49752 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
49753 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
49754 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
49755 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
49756 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
49757 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
49758 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
49759 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
49760 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
49761 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
49762 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
49763 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
49764 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
49765 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
49766 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
49767 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
49768
49769 // Map renamed classes back to their common name for OOR
49770 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
49771
49772 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
49773 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
49774 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
49775 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
49776 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
49777 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
49778 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
49779 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
49780 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
49781 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
49782 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
49783 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
49784 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
49785 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
49786 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
0085ce49
RD
49787 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
49788 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
49789 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
49790 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
49791 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
49792 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
49793 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
49794 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
49795 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
49796 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
49797 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
49798 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
49799 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
49800 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
49801 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
49802 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
49803 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
49804 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
49805 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
49806 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
49807 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
49808 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
49809 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
49810 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
49811 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
49812 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
49813 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
49814 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
49815 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
49816 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
49817 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
49818 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
49819 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
49820 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
49821 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
49822 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
49823 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
49824 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
49825 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
49826 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 49827 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
0085ce49
RD
49828
49829 // Map renamed classes back to their common name for OOR
49830 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
49831 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
49832
49833 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
49834 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
49835 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
49836 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
49837 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
49838 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
0085ce49
RD
49839 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
49840 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
49841 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
49842 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
49843 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
0085ce49
RD
49844
49845 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
49846
49847 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
49848 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
49849 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
49850 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
49851 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
49852 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
49853 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
49854 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
33d6fd3b
RD
49855 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
49856 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
49857 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
704eda0c
RD
49858 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
49859 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
49860 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
49861 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
49862 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
49863 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
49864 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
49865 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
49866 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
49867 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
49868 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
49869 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
49870 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
49871 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
49872 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
49873 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
49874 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
49875 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
49876 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
49877 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
49878 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
49879 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
49880 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
49881 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
49882 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
49883 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
49884 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
49885 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
49886 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
49887 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
49888 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
49889 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
5172800e
RD
49890 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
49891 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
49892 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
49893 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
d14a1e28
RD
49894}
49895